asyncapi / saunter

Saunter is a code-first AsyncAPI documentation generator for dotnet.
https://www.asyncapi.com/
MIT License
194 stars 55 forks source link

Update README section JSON Schema Settings #183

Open franzibrb opened 5 months ago

franzibrb commented 5 months ago

Ahoi and thanks for this cool tool :) I have noticed that the Readme.md might not be up-to-date. This regards the section JSON Schema Settings:

` options.JsonSchemaGeneratorSettings.TypeNameGenerator = new DefaultTypeNameGenerator();

// Note: need to assign a new JsonSerializerSettings, not just set the properties within it.
options.JsonSchemaGeneratorSettings.SerializerSettings = new JsonSerializerSettings 
{
    ContractResolver = new DefaultContractResolver(),
    Formatting = Formatting.Indented;
};

` JsonSchemaGeneratorSettings was renamed to SchemaOptions if i checked the code correctly.