Skip to content
Discussion options

You must be logged in to vote

@acraftydev have you looked at using mp.openapi.schema.<FQCN> to set an application-wide schema? For example, you can configure something like this:

mp.openapi.schema.javax.money.MonetaryAmount={\
  "name": "MonetaryAmount",\
  "title": "Monetary amount value",\
  "type": "string"\
}

Of course any description that is specific to a particular occurrence of the schema still needs to be specified via @Schema or using a filter.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by acraftydev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants