Skip to content

Commit

Permalink
store API document schemas as YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey committed Apr 10, 2019
1 parent c8fa0c9 commit 457d169
Show file tree
Hide file tree
Showing 5 changed files with 2,089 additions and 2,977 deletions.
9 changes: 7 additions & 2 deletions src/plugins/json-schema-validator/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// JSON-Schema ( draf04 ) validator
import JsonSchemaWebWorker from "./validator.worker.js"
import YAML from "@kyleshockey/js-yaml"
import PromiseWorker from "promise-worker"
import debounce from "lodash/debounce"
import swagger2Schema from "./swagger2-schema.js"
import oas3Schema from "./oas3-schema"
import swagger2SchemaYaml from "./swagger2-schema.yaml"
import oas3SchemaYaml from "./oas3-schema.yaml"

const swagger2Schema = YAML.safeLoad(swagger2SchemaYaml)
const oas3Schema = YAML.safeLoad(oas3SchemaYaml)


// Lazily created promise worker
let _promiseWorker
Expand Down
Loading

0 comments on commit 457d169

Please sign in to comment.