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

RFE: Don't create new types with non-$ref definitions in allOf #16

Open
ajeddeloh opened this issue Mar 18, 2019 · 0 comments
Open

RFE: Don't create new types with non-$ref definitions in allOf #16

ajeddeloh opened this issue Mar 18, 2019 · 0 comments

Comments

@ajeddeloh
Copy link

Right now using allOf results in embedding any $refs and creating new structs for those that are defined in a new block. For those not using $ref would it be possible (and correct?) to generate those as members of the struct that currently embeds the generated one? I.e. instead of generating:

type Bar struct { ... }

type FooEmbedded1 struct {
    A int
    B string
}

type Foo struct {
    Bar
    FooEmbedded1
}

for an allOf block including $ref: "path/to/barand an object block withAandB` generate:

type Bar struct { ... }

type Foo struct {
    Bar
    A int
    B string
}
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

No branches or pull requests

1 participant