Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marshal to YAML lacks paths #907

Closed
reuvenharrison opened this issue Feb 9, 2024 · 2 comments · Fixed by #931
Closed

Marshal to YAML lacks paths #907

reuvenharrison opened this issue Feb 9, 2024 · 2 comments · Fixed by #931

Comments

@reuvenharrison
Copy link
Contributor

Marshal spec to YAML has empty paths since #763

This is because:

type Paths map[string]*PathItem

was changed to:

type Paths struct {
 	Extensions map[string]interface{} `json:"-" yaml:"-"`

 	m map[string]*PathItem
 }

which omits the pathItem map from the YAML output.

@nobbynobbs
Copy link
Contributor

nobbynobbs commented Mar 13, 2024

Hi! I've run in the same issue, found this: #883 and it do the trick for me.

@fenollp
Copy link
Collaborator

fenollp commented Apr 5, 2024

Hi @reuvenharrison! Indeed the fix here is to use the same yaml lib kin-openapi uses. Can this work for you?
I'd like this restriction to be lifted but did not find a solution

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 a pull request may close this issue.

3 participants