modelina
modelina copied to clipboard
A library for generating typed models based on inputs such as AsyncAPI, OpenAPI, and JSON Schema documents with high customization
#### Reason/Context For something like the following JSON Schema ```json {type: "object", properties: {"test": {type: ["object", "string"]}}} ``` Will the property `test` be split out? and what happens with `string`...
#### Describe the bug In our schema, we have multiple types, that are nullable types, like a string. Eg. ``` username: type: [ "string", "null" ] description: The username of...
#### Reason/Context Recently I tried to run the example located at https://github.com/asyncapi/modelina#example with no success. When compiling TS, I got the few errors. The issue behind was fixed (thanks to...
#### Reason/Context Current generated Go structs does not have json tags. Those are useful for encoding/decoding JSON. #### Description **Currently**, for a given doc like: ```js const doc = {...
#### Reason/Context It appears that currently, any array of a [built-in type](https://swagger.io/docs/specification/data-models/data-types/) will be rendered as an array of `dynamic` type in C#. The clearness of the generated model could...
**Description** - Update the CSharp generator to render nullable properties (CSharp v8+ style) properly - Test cases are added/adjusted to demonstrate the functionality **Related issue(s)** Fixes #941
#### Describe the bug As seen in the following example, the C# generator does not render optional properties `string?` as it does on master: https://github.com/asyncapi/modelina/blob/next/examples/csharp-generate-required-properties/__snapshots__/index.spec.ts.snap https://github.com/asyncapi/modelina/blob/master/examples/csharp-generate-required-properties/__snapshots__/index.spec.ts.snap
**Description** This PR adds a Newtonsoft preset for generating Newtonsoft serialization functionality for the models. Changes: - Add new Newtonsoft preset, example and test - Change the old System.Text.Json to...
**Description** For the past two merges, a new version has not been triggered. It might be because they were merged using merge commit instead of squash.
#### Reason/Context Presets are a core feature for Modelina, and it should be well described how to add them.