@platformatic/sql-json-schema-mapper 2.74.3 → 3.0.0-alpha.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/index.js +1 -1
- package/package.json +5 -2
package/index.js
CHANGED
|
@@ -122,7 +122,7 @@ function mapSQLEntityToJSONSchema (entity, ignore = {}, noRequired = false) {
|
|
|
122
122
|
function mapOpenAPItoTypes (obj, fieldDefinitions, opts = {}) {
|
|
123
123
|
let { writer, addedProps } = opts
|
|
124
124
|
addedProps ??= new Set()
|
|
125
|
-
writer ??= new CodeBlockWriter()
|
|
125
|
+
writer ??= new CodeBlockWriter({ indentNumberOfSpaces: opts.indentSpaces ?? 4 })
|
|
126
126
|
const { title, description, properties, required, additionalProperties } = obj
|
|
127
127
|
writer.write('/**').newLine()
|
|
128
128
|
writer.write(` * ${title}`).newLine()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/sql-json-schema-mapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "Map SQL entity to JSON schema",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,15 @@
|
|
|
21
21
|
"neostandard": "^0.12.0",
|
|
22
22
|
"typescript": "^5.5.4",
|
|
23
23
|
"why-is-node-running": "^2.2.2",
|
|
24
|
-
"@platformatic/sql-mapper": "
|
|
24
|
+
"@platformatic/sql-mapper": "3.0.0-alpha.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"code-block-writer": "^13.0.1",
|
|
28
28
|
"safe-identifier": "^0.4.2"
|
|
29
29
|
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22.18.0"
|
|
32
|
+
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"lint": "eslint",
|
|
32
35
|
"test": "npm run lint && npm run test:postgresql && npm run test:mariadb && npm run test:mysql && npm run test:mysql8 && npm run test:sqlite",
|