Commit 1777aaf
authored
add ConstSchema type (#378)
This adds support for creating `{"const": someValue}` schema objects ([spec](https://json-schema.org/understanding-json-schema/reference/const)).
These are useful if you want to create a top level `oneOf` object, for instance for meta tools, where you want a `command` field with custom arguments for each command, and you don't want to rely on just descriptions of all the possible arguments and which commands they are valid for.1 parent 5a9ffc7 commit 1777aaf
File tree
3 files changed
+56
-8
lines changed- pkgs/dart_mcp
- lib/src/api
- test/api
3 files changed
+56
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
1941 | 1969 | | |
1942 | 1970 | | |
1943 | 1971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
324 | 340 | | |
325 | 341 | | |
326 | 342 | | |
| |||
1708 | 1724 | | |
1709 | 1725 | | |
1710 | 1726 | | |
1711 | | - | |
| 1727 | + | |
1712 | 1728 | | |
1713 | 1729 | | |
1714 | 1730 | | |
| |||
1759 | 1775 | | |
1760 | 1776 | | |
1761 | 1777 | | |
1762 | | - | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1763 | 1782 | | |
1764 | 1783 | | |
1765 | 1784 | | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
1770 | 1785 | | |
1771 | 1786 | | |
1772 | 1787 | | |
1773 | | - | |
| 1788 | + | |
1774 | 1789 | | |
1775 | 1790 | | |
1776 | 1791 | | |
1777 | 1792 | | |
1778 | 1793 | | |
1779 | 1794 | | |
1780 | 1795 | | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1781 | 1801 | | |
1782 | 1802 | | |
1783 | 1803 | | |
| |||
0 commit comments