@team-supercharge/oasg 4.6.0 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.6.2](https://gitlab.com/team-supercharge/oasg/compare/v4.6.1...v4.6.2) (2022-10-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **spring-kotlin:** fix Resource to MultipartFile mappings ([0e67ee3](https://gitlab.com/team-supercharge/oasg/commit/0e67ee3c6c3f79f95a4a09378fc884b0de15a00e))
11
+
12
+ ### [4.6.1](https://gitlab.com/team-supercharge/oasg/compare/v4.6.0...v4.6.1) (2022-09-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * ajv cli warnings about strict validation ([40089be](https://gitlab.com/team-supercharge/oasg/commit/40089bec3c977292eaf6178c2c4f4d709281fdb2))
18
+
5
19
  ## [4.6.0](https://gitlab.com/team-supercharge/oasg/compare/v4.5.1...v4.6.0) (2022-09-20)
6
20
 
7
21
 
package/bin/oasg CHANGED
@@ -176,6 +176,7 @@ async function parseConfig() {
176
176
  let schema = YAML.load(`${__dirname}/../config.schema.yml`)
177
177
  schema = await refParser.dereference(schema);
178
178
  schema = mergeAllOf(schema, { ignoreAdditionalProperties: true });
179
+ ajv.addVocabulary(["sources", "targets"]);
179
180
  const valid = ajv.validate(schema, config);
180
181
 
181
182
  if (!valid) {
package/config.schema.yml CHANGED
@@ -27,6 +27,7 @@ additionalProperties: false
27
27
  sources:
28
28
  # base properties
29
29
  Base:
30
+ type: object
30
31
  properties:
31
32
  id:
32
33
  type: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
5
5
  "author": "Supercharge",
6
6
  "license": "MIT",
@@ -7,10 +7,12 @@
7
7
  "removeEnumValuePrefix": false,
8
8
  "typeMappings": {
9
9
  "DateTime": "java.time.Instant",
10
- "OffsetDateTime": "java.time.Instant"
10
+ "OffsetDateTime": "java.time.Instant",
11
+ "org.springframework.core.io.Resource": "org.springframework.web.multipart.MultipartFile"
11
12
  },
12
13
  "importMappings": {
13
14
  "DateTime": "java.time.Instant",
14
- "java.time.OffsetDateTime": "java.time.Instant"
15
+ "java.time.OffsetDateTime": "java.time.Instant",
16
+ "org.springframework.core.io.Resource": "org.springframework.web.multipart.MultipartFile"
15
17
  }
16
18
  }