0

I have an Azure Function (AF), that is triggered by Azure Service Bus messages.I have to validate the request body against the json schema in c#.I am new to azure and c#.Plz suggest.Is there any framework which can be used?

  • 1
    See https://stackoverflow.com/search?q=%5Bc%23%5D+validate+json+schema and top result https://stackoverflow.com/questions/19544183/validate-json-against-json-schema-c-sharp – Ben Dec 10 '21 at 21:09

1 Answers1

0

Few of the workarounds that you can try is to have property Names, The usage of "propertyNames" permits only properties with enumerated keys or those that follow a pattern.

Another workaround to use is to make the additional property to false as @Ben suggested in the comments.

REFERENCES: Validating JSON with JSON Schema in C#

SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18