|
1 | 1 | package version210
|
2 | 2 |
|
3 |
| -// https://raw.githubusercontent.com/devfile/api/main/schemas/latest/devfile.json |
| 3 | +// https://raw.githubusercontent.com/devfile/api/2.1.x/schemas/latest/devfile.json |
4 | 4 | const JsonSchema210 = `{
|
5 | 5 | "description": "Devfile describes the structure of a cloud-native devworkspace and development environment.",
|
6 | 6 | "type": "object",
|
7 |
| - "title": "Devfile schema - Version 2.1.0-alpha", |
| 7 | + "title": "Devfile schema - Version 2.1.0", |
8 | 8 | "required": [
|
9 | 9 | "schemaVersion"
|
10 | 10 | ],
|
@@ -657,7 +657,7 @@ const JsonSchema210 = `{
|
657 | 657 | "type": "string"
|
658 | 658 | },
|
659 | 659 | "icon": {
|
660 |
| - "description": "Optional devfile icon", |
| 660 | + "description": "Optional devfile icon, can be a URI or a relative path in the project", |
661 | 661 | "type": "string"
|
662 | 662 | },
|
663 | 663 | "language": {
|
@@ -1306,11 +1306,6 @@ const JsonSchema210 = `{
|
1306 | 1306 | "git"
|
1307 | 1307 | ]
|
1308 | 1308 | },
|
1309 |
| - { |
1310 |
| - "required": [ |
1311 |
| - "github" |
1312 |
| - ] |
1313 |
| - }, |
1314 | 1309 | {
|
1315 | 1310 | "required": [
|
1316 | 1311 | "zip"
|
@@ -1356,48 +1351,12 @@ const JsonSchema210 = `{
|
1356 | 1351 | },
|
1357 | 1352 | "additionalProperties": false
|
1358 | 1353 | },
|
1359 |
| - "github": { |
1360 |
| - "description": "Project's GitHub source. Deprecated, use 'Git' instead", |
1361 |
| - "type": "object", |
1362 |
| - "properties": { |
1363 |
| - "checkoutFrom": { |
1364 |
| - "description": "Defines from what the project should be checked out. Required if there are more than one remote configured", |
1365 |
| - "type": "object", |
1366 |
| - "properties": { |
1367 |
| - "remote": { |
1368 |
| - "description": "The remote name should be used as init. Required if there are more than one remote configured", |
1369 |
| - "type": "string" |
1370 |
| - }, |
1371 |
| - "revision": { |
1372 |
| - "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.", |
1373 |
| - "type": "string" |
1374 |
| - } |
1375 |
| - }, |
1376 |
| - "additionalProperties": false |
1377 |
| - }, |
1378 |
| - "remotes": { |
1379 |
| - "description": "The remotes map which should be initialized in the git project. Must have at least one remote configured", |
1380 |
| - "type": "object", |
1381 |
| - "additionalProperties": { |
1382 |
| - "type": "string" |
1383 |
| - } |
1384 |
| - } |
1385 |
| - }, |
1386 |
| - "additionalProperties": false |
1387 |
| - }, |
1388 | 1354 | "name": {
|
1389 | 1355 | "description": "Project name",
|
1390 | 1356 | "type": "string",
|
1391 | 1357 | "maxLength": 63,
|
1392 | 1358 | "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
1393 | 1359 | },
|
1394 |
| - "sparseCheckoutDirs": { |
1395 |
| - "description": "Populate the project sparsely with selected directories.", |
1396 |
| - "type": "array", |
1397 |
| - "items": { |
1398 |
| - "type": "string" |
1399 |
| - } |
1400 |
| - }, |
1401 | 1360 | "zip": {
|
1402 | 1361 | "description": "Project's Zip source",
|
1403 | 1362 | "type": "object",
|
@@ -1431,11 +1390,6 @@ const JsonSchema210 = `{
|
1431 | 1390 | "git"
|
1432 | 1391 | ]
|
1433 | 1392 | },
|
1434 |
| - { |
1435 |
| - "required": [ |
1436 |
| - "github" |
1437 |
| - ] |
1438 |
| - }, |
1439 | 1393 | {
|
1440 | 1394 | "required": [
|
1441 | 1395 | "zip"
|
@@ -1481,35 +1435,6 @@ const JsonSchema210 = `{
|
1481 | 1435 | },
|
1482 | 1436 | "additionalProperties": false
|
1483 | 1437 | },
|
1484 |
| - "github": { |
1485 |
| - "description": "Project's GitHub source. Deprecated, use 'Git' instead", |
1486 |
| - "type": "object", |
1487 |
| - "properties": { |
1488 |
| - "checkoutFrom": { |
1489 |
| - "description": "Defines from what the project should be checked out. Required if there are more than one remote configured", |
1490 |
| - "type": "object", |
1491 |
| - "properties": { |
1492 |
| - "remote": { |
1493 |
| - "description": "The remote name should be used as init. Required if there are more than one remote configured", |
1494 |
| - "type": "string" |
1495 |
| - }, |
1496 |
| - "revision": { |
1497 |
| - "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.", |
1498 |
| - "type": "string" |
1499 |
| - } |
1500 |
| - }, |
1501 |
| - "additionalProperties": false |
1502 |
| - }, |
1503 |
| - "remotes": { |
1504 |
| - "description": "The remotes map which should be initialized in the git project. Must have at least one remote configured", |
1505 |
| - "type": "object", |
1506 |
| - "additionalProperties": { |
1507 |
| - "type": "string" |
1508 |
| - } |
1509 |
| - } |
1510 |
| - }, |
1511 |
| - "additionalProperties": false |
1512 |
| - }, |
1513 | 1438 | "name": {
|
1514 | 1439 | "description": "Project name",
|
1515 | 1440 | "type": "string",
|
@@ -1563,11 +1488,6 @@ const JsonSchema210 = `{
|
1563 | 1488 | "git"
|
1564 | 1489 | ]
|
1565 | 1490 | },
|
1566 |
| - { |
1567 |
| - "required": [ |
1568 |
| - "github" |
1569 |
| - ] |
1570 |
| - }, |
1571 | 1491 | {
|
1572 | 1492 | "required": [
|
1573 | 1493 | "zip"
|
@@ -1616,51 +1536,12 @@ const JsonSchema210 = `{
|
1616 | 1536 | },
|
1617 | 1537 | "additionalProperties": false
|
1618 | 1538 | },
|
1619 |
| - "github": { |
1620 |
| - "description": "Project's GitHub source. Deprecated, use 'Git' instead", |
1621 |
| - "type": "object", |
1622 |
| - "required": [ |
1623 |
| - "remotes" |
1624 |
| - ], |
1625 |
| - "properties": { |
1626 |
| - "checkoutFrom": { |
1627 |
| - "description": "Defines from what the project should be checked out. Required if there are more than one remote configured", |
1628 |
| - "type": "object", |
1629 |
| - "properties": { |
1630 |
| - "remote": { |
1631 |
| - "description": "The remote name should be used as init. Required if there are more than one remote configured", |
1632 |
| - "type": "string" |
1633 |
| - }, |
1634 |
| - "revision": { |
1635 |
| - "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.", |
1636 |
| - "type": "string" |
1637 |
| - } |
1638 |
| - }, |
1639 |
| - "additionalProperties": false |
1640 |
| - }, |
1641 |
| - "remotes": { |
1642 |
| - "description": "The remotes map which should be initialized in the git project. Must have at least one remote configured", |
1643 |
| - "type": "object", |
1644 |
| - "additionalProperties": { |
1645 |
| - "type": "string" |
1646 |
| - } |
1647 |
| - } |
1648 |
| - }, |
1649 |
| - "additionalProperties": false |
1650 |
| - }, |
1651 | 1539 | "name": {
|
1652 | 1540 | "description": "Project name",
|
1653 | 1541 | "type": "string",
|
1654 | 1542 | "maxLength": 63,
|
1655 | 1543 | "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
1656 | 1544 | },
|
1657 |
| - "sparseCheckoutDirs": { |
1658 |
| - "description": "Populate the project sparsely with selected directories.", |
1659 |
| - "type": "array", |
1660 |
| - "items": { |
1661 |
| - "type": "string" |
1662 |
| - } |
1663 |
| - }, |
1664 | 1545 | "zip": {
|
1665 | 1546 | "description": "Project's Zip source",
|
1666 | 1547 | "type": "object",
|
@@ -1695,11 +1576,6 @@ const JsonSchema210 = `{
|
1695 | 1576 | "git"
|
1696 | 1577 | ]
|
1697 | 1578 | },
|
1698 |
| - { |
1699 |
| - "required": [ |
1700 |
| - "github" |
1701 |
| - ] |
1702 |
| - }, |
1703 | 1579 | {
|
1704 | 1580 | "required": [
|
1705 | 1581 | "zip"
|
@@ -1748,38 +1624,6 @@ const JsonSchema210 = `{
|
1748 | 1624 | },
|
1749 | 1625 | "additionalProperties": false
|
1750 | 1626 | },
|
1751 |
| - "github": { |
1752 |
| - "description": "Project's GitHub source. Deprecated, use 'Git' instead", |
1753 |
| - "type": "object", |
1754 |
| - "required": [ |
1755 |
| - "remotes" |
1756 |
| - ], |
1757 |
| - "properties": { |
1758 |
| - "checkoutFrom": { |
1759 |
| - "description": "Defines from what the project should be checked out. Required if there are more than one remote configured", |
1760 |
| - "type": "object", |
1761 |
| - "properties": { |
1762 |
| - "remote": { |
1763 |
| - "description": "The remote name should be used as init. Required if there are more than one remote configured", |
1764 |
| - "type": "string" |
1765 |
| - }, |
1766 |
| - "revision": { |
1767 |
| - "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.", |
1768 |
| - "type": "string" |
1769 |
| - } |
1770 |
| - }, |
1771 |
| - "additionalProperties": false |
1772 |
| - }, |
1773 |
| - "remotes": { |
1774 |
| - "description": "The remotes map which should be initialized in the git project. Must have at least one remote configured", |
1775 |
| - "type": "object", |
1776 |
| - "additionalProperties": { |
1777 |
| - "type": "string" |
1778 |
| - } |
1779 |
| - } |
1780 |
| - }, |
1781 |
| - "additionalProperties": false |
1782 |
| - }, |
1783 | 1627 | "name": {
|
1784 | 1628 | "description": "Project name",
|
1785 | 1629 | "type": "string",
|
|
0 commit comments