Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
114 views

I'm trying to use the JsonSchema.Net library to validate JSON objects. For example, I have these schemas: the main schema AddressChangedEvent.schema.json that references both EventHeader.schema.json ...
mshwf's user avatar
  • 7,537
1 vote
1 answer
77 views

I'm using nuget package JsonSchema.Net 7.3.4 in a .Net 8 application to validate a json document against the official CycloneDX 1.6 Json schema (https://cyclonedx.org/schema/bom-1.6.schema.json). The ...
Matthias Grabowski's user avatar
1 vote
1 answer
57 views

var jsonSchema = @"{ ""$schema"": ""https://json-schema.org/draft/2020-12/schema"", ""type"": ""...
Lombas's user avatar
  • 1,141
2 votes
1 answer
110 views

I've been exploring the use of C# 11’s required members feature in conjunction with JSON schema generation. Specifically, I'm using the JsonSchemaBuilder class (from the JsonEverything library) to ...
Sebastian Rendon Arteaga's user avatar
2 votes
1 answer
73 views

Using JsonPath.Net, is it possible to write a single query that will obtain the values of properties with the same key at different nesting levels? For example, from the following JSON: { "ObjA&...
Cliff Pennalligen's user avatar
0 votes
1 answer
53 views

Considering the following example JSON: { "SH1": { "Locations": [ { "Downstream Device": [ { ...
Cliff Pennalligen's user avatar
-1 votes
1 answer
196 views

This seems like a simple use case. We are trying to obtain the number of items in an array using the JSONPath function length(). The test object is: { "array": [1,2,3] } The JSONPath ...
vmardian's user avatar
0 votes
0 answers
72 views

I am using system.text.json.nodes with JsonPath.net. I have an array of four Json objects: [ { "Action" : [ { "value" : "Home" ...
Cliff Pennalligen's user avatar
0 votes
2 answers
2k views

I'm evaluating the JsonSchema.Net and trying to figure out how to validate data during deserialization. For reference, I am using a simple Person model, like this: using Json.Schema.Generation; ...
Zulukas's user avatar
  • 1,290
-1 votes
2 answers
210 views

I have a JSON array: [ 1, 2, 3, 4 ] I want to create a Json Path expression that returns all but the last element of the array, i.e. the result is: [ 1, 2, 3 ] There are ...
Cliff Pennalligen's user avatar
1 vote
1 answer
290 views

We want to make use of JsonSchema.Net to validate json sent to ASP.NET Core endpoints (Minimal APIs). Results for failures must also be returned in the RFC ProblemDetails format. This is doable but ...
DomH's user avatar
  • 43
1 vote
1 answer
639 views

.NET 8, Nuget Package JsonSchema.Net.Generation According to the docs, the [Required] attribute can be used to make a property 'required' when generating a Json Schema from a C# class. However, for de-...
helm100's user avatar
  • 258
0 votes
1 answer
248 views

I'm evaluating Json.Schema to generate json schemas from my typed objects in .net for sharing validation between client and server. I have a super simple implementation called from a unit test. var ...
HAXEN's user avatar
  • 398
0 votes
0 answers
397 views

We are using JsonSchema.Net.Generation (C#, dotNet 5.0) and I would like generate a custom JSON schema based on the properties and its attributes of a class which has category attribute set. How do I ...
Developer 's user avatar
0 votes
1 answer
774 views

I have JSON schema generated using JsonSchema.Net.Generation. My classes for schema are as below: class PaymentInitiationSchema { [Required] [JsonPropertyName("type")] public ...
Szyszka947's user avatar
  • 1,058

15 30 50 per page