Skip to content

Commit

Permalink
housekeeping: store API document schemas as YAML (via swagger-api#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey authored Apr 10, 2019
1 parent 07fac2a commit 940d1fe
Show file tree
Hide file tree
Showing 5 changed files with 2,541 additions and 3,599 deletions.
8 changes: 6 additions & 2 deletions src/plugins/json-schema-validator/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// 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 940d1fe

Please sign in to comment.