• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cdimascio / express-openapi-validator / 2196 / 3
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 26 Dec 2020 01:10AM UTC
Files 23
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Dec 2020 01:09AM UTC coverage: 90.214% (+0.3%) from 89.883%
COVERALLS_REPO_TOKEN=[secure] CODACY_PROJECT_TOKEN=[secure]

push

travis-ci

web-flow
improved schema preprocessor and `Date` object handling (validation/serialization) for response bodies (#499)

* CoerceComponents feature as expected in https://github.com/cdimascio/express-openapi-validator/issues/353
We can cast data from request to object or transform object to string (or other type) in response.
Documentation modified and an example project created

* Issue on Typescript Options inheritance

* Patch AJV cache integration issue. AJV has a cache by schema description. We must add an unique ID field in schema description in order to have a specific schema description for each component
+
Test added coercecomponents.spec.ts
+ example modified in order to expose a date

* Change Test name to "coercecomponents". I missed to change from the example

* - Changes `coerceComponents` to `schemaObjectMapper`
- Fix function names serialize and deserialize => To be clear for everybody on which functions are executed on requests and responses, it's now `deserializeRequestComponent` and `serializeResponseComponent`

* Move example resources `7-coerce-components` to `7-schema-object-mapper`

* update naming and type declarations

* doc: update documentation

* traverse spec

* update preprocessor

* travserse via Node abstraction

* traverse and update both schemas

* finish one pass traversal to modified req and res schemas independently

* doc: remove schemaObjectMapper from readme

* doc: remove schemaObjectMapper from README

* fix: update method name

* cleanup

* rename preprocessor

* rename var

* sample built-in date-time formatter

* fix: types

* feat: provide opt-in option responseValidation serialization

* feat: handle date and date-time

* doc: update README

* fix: add example - Date serialization in responses

* doc: update README

* feat: add date serialization example

* doc: update README

* chore: remove commented code

* feat: handle Date or date string automatic... (continued)

1034 of 1215 branches covered (85.1%)

Branch coverage included in aggregate %.

1280 of 1350 relevant lines covered (94.81%)

152.48 hits per line

Source Files on job 2196.3 (COVERALLS_REPO_TOKEN=[secure] CODACY_PROJECT_TOKEN=[secure])
  • Tree
  • List 0
  • Changed 18
  • Source Changed 3
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1444
  • Travis Job 2196.3
  • e08f45a3 on github
  • Prev Job for COVERALLS_REPO_TOKEN=[secure] CODACY_PROJECT_TOKEN=[secure] on master (#2155.2)
  • Next Job for COVERALLS_REPO_TOKEN=[secure] CODACY_PROJECT_TOKEN=[secure] on master (#2200.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc