Skip to content

fix: openapi schema errors#115

Open
georgantasp wants to merge 1 commit into
adzerk:masterfrom
janetechinc:fixSecuritySchemeRefs
Open

fix: openapi schema errors#115
georgantasp wants to merge 1 commit into
adzerk:masterfrom
janetechinc:fixSecuritySchemeRefs

Conversation

@georgantasp

Copy link
Copy Markdown

Description:

Adding validation scripts to package.json revealed oapi errors that are then fixed.

Previous output:

npm run validate-all
...
== management/ad-type.yaml ==
Validating spec (management/ad-type.yaml)
Errors:
       - attribute components.securitySchemes.SecurityScheme name $ref doesn't adhere to regular
         expression ^[a-zA-Z0-9\.\-_]+$
       - attribute components.securitySchemes.$ref is not of type `object`

[error] Spec has 2 errors.
...
== management/distance-targeting.yaml ==
Validating spec (management/distance-targeting.yaml)
Errors:
       - attribute
         paths.'/v1/flight/{flightId}/distance/batch'(post).requestBody.content.'application/json'.schema.Distance
         is unexpected
       - attribute
         paths.'/v1/flight/{flightId}/distance/batch'(post).requestBody.content.'application/json'.schema.Latitude
         is unexpected
       - attribute
         paths.'/v1/flight/{flightId}/distance/batch'(post).requestBody.content.'application/json'.schema.Longitude
         is unexpected

[error] Spec has 3 errors.

@georgantasp georgantasp force-pushed the fixSecuritySchemeRefs branch from 3e66491 to 585fd1d Compare June 28, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant