Comments (6)
I've updated README to show what's the format of a JSON-fp program. It's definition/grammar is actually quite simple. As to JSON-schema or JSON-LD, I think they're beautiful standards. A possible use case may be to allow servers which accept JSON-fp programs to specify what kind of input data they would accept. The other area is to specify what options are acceptable to data operators, but it may up to application developers to decide?
from jsonfp.
What if the input format look something like
{
"input": {
"type": "json-schema",
"schema": {
"stuff": "here"
}
}
}
The input key could be optional, and it'd have a type
property that might be a mimetype for the schema format, and then it can have a schema
property for the actual schema. Then it'd be easy to allow developers to use whatever specific format they want, while still having a standard way of declaring it.
from jsonfp.
Yes, that would be nice. The input data negotiation may be done at the transport layer on top of JSON-fp, sort of contract negotiation. It seems to me a API server is needed to come up with a service contract (such as accepted input format, computing resource approval, etc) with its peer, and then hand down the program to JSON-fp to execute.
from jsonfp.
Ah, so a JSON-fp program wouldn't have a schema for the input by default, and whatever is built on top of JSON-fp should handle input validation?
from jsonfp.
I'm kind of in favor of that. Developers can decide how strictly they want to guard their input. For servers running inside a closed system, people may choose to have green light for all internal traffic.
That does not mean input validation is not important. Just to make the whole mechanism more flexible. Actually it may be worth of another project to do input validation among other things (such as throttling the input data, resource negotiation and allocation, etc).
from jsonfp.
Yeah, that makes sense. I'll close the issue in the meantime.
from jsonfp.
Related Issues (1)
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 jsonfp.