|
103 | 103 | "title": "Path", |
104 | 104 | "description": "A fully qualified URL, or a POSIX file path..", |
105 | 105 | "type": "string", |
| 106 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
106 | 107 | "examples": [ |
107 | 108 | "{\n \"path\": \"file.csv\"\n}\n", |
108 | 109 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
189 | 190 | "title": "Path", |
190 | 191 | "description": "A fully qualified URL, or a POSIX file path..", |
191 | 192 | "type": "string", |
| 193 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
192 | 194 | "examples": [ |
193 | 195 | "{\n \"path\": \"file.csv\"\n}\n", |
194 | 196 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
208 | 210 | }, |
209 | 211 | "context": "This property is not legally binding and does not guarantee that the package is licensed under the terms defined herein.", |
210 | 212 | "examples": [ |
211 | | - "{\n \"licenses\": [\n {\n \"name\": \"odc-pddl-1.0\",\n \"uri\": \"http://opendatacommons.org/licenses/pddl/\"\n }\n ]\n}\n" |
| 213 | + "{\n \"licenses\": [\n {\n \"name\": \"odc-pddl-1.0\",\n \"path\": \"http://opendatacommons.org/licenses/pddl/\",\n \"title\": \"Open Data Commons Public Domain Dedication and License v1.0\"\n }\n ]\n}\n" |
212 | 214 | ] |
213 | 215 | }, |
214 | 216 | "resources": { |
|
268 | 270 | "title": "Path", |
269 | 271 | "description": "A fully qualified URL, or a POSIX file path..", |
270 | 272 | "type": "string", |
| 273 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
271 | 274 | "examples": [ |
272 | 275 | "{\n \"path\": \"file.csv\"\n}\n", |
273 | 276 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
281 | 284 | "title": "Path", |
282 | 285 | "description": "A fully qualified URL, or a POSIX file path..", |
283 | 286 | "type": "string", |
| 287 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
284 | 288 | "examples": [ |
285 | 289 | "{\n \"path\": \"file.csv\"\n}\n", |
286 | 290 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
348 | 352 | "title": "Sources", |
349 | 353 | "description": "The raw sources for this resource.", |
350 | 354 | "type": "array", |
351 | | - "minItems": 1, |
| 355 | + "minItems": 0, |
352 | 356 | "items": { |
353 | 357 | "title": "Source", |
354 | 358 | "description": "A source file.", |
|
369 | 373 | "title": "Path", |
370 | 374 | "description": "A fully qualified URL, or a POSIX file path..", |
371 | 375 | "type": "string", |
| 376 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
372 | 377 | "examples": [ |
373 | 378 | "{\n \"path\": \"file.csv\"\n}\n", |
374 | 379 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
387 | 392 | } |
388 | 393 | }, |
389 | 394 | "examples": [ |
390 | | - "{\n \"sources\": [\n {\n \"name\": \"World Bank and OECD\",\n \"uri\": \"http://data.worldbank.org/indicator/NY.GDP.MKTP.CD\"\n }\n ]\n}\n" |
| 395 | + "{\n \"sources\": [\n {\n \"title\": \"World Bank and OECD\",\n \"path\": \"http://data.worldbank.org/indicator/NY.GDP.MKTP.CD\"\n }\n ]\n}\n" |
391 | 396 | ] |
392 | 397 | }, |
393 | 398 | "licenses": { |
|
414 | 419 | "title": "Path", |
415 | 420 | "description": "A fully qualified URL, or a POSIX file path..", |
416 | 421 | "type": "string", |
| 422 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
417 | 423 | "examples": [ |
418 | 424 | "{\n \"path\": \"file.csv\"\n}\n", |
419 | 425 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
433 | 439 | }, |
434 | 440 | "context": "This property is not legally binding and does not guarantee that the package is licensed under the terms defined herein.", |
435 | 441 | "examples": [ |
436 | | - "{\n \"licenses\": [\n {\n \"name\": \"odc-pddl-1.0\",\n \"uri\": \"http://opendatacommons.org/licenses/pddl/\"\n }\n ]\n}\n" |
| 442 | + "{\n \"licenses\": [\n {\n \"name\": \"odc-pddl-1.0\",\n \"path\": \"http://opendatacommons.org/licenses/pddl/\",\n \"title\": \"Open Data Commons Public Domain Dedication and License v1.0\"\n }\n ]\n}\n" |
437 | 443 | ] |
438 | 444 | }, |
439 | 445 | "format": { |
|
506 | 512 | "title": "Sources", |
507 | 513 | "description": "The raw sources for this resource.", |
508 | 514 | "type": "array", |
509 | | - "minItems": 1, |
| 515 | + "minItems": 0, |
510 | 516 | "items": { |
511 | 517 | "title": "Source", |
512 | 518 | "description": "A source file.", |
|
527 | 533 | "title": "Path", |
528 | 534 | "description": "A fully qualified URL, or a POSIX file path..", |
529 | 535 | "type": "string", |
| 536 | + "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$", |
530 | 537 | "examples": [ |
531 | 538 | "{\n \"path\": \"file.csv\"\n}\n", |
532 | 539 | "{\n \"path\": \"http://example.com/file.csv\"\n}\n" |
|
545 | 552 | } |
546 | 553 | }, |
547 | 554 | "examples": [ |
548 | | - "{\n \"sources\": [\n {\n \"name\": \"World Bank and OECD\",\n \"uri\": \"http://data.worldbank.org/indicator/NY.GDP.MKTP.CD\"\n }\n ]\n}\n" |
| 555 | + "{\n \"sources\": [\n {\n \"title\": \"World Bank and OECD\",\n \"path\": \"http://data.worldbank.org/indicator/NY.GDP.MKTP.CD\"\n }\n ]\n}\n" |
549 | 556 | ] |
550 | 557 | } |
551 | 558 | } |
|
0 commit comments