Skip to content

Commit

Permalink
Bump minor version, and ts generation
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhtr committed Sep 8, 2020
1 parent 37c481c commit 0260bc3
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 33 deletions.
2 changes: 1 addition & 1 deletion maas-schemas-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas-ts",
"version": "14.6.3",
"version": "14.7.0",
"description": "TypeScript types and io-ts validators for maas-schemas",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion maas-schemas-ts/src/core/components/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See https://www.npmjs.com/package/io-ts-from-json-schema
*/

import * as t from 'io-ts';
import * as Units_ from 'maas-schemas-ts/core/components/units';
import * as Units_ from './units';
import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray';
import { nonEmptyArray } from 'io-ts-types/lib/nonEmptyArray';

Expand Down
17 changes: 9 additions & 8 deletions maas-schemas-ts/src/core/itinerary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ See https://www.npmjs.com/package/io-ts-from-json-schema
*/

import * as Units_ from "./components/units";
import * as t from "io-ts";
import * as Common_ from "./components/common";
import * as State_ from "./components/state";
import * as Fare_ from "./components/fare";
import * as Leg_ from "./leg";
import * as ProductOption_ from "./product-option";
import * as Booking_ from "./booking";
import * as Units_ from './components/units';
import * as t from 'io-ts';
import * as Common_ from './components/common';
import * as State_ from './components/state';
import * as Fare_ from './components/fare';
import * as Leg_ from './leg';
import * as ProductOption_ from './product-option';
import * as Booking_ from './booking';
import * as TravelMode_ from './components/travel-mode';

type Defined =
| Record<string, unknown>
Expand Down
9 changes: 5 additions & 4 deletions maas-schemas-ts/src/core/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ See https://www.npmjs.com/package/io-ts-from-json-schema
*/

import * as t from "io-ts";
import * as Place_ from "./components/place";
import * as Units_ from "./components/units";
import * as Itinerary_ from "./itinerary";
import * as t from 'io-ts';
import * as Place_ from './components/place';
import * as Units_ from './components/units';
import * as Common_ from './components/common';
import * as Itinerary_ from './itinerary';

type Defined =
| Record<string, unknown>
Expand Down
14 changes: 8 additions & 6 deletions maas-schemas-ts/src/maas-backend/routes/routes-query/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ See https://www.npmjs.com/package/io-ts-from-json-schema
*/

import * as t from "io-ts";
import * as UnitsGeo_ from "../../../core/components/units-geo";
import * as Address_ from "../../../core/components/address";
import * as Station_ from "../../../core/components/station";
import * as Units_ from "../../../core/components/units";
import * as ApiCommon_ from "../../../core/components/api-common";
import * as t from 'io-ts';
import * as UnitsGeo_ from '../../../core/components/units-geo';
import * as Address_ from '../../../core/components/address';
import * as Station_ from '../../../core/components/station';
import * as Units_ from '../../../core/components/units';
import * as TravelMode_ from '../../../core/components/travel-mode';
import * as Common_ from '../../../core/components/common';
import * as ApiCommon_ from '../../../core/components/api-common';

type Defined =
| Record<string, unknown>
Expand Down
48 changes: 36 additions & 12 deletions maas-schemas-ts/translation.log
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,15 @@ INFO: primitive type "number" used outside top-level definitions
WARNING: minLength field not supported outside top-level definitions
in ../maas-schemas/schemas/core/components/car-rental.json
WARNING: maxLength field not supported outside top-level definitions
in ./core/components/car-rental.json
in ../maas-schemas/schemas/core/components/car-rental.json
INFO: missing description
in ../maas-schemas/schemas/core/components/car-rental.json
WARNING: skipping examples handling for $ref object
in ../maas-schemas/schemas/core/components/common.json
WARNING: skipping default value handling for $ref object
in ../maas-schemas/schemas/core/components/common.json
INFO: missing description
in ../maas-schemas/schemas/core/components/common.json
INFO: missing description
in ../maas-schemas/schemas/core/components/common.json
INFO: missing description
Expand Down Expand Up @@ -634,6 +640,24 @@ WARNING: minItems field not supported outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
WARNING: minItems field not supported outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
WARNING: minLength field not supported outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
WARNING: minLength field not supported outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
WARNING: minLength field not supported outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/core/itinerary.json
INFO: missing description
in ../maas-schemas/schemas/core/itinerary.json
INFO: missing description
in ../maas-schemas/schemas/core/itinerary.json
INFO: primitive type "string" used outside top-level definitions
Expand Down Expand Up @@ -678,14 +702,18 @@ WARNING: skipping examples handling for $ref object
in ../maas-schemas/schemas/core/leg.json
WARNING: skipping default value handling for $ref object
in ../maas-schemas/schemas/core/leg.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/core/leg.json
INFO: primitive type "number" used outside top-level definitions
in ../maas-schemas/schemas/core/leg.json
INFO: missing description
in ./core/leg.json
in ../maas-schemas/schemas/core/leg.json
INFO: missing description
in ./core/leg.json
in ../maas-schemas/schemas/core/leg.json
INFO: missing description
in ./core/leg.json
in ../maas-schemas/schemas/core/leg.json
INFO: missing description
in ./core/leg.json
in ../maas-schemas/schemas/core/leg.json
INFO: missing description
in ../maas-schemas/schemas/core/leg.json
INFO: missing description
Expand Down Expand Up @@ -873,11 +901,11 @@ INFO: missing description
INFO: missing description
in ../maas-schemas/schemas/core/plan.json
INFO: missing description
in ./core/plan.json
in ../maas-schemas/schemas/core/plan.json
INFO: missing description
in ./core/plan.json
in ../maas-schemas/schemas/core/plan.json
INFO: missing description
in ./core/plan.json
in ../maas-schemas/schemas/core/plan.json
INFO: primitive type "number" used outside top-level definitions
in ../maas-schemas/schemas/core/product.json
WARNING: minimum field not supported outside top-level definitions
Expand Down Expand Up @@ -1572,14 +1600,10 @@ WARNING: maxItems field not supported outside top-level definitions
in ../maas-schemas/schemas/maas-backend/push-notification/request.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/maas-backend/routes/routes-query/request.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/maas-backend/routes/routes-query/request.json
WARNING: patternProperty support has limitations
in ../maas-schemas/schemas/maas-backend/routes/routes-query/request.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/maas-backend/routes/routes-query/request.json
INFO: primitive type "string" used outside top-level definitions
in ../maas-schemas/schemas/maas-backend/routes/routes-query/request.json
INFO: missing description
in ../maas-schemas/schemas/maas-backend/routes/routes-query/request.json
INFO: primitive type "integer" used outside top-level definitions
Expand Down
2 changes: 1 addition & 1 deletion maas-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas",
"version": "14.6.3",
"version": "14.7.0",
"description": "Schemas for MaaS infrastructure",
"main": "index.js",
"engine": {
Expand Down

0 comments on commit 0260bc3

Please sign in to comment.