Comments (7)
@sbiaudet v1.2.0 should be available soon to support the remaining .net 5 attributes. I've mirrored the attribute classes in the .net standard version so they're always available. Enjoy!
from json-everything.
Your post sounds like a bug report, but JsonPropertyName
isn't an attribute defined by this library.
Are you asking for it to be added?
from json-everything.
from json-everything.
I'll have to do some research to determine where those attributes are defined (e.g. which frameworks, etc).
Thanks for the suggestion.
from json-everything.
Attributes defined in System.Text.Json
:
- .Net Core 3.0+ EDIT These are done.
- JsonConverterAttribute - Identifies the converter class for a type. Not useful for schema generation. ❌
- JsonExtensionDataAttribute - Identifies a property to be used for junk data from the JSON instance. Not useful for schema generation. ❌
- JsonIgnoreAttribute - Does not serialize the property. Useful for schema generation. ✔️
- JsonPropertyNameAttribute Specifies a JSON key for the property if different than the .Net property. Useful for schema generation. ✔️
- .Net 5 (all of above, plus...)
- JsonConstructorAttribute Identifies a constructor to be used by the serializer. Not useful for schema generation. ❌
- JsonIncludeAttribute Allows serialization of non-public members. Useful for schema generation. ✔️
- JsonNumberHandlingAttribute Specifies optional behaviors for number handling (e.g. storage in a string, etc). Useful for schema generation. ✔️
I can support the .Net Core 3.x ones right away, but I'll need to multi-target for the others.
from json-everything.
@sbiaudet, Schema.Net.Generation v1.1.0 should be available soon, supporting JsonPropertyName
and JsonIgnore
.
from json-everything.
@gregsdennis great job !!!
from json-everything.
Related Issues (20)
- How to get list of JSON Pointers that have the format keyword of date-time value from a JSON Schema HOT 4
- Support xml comments on generated schema HOT 13
- Deconstruct JsonLogic for conversion into another format HOT 8
- Support Case Insensitive Match on Property Names HOT 2
- Support custom keywords in schema generation HOT 6
- Evaluate JsonRequired Attribute HOT 5
- Model with Nullable value type is invalid HOT 1
- Model is not valid when has integer value as string HOT 1
- that the custom metastructure could not be parsed HOT 4
- How to extend SchemaGenerator for DateTime HOT 7
- JsonSchema.NET DataValidation HOT 10
- Custom `IAttributeHandler` never called HOT 5
- Anchors naming of 2020 still following 2019 rules HOT 5
- Generating a Custom JSON Schema HOT 1
- ArgumentOutOfRangeException thrown when calling JsonSchema's Evaluate methods from multiple threads. HOT 3
- 2020-12 output incorrectly places annotations
- Nullable decimal type removes multipleOf HOT 1
- Boolean applicator keywords must be non-empty HOT 1
- Issues with rendering on docs site HOT 1
- Verified error reporting type HOT 18
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.