Demo client for apidom-ls OpenAPI / AsyncAPI ApiDOM validation service
npm install
npm run process
Add rules to array returned from file src/rules.ts
Field given expects an array of string representing the element items to apply the rules to (e.g. schema, operation)
(TBD: jsonpath on the way)
element is a string semantically identifying a node in the document, available elements can be found by:
- look at this elements list and pick
the
this.elementvalue within the file. - additional
elementvalues with this query
Several example of rules here
Core functions available in rules are available here TBD: core functions will be exported by apidom-ls e.g. to be usable/extended within custom functions.
run npm run process to execute with the added/updated rules
Custom functions can be provided either "natively" by adding them to the object returned by src/functions.ts
or as evaluated functions by adding a <functionName>.js file to functions directory