-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
What?
Inheritance through 'allOf' statements in OpenAPI leads to duplicating of fields in the generated code, e.g. for LangStrings:
AbstractLangString:
type: object
properties:
language:
type: string
pattern: "..."
text:
type: string
minLength: 1
pattern: "..."
required:
- language
- text
LangStringDefinitionTypeIec61360:
allOf:
- "$ref": "#/components/schemas/AbstractLangString"
- properties:
text:
maxLength: 1023
Result:
Generated class for LangStringDefinitionTypeIec61360 has two fields called text.
How?
Define text not on the inherited class level but on the lowest possible?
This issue relates to finding DFKI#01.
Metadata
Metadata
Assignees
Labels
Part1Needs to be discussed in Part1Needs to be discussed in Part1