Redocly / museum-openapi-example

An example OpenAPI description for an imaginary Museum API.
https://redocly.com/docs/resources/learning-openapi/
MIT License
36 stars 36 forks source link

remove trailing space from license URL and end of lines #11

Closed DavidBiesack closed 5 months ago

DavidBiesack commented 5 months ago

What/Why/How?

Fixes #10

Reference

N/A

Testing

$ spectral lint -r ~/.spectral.yaml openapi.yaml 
No results with a severity of 'error' found!

Screenshots (optional)

Check yourself

Security

samchon commented 5 months ago

https://nestia.io/docs/editor/

Tried to convert your openapi.yaml to TypeScript SDK, and failed due to type assertion. The type assertion error message was `info.license.urlis not following theuri format, and found that the property value was a little bit weird. The url value must be trimmed without any space.

This PR fixes the spaced url value, so that would be succeeded to convert to the TypeScript SDK like below.

https://stackblitz.com/edit/pqln74?file=README.md,test%2Fstart.ts&startScript=swagger&startScript=hello

lornajane commented 5 months ago

(also thanks @samchon , I realise you also fixed the same thing because I was too slow to review and merge this one :) )