-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Importing external refs from url #1426
Copy link
Copy link
Closed
Labels
area:external-refsAnything related to external references (referencing other file(s) within a spec)Anything related to external references (referencing other file(s) within a spec)documentation
Metadata
Metadata
Assignees
Labels
area:external-refsAnything related to external references (referencing other file(s) within a spec)Anything related to external references (referencing other file(s) within a spec)documentation
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hello,
I'm trying to generate Go code from a spec that contains a reference to an external spec on GitHub, like this:
When I run the generate command, I get the following error:
error generating code: error generating type definitions: error generating Go types for component schemas: error converting Schema MetadataTensor to Go type: error turning reference (https://raw.githubusercontent.com/kserve/open-inference-protocol/ff934734c2675b80102abdeb9c2ea2d712026a41/specification/protocol/open_inference_rest.yaml#/components/schemas/metadata_tensor) into a Go type: unrecognized external reference 'https://raw.githubusercontent.com/kserve/open-inference-protocol/ff934734c2675b80102abdeb9c2ea2d712026a41/specification/protocol/open_inference_rest.yaml'; please provide the known import for this reference using option --import-mappingI have tried to provide a mapping through the
import-mappingflag but without success.Is there are guidance you can provide in the matter or is this something that has not been implemented?
Thank you