Is it possible specify "additionalProperties: false" on OpenAPI types? #2833
Unanswered
jamestelfer
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hmm I thought that omitting this field would be equivalent to setting it to false. If that's not the case we could remove the omitempty tag on the struct field so it always generates even when false. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't see a way to do this currently either with the DSL or via metadata.
Is there an easy way to do this, or is there an example of a plugin that modifies the OpenAPI documents? (TBH, a pointer at the hook to plug into would be just as handy).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions