@travetto/openapi 3.3.0 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/openapi",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "OpenAPI integration support for the Travetto framework",
5
5
  "keywords": [
6
6
  "rest",
@@ -26,15 +26,15 @@
26
26
  "directory": "module/openapi"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^3.3.0",
30
- "@travetto/rest": "^3.3.0",
31
- "@travetto/schema": "^3.3.0",
32
- "@travetto/yaml": "^3.3.0",
29
+ "@travetto/config": "^3.3.1",
30
+ "@travetto/rest": "^3.3.1",
31
+ "@travetto/schema": "^3.3.1",
32
+ "@travetto/yaml": "^3.3.1",
33
33
  "openapi3-ts": "^4.1.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^3.3.0",
37
- "@travetto/command": "^3.3.0"
36
+ "@travetto/cli": "^3.3.2",
37
+ "@travetto/command": "^3.3.1"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
@@ -363,10 +363,20 @@ export class OpenapiVisitor implements ControllerVisitor<GeneratedSpec> {
363
363
  }
364
364
 
365
365
  return {
366
- tags: this.#tags,
367
- paths: this.#paths,
366
+ tags: this.#tags.sort((a, b) => a.name.localeCompare(b.name)),
367
+ paths: Object.fromEntries(
368
+ Object.entries(this.#paths)
369
+ .sort(([a], [b]) => a.localeCompare(b))
370
+ .map(([k, v]) => [k, Object.fromEntries(
371
+ Object.entries(v)
372
+ .sort(([a], [b]) => a.localeCompare(b))
373
+ )])
374
+ ),
368
375
  components: {
369
- schemas: this.#schemas
376
+ schemas: Object.fromEntries(
377
+ Object.entries(this.#schemas)
378
+ .sort(([a], [b]) => a.localeCompare(b))
379
+ )
370
380
  }
371
381
  };
372
382
  }