0.0.5 • Published 4 years ago

@rapharacing/schemas v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Middleware Schemas

Middleware Schemas

Commands

Unfortunately quicktype-core can not infer definition files properly. It also gives useless errors for debugging InputData.

To Generate CC Schemas and Interfaces run the following commands

  1. Convert OpenApi to JSON Schema
$ openapi2jsonschema https://api.c616d-rapharaci1-d1-public.model-t.cc.commerce.ondemand.com/rest/v2/api-docs -o src/schemas
  1. Build the package
$ yarn build

How to use

import { getSchema } from "@rapharacing/mw-schemas";

const address = getSchema("address");

To do

Rewrite quicktype util to be used with other schemas (Exponea etc)

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago