Skip to content

Conversation

carson2222
Copy link
Member

No description provided.

…dling

- Add shouldInlineInternal helper to determine when internal refs should be copied inline
- Internal refs under #/paths/ are now dereferenced (copied) instead of left as
- Components/schemas, definitions, and declarations still preserved as refs
if (!h || h === "#") {
return false;
}
if (h.startsWith("#/components/schemas") || h.indexOf("/definitions") !== -1 || h.startsWith("#/declarations")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you

  • use indexOf for definitions but startsWith for the rest?
  • write it as /definitions and not #/definitions (with pound sign) like the rest
  • mention #/declarations? Where do those come from? It's not an OpenAPI 2.0/3.0/3.1 concept as far as I know

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.

2 participants