Formateadores y código
gRPC .proto ⇄ JSON Schema
Bridge protobuf and JSON Schema definitions.
Nota del editor
Understanding · Two schema languages — one for wire, one for validation.
Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.
Preguntas frecuentes
Quick answers.
›How are protobuf types mapped to JSON Schema?
The converter follows standard proto3 mapping conventions. For example, `string` and `bytes` become `string` types in JSON Schema, while numeric types like `int32` are mapped to `number` or `integer` with range constraints.
›Is my API schema sent to a server?
No. The parsing and transformation logic is executed locally using JavaScript in your browser, keeping your protobuf definitions confidential.
›Can I convert from JSON Schema back to .proto?
Yes, the tool is bidirectional. You can paste a JSON Schema to generate equivalent protobuf message definitions, though documentation tags and specific gRPC service options may require manual adjustment.
›Does it support nested messages and enums?
Yes. The tool recursively processes nested messages, enums, and `oneof` fields into their corresponding `definitions` or `anyOf` representations in JSON Schema.
La gente también busca
Herramientas relacionadas
More in this room.
- Validador de OpenAPI / SwaggerValida especificaciones OpenAPI 3 contra las reglas de la especificación.
- OpenAPI 3.1 YAML ⇄ JSONConvierte especificaciones OpenAPI entre YAML y JSON.
- OpenAPI → Cliente Axios TypeScriptGenera un cliente Axios tipado desde cualquier especificación OpenAPI.
- OpenAPI → React Query HooksHooks useQuery + useMutation autogenerados por cada endpoint.
- OpenAPI → Colección PostmanColección Postman v2.1 desde cualquier especificación OpenAPI.
- GraphQL SDL ⇄ Tipos TypeScriptRecorre un esquema, emite interfaces tipadas — y viceversa.