0.7.3 • Published 7 years ago

hapi-json-schema v0.7.3

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
7 years ago

hapi-json-schema

Greenkeeper badge build status Current Version dependency Status devDependency Status Coveralls

Hapi plugin for json-schema-models

options object must contain the following properties

  • indexes - boolean to confirm whether indexes should be built or not
  • mongo
    • name - mongodb name
    • url - mongodb url string (host and port)
    • options - mongodb connection options
    • collections - array of objects with following properties
      • name - string name of collection
      • indexes - array of indexes to create
      • options - valid options object for mongodb driver createCollection method
  • schemata - directory containing schemas
  • formats - path to formats file

Plugin exposes 2 methods

addSchemas via server.dataStore.schema.addSchemas
addFormats via server.dataStore.schema.addFormats

These methods can be used by other plugins to dynamically load more internal schema / models

Todo
  • Improve interface to z-schema
  • Manage plugin dependencies better
0.7.3

7 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.1

8 years ago

0.2.0

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago