OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.14k stars 587 forks source link

Allow MP OpenAPI server.xml info section to be set with server.xml (2.0+) #28858

Open Azquelt opened 2 months ago

Azquelt commented 2 months ago

New server.xml element

<mpOpenAPI>​
  <info title=""​
    description=""​
    termsOfService=""​
    contactName=""​
    contactUrl=""​
    contactEmail=""​
    licenseName=""​
    licenseUrl=""​
    licenseIdentifier=""​
    summary=""​
    version=""​
  />​
</mpOpenAPI>​

If <info> is present

Note that info and version are required, in the OpenAPI spec - the document will not validate if they're not present and a warning will be logged. Not sure if we can indicate in the metatype that these attributes are "required" for the purposes of any UI that might be using it.

Azquelt commented 4 days ago

Tasks: