OpenAPI-Specification icon indicating copy to clipboard operation
OpenAPI-Specification copied to clipboard

Add 'name' field to servers

Open BelfordZ opened this issue 6 years ago • 3 comments

As the name suggests.

Would be nice, I think, for generators to be able to reference them by non-ambiguous names.

BelfordZ avatar Jan 30 '19 09:01 BelfordZ

I think too. I think should be server object add name property. because server object identification only url. I think short identify properties should be created for generated code.

tanmen avatar May 12 '20 10:05 tanmen

I see this is an old issue, but I was looking at the examples in the spec for servers and saw that the "multiple servers" example is having dev/staging/prod urls. But with that sort of use case it feels odd that OpenAPI specifies servers as a list instead of a dictionary of some kind with stage (or anything else) being the key. Server variables can slightly address this, although they only really work as keys if every stage has an almost identical url.

ToneyAlexander avatar May 31 '23 20:05 ToneyAlexander

@handrews looks fair request , that can be handle in moonwalk or in a 3.2 version , or close forever :) as as there are work around leveraging server variables or description

we can put this int the backlog set a statement

NB : license has name

LasneF avatar Jan 26 '24 11:01 LasneF

@handrews @lornajane I'm happy to take this one on if you want, I'm assuming a simple update to the spec, and maybe schema is required, no need for a formal proposal?

baywet avatar Jan 09 '25 17:01 baywet

Put together #4469 to address this

baywet avatar Mar 19 '25 14:03 baywet

This was covered by #4469

lornajane avatar Mar 27 '25 16:03 lornajane