Skip to content

finnair/v-validation

Repository files navigation

CI codecov npm version

Packages

V

V stands for Validation.

V rules define how input is to be converted, normalized and validated to conform to the expected model.

@finnair/v-validation README

Vluxon

Vluxon contains v-validation extensions for Luxon.

@finnair/v-validation-luxon README

Vmoment

NOTE: Moment is a legacy project in maintenance mode.

Vmoment contains v-validation extensions for Moment.js.

@finnair/v-validation-moment README

Path

@finnair/path contains partly JsonPath compatible path utilities:

  • Path - concrete JSON paths used to locate, read or write a of an object.
  • PathMatcher - a JsonPath like query processor.
  • Projection - PathMatcher based include/exclude mapper for providing partial results from e.g. an API.

@finnair/path README

Path Parsers

@finnair/path-parser contains nearley.js based parsers for Path and PathMatcher.

@finnair/path-parser README

Getting Started

Install desired packages using yarn:

yarn add @finnair/v-validation
yarn add @finnair/v-validation-moment
yarn add @finnair/path
yarn add @finnair/path-parser

Or npm:

npm install @finnair/v-validation
npm install @finnair/v-validation-moment
npm install @finnair/path
npm install @finnair/path-parser

Development

See Contributing Guildelines.