Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RewriteSchemaToRef ¶
RewriteSchemaToRef replaces a schema with a Ref
Types ¶
type DeepestRefResult ¶
DeepestRefResult holds the results from DeepestRef analysis
func DeepestRef ¶
func DeepestRef(sp *spec.Swagger, opts *spec.ExpandOptions, ref spec.Ref) (*DeepestRefResult, error)
DeepestRef finds the first definition ref, from a cascade of nested refs which are not definitions.
- if no definition is found, returns the deepest ref.
- pointers to external files are expanded
NOTE: all external $ref's are assumed to be already expanded at this stage.
Click to show internal directories.
Click to hide internal directories.