Coder Social home page Coder Social logo

JSON Schema export about ocsf-server HOT 4 OPEN

zschmerber avatar zschmerber commented on August 29, 2024
JSON Schema export

from ocsf-server.

Comments (4)

floydtree avatar floydtree commented on August 29, 2024

Note that, json-schema of a class is already exportable via the server. Check "JSON Schema" button in the screenshot below.

Screenshot 2024-02-27 at 13 06 28

from ocsf-server.

overly-engineered avatar overly-engineered commented on August 29, 2024

I was just looking into this. I think this is documented in the api docs here https://schema.ocsf.io/doc/index.html#/Schema%20Export/SchemaWeb_SchemaController_export_schema. an example would be https://schema.ocsf.io/export/schema?extenions=linux,win. What I'm currently on sure of is how the profiles affect the schema exported. When I apply profiles they seem to get smaller.

from ocsf-server.

rmouritzen-splunk avatar rmouritzen-splunk commented on August 29, 2024

@overly-engineered:

Two things to note:

  1. The /export/schema URL and the other /export URLs return the OCSF's own definition format. These are not in JSON Schema format. The JSON Schema exporting is on the /schema URL paths.
  2. The extensions and profiles parameters are filters. Without them, all extensions and profiles are included. With them, only the extensions and profiles specified are included. The documentation isn't clear that this is a filtering mechanism, and doesn't mention that if the parameter is supplied but is empty, it means filter out all.

from ocsf-server.

overly-engineered avatar overly-engineered commented on August 29, 2024

Ah that is good to know. Thanks @rmouritzen-splunk!

from ocsf-server.

Related Issues (20)

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.