-
Notifications
You must be signed in to change notification settings - Fork 166
Closed
Labels
area: specChanges in the SpecificationChanges in the Specificationchange: featureNew feature or request. Impacts in a minor version changeNew feature or request. Impacts in a minor version change
Milestone
Description
What seems off:
Authentication are not referenceable
What you expected to be:
Authentications defined at top level should be referenceable
Anything else we need to know?:
After discussing the issue with @matthias-pichler-warrify, and well aware than the reference system previously in place was a PITA (oneOf[AuthenticationDefinition, string]), the proposal is something like the following:
use:
authentications:
basicTest:
basic:
username: test
password: test
do:
- getPetById:
call: openapi
with:
operationId: getPetById
parameters:
id: 69
authentication:
use: basicTestWhile enabling the same than before, it:
- Avoids oneOf constructs
- Makes consistent use of objects
- Makes the DSL more explicit, fluent and ubiquitous
One a side note, we could instead of use name it ref or whatever. My strong preference goes to use, which is more fluent, understandable, linguistical, is an imperative verb, and is not an abbreviation.
matthias-pichler and fjtirado
Metadata
Metadata
Assignees
Labels
area: specChanges in the SpecificationChanges in the Specificationchange: featureNew feature or request. Impacts in a minor version changeNew feature or request. Impacts in a minor version change
Type
Projects
Status
Done