one.yaml
schemas:
Thing:
type: object
properties:
Property: value
Example:
properties:
Thing
type: array
items: $ref "#/components/schemas/Thing"
two.yaml
schemas:
MyThing:
allOf:
- $ref: "one.yaml#/components/schemas/Example'
- type: object
properties: # whatever one might add here...
Output when generating two.yaml:
type MyThing struct {
Thing *[]Thing
}
Expected output generating two.yaml:
type MyThing struct {
Thing *[]externalRef0.Thing
}
Steps to reproduce
- create two specs, one referencing the other
- Reference a slice type from 1 to another
- optional reference a non slice type to see desired behavior
- write configuration file to point import mapping of spec 2 to spec 1's output generation
- Run the generator
Suggest a fix
Use same external mapping logic when type is a slice pointer.
one.yaml
two.yaml
Output when generating two.yaml:
Expected output generating two.yaml:
Steps to reproduce
Suggest a fix
Use same external mapping logic when type is a slice pointer.