-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
RestClient.Net/Samples/NucliaDbClient/Generated/NucliaDBApiModels.g.cs
Lines 1703 to 1708 in 8f997cd
| /// <summary>The API representation of a Knowledge Box object.</summary> | |
| /// <param name="Slug">Slug</param> | |
| /// <param name="Uuid">Uuid</param> | |
| /// <param name="Config">Config</param> | |
| /// <param name="Model">Model</param> | |
| public record KnowledgeBoxObj(object Slug, string Uuid, object Config, object Model); |
RestClient.Net/Samples/NucliaDbClient/api.yaml
Lines 15798 to 15818 in 8f997cd
| KnowledgeBoxObj: | |
| properties: | |
| slug: | |
| anyOf: | |
| - type: string | |
| maxLength: 250 | |
| minLength: 1 | |
| pattern: ^[a-zA-Z0-9:_-]+$ | |
| - type: 'null' | |
| title: Slug | |
| uuid: | |
| type: string | |
| title: Uuid | |
| config: | |
| anyOf: | |
| - $ref: '#/components/schemas/KnowledgeBoxConfig' | |
| - type: 'null' | |
| model: | |
| anyOf: | |
| - $ref: '#/components/schemas/SemanticModelMetadata' | |
| - type: 'null' |
The generator appears to stop at the top level of a hierarchy and resolve to object rather than the class it should represent.
In the example, all properties are simple object when they should be other types.
public record KnowledgeBoxObj(object Slug, string Uuid, object Config, object Model);
Should be:
public record KnowledgeBoxObj(string Slug, string Uuid, KnowledgeBoxConfig Config, SemanticModelMetadata Model);
MelbourneDeveloper
Metadata
Metadata
Assignees
Labels
No labels