Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Demo client for apidom-ls OpenAPI / AsyncAPI ApiDOM validation service

Notifications You must be signed in to change notification settings

swagger-api/apidom-ls-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apidom-ls-client

Demo client for apidom-ls OpenAPI / AsyncAPI ApiDOM validation service

Usage

npm install
npm run process

Providing rules

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:

  1. look at this elements list and pick the this.element value within the file.
  2. additional element values 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

Providing functions

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

About

Demo client for apidom-ls OpenAPI / AsyncAPI ApiDOM validation service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published