loco-philippe / ntv Goto Github PK
View Code? Open in Web Editor NEWJSON-NTV (named and typed value) : a semantic format for interoperability
License: MIT License
JSON-NTV (named and typed value) : a semantic format for interoperability
License: MIT License
Describe the bug
When creating a NtvSingle, NtvType is the default type instead of the object type
To Reproduce
ntv_type of NtvSingle(datetime.date(2021, 10, 1), None, NtvType('datetime')) is 'datetime' instead of 'date'
Describe the bug
ex = Ntv.obj( [{'a':1, 'b':2}] )
ex.to_obj() -> {'a':1, 'b':2} should be [{'a':1, 'b':2}]
Expected behavior
name = '' if name is None
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the solution you'd like
NtvUtil.to_ntvpointer(json_pointer)
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior (1. Go to '...', 2. Click on '....', 3. Scroll down to '....', 4. See error)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Context
Add any other context about the problem here.
direct access to the name of Typebase in Datatype entities
Describe the solution you'd like
No_name : Ntv.ntv_name = None
No_type: Ntv.ntv_type = 'json' for leaf and None for inner
No_value: Ntv.ntv_value = Ntv.type_str for leaf
Describe the bug
{ 'a' : { 'b' : 2} } is actually a NtvSingle where { 'b' : 2} is the Json Value. It should be a NtvList where value is a NtvSingle
To Reproduce
{"$openAPI.servers.": [{"server1": [{":url": "a"}, {"prod:description": "test"}]}]}
instead of {"$openAPI.servers.": [{"server1": {":url": "a", "prod:description": "test"}}]}
using NtvList.json_array is inappropriate (use is_dictable is OK)
Datatype.validate(value) method check if the value is valid for the Datatype
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.