Code Monkey home page Code Monkey logo

Comments (6)

benlue avatar benlue commented on September 23, 2024

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.

RangerMauve avatar RangerMauve commented on September 23, 2024

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.

benlue avatar benlue commented on September 23, 2024

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.

RangerMauve avatar RangerMauve commented on September 23, 2024

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.

benlue avatar benlue commented on September 23, 2024

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.

RangerMauve avatar RangerMauve commented on September 23, 2024

Yeah, that makes sense. I'll close the issue in the meantime.

from jsonfp.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.