private async Task <JsonSchema4> GetSchema()
 {
     if (___LoadedSchemaDoNotUse == null)
     {
         ___LoadedSchemaDoNotUse = await TypeToSchemaGenerator.CreateSchema(typeof(T));
     }
     return(___LoadedSchemaDoNotUse);
 }
Ejemplo n.º 2
0
 public async Task MissingLeftProp()
 {
     await Assert.ThrowsAsync <InvalidOperationException>(() => TypeToSchemaGenerator.CreateSchema(typeof(Right2)));
 }