Skip to content

Commit 6f25a8e

Browse files
chore: move types/schema.json to src/types
1 parent 4bb22c9 commit 6f25a8e

File tree

10 files changed

+143
-113
lines changed

10 files changed

+143
-113
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,5 +625,5 @@ npm run postpack
625625
## Generate JSON schema
626626

627627
```sh
628-
./node_modules/.bin/ts-json-schema-generator --path 'src/types/publish.d.ts' --type 'PublishConfig' --expose 'export' --out 'types/schema.json'
628+
./node_modules/.bin/ts-json-schema-generator --path 'src/types/publish.d.ts' --type 'PublishConfig' --expose 'export' --out 'src/types/schema.json'
629629
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"test:ui": "vitest --ui",
8383
"test:once": "vitest --run",
8484
"tsc": "tsc --noEmit",
85-
"schema": "./node_modules/.bin/ts-json-schema-generator --path 'src/types/publish.d.ts' --type 'PublishConfig' --expose 'export' --out 'types/schema.json'"
85+
"schema": "./node_modules/.bin/ts-json-schema-generator --path 'src/types/publish.d.ts' --type 'PublishConfig' --expose 'export' --out 'src/types/schema.json'"
8686
},
8787
"types": "dist/index.d.ts"
8888
}

samples/publish/algo/spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=../../../types/schema.json
1+
# yaml-language-server: $schema=../../../src/types/schema.json
22
metadata:
33
type: algorithm
44
author: Universitat de Lleida (UdL)

samples/publish/basic-predictor/spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=../../../types/schema.json
1+
# yaml-language-server: $schema=../../../src/types/schema.json
22
metadata:
33
type: algorithm
44
name: SciKit-Learn Model Trainer

samples/publish/data/spec.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# yaml-language-server: $schema=../../../types/schema.json
1+
# yaml-language-server: $schema=../../../src/types/schema.json
22
metadata:
33
type: dataset
44
name: Red Wine Dataset
55
author: 'Cortez et al., 2009'
66
description: description.md
77
tags:
8-
- agriculture
9-
- wine
10-
- agrospai
11-
- udl
12-
- tabular-data
8+
- agriculture
9+
- wine
10+
- agrospai
11+
- udl
12+
- tabular-data
1313
license: CC-BY-4.0
1414
links:
15-
- 'https://archive.ics.uci.edu/dataset/186/wine+quality'
15+
- 'https://archive.ics.uci.edu/dataset/186/wine+quality'
1616
nftData:
1717
name: Red Wine
1818
symbol: RED
@@ -26,15 +26,14 @@ service:
2626
serviceEndpoint: 'https://provider.pontus-x.eu'
2727
timeout: 0
2828
files:
29-
- method: GET
30-
type: url
31-
url: >-
32-
https://raw.githubusercontent.com/plotly/datasets/master/winequality-red.csv
29+
- method: GET
30+
type: url
31+
url: >-
32+
https://raw.githubusercontent.com/plotly/datasets/master/winequality-red.csv
3333
pricing:
3434
type: free
3535
datatoken:
3636
name: Red Wine
3737
symbol: RED
3838
trustOwnerAlgorithms: true
3939
allowAlgorithmNetworkAccess: false
40-
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# yaml-language-server: $schema=../../../types/schema.json
1+
# yaml-language-server: $schema=../../../src/types/schema.json
22
metadata:
33
type: dataset
44
name: Red Wine Dataset
55
author: 'Cortez et al., 2009'
66
description: description.md
77
tags:
8-
- agriculture
9-
- wine
10-
- agrospai
11-
- udl
12-
- tabular-data
8+
- agriculture
9+
- wine
10+
- agrospai
11+
- udl
12+
- tabular-data
1313
license: CC-BY-4.0
1414
links:
15-
- 'https://archive.ics.uci.edu/dataset/186/wine+quality'
15+
- 'https://archive.ics.uci.edu/dataset/186/wine+quality'
1616
nftData:
1717
name: Red Wine
1818
symbol: RED
@@ -26,13 +26,12 @@ service:
2626
serviceEndpoint: 'https://provider.pontus-x.eu'
2727
timeout: 0
2828
files:
29-
- method: GET
30-
type: url
31-
url: >-
32-
https://raw.githubusercontent.com/plotly/datasets/master/winequality-red.csv
29+
- method: GET
30+
type: url
31+
url: >-
32+
https://raw.githubusercontent.com/plotly/datasets/master/winequality-red.csv
3333
pricing:
3434
type: free
3535
datatoken:
3636
name: Red Wine
3737
symbol: RED
38-
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# yaml-language-server: $schema=../../../types/schema.json
1+
# yaml-language-server: $schema=../../../src/types/schema.json
22
metadata:
33
type: dataset
44
name: Timeseries Forecasting Testing Dataset
55
author: sudipmanchare
66
description: description.md
77
tags:
8-
- forecasting
9-
- sample
10-
- agrospai
11-
- udl
12-
- tabular-data
8+
- forecasting
9+
- sample
10+
- agrospai
11+
- udl
12+
- tabular-data
1313
license: CC-BY-4.0
1414
links:
15-
- >-
16-
https://www.kaggle.com/api/v1/datasets/download/sudipmanchare/simulated-sales-data-with-timeseries-features
15+
- >-
16+
https://www.kaggle.com/api/v1/datasets/download/sudipmanchare/simulated-sales-data-with-timeseries-features
1717
nftData:
1818
name: Timeseries Forecasting Dataset
1919
symbol: TFD
@@ -27,15 +27,14 @@ service:
2727
serviceEndpoint: 'https://provider.pontus-x.eu'
2828
timeout: 0
2929
files:
30-
- method: GET
31-
type: url
32-
url: >-
33-
https://www.kaggle.com/api/v1/datasets/download/sudipmanchare/simulated-sales-data-with-timeseries-features
30+
- method: GET
31+
type: url
32+
url: >-
33+
https://www.kaggle.com/api/v1/datasets/download/sudipmanchare/simulated-sales-data-with-timeseries-features
3434
pricing:
3535
type: free
3636
datatoken:
3737
name: Timeseries Forecasting Dataset
3838
symbol: TFD
3939
trustOwnerAlgorithms: true
4040
allowAlgorithmNetworkAccess: false
41-

samples/publish/forecasting/spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=../../../types/schema.json
1+
# yaml-language-server: $schema=../../../src/types/schema.json
22
metadata:
33
type: algorithm
44
name: SciKit-Learn Forecasting Model Trainer

0 commit comments

Comments
 (0)