Comments (3)
Yes, we need richer type information and JSON schema seems a nice fit.
I think that we should split the schema definition and usage of the schema however. So instead of type
having the (whole) schema inline, it would be a reference. Preferably an URL which is the canonical definition, like http://flowbased.org/schemas/bartype or http://myservice/API/schema/FooResource.json
This hopefully encourages usage of compatible definitions where possible, as well as making it possible to easily detect (simple cases) of compatible definitions.
Optionally one could allow adding to the schema like max/min constraints.
There is the $ref
mechanism in JSON schema. Maybe that would be enough?
from fbp-protocol.
For the suffix, isn't it better to be able to specify a 'unit' ?
from fbp-protocol.
I think better to provide the schema as a URL, like we did in noflo/noflo#551
The consumer can then fetch the schema as needed. This way there is no need to duplicate (potentially) large data structures across multiple components sharing the schema, and schema can also be carried as a metadata on packets/IIPs so it can be used not only for generating input widgets, but also for richer visualization
from fbp-protocol.
Related Issues (20)
- Add some styling to built documentation
- Identify requests and their responses HOT 4
- Improve schema files HOT 3
- tests: use schemas to validate messages HOT 1
- `fbp-test` emits `graph/addedge` before `graph/addnode`. HOT 1
- Make npm version match the spec version HOT 1
- Support for embedded subgraphs HOT 6
- Ensure existing clients/runtime are in compliance with schemas
- Clarify the expected Graph Protocol messages from runtimes to clients HOT 1
- Feature Request: Add a graph:list command HOT 3
- Feature request: Add generic metadata field to components
- Runner doesn't work on Windows
- Duplicate entries in spec HTML HOT 2
- Add namespace and repository metadata to runtime information
- An in-range update of semver is breaking the build 🚨 HOT 2
- Runtime protocol: send list of supported component languages
- Version 10 of node.js has been released
- Move secret from payload
- Migrate schema to AsyncAPI
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 fbp-protocol.