@ebarahona/loopback-openapi-v3 1.0.0

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/src/types.ts ADDED
@@ -0,0 +1,20 @@
1
+ export type OpenApiVersion = '3.0.0' | '3.1.0' | '3.2.0';
2
+
3
+ export interface OpenApiVersionConfig {
4
+ /**
5
+ * Target OpenAPI Specification version.
6
+ * Defaults to '3.0.0' for backward compatibility.
7
+ */
8
+ version: OpenApiVersion;
9
+
10
+ /**
11
+ * Transform nullable fields from OAS 3.0 format (nullable: true)
12
+ * to OAS 3.1+ format (type arrays). Defaults to true for 3.1+.
13
+ */
14
+ transformNullable?: boolean;
15
+ }
16
+
17
+ export const DEFAULT_CONFIG: OpenApiVersionConfig = {
18
+ version: '3.0.0',
19
+ transformNullable: true,
20
+ };