-
Notifications
You must be signed in to change notification settings - Fork 0
feat: support map #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support map #197
Conversation
Signed-off-by: Sasha Melentyev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces support for map fields in the schema generation process by updating the generator logic and adding new map field definitions, along with corresponding OpenAPI schema components.
- Updated internal generator to handle map entries and validate map key kinds.
- Introduced helper functions isUnsupportedMapKeyKind and mkMapSchema to construct appropriate schemas for map fields.
- Updated OpenAPI definitions and proto files to include new map field types.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
internal/gen/schema.go | Enhances schema generation by skipping map entry messages and validating map key kinds via helpers. |
example/openapi.yaml | Adds new OpenAPI schema components for maps with string, int32, int64, uint32, and uint64 keys. |
example/message.proto | Introduces new map field definitions for various key types. |
Signed-off-by: Sasha Melentyev <[email protected]>
Signed-off-by: Sasha Melentyev <[email protected]>
Signed-off-by: Sasha Melentyev <[email protected]>
Signed-off-by: Sasha Melentyev <[email protected]>
Signed-off-by: Sasha Melentyev <[email protected]>
Signed-off-by: Sasha Melentyev <[email protected]>
Signed-off-by: Sasha Melentyev <[email protected]>
No description provided.