I am attempting to implement a schema processor that would add some custom metadata to the output. However, I find that Task ProcessAsync(SchemaProcessorContext context) is often called twice for the same type, except the second time it does not seem to have any data in context.Schema.
This pattern confuses me and complicates the implementation. I request clarification on what are the correct patterns for implementing schema processors and how I am supposed to handle this type of duplicate input to ensure correct operation of NSwag.
I am attempting to implement a schema processor that would add some custom metadata to the output. However, I find that
Task ProcessAsync(SchemaProcessorContext context)
is often called twice for the same type, except the second time it does not seem to have any data incontext.Schema
.This pattern confuses me and complicates the implementation. I request clarification on what are the correct patterns for implementing schema processors and how I am supposed to handle this type of duplicate input to ensure correct operation of NSwag.