Skip to content

Commit b122edc

Browse files
Implement NodeJS based server fully replicating osrm-routed
1 parent 98dce89 commit b122edc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

routed-js/schema.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const queryStringJsonSchemaTable = {
114114
properties: {
115115
...queryStringJsonSchemaGeneral.properties,
116116
sources: {
117-
oneOf: [
117+
anyOf: [
118118
{
119119
type: 'array',
120120
items: {
@@ -123,12 +123,13 @@ const queryStringJsonSchemaTable = {
123123
}
124124
},
125125
{
126+
type: 'string',
126127
enum: ['all']
127128
}
128129
]
129130
},
130131
destinations: {
131-
oneOf: [
132+
anyOf: [
132133
{
133134
type: 'array',
134135
items: {
@@ -137,6 +138,7 @@ const queryStringJsonSchemaTable = {
137138
}
138139
},
139140
{
141+
type: 'string',
140142
enum: ['all']
141143
}
142144
]

routed-js/schema.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const queryStringJsonSchemaTable = {
113113
properties: {
114114
...queryStringJsonSchemaGeneral.properties,
115115
sources: {
116-
oneOf: [
116+
anyOf: [
117117
{
118118
type: 'array',
119119
items: {
@@ -122,13 +122,14 @@ const queryStringJsonSchemaTable = {
122122
}
123123
},
124124
{
125+
type: 'string',
125126
enum: ['all']
126127
}
127128
]
128129

129130
},
130131
destinations: {
131-
oneOf: [
132+
anyOf: [
132133
{
133134
type: 'array',
134135
items: {
@@ -137,6 +138,7 @@ const queryStringJsonSchemaTable = {
137138
}
138139
},
139140
{
141+
type: 'string',
140142
enum: ['all']
141143
}
142144
]

0 commit comments

Comments
 (0)