Models: Are ServerVariables really Extensible?
See original GitHub issueorg.eclipse.microprofile.openapi.models.servers.ServerVariables
represents a map of org.eclipse.microprofile.openapi.models.servers.ServerVariable
in org.eclipse.microprofile.openapi.models.servers.Server
See spec: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#server-variable-object
I do not think that the map <variable-name, instance> is extensible. I know Swagger-Core has implemented it, but Kaizen Model did not and I think this is correct.
- Swagger-Core: ServerVariables.java L57-L78
- KaiZen: Server.java is using
Map<String, ServerVariable>
, there is noServerVariables
interface.
Of course ServerVariable
is extensible.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
ServerVariables (MicroProfile OpenAPI API 1.1.1 API)
Deprecated. Set the server variables map to this ServerVariables object. Methods inherited from interface org.eclipse.microprofile.openapi.models.Extensible.
Read more >A Low Level Look at ASP.NET Architecture - CODE Magazine
However, ASP.NET provides much more flexibility at a lower level. The HTTP runtime and the request pipeline provide all the same power that...
Read more >VB.Net - Web Programming - Tutorialspoint
Net applications are compiled codes written using the extensible and reusable ... This includes forms, cookies, server variables, and certificate data.
Read more >XML Classes Enable Personalized User Experiences on ASP.NET ...
In the original ASP model, the system for handling Web requests was not extensible. Every Web request was mapped to an ASP file...
Read more >OpenAPI Specification v3.0.3 | Introduction, Definitions, & More
Models are defined using the Schema Object, which is an extended subset of JSON ... This URL supports Server Variables and MAY be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for digging the OAS history on this @jmini!
I guess the summary is that
ServerVariables
is a legacy artifact that was removed from the OAS spec during the RC process, but some tools have adopted it during their early implementation.Since it no longer exists in the spec, I think we should deprecate
ServerVariables
in1.1
and remove it in2.0
. So then it becomes less important on whether it’s extensible or not, if it goes away. =)Each individual
ServerVariable
is still extensible, as per the spec.A Model Test for
Server#setVariables(Map<String, ServerVariable> variables);
should be added, because for the moment there are only tests for the method that is deprecated: (Server#setVariables(ServerVariables variables)😉