Skip to content
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

Generator ignores additionalProperties: true #102

Open
kotyara85 opened this issue Nov 28, 2023 · 0 comments
Open

Generator ignores additionalProperties: true #102

kotyara85 opened this issue Nov 28, 2023 · 0 comments

Comments

@kotyara85
Copy link

kotyara85 commented Nov 28, 2023

Hey there,
I have this openapi spec component:

    Response:
      properties:
        uid:
          type: string
        data:
          type: object
          additionalProperties: true

oapi generator would translate data field into map[string]interface{}

gnostic-grpc can not produce ad working proto, here's the output after I converted to binary pb using gnostic:

message Data {
}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant