Comments (6)
@gregsdennis Thank you very much.
from json-everything.
Thank for reporting this! I'm pretty sure I have a test for this, but I'll dig in and see what I can find.
Yeah, it should generate something like
{
"type": "object",
"properties": {
"Name": { "type": "string" },
"Children": {
"type": "array",
"items": { "$ref": "#" }
}
}
}
The test doesn't put it in a list though...
from json-everything.
hi, @gregsdennis ,tks for reply.
Add public List<GenerationTarget> Children { get; set; }
below it, and the test GeneratorForObject()
not response, it's stack overflow.
from json-everything.
@personball look out for v1.2.2. Should be available in a few minutes.
from json-everything.
@gregsdennis Hi, here is another stack overflow
using System.Text.Json.Serialization;
public class TestMenu
{
public string Name { get; set; }
[JsonPropertyName("children")] // This line cause Stack Overflow Exception
public List<TestMenu> Children{ get; set; }
}
from json-everything.
This is actually a similar but different issue. I'm going to re-close this and open a new issue.
from json-everything.
Related Issues (20)
- Is there any way to find single value with recursive descent rather than checking entire subtree? HOT 4
- What is the philosophy with numbers? HOT 6
- Add TypeConverter for JsonPointer, JsonPath, etc. to allow easy configuration binding HOT 2
- StackOverflow exception when generating Schemas HOT 7
- No refresh of result in the web site https://json-everything.net/json-schema/ HOT 3
- Generate Data not compliant with Evaluation JSON HOT 3
- Json Schema Transformers? HOT 18
- Json Schema generation for polymorphic classes HOT 5
- Withdrawal HOT 1
- ## Test Results
- Schema location in evaluation result is incorrect for $ref pointing to an embedded schema HOT 2
- Assignment/creation of fields in JSON HOT 4
- Does JsonSchema.NET support validating while deserializing to external types? HOT 5
- Schema with anyOf and not allowing additional properties ends with wrong validation result HOT 3
- How to generate multiple types at the same time with common subschemas? HOT 2
- Invalid date format used in serialized JSON HOT 3
- Simple Path extension methods on JsonElement HOT 2
- Generate data from Json Schema provides incorrect results HOT 4
- Generate sample does not handle well not keyword HOT 5
- Generate Data generate data that is not valid additionnalProperties ; false management HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-everything.