Test case
1 generated file · +28 −4test/inputs/json/misc/0a91a.json
Melixirdefault / QuickType.ex+28 −4
| @@ -1591,6 +1591,12 @@ defmodule Payload do | ||
| 1591 | 1591 | def encode_before(value) when is_binary(value), do: value |
| 1592 | 1592 | def encode_before(_), do: {:error, "Unexpected type when encoding Payload.before"} |
| 1593 | 1593 | |
| 1594 | + def decode_distinct_size(value) when is_integer(value), do: value | |
| 1595 | + def decode_distinct_size(_), do: {:error, "Unexpected type when decoding Payload.distinct_size"} | |
| 1596 | + | |
| 1597 | + def encode_distinct_size(value) when is_integer(value), do: value | |
| 1598 | + def encode_distinct_size(_), do: {:error, "Unexpected type when encoding Payload.distinct_size"} | |
| 1599 | + | |
| 1594 | 1600 | def decode_head(value) when is_binary(value), do: value |
| 1595 | 1601 | def decode_head(_), do: {:error, "Unexpected type when decoding Payload.head"} |
| 1596 | 1602 | |
| @@ -1603,6 +1609,18 @@ defmodule Payload do | ||
| 1603 | 1609 | def encode_master_branch(value) when is_binary(value), do: value |
| 1604 | 1610 | def encode_master_branch(_), do: {:error, "Unexpected type when encoding Payload.master_branch"} |
| 1605 | 1611 | |
| 1612 | + def decode_number(value) when is_integer(value), do: value | |
| 1613 | + def decode_number(_), do: {:error, "Unexpected type when decoding Payload.number"} | |
| 1614 | + | |
| 1615 | + def encode_number(value) when is_integer(value), do: value | |
| 1616 | + def encode_number(_), do: {:error, "Unexpected type when encoding Payload.number"} | |
| 1617 | + | |
| 1618 | + def decode_push_id(value) when is_integer(value), do: value | |
| 1619 | + def decode_push_id(_), do: {:error, "Unexpected type when decoding Payload.push_id"} | |
| 1620 | + | |
| 1621 | + def encode_push_id(value) when is_integer(value), do: value | |
| 1622 | + def encode_push_id(_), do: {:error, "Unexpected type when encoding Payload.push_id"} | |
| 1623 | + | |
| 1606 | 1624 | def decode_pusher_type(value) when is_binary(value), do: value |
| 1607 | 1625 | def decode_pusher_type(_), do: {:error, "Unexpected type when decoding Payload.pusher_type"} |
| 1608 | 1626 | |
| @@ -1621,22 +1639,28 @@ defmodule Payload do | ||
| 1621 | 1639 | def encode_ref_type(value) when is_binary(value), do: value |
| 1622 | 1640 | def encode_ref_type(_), do: {:error, "Unexpected type when encoding Payload.ref_type"} |
| 1623 | 1641 | |
| 1642 | + def decode_size(value) when is_integer(value), do: value | |
| 1643 | + def decode_size(_), do: {:error, "Unexpected type when decoding Payload.size"} | |
| 1644 | + | |
| 1645 | + def encode_size(value) when is_integer(value), do: value | |
| 1646 | + def encode_size(_), do: {:error, "Unexpected type when encoding Payload.size"} | |
| 1647 | + | |
| 1624 | 1648 | def from_map(m) do |
| 1625 | 1649 | %Payload{ |
| 1626 | 1650 | action: m["action"] && decode_action(m["action"]), |
| 1627 | 1651 | before: m["before"] && decode_before(m["before"]), |
| 1628 | 1652 | commits: m["commits"] && Enum.map(m["commits"], &Commit.from_map/1), |
| 1629 | 1653 | description: m["description"], |
| 1630 | - distinct_size: m["distinct_size"], | |
| 1654 | + distinct_size: m["distinct_size"] && decode_distinct_size(m["distinct_size"]), | |
| 1631 | 1655 | head: m["head"] && decode_head(m["head"]), |
| 1632 | 1656 | master_branch: m["master_branch"] && decode_master_branch(m["master_branch"]), |
| 1633 | - number: m["number"], | |
| 1657 | + number: m["number"] && decode_number(m["number"]), | |
| 1634 | 1658 | pull_request: m["pull_request"] && PullRequest.from_map(m["pull_request"]), |
| 1635 | - push_id: m["push_id"], | |
| 1659 | + push_id: m["push_id"] && decode_push_id(m["push_id"]), | |
| 1636 | 1660 | pusher_type: m["pusher_type"] && decode_pusher_type(m["pusher_type"]), |
| 1637 | 1661 | ref: m["ref"] && decode_ref(m["ref"]), |
| 1638 | 1662 | ref_type: m["ref_type"] && decode_ref_type(m["ref_type"]), |
| 1639 | - size: m["size"], | |
| 1663 | + size: m["size"] && decode_size(m["size"]), | |
| 1640 | 1664 | } |
| 1641 | 1665 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/26c9c.json
Melixirdefault / QuickType.ex+14 −2
| @@ -265,6 +265,18 @@ defmodule Column do | ||
| 265 | 265 | def encode_render_type_name(value) when is_binary(value), do: value |
| 266 | 266 | def encode_render_type_name(_), do: {:error, "Unexpected type when encoding Column.render_type_name"} |
| 267 | 267 | |
| 268 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 269 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 270 | + | |
| 271 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 272 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 273 | + | |
| 274 | + def decode_width(value) when is_integer(value), do: value | |
| 275 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 276 | + | |
| 277 | + def encode_width(value) when is_integer(value), do: value | |
| 278 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 279 | + | |
| 268 | 280 | def from_map(m) do |
| 269 | 281 | %Column{ |
| 270 | 282 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -276,8 +288,8 @@ defmodule Column do | ||
| 276 | 288 | name: decode_name(m["name"]), |
| 277 | 289 | position: decode_position(m["position"]), |
| 278 | 290 | render_type_name: decode_render_type_name(m["renderTypeName"]), |
| 279 | - table_column_id: m["tableColumnId"], | |
| 280 | - width: m["width"], | |
| 291 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 292 | + width: m["width"] && decode_width(m["width"]), | |
| 281 | 293 | } |
| 282 | 294 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/27332.json
Melixirdefault / QuickType.ex+14 −2
| @@ -243,12 +243,24 @@ defmodule MediaEmbed do | ||
| 243 | 243 | def encode_content(value) when is_binary(value), do: value |
| 244 | 244 | def encode_content(_), do: {:error, "Unexpected type when encoding MediaEmbed.content"} |
| 245 | 245 | |
| 246 | + def decode_height(value) when is_integer(value), do: value | |
| 247 | + def decode_height(_), do: {:error, "Unexpected type when decoding MediaEmbed.height"} | |
| 248 | + | |
| 249 | + def encode_height(value) when is_integer(value), do: value | |
| 250 | + def encode_height(_), do: {:error, "Unexpected type when encoding MediaEmbed.height"} | |
| 251 | + | |
| 252 | + def decode_width(value) when is_integer(value), do: value | |
| 253 | + def decode_width(_), do: {:error, "Unexpected type when decoding MediaEmbed.width"} | |
| 254 | + | |
| 255 | + def encode_width(value) when is_integer(value), do: value | |
| 256 | + def encode_width(_), do: {:error, "Unexpected type when encoding MediaEmbed.width"} | |
| 257 | + | |
| 246 | 258 | def from_map(m) do |
| 247 | 259 | %MediaEmbed{ |
| 248 | 260 | content: m["content"] && decode_content(m["content"]), |
| 249 | - height: m["height"], | |
| 261 | + height: m["height"] && decode_height(m["height"]), | |
| 250 | 262 | scrolling: m["scrolling"], |
| 251 | - width: m["width"], | |
| 263 | + width: m["width"] && decode_width(m["width"]), | |
| 252 | 264 | } |
| 253 | 265 | end |
Test case
1 generated file · +45 −5test/inputs/json/misc/31189.json
Melixirdefault / QuickType.ex+45 −5
| @@ -18,6 +18,38 @@ defmodule Rates do | ||
| 18 | 18 | super_reduced: float() | nil |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + def decode_parking(value) when is_float(value), do: value | |
| 22 | + def decode_parking(value) when is_integer(value), do: value | |
| 23 | + def decode_parking(_), do: {:error, "Unexpected type when decoding Rates.parking"} | |
| 24 | + | |
| 25 | + def encode_parking(value) when is_float(value), do: value | |
| 26 | + def encode_parking(value) when is_integer(value), do: value | |
| 27 | + def encode_parking(_), do: {:error, "Unexpected type when encoding Rates.parking"} | |
| 28 | + | |
| 29 | + def decode_reduced(value) when is_float(value), do: value | |
| 30 | + def decode_reduced(value) when is_integer(value), do: value | |
| 31 | + def decode_reduced(_), do: {:error, "Unexpected type when decoding Rates.reduced"} | |
| 32 | + | |
| 33 | + def encode_reduced(value) when is_float(value), do: value | |
| 34 | + def encode_reduced(value) when is_integer(value), do: value | |
| 35 | + def encode_reduced(_), do: {:error, "Unexpected type when encoding Rates.reduced"} | |
| 36 | + | |
| 37 | + def decode_reduced1(value) when is_float(value), do: value | |
| 38 | + def decode_reduced1(value) when is_integer(value), do: value | |
| 39 | + def decode_reduced1(_), do: {:error, "Unexpected type when decoding Rates.reduced1"} | |
| 40 | + | |
| 41 | + def encode_reduced1(value) when is_float(value), do: value | |
| 42 | + def encode_reduced1(value) when is_integer(value), do: value | |
| 43 | + def encode_reduced1(_), do: {:error, "Unexpected type when encoding Rates.reduced1"} | |
| 44 | + | |
| 45 | + def decode_reduced2(value) when is_float(value), do: value | |
| 46 | + def decode_reduced2(value) when is_integer(value), do: value | |
| 47 | + def decode_reduced2(_), do: {:error, "Unexpected type when decoding Rates.reduced2"} | |
| 48 | + | |
| 49 | + def encode_reduced2(value) when is_float(value), do: value | |
| 50 | + def encode_reduced2(value) when is_integer(value), do: value | |
| 51 | + def encode_reduced2(_), do: {:error, "Unexpected type when encoding Rates.reduced2"} | |
| 52 | + | |
| 21 | 53 | def decode_standard(value) when is_float(value), do: value |
| 22 | 54 | def decode_standard(value) when is_integer(value), do: value |
| 23 | 55 | def decode_standard(_), do: {:error, "Unexpected type when decoding Rates.standard"} |
| @@ -26,14 +58,22 @@ defmodule Rates do | ||
| 26 | 58 | def encode_standard(value) when is_integer(value), do: value |
| 27 | 59 | def encode_standard(_), do: {:error, "Unexpected type when encoding Rates.standard"} |
| 28 | 60 | |
| 61 | + def decode_super_reduced(value) when is_float(value), do: value | |
| 62 | + def decode_super_reduced(value) when is_integer(value), do: value | |
| 63 | + def decode_super_reduced(_), do: {:error, "Unexpected type when decoding Rates.super_reduced"} | |
| 64 | + | |
| 65 | + def encode_super_reduced(value) when is_float(value), do: value | |
| 66 | + def encode_super_reduced(value) when is_integer(value), do: value | |
| 67 | + def encode_super_reduced(_), do: {:error, "Unexpected type when encoding Rates.super_reduced"} | |
| 68 | + | |
| 29 | 69 | def from_map(m) do |
| 30 | 70 | %Rates{ |
| 31 | - parking: m["parking"], | |
| 32 | - reduced: m["reduced"], | |
| 33 | - reduced1: m["reduced1"], | |
| 34 | - reduced2: m["reduced2"], | |
| 71 | + parking: m["parking"] && decode_parking(m["parking"]), | |
| 72 | + reduced: m["reduced"] && decode_reduced(m["reduced"]), | |
| 73 | + reduced1: m["reduced1"] && decode_reduced1(m["reduced1"]), | |
| 74 | + reduced2: m["reduced2"] && decode_reduced2(m["reduced2"]), | |
| 35 | 75 | standard: decode_standard(m["standard"]), |
| 36 | - super_reduced: m["super_reduced"], | |
| 76 | + super_reduced: m["super_reduced"] && decode_super_reduced(m["super_reduced"]), | |
| 37 | 77 | } |
| 38 | 78 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/421d4.json
Melixirdefault / QuickType.ex+14 −2
| @@ -223,6 +223,18 @@ defmodule Column do | ||
| 223 | 223 | def encode_render_type_name(value) when is_binary(value), do: value |
| 224 | 224 | def encode_render_type_name(_), do: {:error, "Unexpected type when encoding Column.render_type_name"} |
| 225 | 225 | |
| 226 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 227 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 228 | + | |
| 229 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 230 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 231 | + | |
| 232 | + def decode_width(value) when is_integer(value), do: value | |
| 233 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 234 | + | |
| 235 | + def encode_width(value) when is_integer(value), do: value | |
| 236 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 237 | + | |
| 226 | 238 | def from_map(m) do |
| 227 | 239 | %Column{ |
| 228 | 240 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -234,8 +246,8 @@ defmodule Column do | ||
| 234 | 246 | name: decode_name(m["name"]), |
| 235 | 247 | position: decode_position(m["position"]), |
| 236 | 248 | render_type_name: decode_render_type_name(m["renderTypeName"]), |
| 237 | - table_column_id: m["tableColumnId"], | |
| 238 | - width: m["width"], | |
| 249 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 250 | + width: m["width"] && decode_width(m["width"]), | |
| 239 | 251 | } |
| 240 | 252 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/4d6fb.json
Melixirdefault / QuickType.ex+14 −2
| @@ -210,12 +210,24 @@ defmodule MediaEmbed do | ||
| 210 | 210 | def encode_content(value) when is_binary(value), do: value |
| 211 | 211 | def encode_content(_), do: {:error, "Unexpected type when encoding MediaEmbed.content"} |
| 212 | 212 | |
| 213 | + def decode_height(value) when is_integer(value), do: value | |
| 214 | + def decode_height(_), do: {:error, "Unexpected type when decoding MediaEmbed.height"} | |
| 215 | + | |
| 216 | + def encode_height(value) when is_integer(value), do: value | |
| 217 | + def encode_height(_), do: {:error, "Unexpected type when encoding MediaEmbed.height"} | |
| 218 | + | |
| 219 | + def decode_width(value) when is_integer(value), do: value | |
| 220 | + def decode_width(_), do: {:error, "Unexpected type when decoding MediaEmbed.width"} | |
| 221 | + | |
| 222 | + def encode_width(value) when is_integer(value), do: value | |
| 223 | + def encode_width(_), do: {:error, "Unexpected type when encoding MediaEmbed.width"} | |
| 224 | + | |
| 213 | 225 | def from_map(m) do |
| 214 | 226 | %MediaEmbed{ |
| 215 | 227 | content: m["content"] && decode_content(m["content"]), |
| 216 | - height: m["height"], | |
| 228 | + height: m["height"] && decode_height(m["height"]), | |
| 217 | 229 | scrolling: m["scrolling"], |
| 218 | - width: m["width"], | |
| 230 | + width: m["width"] && decode_width(m["width"]), | |
| 219 | 231 | } |
| 220 | 232 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/5f7fe.json
Melixirdefault / QuickType.ex+14 −2
| @@ -264,6 +264,18 @@ defmodule Column do | ||
| 264 | 264 | def encode_position(value) when is_integer(value), do: value |
| 265 | 265 | def encode_position(_), do: {:error, "Unexpected type when encoding Column.position"} |
| 266 | 266 | |
| 267 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 268 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 269 | + | |
| 270 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 271 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 272 | + | |
| 273 | + def decode_width(value) when is_integer(value), do: value | |
| 274 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 275 | + | |
| 276 | + def encode_width(value) when is_integer(value), do: value | |
| 277 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 278 | + | |
| 267 | 279 | def from_map(m) do |
| 268 | 280 | %Column{ |
| 269 | 281 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -275,8 +287,8 @@ defmodule Column do | ||
| 275 | 287 | name: decode_name(m["name"]), |
| 276 | 288 | position: decode_position(m["position"]), |
| 277 | 289 | render_type_name: TypeName.decode(m["renderTypeName"]), |
| 278 | - table_column_id: m["tableColumnId"], | |
| 279 | - width: m["width"], | |
| 290 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 291 | + width: m["width"] && decode_width(m["width"]), | |
| 280 | 292 | } |
| 281 | 293 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/617e8.json
Melixirdefault / QuickType.ex+14 −2
| @@ -271,6 +271,18 @@ defmodule Column do | ||
| 271 | 271 | def encode_position(value) when is_integer(value), do: value |
| 272 | 272 | def encode_position(_), do: {:error, "Unexpected type when encoding Column.position"} |
| 273 | 273 | |
| 274 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 275 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 276 | + | |
| 277 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 278 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 279 | + | |
| 280 | + def decode_width(value) when is_integer(value), do: value | |
| 281 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 282 | + | |
| 283 | + def encode_width(value) when is_integer(value), do: value | |
| 284 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 285 | + | |
| 274 | 286 | def from_map(m) do |
| 275 | 287 | %Column{ |
| 276 | 288 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -283,8 +295,8 @@ defmodule Column do | ||
| 283 | 295 | name: decode_name(m["name"]), |
| 284 | 296 | position: decode_position(m["position"]), |
| 285 | 297 | render_type_name: TypeName.decode(m["renderTypeName"]), |
| 286 | - table_column_id: m["tableColumnId"], | |
| 287 | - width: m["width"], | |
| 298 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 299 | + width: m["width"] && decode_width(m["width"]), | |
| 288 | 300 | } |
| 289 | 301 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/6de06.json
Melixirdefault / QuickType.ex+14 −2
| @@ -201,12 +201,24 @@ defmodule MediaEmbed do | ||
| 201 | 201 | def encode_content(value) when is_binary(value), do: value |
| 202 | 202 | def encode_content(_), do: {:error, "Unexpected type when encoding MediaEmbed.content"} |
| 203 | 203 | |
| 204 | + def decode_height(value) when is_integer(value), do: value | |
| 205 | + def decode_height(_), do: {:error, "Unexpected type when decoding MediaEmbed.height"} | |
| 206 | + | |
| 207 | + def encode_height(value) when is_integer(value), do: value | |
| 208 | + def encode_height(_), do: {:error, "Unexpected type when encoding MediaEmbed.height"} | |
| 209 | + | |
| 210 | + def decode_width(value) when is_integer(value), do: value | |
| 211 | + def decode_width(_), do: {:error, "Unexpected type when decoding MediaEmbed.width"} | |
| 212 | + | |
| 213 | + def encode_width(value) when is_integer(value), do: value | |
| 214 | + def encode_width(_), do: {:error, "Unexpected type when encoding MediaEmbed.width"} | |
| 215 | + | |
| 204 | 216 | def from_map(m) do |
| 205 | 217 | %MediaEmbed{ |
| 206 | 218 | content: m["content"] && decode_content(m["content"]), |
| 207 | - height: m["height"], | |
| 219 | + height: m["height"] && decode_height(m["height"]), | |
| 208 | 220 | scrolling: m["scrolling"], |
| 209 | - width: m["width"], | |
| 221 | + width: m["width"] && decode_width(m["width"]), | |
| 210 | 222 | } |
| 211 | 223 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/a3d8c.json
Melixirdefault / QuickType.ex+14 −2
| @@ -264,6 +264,18 @@ defmodule Column do | ||
| 264 | 264 | def encode_position(value) when is_integer(value), do: value |
| 265 | 265 | def encode_position(_), do: {:error, "Unexpected type when encoding Column.position"} |
| 266 | 266 | |
| 267 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 268 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 269 | + | |
| 270 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 271 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 272 | + | |
| 273 | + def decode_width(value) when is_integer(value), do: value | |
| 274 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 275 | + | |
| 276 | + def encode_width(value) when is_integer(value), do: value | |
| 277 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 278 | + | |
| 267 | 279 | def from_map(m) do |
| 268 | 280 | %Column{ |
| 269 | 281 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -275,8 +287,8 @@ defmodule Column do | ||
| 275 | 287 | name: decode_name(m["name"]), |
| 276 | 288 | position: decode_position(m["position"]), |
| 277 | 289 | render_type_name: TypeName.decode(m["renderTypeName"]), |
| 278 | - table_column_id: m["tableColumnId"], | |
| 279 | - width: m["width"], | |
| 290 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 291 | + width: m["width"] && decode_width(m["width"]), | |
| 280 | 292 | } |
| 281 | 293 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/be234.json
Melixirdefault / QuickType.ex+14 −2
| @@ -244,12 +244,24 @@ defmodule MediaEmbed do | ||
| 244 | 244 | def encode_content(value) when is_binary(value), do: value |
| 245 | 245 | def encode_content(_), do: {:error, "Unexpected type when encoding MediaEmbed.content"} |
| 246 | 246 | |
| 247 | + def decode_height(value) when is_integer(value), do: value | |
| 248 | + def decode_height(_), do: {:error, "Unexpected type when decoding MediaEmbed.height"} | |
| 249 | + | |
| 250 | + def encode_height(value) when is_integer(value), do: value | |
| 251 | + def encode_height(_), do: {:error, "Unexpected type when encoding MediaEmbed.height"} | |
| 252 | + | |
| 253 | + def decode_width(value) when is_integer(value), do: value | |
| 254 | + def decode_width(_), do: {:error, "Unexpected type when decoding MediaEmbed.width"} | |
| 255 | + | |
| 256 | + def encode_width(value) when is_integer(value), do: value | |
| 257 | + def encode_width(_), do: {:error, "Unexpected type when encoding MediaEmbed.width"} | |
| 258 | + | |
| 247 | 259 | def from_map(m) do |
| 248 | 260 | %MediaEmbed{ |
| 249 | 261 | content: m["content"] && decode_content(m["content"]), |
| 250 | - height: m["height"], | |
| 262 | + height: m["height"] && decode_height(m["height"]), | |
| 251 | 263 | scrolling: m["scrolling"], |
| 252 | - width: m["width"], | |
| 264 | + width: m["width"] && decode_width(m["width"]), | |
| 253 | 265 | } |
| 254 | 266 | end |
Test case
1 generated file · +49 −7test/inputs/json/misc/e8b04.json
Melixirdefault / QuickType.ex+49 −7
| @@ -634,14 +634,26 @@ defmodule ChildMetadata do | ||
| 634 | 634 | unified_version: integer() | nil |
| 635 | 635 | } |
| 636 | 636 | |
| 637 | + def decode_include_auto(value) when is_integer(value), do: value | |
| 638 | + def decode_include_auto(_), do: {:error, "Unexpected type when decoding ChildMetadata.include_auto"} | |
| 639 | + | |
| 640 | + def encode_include_auto(value) when is_integer(value), do: value | |
| 641 | + def encode_include_auto(_), do: {:error, "Unexpected type when encoding ChildMetadata.include_auto"} | |
| 642 | + | |
| 643 | + def decode_unified_version(value) when is_integer(value), do: value | |
| 644 | + def decode_unified_version(_), do: {:error, "Unexpected type when decoding ChildMetadata.unified_version"} | |
| 645 | + | |
| 646 | + def encode_unified_version(value) when is_integer(value), do: value | |
| 647 | + def encode_unified_version(_), do: {:error, "Unexpected type when encoding ChildMetadata.unified_version"} | |
| 648 | + | |
| 637 | 649 | def from_map(m) do |
| 638 | 650 | %ChildMetadata{ |
| 639 | 651 | custom_values: m["customValues"], |
| 640 | 652 | freeform: m["freeform"], |
| 641 | - include_auto: m["includeAuto"], | |
| 653 | + include_auto: m["includeAuto"] && decode_include_auto(m["includeAuto"]), | |
| 642 | 654 | operator: m["operator"] && MetadataOperator.decode(m["operator"]), |
| 643 | 655 | table_column_id: m["tableColumnId"] && TableColumnID.from_map(m["tableColumnId"]), |
| 644 | - unified_version: m["unifiedVersion"], | |
| 656 | + unified_version: m["unifiedVersion"] && decode_unified_version(m["unifiedVersion"]), | |
| 645 | 657 | } |
| 646 | 658 | end |
| 647 | 659 | |
| @@ -1650,6 +1662,12 @@ defmodule Owner do | ||
| 1650 | 1662 | def encode_id(value) when is_binary(value), do: value |
| 1651 | 1663 | def encode_id(_), do: {:error, "Unexpected type when encoding Owner.id"} |
| 1652 | 1664 | |
| 1665 | + def decode_last_notification_seen_at(value) when is_integer(value), do: value | |
| 1666 | + def decode_last_notification_seen_at(_), do: {:error, "Unexpected type when decoding Owner.last_notification_seen_at"} | |
| 1667 | + | |
| 1668 | + def encode_last_notification_seen_at(value) when is_integer(value), do: value | |
| 1669 | + def encode_last_notification_seen_at(_), do: {:error, "Unexpected type when encoding Owner.last_notification_seen_at"} | |
| 1670 | + | |
| 1653 | 1671 | def decode_profile_image_url_large(value) when is_binary(value), do: value |
| 1654 | 1672 | def decode_profile_image_url_large(_), do: {:error, "Unexpected type when decoding Owner.profile_image_url_large"} |
| 1655 | 1673 | |
| @@ -1679,7 +1697,7 @@ defmodule Owner do | ||
| 1679 | 1697 | display_name: decode_display_name(m["displayName"]), |
| 1680 | 1698 | flags: m["flags"], |
| 1681 | 1699 | id: decode_id(m["id"]), |
| 1682 | - last_notification_seen_at: m["lastNotificationSeenAt"], | |
| 1700 | + last_notification_seen_at: m["lastNotificationSeenAt"] && decode_last_notification_seen_at(m["lastNotificationSeenAt"]), | |
| 1683 | 1701 | profile_image_url_large: m["profileImageUrlLarge"] && decode_profile_image_url_large(m["profileImageUrlLarge"]), |
| 1684 | 1702 | profile_image_url_medium: m["profileImageUrlMedium"] && decode_profile_image_url_medium(m["profileImageUrlMedium"]), |
| 1685 | 1703 | profile_image_url_small: m["profileImageUrlSmall"] && decode_profile_image_url_small(m["profileImageUrlSmall"]), |
| @@ -2148,6 +2166,12 @@ defmodule TopLevelElement do | ||
| 2148 | 2166 | def encode_id(value) when is_binary(value), do: value |
| 2149 | 2167 | def encode_id(_), do: {:error, "Unexpected type when encoding TopLevelElement.id"} |
| 2150 | 2168 | |
| 2169 | + def decode_index_updated_at(value) when is_integer(value), do: value | |
| 2170 | + def decode_index_updated_at(_), do: {:error, "Unexpected type when decoding TopLevelElement.index_updated_at"} | |
| 2171 | + | |
| 2172 | + def encode_index_updated_at(value) when is_integer(value), do: value | |
| 2173 | + def encode_index_updated_at(_), do: {:error, "Unexpected type when encoding TopLevelElement.index_updated_at"} | |
| 2174 | + | |
| 2151 | 2175 | def decode_locale(value) when is_binary(value), do: value |
| 2152 | 2176 | def decode_locale(_), do: {:error, "Unexpected type when decoding TopLevelElement.locale"} |
| 2153 | 2177 | |
| @@ -2184,6 +2208,12 @@ defmodule TopLevelElement do | ||
| 2184 | 2208 | def encode_publication_append_enabled(value) when is_boolean(value), do: value |
| 2185 | 2209 | def encode_publication_append_enabled(_), do: {:error, "Unexpected type when encoding TopLevelElement.publication_append_enabled"} |
| 2186 | 2210 | |
| 2211 | + def decode_publication_date(value) when is_integer(value), do: value | |
| 2212 | + def decode_publication_date(_), do: {:error, "Unexpected type when decoding TopLevelElement.publication_date"} | |
| 2213 | + | |
| 2214 | + def encode_publication_date(value) when is_integer(value), do: value | |
| 2215 | + def encode_publication_date(_), do: {:error, "Unexpected type when encoding TopLevelElement.publication_date"} | |
| 2216 | + | |
| 2187 | 2217 | def decode_publication_group(value) when is_integer(value), do: value |
| 2188 | 2218 | def decode_publication_group(_), do: {:error, "Unexpected type when decoding TopLevelElement.publication_group"} |
| 2189 | 2219 | |
| @@ -2208,6 +2238,18 @@ defmodule TopLevelElement do | ||
| 2208 | 2238 | def encode_row_class(value) when is_binary(value), do: value |
| 2209 | 2239 | def encode_row_class(_), do: {:error, "Unexpected type when encoding TopLevelElement.row_class"} |
| 2210 | 2240 | |
| 2241 | + def decode_row_identifier_column_id(value) when is_integer(value), do: value | |
| 2242 | + def decode_row_identifier_column_id(_), do: {:error, "Unexpected type when decoding TopLevelElement.row_identifier_column_id"} | |
| 2243 | + | |
| 2244 | + def encode_row_identifier_column_id(value) when is_integer(value), do: value | |
| 2245 | + def encode_row_identifier_column_id(_), do: {:error, "Unexpected type when encoding TopLevelElement.row_identifier_column_id"} | |
| 2246 | + | |
| 2247 | + def decode_rows_updated_at(value) when is_integer(value), do: value | |
| 2248 | + def decode_rows_updated_at(_), do: {:error, "Unexpected type when decoding TopLevelElement.rows_updated_at"} | |
| 2249 | + | |
| 2250 | + def encode_rows_updated_at(value) when is_integer(value), do: value | |
| 2251 | + def encode_rows_updated_at(_), do: {:error, "Unexpected type when encoding TopLevelElement.rows_updated_at"} | |
| 2252 | + | |
| 2211 | 2253 | def decode_table_id(value) when is_integer(value), do: value |
| 2212 | 2254 | def decode_table_id(_), do: {:error, "Unexpected type when decoding TopLevelElement.table_id"} |
| 2213 | 2255 | |
| @@ -2245,7 +2287,7 @@ defmodule TopLevelElement do | ||
| 2245 | 2287 | hide_from_catalog: decode_hide_from_catalog(m["hideFromCatalog"]), |
| 2246 | 2288 | hide_from_data_json: decode_hide_from_data_json(m["hideFromDataJson"]), |
| 2247 | 2289 | id: decode_id(m["id"]), |
| 2248 | - index_updated_at: m["indexUpdatedAt"], | |
| 2290 | + index_updated_at: m["indexUpdatedAt"] && decode_index_updated_at(m["indexUpdatedAt"]), | |
| 2249 | 2291 | locale: decode_locale(m["locale"]), |
| 2250 | 2292 | metadata: TopLevelMetadata.from_map(m["metadata"]), |
| 2251 | 2293 | moderation_status: m["moderationStatus"], |
| @@ -2257,15 +2299,15 @@ defmodule TopLevelElement do | ||
| 2257 | 2299 | owner: Owner.from_map(m["owner"]), |
| 2258 | 2300 | provenance: Provenance.decode(m["provenance"]), |
| 2259 | 2301 | publication_append_enabled: decode_publication_append_enabled(m["publicationAppendEnabled"]), |
| 2260 | - publication_date: m["publicationDate"], | |
| 2302 | + publication_date: m["publicationDate"] && decode_publication_date(m["publicationDate"]), | |
| 2261 | 2303 | publication_group: decode_publication_group(m["publicationGroup"]), |
| 2262 | 2304 | publication_stage: PublicationStage.decode(m["publicationStage"]), |
| 2263 | 2305 | ratings: m["ratings"] && Ratings.from_map(m["ratings"]), |
| 2264 | 2306 | resource_name: m["resourceName"] && decode_resource_name(m["resourceName"]), |
| 2265 | 2307 | rights: Enum.map(m["rights"], &Right.decode/1), |
| 2266 | 2308 | row_class: m["rowClass"] && decode_row_class(m["rowClass"]), |
| 2267 | - row_identifier_column_id: m["rowIdentifierColumnId"], | |
| 2268 | - rows_updated_at: m["rowsUpdatedAt"], | |
| 2309 | + row_identifier_column_id: m["rowIdentifierColumnId"] && decode_row_identifier_column_id(m["rowIdentifierColumnId"]), | |
| 2310 | + rows_updated_at: m["rowsUpdatedAt"] && decode_rows_updated_at(m["rowsUpdatedAt"]), | |
| 2269 | 2311 | rows_updated_by: m["rowsUpdatedBy"] && RowsUpdatedBy.decode(m["rowsUpdatedBy"]), |
| 2270 | 2312 | table_author: TableAuthor.from_map(m["tableAuthor"]), |
| 2271 | 2313 | table_id: decode_table_id(m["tableId"]), |
Test case
1 generated file · +14 −2test/inputs/json/misc/f74d5.json
Melixirdefault / QuickType.ex+14 −2
| @@ -264,6 +264,18 @@ defmodule Column do | ||
| 264 | 264 | def encode_position(value) when is_integer(value), do: value |
| 265 | 265 | def encode_position(_), do: {:error, "Unexpected type when encoding Column.position"} |
| 266 | 266 | |
| 267 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 268 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 269 | + | |
| 270 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 271 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 272 | + | |
| 273 | + def decode_width(value) when is_integer(value), do: value | |
| 274 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 275 | + | |
| 276 | + def encode_width(value) when is_integer(value), do: value | |
| 277 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 278 | + | |
| 267 | 279 | def from_map(m) do |
| 268 | 280 | %Column{ |
| 269 | 281 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -275,8 +287,8 @@ defmodule Column do | ||
| 275 | 287 | name: decode_name(m["name"]), |
| 276 | 288 | position: decode_position(m["position"]), |
| 277 | 289 | render_type_name: TypeName.decode(m["renderTypeName"]), |
| 278 | - table_column_id: m["tableColumnId"], | |
| 279 | - width: m["width"], | |
| 290 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 291 | + width: m["width"] && decode_width(m["width"]), | |
| 280 | 292 | } |
| 281 | 293 | end |
Test case
1 generated file · +14 −2test/inputs/json/misc/fcca3.json
Melixirdefault / QuickType.ex+14 −2
| @@ -298,6 +298,18 @@ defmodule Column do | ||
| 298 | 298 | def encode_position(value) when is_integer(value), do: value |
| 299 | 299 | def encode_position(_), do: {:error, "Unexpected type when encoding Column.position"} |
| 300 | 300 | |
| 301 | + def decode_table_column_id(value) when is_integer(value), do: value | |
| 302 | + def decode_table_column_id(_), do: {:error, "Unexpected type when decoding Column.table_column_id"} | |
| 303 | + | |
| 304 | + def encode_table_column_id(value) when is_integer(value), do: value | |
| 305 | + def encode_table_column_id(_), do: {:error, "Unexpected type when encoding Column.table_column_id"} | |
| 306 | + | |
| 307 | + def decode_width(value) when is_integer(value), do: value | |
| 308 | + def decode_width(_), do: {:error, "Unexpected type when decoding Column.width"} | |
| 309 | + | |
| 310 | + def encode_width(value) when is_integer(value), do: value | |
| 311 | + def encode_width(_), do: {:error, "Unexpected type when encoding Column.width"} | |
| 312 | + | |
| 301 | 313 | def from_map(m) do |
| 302 | 314 | %Column{ |
| 303 | 315 | cached_contents: m["cachedContents"] && CachedContents.from_map(m["cachedContents"]), |
| @@ -310,8 +322,8 @@ defmodule Column do | ||
| 310 | 322 | name: decode_name(m["name"]), |
| 311 | 323 | position: decode_position(m["position"]), |
| 312 | 324 | render_type_name: TypeName.decode(m["renderTypeName"]), |
| 313 | - table_column_id: m["tableColumnId"], | |
| 314 | - width: m["width"], | |
| 325 | + table_column_id: m["tableColumnId"] && decode_table_column_id(m["tableColumnId"]), | |
| 326 | + width: m["width"] && decode_width(m["width"]), | |
| 315 | 327 | } |
| 316 | 328 | end |
Test case
1 generated file · +49 −7test/inputs/json/priority/bug427.json
Melixirdefault / QuickType.ex+49 −7
| @@ -1719,6 +1719,12 @@ defmodule ExtendedBy do | ||
| 1719 | 1719 | type_arguments: [ExtendedBy.t()] | nil |
| 1720 | 1720 | } |
| 1721 | 1721 | |
| 1722 | + def decode_id(value) when is_integer(value), do: value | |
| 1723 | + def decode_id(_), do: {:error, "Unexpected type when decoding ExtendedBy.id"} | |
| 1724 | + | |
| 1725 | + def encode_id(value) when is_integer(value), do: value | |
| 1726 | + def encode_id(_), do: {:error, "Unexpected type when encoding ExtendedBy.id"} | |
| 1727 | + | |
| 1722 | 1728 | def decode_name(value) when is_binary(value), do: value |
| 1723 | 1729 | def decode_name(_), do: {:error, "Unexpected type when decoding ExtendedBy.name"} |
| 1724 | 1730 | |
| @@ -1728,7 +1734,7 @@ defmodule ExtendedBy do | ||
| 1728 | 1734 | def from_map(m) do |
| 1729 | 1735 | %ExtendedBy{ |
| 1730 | 1736 | constraint: m["constraint"] && ExtendedBy.from_map(m["constraint"]), |
| 1731 | - id: m["id"], | |
| 1737 | + id: m["id"] && decode_id(m["id"]), | |
| 1732 | 1738 | name: decode_name(m["name"]), |
| 1733 | 1739 | type: TypeEnum.decode(m["type"]), |
| 1734 | 1740 | type_arguments: m["typeArguments"] && Enum.map(m["typeArguments"], &ExtendedBy.from_map/1), |
| @@ -1808,6 +1814,12 @@ defmodule Type4 do | ||
| 1808 | 1814 | type_arguments: [ElementType.t()] | nil |
| 1809 | 1815 | } |
| 1810 | 1816 | |
| 1817 | + def decode_id(value) when is_integer(value), do: value | |
| 1818 | + def decode_id(_), do: {:error, "Unexpected type when decoding Type4.id"} | |
| 1819 | + | |
| 1820 | + def encode_id(value) when is_integer(value), do: value | |
| 1821 | + def encode_id(_), do: {:error, "Unexpected type when encoding Type4.id"} | |
| 1822 | + | |
| 1811 | 1823 | def decode_name(value) when is_binary(value), do: value |
| 1812 | 1824 | def decode_name(_), do: {:error, "Unexpected type when decoding Type4.name"} |
| 1813 | 1825 | |
| @@ -1820,7 +1832,7 @@ defmodule Type4 do | ||
| 1820 | 1832 | declaration: m["declaration"] && GetSignature.from_map(m["declaration"]), |
| 1821 | 1833 | element_type: m["elementType"] && ElementType.from_map(m["elementType"]), |
| 1822 | 1834 | elements: m["elements"] && Enum.map(m["elements"], &ExtendedBy.from_map/1), |
| 1823 | - id: m["id"], | |
| 1835 | + id: m["id"] && decode_id(m["id"]), | |
| 1824 | 1836 | name: m["name"] && decode_name(m["name"]), |
| 1825 | 1837 | type: TypeEnum.decode(m["type"]), |
| 1826 | 1838 | type_arguments: m["typeArguments"] && Enum.map(m["typeArguments"], &ElementType.from_map/1), |
| @@ -2598,6 +2610,12 @@ defmodule Type5 do | ||
| 2598 | 2610 | types: [TypeElement.t()] | nil |
| 2599 | 2611 | } |
| 2600 | 2612 | |
| 2613 | + def decode_id(value) when is_integer(value), do: value | |
| 2614 | + def decode_id(_), do: {:error, "Unexpected type when decoding Type5.id"} | |
| 2615 | + | |
| 2616 | + def encode_id(value) when is_integer(value), do: value | |
| 2617 | + def encode_id(_), do: {:error, "Unexpected type when encoding Type5.id"} | |
| 2618 | + | |
| 2601 | 2619 | def decode_name(value) when is_binary(value), do: value |
| 2602 | 2620 | def decode_name(_), do: {:error, "Unexpected type when decoding Type5.name"} |
| 2603 | 2621 | |
| @@ -2610,7 +2628,7 @@ defmodule Type5 do | ||
| 2610 | 2628 | declaration: m["declaration"] && Declaration2.from_map(m["declaration"]), |
| 2611 | 2629 | element_type: m["elementType"] && ExtendedBy.from_map(m["elementType"]), |
| 2612 | 2630 | elements: m["elements"] && Enum.map(m["elements"], &ElementType.from_map/1), |
| 2613 | - id: m["id"], | |
| 2631 | + id: m["id"] && decode_id(m["id"]), | |
| 2614 | 2632 | name: m["name"] && decode_name(m["name"]), |
| 2615 | 2633 | type: TypeEnum.decode(m["type"]), |
| 2616 | 2634 | type_arguments: m["typeArguments"] && Enum.map(m["typeArguments"], &TypeArgument1.from_map/1), |
| @@ -3048,6 +3066,12 @@ defmodule Type8 do | ||
| 3048 | 3066 | type_arguments: [ElementType.t()] | nil |
| 3049 | 3067 | } |
| 3050 | 3068 | |
| 3069 | + def decode_id(value) when is_integer(value), do: value | |
| 3070 | + def decode_id(_), do: {:error, "Unexpected type when decoding Type8.id"} | |
| 3071 | + | |
| 3072 | + def encode_id(value) when is_integer(value), do: value | |
| 3073 | + def encode_id(_), do: {:error, "Unexpected type when encoding Type8.id"} | |
| 3074 | + | |
| 3051 | 3075 | def decode_name(value) when is_binary(value), do: value |
| 3052 | 3076 | def decode_name(_), do: {:error, "Unexpected type when decoding Type8.name"} |
| 3053 | 3077 | |
| @@ -3058,7 +3082,7 @@ defmodule Type8 do | ||
| 3058 | 3082 | %Type8{ |
| 3059 | 3083 | declaration: m["declaration"] && Declaration3.from_map(m["declaration"]), |
| 3060 | 3084 | element_type: m["elementType"] && ElementType.from_map(m["elementType"]), |
| 3061 | - id: m["id"], | |
| 3085 | + id: m["id"] && decode_id(m["id"]), | |
| 3062 | 3086 | name: m["name"] && decode_name(m["name"]), |
| 3063 | 3087 | type: TypeEnum.decode(m["type"]), |
| 3064 | 3088 | type_arguments: m["typeArguments"] && Enum.map(m["typeArguments"], &ElementType.from_map/1), |
| @@ -3188,10 +3212,16 @@ defmodule Type9 do | ||
| 3188 | 3212 | type_arguments: [ElementType.t()] | nil |
| 3189 | 3213 | } |
| 3190 | 3214 | |
| 3215 | + def decode_id(value) when is_integer(value), do: value | |
| 3216 | + def decode_id(_), do: {:error, "Unexpected type when decoding Type9.id"} | |
| 3217 | + | |
| 3218 | + def encode_id(value) when is_integer(value), do: value | |
| 3219 | + def encode_id(_), do: {:error, "Unexpected type when encoding Type9.id"} | |
| 3220 | + | |
| 3191 | 3221 | def from_map(m) do |
| 3192 | 3222 | %Type9{ |
| 3193 | 3223 | declaration: m["declaration"] && Declaration1.from_map(m["declaration"]), |
| 3194 | - id: m["id"], | |
| 3224 | + id: m["id"] && decode_id(m["id"]), | |
| 3195 | 3225 | name: m["name"] && Name.decode(m["name"]), |
| 3196 | 3226 | type: TypeEnum.decode(m["type"]), |
| 3197 | 3227 | type_arguments: m["typeArguments"] && Enum.map(m["typeArguments"], &ElementType.from_map/1), |
| @@ -3648,6 +3678,12 @@ defmodule Type10 do | ||
| 3648 | 3678 | value: String.t() | nil |
| 3649 | 3679 | } |
| 3650 | 3680 | |
| 3681 | + def decode_id(value) when is_integer(value), do: value | |
| 3682 | + def decode_id(_), do: {:error, "Unexpected type when decoding Type10.id"} | |
| 3683 | + | |
| 3684 | + def encode_id(value) when is_integer(value), do: value | |
| 3685 | + def encode_id(_), do: {:error, "Unexpected type when encoding Type10.id"} | |
| 3686 | + | |
| 3651 | 3687 | def decode_name(value) when is_binary(value), do: value |
| 3652 | 3688 | def decode_name(_), do: {:error, "Unexpected type when decoding Type10.name"} |
| 3653 | 3689 | |
| @@ -3665,7 +3701,7 @@ defmodule Type10 do | ||
| 3665 | 3701 | declaration: m["declaration"] && Declaration4.from_map(m["declaration"]), |
| 3666 | 3702 | element_type: m["elementType"] && ElementType.from_map(m["elementType"]), |
| 3667 | 3703 | elements: m["elements"] && Enum.map(m["elements"], &ExtendedBy.from_map/1), |
| 3668 | - id: m["id"], | |
| 3704 | + id: m["id"] && decode_id(m["id"]), | |
| 3669 | 3705 | name: m["name"] && decode_name(m["name"]), |
| 3670 | 3706 | type: TypeEnum.decode(m["type"]), |
| 3671 | 3707 | type_arguments: m["typeArguments"] && Enum.map(m["typeArguments"], &TypeArgument2.from_map/1), |
| @@ -3713,6 +3749,12 @@ defmodule Type12 do | ||
| 3713 | 3749 | type: String.t() |
| 3714 | 3750 | } |
| 3715 | 3751 | |
| 3752 | + def decode_id(value) when is_integer(value), do: value | |
| 3753 | + def decode_id(_), do: {:error, "Unexpected type when decoding Type12.id"} | |
| 3754 | + | |
| 3755 | + def encode_id(value) when is_integer(value), do: value | |
| 3756 | + def encode_id(_), do: {:error, "Unexpected type when encoding Type12.id"} | |
| 3757 | + | |
| 3716 | 3758 | def decode_operator(value) when is_binary(value), do: value |
| 3717 | 3759 | def decode_operator(_), do: {:error, "Unexpected type when decoding Type12.operator"} |
| 3718 | 3760 | |
| @@ -3727,7 +3769,7 @@ defmodule Type12 do | ||
| 3727 | 3769 | |
| 3728 | 3770 | def from_map(m) do |
| 3729 | 3771 | %Type12{ |
| 3730 | - id: m["id"], | |
| 3772 | + id: m["id"] && decode_id(m["id"]), | |
| 3731 | 3773 | name: m["name"] && Name.decode(m["name"]), |
| 3732 | 3774 | operator: m["operator"] && decode_operator(m["operator"]), |
| 3733 | 3775 | target: m["target"] && ElementType.from_map(m["target"]), |
Test case
3 generated files · +712 −6test/inputs/json/priority/combinations1.json
Melixirdefault / QuickType.ex+48 −6
| @@ -246,6 +246,20 @@ defmodule ChemotherapeuticClass do | ||
| 246 | 246 | unshy: nil | nil |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 250 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 251 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding ChemotherapeuticClass.catharticalness"} | |
| 252 | + | |
| 253 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 254 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 255 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding ChemotherapeuticClass.catharticalness"} | |
| 256 | + | |
| 257 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 258 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding ChemotherapeuticClass.chirotherium"} | |
| 259 | + | |
| 260 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 261 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding ChemotherapeuticClass.chirotherium"} | |
| 262 | + | |
| 249 | 263 | def decode_disdiapason(value) when is_binary(value), do: value |
| 250 | 264 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding ChemotherapeuticClass.disdiapason"} |
| 251 | 265 | |
| @@ -257,10 +271,10 @@ defmodule ChemotherapeuticClass do | ||
| 257 | 271 | angioneurotic: m["angioneurotic"], |
| 258 | 272 | availment: m["availment"], |
| 259 | 273 | bladelet: m["bladelet"], |
| 260 | - catharticalness: m["catharticalness"], | |
| 274 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 261 | 275 | caulis: m["caulis"], |
| 262 | 276 | chalcus: m["chalcus"], |
| 263 | - chirotherium: m["Chirotherium"], | |
| 277 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 264 | 278 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 265 | 279 | enteradenological: m["enteradenological"], |
| 266 | 280 | homocerc: m["homocerc"], |
| @@ -433,6 +447,20 @@ defmodule CoadjustClass do | ||
| 433 | 447 | unchargeable: nil | nil |
| 434 | 448 | } |
| 435 | 449 | |
| 450 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 451 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 452 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding CoadjustClass.catharticalness"} | |
| 453 | + | |
| 454 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 455 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 456 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding CoadjustClass.catharticalness"} | |
| 457 | + | |
| 458 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 459 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding CoadjustClass.chirotherium"} | |
| 460 | + | |
| 461 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 462 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding CoadjustClass.chirotherium"} | |
| 463 | + | |
| 436 | 464 | def decode_disdiapason(value) when is_binary(value), do: value |
| 437 | 465 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding CoadjustClass.disdiapason"} |
| 438 | 466 | |
| @@ -443,8 +471,8 @@ defmodule CoadjustClass do | ||
| 443 | 471 | %CoadjustClass{ |
| 444 | 472 | amidosulphonal: m["amidosulphonal"], |
| 445 | 473 | benny: m["Benny"], |
| 446 | - catharticalness: m["catharticalness"], | |
| 447 | - chirotherium: m["Chirotherium"], | |
| 474 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 475 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 448 | 476 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 449 | 477 | ensnare: m["ensnare"], |
| 450 | 478 | homocerc: m["homocerc"], |
| @@ -2013,6 +2041,20 @@ defmodule HemocoeleClass do | ||
| 2013 | 2041 | walt: nil | nil |
| 2014 | 2042 | } |
| 2015 | 2043 | |
| 2044 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 2045 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 2046 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding HemocoeleClass.catharticalness"} | |
| 2047 | + | |
| 2048 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 2049 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 2050 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding HemocoeleClass.catharticalness"} | |
| 2051 | + | |
| 2052 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 2053 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding HemocoeleClass.chirotherium"} | |
| 2054 | + | |
| 2055 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 2056 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding HemocoeleClass.chirotherium"} | |
| 2057 | + | |
| 2016 | 2058 | def decode_disdiapason(value) when is_binary(value), do: value |
| 2017 | 2059 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding HemocoeleClass.disdiapason"} |
| 2018 | 2060 | |
| @@ -2025,8 +2067,8 @@ defmodule HemocoeleClass do | ||
| 2025 | 2067 | amelification: m["amelification"], |
| 2026 | 2068 | autobiographic: m["autobiographic"], |
| 2027 | 2069 | berat: m["berat"], |
| 2028 | - catharticalness: m["catharticalness"], | |
| 2029 | - chirotherium: m["Chirotherium"], | |
| 2070 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 2071 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 2030 | 2072 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 2031 | 2073 | disproportionably: m["disproportionably"], |
| 2032 | 2074 | erythrite: m["erythrite"], |
Atypescript-effect-schemajust-schema-true--8c4ca457bcba / TopLevel.ts+332 −0
| @@ -0,0 +1,332 @@ | ||
| 1 | +import * as S from "effect/Schema"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export class Interacinar extends S.Class<Interacinar>("Interacinar")({ | |
| 5 | + "assapan": S.Number, | |
| 6 | + "benefactorship": S.Boolean, | |
| 7 | + "triseriatim": S.String, | |
| 8 | + "tubbing": S.Int, | |
| 9 | + "untrimmed": S.Null, | |
| 10 | +}) {} | |
| 11 | + | |
| 12 | +export class HemocoeleClass extends S.Class<HemocoeleClass>("HemocoeleClass")({ | |
| 13 | + "acrogamy": S.optional(S.Null), | |
| 14 | + "amelification": S.optional(S.Null), | |
| 15 | + "autobiographic": S.optional(S.Null), | |
| 16 | + "berat": S.optional(S.Null), | |
| 17 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 18 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 19 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 20 | + "disproportionably": S.optional(S.Null), | |
| 21 | + "erythrite": S.optional(S.Null), | |
| 22 | + "graphic": S.optional(S.Null), | |
| 23 | + "hepatological": S.optional(S.Null), | |
| 24 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 25 | + "incommensurably": S.optional(S.Null), | |
| 26 | + "misaffirm": S.optional(S.Null), | |
| 27 | + "nonbookish": S.optional(S.Null), | |
| 28 | + "pocketbook": S.optional(S.Null), | |
| 29 | + "sclerometric": S.optional(S.Null), | |
| 30 | + "stambouline": S.optional(S.Null), | |
| 31 | + "stickpin": S.optional(S.Null), | |
| 32 | + "tubulure": S.optional(S.Null), | |
| 33 | + "undelated": S.optional(S.Null), | |
| 34 | + "unsalt": S.optional(S.Null), | |
| 35 | + "untutelar": S.optional(S.Null), | |
| 36 | + "vagrant": S.optional(S.Null), | |
| 37 | + "Walt": S.optional(S.Null), | |
| 38 | +}) {} | |
| 39 | + | |
| 40 | +export class FlagmakingClass extends S.Class<FlagmakingClass>("FlagmakingClass")({ | |
| 41 | + "albarco": S.Null, | |
| 42 | + "Bunodonta": S.Null, | |
| 43 | + "hornify": S.Null, | |
| 44 | + "Hydrocorisae": S.Null, | |
| 45 | + "hypoglossus": S.Null, | |
| 46 | + "inexpiably": S.Null, | |
| 47 | + "ingratitude": S.Null, | |
| 48 | + "ladyfly": S.Null, | |
| 49 | + "medicament": S.Null, | |
| 50 | + "monogrammatic": S.Null, | |
| 51 | + "nobbut": S.Null, | |
| 52 | + "Notacanthidae": S.Null, | |
| 53 | + "polyplacophore": S.Null, | |
| 54 | + "proexercise": S.Null, | |
| 55 | + "protoplast": S.Null, | |
| 56 | + "puzzling": S.Null, | |
| 57 | + "splanchnoskeleton": S.Null, | |
| 58 | + "unloveliness": S.Null, | |
| 59 | + "unquarantined": S.Null, | |
| 60 | + "unrenounceable": S.Null, | |
| 61 | +}) {} | |
| 62 | + | |
| 63 | +export class FenkClass extends S.Class<FenkClass>("FenkClass")({ | |
| 64 | + "apoise": S.Null, | |
| 65 | + "astronomize": S.Null, | |
| 66 | + "cockhorse": S.Null, | |
| 67 | + "copular": S.Null, | |
| 68 | + "Dagomba": S.Null, | |
| 69 | + "draffy": S.Null, | |
| 70 | + "foreigner": S.Null, | |
| 71 | + "Guyandot": S.Null, | |
| 72 | + "neurogliosis": S.Null, | |
| 73 | + "osmious": S.Null, | |
| 74 | + "palpitate": S.Null, | |
| 75 | + "rebukeable": S.Null, | |
| 76 | + "Reinwardtia": S.Null, | |
| 77 | + "reservatory": S.Null, | |
| 78 | + "scalt": S.Null, | |
| 79 | + "scripturalize": S.Null, | |
| 80 | + "tintometer": S.Null, | |
| 81 | + "Tritoness": S.Null, | |
| 82 | + "undergrade": S.Null, | |
| 83 | + "undermountain": S.Null, | |
| 84 | +}) {} | |
| 85 | + | |
| 86 | +export class FagginglyClass extends S.Class<FagginglyClass>("FagginglyClass")({ | |
| 87 | + "abranchian": S.Null, | |
| 88 | + "aculeiform": S.Null, | |
| 89 | + "adiaphoristic": S.Null, | |
| 90 | + "adoptionism": S.Null, | |
| 91 | + "Anglic": S.Null, | |
| 92 | + "antrotomy": S.Null, | |
| 93 | + "coerciveness": S.Null, | |
| 94 | + "decorist": S.Null, | |
| 95 | + "duckhood": S.Null, | |
| 96 | + "Heteromeri": S.Null, | |
| 97 | + "hypochnose": S.Null, | |
| 98 | + "lochage": S.Null, | |
| 99 | + "melee": S.Null, | |
| 100 | + "nonconformitant": S.Null, | |
| 101 | + "Poinsettia": S.Null, | |
| 102 | + "putatively": S.Null, | |
| 103 | + "semivolatile": S.Null, | |
| 104 | + "soleas": S.Null, | |
| 105 | + "unfastenable": S.Null, | |
| 106 | + "unmillinered": S.Null, | |
| 107 | +}) {} | |
| 108 | + | |
| 109 | +export class Encrust extends S.Class<Encrust>("Encrust")({ | |
| 110 | + "comradely": S.Null, | |
| 111 | + "diacanthous": S.Null, | |
| 112 | + "feminineness": S.Null, | |
| 113 | + "gossamered": S.Null, | |
| 114 | + "Hibernia": S.Null, | |
| 115 | + "Hibiscus": S.Null, | |
| 116 | + "Lepidosauria": S.Null, | |
| 117 | + "lollingly": S.Null, | |
| 118 | + "manager": S.Null, | |
| 119 | + "mechanic": S.Null, | |
| 120 | + "overminuteness": S.Null, | |
| 121 | + "papelonne": S.Null, | |
| 122 | + "plebification": S.Null, | |
| 123 | + "pugmiller": S.Null, | |
| 124 | + "recoveror": S.Null, | |
| 125 | + "spermatoblastic": S.Null, | |
| 126 | + "Syllidae": S.Null, | |
| 127 | + "ungyved": S.Null, | |
| 128 | + "whirlabout": S.Null, | |
| 129 | + "woodenware": S.Null, | |
| 130 | +}) {} | |
| 131 | + | |
| 132 | +export class DiaereseClass extends S.Class<DiaereseClass>("DiaereseClass")({ | |
| 133 | + "Amoreuxia": S.Null, | |
| 134 | + "ani": S.Null, | |
| 135 | + "bernicle": S.Null, | |
| 136 | + "blackwasher": S.Null, | |
| 137 | + "blowhard": S.Null, | |
| 138 | + "broma": S.Null, | |
| 139 | + "closecross": S.Null, | |
| 140 | + "congregationalism": S.Null, | |
| 141 | + "grayly": S.Null, | |
| 142 | + "historically": S.Null, | |
| 143 | + "hoast": S.Null, | |
| 144 | + "irretentive": S.Null, | |
| 145 | + "parcener": S.Null, | |
| 146 | + "pedder": S.Null, | |
| 147 | + "pseudoanatomic": S.Null, | |
| 148 | + "rhizocarpian": S.Null, | |
| 149 | + "samel": S.Null, | |
| 150 | + "silker": S.Null, | |
| 151 | + "subdentated": S.Null, | |
| 152 | + "subobscure": S.Null, | |
| 153 | +}) {} | |
| 154 | + | |
| 155 | +export class DeruralizeClass extends S.Class<DeruralizeClass>("DeruralizeClass")({ | |
| 156 | + "bockerel": S.Null, | |
| 157 | + "boulder": S.Null, | |
| 158 | + "churrus": S.Null, | |
| 159 | + "counterdigged": S.Null, | |
| 160 | + "dialogite": S.Null, | |
| 161 | + "digenic": S.Null, | |
| 162 | + "dunbird": S.Null, | |
| 163 | + "ergatogyne": S.Null, | |
| 164 | + "fiendful": S.Null, | |
| 165 | + "jackrod": S.Null, | |
| 166 | + "Jehovistic": S.Null, | |
| 167 | + "Paninean": S.Null, | |
| 168 | + "panther": S.Null, | |
| 169 | + "placentigerous": S.Null, | |
| 170 | + "Romney": S.Null, | |
| 171 | + "sparm": S.Null, | |
| 172 | + "tocsin": S.Null, | |
| 173 | + "unnicked": S.Null, | |
| 174 | + "unstavable": S.Null, | |
| 175 | + "windfirm": S.Null, | |
| 176 | +}) {} | |
| 177 | + | |
| 178 | +export class CredulityClass extends S.Class<CredulityClass>("CredulityClass")({ | |
| 179 | + "ammonolytic": S.Null, | |
| 180 | + "bushmaster": S.Null, | |
| 181 | + "considering": S.Null, | |
| 182 | + "consuetudinary": S.Null, | |
| 183 | + "embarras": S.Null, | |
| 184 | + "fineness": S.Null, | |
| 185 | + "flaithship": S.Null, | |
| 186 | + "Flavia": S.Null, | |
| 187 | + "gruffly": S.Null, | |
| 188 | + "Hedychium": S.Null, | |
| 189 | + "leadwort": S.Null, | |
| 190 | + "overseriously": S.Null, | |
| 191 | + "parabola": S.Null, | |
| 192 | + "pectinatodenticulate": S.Null, | |
| 193 | + "Popean": S.Null, | |
| 194 | + "pornocrat": S.Null, | |
| 195 | + "quadrisect": S.Null, | |
| 196 | + "seriality": S.Null, | |
| 197 | + "vamphorn": S.Null, | |
| 198 | + "wharp": S.Null, | |
| 199 | +}) {} | |
| 200 | + | |
| 201 | +export class CoadjustClass extends S.Class<CoadjustClass>("CoadjustClass")({ | |
| 202 | + "amidosulphonal": S.optional(S.Null), | |
| 203 | + "Benny": S.optional(S.Null), | |
| 204 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 205 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 206 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 207 | + "ensnare": S.optional(S.Null), | |
| 208 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 209 | + "hybridizer": S.optional(S.Null), | |
| 210 | + "leastwise": S.optional(S.Null), | |
| 211 | + "lof": S.optional(S.Null), | |
| 212 | + "monkhood": S.optional(S.Null), | |
| 213 | + "Netherlandish": S.optional(S.Null), | |
| 214 | + "nonbookish": S.optional(S.Null), | |
| 215 | + "peonism": S.optional(S.Null), | |
| 216 | + "Phonelescope": S.optional(S.Null), | |
| 217 | + "porphyrogeniture": S.optional(S.Null), | |
| 218 | + "preindemnify": S.optional(S.Null), | |
| 219 | + "rosal": S.optional(S.Null), | |
| 220 | + "scalenous": S.optional(S.Null), | |
| 221 | + "scopine": S.optional(S.Null), | |
| 222 | + "Sedaceae": S.optional(S.Null), | |
| 223 | + "suberinize": S.optional(S.Null), | |
| 224 | + "symbiot": S.optional(S.Null), | |
| 225 | + "tablefellow": S.optional(S.Null), | |
| 226 | + "unchargeable": S.optional(S.Null), | |
| 227 | +}) {} | |
| 228 | + | |
| 229 | +export class CimeliaClass extends S.Class<CimeliaClass>("CimeliaClass")({ | |
| 230 | + "catharticalness": S.Number, | |
| 231 | + "Chirotherium": S.Int, | |
| 232 | + "disdiapason": S.String, | |
| 233 | + "homocerc": S.Boolean, | |
| 234 | + "nonbookish": S.Null, | |
| 235 | +}) {} | |
| 236 | + | |
| 237 | +export class ChemotherapeuticClass extends S.Class<ChemotherapeuticClass>("ChemotherapeuticClass")({ | |
| 238 | + "angioneurotic": S.optional(S.Null), | |
| 239 | + "availment": S.optional(S.Null), | |
| 240 | + "bladelet": S.optional(S.Null), | |
| 241 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 242 | + "caulis": S.optional(S.Null), | |
| 243 | + "chalcus": S.optional(S.Null), | |
| 244 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 245 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 246 | + "enteradenological": S.optional(S.Null), | |
| 247 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 248 | + "imporosity": S.optional(S.Null), | |
| 249 | + "insistently": S.optional(S.Null), | |
| 250 | + "intraparietal": S.optional(S.Null), | |
| 251 | + "ivied": S.optional(S.Null), | |
| 252 | + "Maureen": S.optional(S.Null), | |
| 253 | + "nonbookish": S.optional(S.Null), | |
| 254 | + "nostochine": S.optional(S.Null), | |
| 255 | + "nutcracker": S.optional(S.Null), | |
| 256 | + "ofttimes": S.optional(S.Null), | |
| 257 | + "phenocryst": S.optional(S.Null), | |
| 258 | + "precoincident": S.optional(S.Null), | |
| 259 | + "ramiferous": S.optional(S.Null), | |
| 260 | + "stagmometer": S.optional(S.Null), | |
| 261 | + "tetherball": S.optional(S.Null), | |
| 262 | + "unshy": S.optional(S.Null), | |
| 263 | +}) {} | |
| 264 | + | |
| 265 | +export class CerographClass extends S.Class<CerographClass>("CerographClass")({ | |
| 266 | + "apotropaion": S.Null, | |
| 267 | + "casuary": S.Null, | |
| 268 | + "creaker": S.Null, | |
| 269 | + "disqualification": S.Null, | |
| 270 | + "imperatorious": S.Null, | |
| 271 | + "impermeabilize": S.Null, | |
| 272 | + "metastoma": S.Null, | |
| 273 | + "noctidiurnal": S.Null, | |
| 274 | + "nonreserve": S.Null, | |
| 275 | + "ophthalmotonometry": S.Null, | |
| 276 | + "pailful": S.Null, | |
| 277 | + "pigfish": S.Null, | |
| 278 | + "pongee": S.Null, | |
| 279 | + "prosodical": S.Null, | |
| 280 | + "scrofuloderm": S.Null, | |
| 281 | + "storekeeping": S.Null, | |
| 282 | + "therologist": S.Null, | |
| 283 | + "Tolowa": S.Null, | |
| 284 | + "tradeful": S.Null, | |
| 285 | + "unriveting": S.Null, | |
| 286 | +}) {} | |
| 287 | + | |
| 288 | +export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | |
| 289 | + "centrodesmose": S.String, | |
| 290 | + "cerograph": S.Array(S.Union(S.String, CerographClass, S.Null)), | |
| 291 | + "chemotherapeutics": S.Array(S.Union(S.Int, ChemotherapeuticClass)), | |
| 292 | + "cimelia": S.Array(S.Union(S.Array(S.Int), CimeliaClass, S.Null)), | |
| 293 | + "citrated": S.Int, | |
| 294 | + "clinodome": S.Array(S.Union(S.Number, S.String)), | |
| 295 | + "coadjust": S.Array(S.Union(S.Number, CoadjustClass)), | |
| 296 | + "consilience": S.Array(S.Union(S.Number, S.Record({ key: S.String, value: S.Int}))), | |
| 297 | + "constructor": S.Array(S.Union(S.Boolean, S.Record({ key: S.String, value: S.NullOr(S.Int)}))), | |
| 298 | + "continuative": S.Array(S.Union(S.Record({ key: S.String, value: S.Int}), S.String)), | |
| 299 | + "credulity": S.Array(S.Union(S.Int, S.String, CredulityClass)), | |
| 300 | + "creviced": S.Array(S.Union(S.Boolean, S.Record({ key: S.String, value: S.Int}), S.String)), | |
| 301 | + "cubiculum": S.Array(S.Array(S.NullOr(S.Int))), | |
| 302 | + "deruralize": S.Array(S.Union(S.Array(S.Null), S.Boolean, DeruralizeClass)), | |
| 303 | + "diaereses": S.Array(S.Union(S.Array(S.Int), S.Boolean, DiaereseClass)), | |
| 304 | + "dissolution": S.Array(S.NullOr(S.Array(S.Null))), | |
| 305 | + "downstroke": S.Array(S.Union(S.Array(S.Null), S.Boolean, S.String)), | |
| 306 | + "electrotautomerism": S.Array(S.NullOr(S.Number)), | |
| 307 | + "eleutheromania": S.Array(S.Union(S.Number, S.Record({ key: S.String, value: S.Int}), S.String)), | |
| 308 | + "encrust": Encrust, | |
| 309 | + "entomoid": S.Array(S.Union(S.Int, CimeliaClass)), | |
| 310 | + "epipaleolithic": S.Array(S.Union(S.Array(S.Int), S.Number)), | |
| 311 | + "expropriable": S.Array(S.Union(S.Array(S.Null), S.Number, CimeliaClass)), | |
| 312 | + "faggingly": S.Array(S.Union(S.Number, FagginglyClass)), | |
| 313 | + "fenks": S.Array(S.Union(S.String, FenkClass)), | |
| 314 | + "flagmaking": S.Array(S.Union(S.Boolean, S.Number, FlagmakingClass)), | |
| 315 | + "fluorometer": S.Array(S.Union(S.Int, S.String, S.Null)), | |
| 316 | + "fulsome": S.Array(S.NullOr(S.Int)), | |
| 317 | + "fuzzy": S.Array(S.Union(S.Int, S.Record({ key: S.String, value: S.NullOr(S.Int)}))), | |
| 318 | + "gardenwards": S.Array(S.Union(S.Array(S.Int), S.Boolean, S.String)), | |
| 319 | + "generalissimo": S.Array(S.Union(S.Boolean, S.Record({ key: S.String, value: S.Int}), S.Null)), | |
| 320 | + "habeas": S.Array(S.NullOr(S.Record({ key: S.String, value: S.Int}))), | |
| 321 | + "hemicrystalline": S.Array(S.Union(S.String, CimeliaClass)), | |
| 322 | + "hemocoele": S.Array(S.Union(S.Array(S.Int), HemocoeleClass)), | |
| 323 | + "hoister": S.Array(S.Union(S.String, CimeliaClass, S.Null)), | |
| 324 | + "hyperpiesis": S.Array(S.Union(S.Array(S.Null), CimeliaClass, S.Null)), | |
| 325 | + "hyppish": S.Array(S.Union(S.Boolean, S.String, S.Null)), | |
| 326 | + "idealizer": S.Array(S.Union(S.Array(S.Null), S.Int, CimeliaClass)), | |
| 327 | + "incrustator": S.Array(S.Union(S.Array(S.Int), S.Int, S.String)), | |
| 328 | + "intentiveness": S.Array(S.Union(S.Number, S.String, CimeliaClass)), | |
| 329 | + "interacinar": Interacinar, | |
| 330 | + "intercorrelation": S.Array(S.NullOr(S.Array(S.Int))), | |
| 331 | + "jacutinga": S.Array(S.Union(S.Array(S.Int), S.Record({ key: S.String, value: S.NullOr(S.Int)}))), | |
| 332 | +}) {} |
Atypescript-zodjust-schema-true--8c4ca457bcba / TopLevel.ts+332 −0
| @@ -0,0 +1,332 @@ | ||
| 1 | +import * as z from "zod"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export const CerographClassSchema = z.object({ | |
| 5 | + "apotropaion": z.null(), | |
| 6 | + "casuary": z.null(), | |
| 7 | + "creaker": z.null(), | |
| 8 | + "disqualification": z.null(), | |
| 9 | + "imperatorious": z.null(), | |
| 10 | + "impermeabilize": z.null(), | |
| 11 | + "metastoma": z.null(), | |
| 12 | + "noctidiurnal": z.null(), | |
| 13 | + "nonreserve": z.null(), | |
| 14 | + "ophthalmotonometry": z.null(), | |
| 15 | + "pailful": z.null(), | |
| 16 | + "pigfish": z.null(), | |
| 17 | + "pongee": z.null(), | |
| 18 | + "prosodical": z.null(), | |
| 19 | + "scrofuloderm": z.null(), | |
| 20 | + "storekeeping": z.null(), | |
| 21 | + "therologist": z.null(), | |
| 22 | + "Tolowa": z.null(), | |
| 23 | + "tradeful": z.null(), | |
| 24 | + "unriveting": z.null(), | |
| 25 | +}); | |
| 26 | + | |
| 27 | +export const ChemotherapeuticClassSchema = z.object({ | |
| 28 | + "angioneurotic": z.null().optional(), | |
| 29 | + "availment": z.null().optional(), | |
| 30 | + "bladelet": z.null().optional(), | |
| 31 | + "catharticalness": z.number().optional(), | |
| 32 | + "caulis": z.null().optional(), | |
| 33 | + "chalcus": z.null().optional(), | |
| 34 | + "Chirotherium": z.number().int().optional(), | |
| 35 | + "disdiapason": z.string().optional(), | |
| 36 | + "enteradenological": z.null().optional(), | |
| 37 | + "homocerc": z.boolean().optional(), | |
| 38 | + "imporosity": z.null().optional(), | |
| 39 | + "insistently": z.null().optional(), | |
| 40 | + "intraparietal": z.null().optional(), | |
| 41 | + "ivied": z.null().optional(), | |
| 42 | + "Maureen": z.null().optional(), | |
| 43 | + "nonbookish": z.null().optional(), | |
| 44 | + "nostochine": z.null().optional(), | |
| 45 | + "nutcracker": z.null().optional(), | |
| 46 | + "ofttimes": z.null().optional(), | |
| 47 | + "phenocryst": z.null().optional(), | |
| 48 | + "precoincident": z.null().optional(), | |
| 49 | + "ramiferous": z.null().optional(), | |
| 50 | + "stagmometer": z.null().optional(), | |
| 51 | + "tetherball": z.null().optional(), | |
| 52 | + "unshy": z.null().optional(), | |
| 53 | +}); | |
| 54 | + | |
| 55 | +export const CimeliaClassSchema = z.object({ | |
| 56 | + "catharticalness": z.number(), | |
| 57 | + "Chirotherium": z.number().int(), | |
| 58 | + "disdiapason": z.string(), | |
| 59 | + "homocerc": z.boolean(), | |
| 60 | + "nonbookish": z.null(), | |
| 61 | +}); | |
| 62 | + | |
| 63 | +export const CoadjustClassSchema = z.object({ | |
| 64 | + "amidosulphonal": z.null().optional(), | |
| 65 | + "Benny": z.null().optional(), | |
| 66 | + "catharticalness": z.number().optional(), | |
| 67 | + "Chirotherium": z.number().int().optional(), | |
| 68 | + "disdiapason": z.string().optional(), | |
| 69 | + "ensnare": z.null().optional(), | |
| 70 | + "homocerc": z.boolean().optional(), | |
| 71 | + "hybridizer": z.null().optional(), | |
| 72 | + "leastwise": z.null().optional(), | |
| 73 | + "lof": z.null().optional(), | |
| 74 | + "monkhood": z.null().optional(), | |
| 75 | + "Netherlandish": z.null().optional(), | |
| 76 | + "nonbookish": z.null().optional(), | |
| 77 | + "peonism": z.null().optional(), | |
| 78 | + "Phonelescope": z.null().optional(), | |
| 79 | + "porphyrogeniture": z.null().optional(), | |
| 80 | + "preindemnify": z.null().optional(), | |
| 81 | + "rosal": z.null().optional(), | |
| 82 | + "scalenous": z.null().optional(), | |
| 83 | + "scopine": z.null().optional(), | |
| 84 | + "Sedaceae": z.null().optional(), | |
| 85 | + "suberinize": z.null().optional(), | |
| 86 | + "symbiot": z.null().optional(), | |
| 87 | + "tablefellow": z.null().optional(), | |
| 88 | + "unchargeable": z.null().optional(), | |
| 89 | +}); | |
| 90 | + | |
| 91 | +export const CredulityClassSchema = z.object({ | |
| 92 | + "ammonolytic": z.null(), | |
| 93 | + "bushmaster": z.null(), | |
| 94 | + "considering": z.null(), | |
| 95 | + "consuetudinary": z.null(), | |
| 96 | + "embarras": z.null(), | |
| 97 | + "fineness": z.null(), | |
| 98 | + "flaithship": z.null(), | |
| 99 | + "Flavia": z.null(), | |
| 100 | + "gruffly": z.null(), | |
| 101 | + "Hedychium": z.null(), | |
| 102 | + "leadwort": z.null(), | |
| 103 | + "overseriously": z.null(), | |
| 104 | + "parabola": z.null(), | |
| 105 | + "pectinatodenticulate": z.null(), | |
| 106 | + "Popean": z.null(), | |
| 107 | + "pornocrat": z.null(), | |
| 108 | + "quadrisect": z.null(), | |
| 109 | + "seriality": z.null(), | |
| 110 | + "vamphorn": z.null(), | |
| 111 | + "wharp": z.null(), | |
| 112 | +}); | |
| 113 | + | |
| 114 | +export const DeruralizeClassSchema = z.object({ | |
| 115 | + "bockerel": z.null(), | |
| 116 | + "boulder": z.null(), | |
| 117 | + "churrus": z.null(), | |
| 118 | + "counterdigged": z.null(), | |
| 119 | + "dialogite": z.null(), | |
| 120 | + "digenic": z.null(), | |
| 121 | + "dunbird": z.null(), | |
| 122 | + "ergatogyne": z.null(), | |
| 123 | + "fiendful": z.null(), | |
| 124 | + "jackrod": z.null(), | |
| 125 | + "Jehovistic": z.null(), | |
| 126 | + "Paninean": z.null(), | |
| 127 | + "panther": z.null(), | |
| 128 | + "placentigerous": z.null(), | |
| 129 | + "Romney": z.null(), | |
| 130 | + "sparm": z.null(), | |
| 131 | + "tocsin": z.null(), | |
| 132 | + "unnicked": z.null(), | |
| 133 | + "unstavable": z.null(), | |
| 134 | + "windfirm": z.null(), | |
| 135 | +}); | |
| 136 | + | |
| 137 | +export const DiaereseClassSchema = z.object({ | |
| 138 | + "Amoreuxia": z.null(), | |
| 139 | + "ani": z.null(), | |
| 140 | + "bernicle": z.null(), | |
| 141 | + "blackwasher": z.null(), | |
| 142 | + "blowhard": z.null(), | |
| 143 | + "broma": z.null(), | |
| 144 | + "closecross": z.null(), | |
| 145 | + "congregationalism": z.null(), | |
| 146 | + "grayly": z.null(), | |
| 147 | + "historically": z.null(), | |
| 148 | + "hoast": z.null(), | |
| 149 | + "irretentive": z.null(), | |
| 150 | + "parcener": z.null(), | |
| 151 | + "pedder": z.null(), | |
| 152 | + "pseudoanatomic": z.null(), | |
| 153 | + "rhizocarpian": z.null(), | |
| 154 | + "samel": z.null(), | |
| 155 | + "silker": z.null(), | |
| 156 | + "subdentated": z.null(), | |
| 157 | + "subobscure": z.null(), | |
| 158 | +}); | |
| 159 | + | |
| 160 | +export const EncrustSchema = z.object({ | |
| 161 | + "comradely": z.null(), | |
| 162 | + "diacanthous": z.null(), | |
| 163 | + "feminineness": z.null(), | |
| 164 | + "gossamered": z.null(), | |
| 165 | + "Hibernia": z.null(), | |
| 166 | + "Hibiscus": z.null(), | |
| 167 | + "Lepidosauria": z.null(), | |
| 168 | + "lollingly": z.null(), | |
| 169 | + "manager": z.null(), | |
| 170 | + "mechanic": z.null(), | |
| 171 | + "overminuteness": z.null(), | |
| 172 | + "papelonne": z.null(), | |
| 173 | + "plebification": z.null(), | |
| 174 | + "pugmiller": z.null(), | |
| 175 | + "recoveror": z.null(), | |
| 176 | + "spermatoblastic": z.null(), | |
| 177 | + "Syllidae": z.null(), | |
| 178 | + "ungyved": z.null(), | |
| 179 | + "whirlabout": z.null(), | |
| 180 | + "woodenware": z.null(), | |
| 181 | +}); | |
| 182 | + | |
| 183 | +export const FagginglyClassSchema = z.object({ | |
| 184 | + "abranchian": z.null(), | |
| 185 | + "aculeiform": z.null(), | |
| 186 | + "adiaphoristic": z.null(), | |
| 187 | + "adoptionism": z.null(), | |
| 188 | + "Anglic": z.null(), | |
| 189 | + "antrotomy": z.null(), | |
| 190 | + "coerciveness": z.null(), | |
| 191 | + "decorist": z.null(), | |
| 192 | + "duckhood": z.null(), | |
| 193 | + "Heteromeri": z.null(), | |
| 194 | + "hypochnose": z.null(), | |
| 195 | + "lochage": z.null(), | |
| 196 | + "melee": z.null(), | |
| 197 | + "nonconformitant": z.null(), | |
| 198 | + "Poinsettia": z.null(), | |
| 199 | + "putatively": z.null(), | |
| 200 | + "semivolatile": z.null(), | |
| 201 | + "soleas": z.null(), | |
| 202 | + "unfastenable": z.null(), | |
| 203 | + "unmillinered": z.null(), | |
| 204 | +}); | |
| 205 | + | |
| 206 | +export const FenkClassSchema = z.object({ | |
| 207 | + "apoise": z.null(), | |
| 208 | + "astronomize": z.null(), | |
| 209 | + "cockhorse": z.null(), | |
| 210 | + "copular": z.null(), | |
| 211 | + "Dagomba": z.null(), | |
| 212 | + "draffy": z.null(), | |
| 213 | + "foreigner": z.null(), | |
| 214 | + "Guyandot": z.null(), | |
| 215 | + "neurogliosis": z.null(), | |
| 216 | + "osmious": z.null(), | |
| 217 | + "palpitate": z.null(), | |
| 218 | + "rebukeable": z.null(), | |
| 219 | + "Reinwardtia": z.null(), | |
| 220 | + "reservatory": z.null(), | |
| 221 | + "scalt": z.null(), | |
| 222 | + "scripturalize": z.null(), | |
| 223 | + "tintometer": z.null(), | |
| 224 | + "Tritoness": z.null(), | |
| 225 | + "undergrade": z.null(), | |
| 226 | + "undermountain": z.null(), | |
| 227 | +}); | |
| 228 | + | |
| 229 | +export const FlagmakingClassSchema = z.object({ | |
| 230 | + "albarco": z.null(), | |
| 231 | + "Bunodonta": z.null(), | |
| 232 | + "hornify": z.null(), | |
| 233 | + "Hydrocorisae": z.null(), | |
| 234 | + "hypoglossus": z.null(), | |
| 235 | + "inexpiably": z.null(), | |
| 236 | + "ingratitude": z.null(), | |
| 237 | + "ladyfly": z.null(), | |
| 238 | + "medicament": z.null(), | |
| 239 | + "monogrammatic": z.null(), | |
| 240 | + "nobbut": z.null(), | |
| 241 | + "Notacanthidae": z.null(), | |
| 242 | + "polyplacophore": z.null(), | |
| 243 | + "proexercise": z.null(), | |
| 244 | + "protoplast": z.null(), | |
| 245 | + "puzzling": z.null(), | |
| 246 | + "splanchnoskeleton": z.null(), | |
| 247 | + "unloveliness": z.null(), | |
| 248 | + "unquarantined": z.null(), | |
| 249 | + "unrenounceable": z.null(), | |
| 250 | +}); | |
| 251 | + | |
| 252 | +export const HemocoeleClassSchema = z.object({ | |
| 253 | + "acrogamy": z.null().optional(), | |
| 254 | + "amelification": z.null().optional(), | |
| 255 | + "autobiographic": z.null().optional(), | |
| 256 | + "berat": z.null().optional(), | |
| 257 | + "catharticalness": z.number().optional(), | |
| 258 | + "Chirotherium": z.number().int().optional(), | |
| 259 | + "disdiapason": z.string().optional(), | |
| 260 | + "disproportionably": z.null().optional(), | |
| 261 | + "erythrite": z.null().optional(), | |
| 262 | + "graphic": z.null().optional(), | |
| 263 | + "hepatological": z.null().optional(), | |
| 264 | + "homocerc": z.boolean().optional(), | |
| 265 | + "incommensurably": z.null().optional(), | |
| 266 | + "misaffirm": z.null().optional(), | |
| 267 | + "nonbookish": z.null().optional(), | |
| 268 | + "pocketbook": z.null().optional(), | |
| 269 | + "sclerometric": z.null().optional(), | |
| 270 | + "stambouline": z.null().optional(), | |
| 271 | + "stickpin": z.null().optional(), | |
| 272 | + "tubulure": z.null().optional(), | |
| 273 | + "undelated": z.null().optional(), | |
| 274 | + "unsalt": z.null().optional(), | |
| 275 | + "untutelar": z.null().optional(), | |
| 276 | + "vagrant": z.null().optional(), | |
| 277 | + "Walt": z.null().optional(), | |
| 278 | +}); | |
| 279 | + | |
| 280 | +export const InteracinarSchema = z.object({ | |
| 281 | + "assapan": z.number(), | |
| 282 | + "benefactorship": z.boolean(), | |
| 283 | + "triseriatim": z.string(), | |
| 284 | + "tubbing": z.number().int(), | |
| 285 | + "untrimmed": z.null(), | |
| 286 | +}); | |
| 287 | + | |
| 288 | +export const TopLevelSchema = z.object({ | |
| 289 | + "centrodesmose": z.string(), | |
| 290 | + "cerograph": z.array(z.union([z.null(), CerographClassSchema, z.string()])), | |
| 291 | + "chemotherapeutics": z.array(z.union([ChemotherapeuticClassSchema, z.number().int()])), | |
| 292 | + "cimelia": z.array(z.union([z.null(), z.array(z.number().int()), CimeliaClassSchema])), | |
| 293 | + "citrated": z.number().int(), | |
| 294 | + "clinodome": z.array(z.union([z.number(), z.string()])), | |
| 295 | + "coadjust": z.array(z.union([CoadjustClassSchema, z.number()])), | |
| 296 | + "consilience": z.array(z.union([z.number(), z.record(z.string(), z.number().int())])), | |
| 297 | + "constructor": z.array(z.union([z.boolean(), z.record(z.string(), z.union([z.null(), z.number().int()]))])), | |
| 298 | + "continuative": z.array(z.union([z.record(z.string(), z.number().int()), z.string()])), | |
| 299 | + "credulity": z.array(z.union([CredulityClassSchema, z.number().int(), z.string()])), | |
| 300 | + "creviced": z.array(z.union([z.boolean(), z.record(z.string(), z.number().int()), z.string()])), | |
| 301 | + "cubiculum": z.array(z.array(z.union([z.null(), z.number().int()]))), | |
| 302 | + "deruralize": z.array(z.union([z.array(z.null()), z.boolean(), DeruralizeClassSchema])), | |
| 303 | + "diaereses": z.array(z.union([z.array(z.number().int()), z.boolean(), DiaereseClassSchema])), | |
| 304 | + "dissolution": z.array(z.union([z.null(), z.array(z.null())])), | |
| 305 | + "downstroke": z.array(z.union([z.array(z.null()), z.boolean(), z.string()])), | |
| 306 | + "electrotautomerism": z.array(z.union([z.null(), z.number()])), | |
| 307 | + "eleutheromania": z.array(z.union([z.number(), z.record(z.string(), z.number().int()), z.string()])), | |
| 308 | + "encrust": EncrustSchema, | |
| 309 | + "entomoid": z.array(z.union([CimeliaClassSchema, z.number().int()])), | |
| 310 | + "epipaleolithic": z.array(z.union([z.array(z.number().int()), z.number()])), | |
| 311 | + "expropriable": z.array(z.union([z.array(z.null()), CimeliaClassSchema, z.number()])), | |
| 312 | + "faggingly": z.array(z.union([FagginglyClassSchema, z.number()])), | |
| 313 | + "fenks": z.array(z.union([FenkClassSchema, z.string()])), | |
| 314 | + "flagmaking": z.array(z.union([z.boolean(), FlagmakingClassSchema, z.number()])), | |
| 315 | + "fluorometer": z.array(z.union([z.null(), z.number().int(), z.string()])), | |
| 316 | + "fulsome": z.array(z.union([z.null(), z.number().int()])), | |
| 317 | + "fuzzy": z.array(z.union([z.number().int(), z.record(z.string(), z.union([z.null(), z.number().int()]))])), | |
| 318 | + "gardenwards": z.array(z.union([z.array(z.number().int()), z.boolean(), z.string()])), | |
| 319 | + "generalissimo": z.array(z.union([z.null(), z.boolean(), z.record(z.string(), z.number().int())])), | |
| 320 | + "habeas": z.array(z.union([z.null(), z.record(z.string(), z.number().int())])), | |
| 321 | + "hemicrystalline": z.array(z.union([CimeliaClassSchema, z.string()])), | |
| 322 | + "hemocoele": z.array(z.union([z.array(z.number().int()), HemocoeleClassSchema])), | |
| 323 | + "hoister": z.array(z.union([z.null(), CimeliaClassSchema, z.string()])), | |
| 324 | + "hyperpiesis": z.array(z.union([z.null(), z.array(z.null()), CimeliaClassSchema])), | |
| 325 | + "hyppish": z.array(z.union([z.null(), z.boolean(), z.string()])), | |
| 326 | + "idealizer": z.array(z.union([z.array(z.null()), CimeliaClassSchema, z.number().int()])), | |
| 327 | + "incrustator": z.array(z.union([z.array(z.number().int()), z.number().int(), z.string()])), | |
| 328 | + "intentiveness": z.array(z.union([CimeliaClassSchema, z.number(), z.string()])), | |
| 329 | + "interacinar": InteracinarSchema, | |
| 330 | + "intercorrelation": z.array(z.union([z.null(), z.array(z.number().int())])), | |
| 331 | + "jacutinga": z.array(z.union([z.array(z.number().int()), z.record(z.string(), z.union([z.null(), z.number().int()]))])), | |
| 332 | +}); |
Test case
3 generated files · +1,028 −66test/inputs/json/priority/combinations2.json
Melixirdefault / QuickType.ex+468 −66
| @@ -323,39 +323,173 @@ defmodule Amphithyron do | ||
| 323 | 323 | undecimal: integer() | nil |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | + def decode_akroasis(value) when is_integer(value), do: value | |
| 327 | + def decode_akroasis(_), do: {:error, "Unexpected type when decoding Amphithyron.akroasis"} | |
| 328 | + | |
| 329 | + def encode_akroasis(value) when is_integer(value), do: value | |
| 330 | + def encode_akroasis(_), do: {:error, "Unexpected type when encoding Amphithyron.akroasis"} | |
| 331 | + | |
| 332 | + def decode_antiphonical(value) when is_integer(value), do: value | |
| 333 | + def decode_antiphonical(_), do: {:error, "Unexpected type when decoding Amphithyron.antiphonical"} | |
| 334 | + | |
| 335 | + def encode_antiphonical(value) when is_integer(value), do: value | |
| 336 | + def encode_antiphonical(_), do: {:error, "Unexpected type when encoding Amphithyron.antiphonical"} | |
| 337 | + | |
| 338 | + def decode_basebred(value) when is_integer(value), do: value | |
| 339 | + def decode_basebred(_), do: {:error, "Unexpected type when decoding Amphithyron.basebred"} | |
| 340 | + | |
| 341 | + def encode_basebred(value) when is_integer(value), do: value | |
| 342 | + def encode_basebred(_), do: {:error, "Unexpected type when encoding Amphithyron.basebred"} | |
| 343 | + | |
| 344 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 345 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 346 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding Amphithyron.catharticalness"} | |
| 347 | + | |
| 348 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 349 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 350 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding Amphithyron.catharticalness"} | |
| 351 | + | |
| 352 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 353 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding Amphithyron.chirotherium"} | |
| 354 | + | |
| 355 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 356 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding Amphithyron.chirotherium"} | |
| 357 | + | |
| 358 | + def decode_conductometric(value) when is_integer(value), do: value | |
| 359 | + def decode_conductometric(_), do: {:error, "Unexpected type when decoding Amphithyron.conductometric"} | |
| 360 | + | |
| 361 | + def encode_conductometric(value) when is_integer(value), do: value | |
| 362 | + def encode_conductometric(_), do: {:error, "Unexpected type when encoding Amphithyron.conductometric"} | |
| 363 | + | |
| 326 | 364 | def decode_disdiapason(value) when is_binary(value), do: value |
| 327 | 365 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding Amphithyron.disdiapason"} |
| 328 | 366 | |
| 329 | 367 | def encode_disdiapason(value) when is_binary(value), do: value |
| 330 | 368 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding Amphithyron.disdiapason"} |
| 331 | 369 | |
| 370 | + def decode_ensilation(value) when is_integer(value), do: value | |
| 371 | + def decode_ensilation(_), do: {:error, "Unexpected type when decoding Amphithyron.ensilation"} | |
| 372 | + | |
| 373 | + def encode_ensilation(value) when is_integer(value), do: value | |
| 374 | + def encode_ensilation(_), do: {:error, "Unexpected type when encoding Amphithyron.ensilation"} | |
| 375 | + | |
| 376 | + def decode_eyebolt(value) when is_integer(value), do: value | |
| 377 | + def decode_eyebolt(_), do: {:error, "Unexpected type when decoding Amphithyron.eyebolt"} | |
| 378 | + | |
| 379 | + def encode_eyebolt(value) when is_integer(value), do: value | |
| 380 | + def encode_eyebolt(_), do: {:error, "Unexpected type when encoding Amphithyron.eyebolt"} | |
| 381 | + | |
| 382 | + def decode_fistulated(value) when is_integer(value), do: value | |
| 383 | + def decode_fistulated(_), do: {:error, "Unexpected type when decoding Amphithyron.fistulated"} | |
| 384 | + | |
| 385 | + def encode_fistulated(value) when is_integer(value), do: value | |
| 386 | + def encode_fistulated(_), do: {:error, "Unexpected type when encoding Amphithyron.fistulated"} | |
| 387 | + | |
| 388 | + def decode_heteropod(value) when is_integer(value), do: value | |
| 389 | + def decode_heteropod(_), do: {:error, "Unexpected type when decoding Amphithyron.heteropod"} | |
| 390 | + | |
| 391 | + def encode_heteropod(value) when is_integer(value), do: value | |
| 392 | + def encode_heteropod(_), do: {:error, "Unexpected type when encoding Amphithyron.heteropod"} | |
| 393 | + | |
| 394 | + def decode_juniperus(value) when is_integer(value), do: value | |
| 395 | + def decode_juniperus(_), do: {:error, "Unexpected type when decoding Amphithyron.juniperus"} | |
| 396 | + | |
| 397 | + def encode_juniperus(value) when is_integer(value), do: value | |
| 398 | + def encode_juniperus(_), do: {:error, "Unexpected type when encoding Amphithyron.juniperus"} | |
| 399 | + | |
| 400 | + def decode_labyrinthically(value) when is_integer(value), do: value | |
| 401 | + def decode_labyrinthically(_), do: {:error, "Unexpected type when decoding Amphithyron.labyrinthically"} | |
| 402 | + | |
| 403 | + def encode_labyrinthically(value) when is_integer(value), do: value | |
| 404 | + def encode_labyrinthically(_), do: {:error, "Unexpected type when encoding Amphithyron.labyrinthically"} | |
| 405 | + | |
| 406 | + def decode_martyrization(value) when is_integer(value), do: value | |
| 407 | + def decode_martyrization(_), do: {:error, "Unexpected type when decoding Amphithyron.martyrization"} | |
| 408 | + | |
| 409 | + def encode_martyrization(value) when is_integer(value), do: value | |
| 410 | + def encode_martyrization(_), do: {:error, "Unexpected type when encoding Amphithyron.martyrization"} | |
| 411 | + | |
| 412 | + def decode_mispolicy(value) when is_integer(value), do: value | |
| 413 | + def decode_mispolicy(_), do: {:error, "Unexpected type when decoding Amphithyron.mispolicy"} | |
| 414 | + | |
| 415 | + def encode_mispolicy(value) when is_integer(value), do: value | |
| 416 | + def encode_mispolicy(_), do: {:error, "Unexpected type when encoding Amphithyron.mispolicy"} | |
| 417 | + | |
| 418 | + def decode_multipara(value) when is_integer(value), do: value | |
| 419 | + def decode_multipara(_), do: {:error, "Unexpected type when decoding Amphithyron.multipara"} | |
| 420 | + | |
| 421 | + def encode_multipara(value) when is_integer(value), do: value | |
| 422 | + def encode_multipara(_), do: {:error, "Unexpected type when encoding Amphithyron.multipara"} | |
| 423 | + | |
| 424 | + def decode_nazirite(value) when is_integer(value), do: value | |
| 425 | + def decode_nazirite(_), do: {:error, "Unexpected type when decoding Amphithyron.nazirite"} | |
| 426 | + | |
| 427 | + def encode_nazirite(value) when is_integer(value), do: value | |
| 428 | + def encode_nazirite(_), do: {:error, "Unexpected type when encoding Amphithyron.nazirite"} | |
| 429 | + | |
| 430 | + def decode_possessorial(value) when is_integer(value), do: value | |
| 431 | + def decode_possessorial(_), do: {:error, "Unexpected type when decoding Amphithyron.possessorial"} | |
| 432 | + | |
| 433 | + def encode_possessorial(value) when is_integer(value), do: value | |
| 434 | + def encode_possessorial(_), do: {:error, "Unexpected type when encoding Amphithyron.possessorial"} | |
| 435 | + | |
| 436 | + def decode_shamed(value) when is_integer(value), do: value | |
| 437 | + def decode_shamed(_), do: {:error, "Unexpected type when decoding Amphithyron.shamed"} | |
| 438 | + | |
| 439 | + def encode_shamed(value) when is_integer(value), do: value | |
| 440 | + def encode_shamed(_), do: {:error, "Unexpected type when encoding Amphithyron.shamed"} | |
| 441 | + | |
| 442 | + def decode_shelfworn(value) when is_integer(value), do: value | |
| 443 | + def decode_shelfworn(_), do: {:error, "Unexpected type when decoding Amphithyron.shelfworn"} | |
| 444 | + | |
| 445 | + def encode_shelfworn(value) when is_integer(value), do: value | |
| 446 | + def encode_shelfworn(_), do: {:error, "Unexpected type when encoding Amphithyron.shelfworn"} | |
| 447 | + | |
| 448 | + def decode_stagnum(value) when is_integer(value), do: value | |
| 449 | + def decode_stagnum(_), do: {:error, "Unexpected type when decoding Amphithyron.stagnum"} | |
| 450 | + | |
| 451 | + def encode_stagnum(value) when is_integer(value), do: value | |
| 452 | + def encode_stagnum(_), do: {:error, "Unexpected type when encoding Amphithyron.stagnum"} | |
| 453 | + | |
| 454 | + def decode_those(value) when is_integer(value), do: value | |
| 455 | + def decode_those(_), do: {:error, "Unexpected type when decoding Amphithyron.those"} | |
| 456 | + | |
| 457 | + def encode_those(value) when is_integer(value), do: value | |
| 458 | + def encode_those(_), do: {:error, "Unexpected type when encoding Amphithyron.those"} | |
| 459 | + | |
| 460 | + def decode_undecimal(value) when is_integer(value), do: value | |
| 461 | + def decode_undecimal(_), do: {:error, "Unexpected type when decoding Amphithyron.undecimal"} | |
| 462 | + | |
| 463 | + def encode_undecimal(value) when is_integer(value), do: value | |
| 464 | + def encode_undecimal(_), do: {:error, "Unexpected type when encoding Amphithyron.undecimal"} | |
| 465 | + | |
| 332 | 466 | def from_map(m) do |
| 333 | 467 | %Amphithyron{ |
| 334 | - akroasis: m["akroasis"], | |
| 335 | - antiphonical: m["antiphonical"], | |
| 336 | - basebred: m["basebred"], | |
| 337 | - catharticalness: m["catharticalness"], | |
| 338 | - chirotherium: m["Chirotherium"], | |
| 339 | - conductometric: m["conductometric"], | |
| 468 | + akroasis: m["akroasis"] && decode_akroasis(m["akroasis"]), | |
| 469 | + antiphonical: m["antiphonical"] && decode_antiphonical(m["antiphonical"]), | |
| 470 | + basebred: m["basebred"] && decode_basebred(m["basebred"]), | |
| 471 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 472 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 473 | + conductometric: m["conductometric"] && decode_conductometric(m["conductometric"]), | |
| 340 | 474 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 341 | - ensilation: m["ensilation"], | |
| 342 | - eyebolt: m["eyebolt"], | |
| 343 | - fistulated: m["fistulated"], | |
| 344 | - heteropod: m["heteropod"], | |
| 475 | + ensilation: m["ensilation"] && decode_ensilation(m["ensilation"]), | |
| 476 | + eyebolt: m["eyebolt"] && decode_eyebolt(m["eyebolt"]), | |
| 477 | + fistulated: m["fistulated"] && decode_fistulated(m["fistulated"]), | |
| 478 | + heteropod: m["heteropod"] && decode_heteropod(m["heteropod"]), | |
| 345 | 479 | homocerc: m["homocerc"], |
| 346 | - juniperus: m["Juniperus"], | |
| 347 | - labyrinthically: m["labyrinthically"], | |
| 348 | - martyrization: m["martyrization"], | |
| 349 | - mispolicy: m["mispolicy"], | |
| 350 | - multipara: m["multipara"], | |
| 351 | - nazirite: m["Nazirite"], | |
| 480 | + juniperus: m["Juniperus"] && decode_juniperus(m["Juniperus"]), | |
| 481 | + labyrinthically: m["labyrinthically"] && decode_labyrinthically(m["labyrinthically"]), | |
| 482 | + martyrization: m["martyrization"] && decode_martyrization(m["martyrization"]), | |
| 483 | + mispolicy: m["mispolicy"] && decode_mispolicy(m["mispolicy"]), | |
| 484 | + multipara: m["multipara"] && decode_multipara(m["multipara"]), | |
| 485 | + nazirite: m["Nazirite"] && decode_nazirite(m["Nazirite"]), | |
| 352 | 486 | nonbookish: m["nonbookish"], |
| 353 | - possessorial: m["possessorial"], | |
| 354 | - shamed: m["shamed"], | |
| 355 | - shelfworn: m["shelfworn"], | |
| 356 | - stagnum: m["stagnum"], | |
| 357 | - those: m["Those"], | |
| 358 | - undecimal: m["undecimal"], | |
| 487 | + possessorial: m["possessorial"] && decode_possessorial(m["possessorial"]), | |
| 488 | + shamed: m["shamed"] && decode_shamed(m["shamed"]), | |
| 489 | + shelfworn: m["shelfworn"] && decode_shelfworn(m["shelfworn"]), | |
| 490 | + stagnum: m["stagnum"] && decode_stagnum(m["stagnum"]), | |
| 491 | + those: m["Those"] && decode_those(m["Those"]), | |
| 492 | + undecimal: m["undecimal"] && decode_undecimal(m["undecimal"]), | |
| 359 | 493 | } |
| 360 | 494 | end |
| 361 | 495 | |
| @@ -1063,39 +1197,173 @@ defmodule DiscordiaClass do | ||
| 1063 | 1197 | wingle: integer() | nil |
| 1064 | 1198 | } |
| 1065 | 1199 | |
| 1200 | + def decode_altaic(value) when is_integer(value), do: value | |
| 1201 | + def decode_altaic(_), do: {:error, "Unexpected type when decoding DiscordiaClass.altaic"} | |
| 1202 | + | |
| 1203 | + def encode_altaic(value) when is_integer(value), do: value | |
| 1204 | + def encode_altaic(_), do: {:error, "Unexpected type when encoding DiscordiaClass.altaic"} | |
| 1205 | + | |
| 1206 | + def decode_amoristic(value) when is_integer(value), do: value | |
| 1207 | + def decode_amoristic(_), do: {:error, "Unexpected type when decoding DiscordiaClass.amoristic"} | |
| 1208 | + | |
| 1209 | + def encode_amoristic(value) when is_integer(value), do: value | |
| 1210 | + def encode_amoristic(_), do: {:error, "Unexpected type when encoding DiscordiaClass.amoristic"} | |
| 1211 | + | |
| 1212 | + def decode_blennophthalmia(value) when is_integer(value), do: value | |
| 1213 | + def decode_blennophthalmia(_), do: {:error, "Unexpected type when decoding DiscordiaClass.blennophthalmia"} | |
| 1214 | + | |
| 1215 | + def encode_blennophthalmia(value) when is_integer(value), do: value | |
| 1216 | + def encode_blennophthalmia(_), do: {:error, "Unexpected type when encoding DiscordiaClass.blennophthalmia"} | |
| 1217 | + | |
| 1218 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 1219 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 1220 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding DiscordiaClass.catharticalness"} | |
| 1221 | + | |
| 1222 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 1223 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 1224 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding DiscordiaClass.catharticalness"} | |
| 1225 | + | |
| 1226 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 1227 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding DiscordiaClass.chirotherium"} | |
| 1228 | + | |
| 1229 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 1230 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding DiscordiaClass.chirotherium"} | |
| 1231 | + | |
| 1232 | + def decode_disciplinability(value) when is_integer(value), do: value | |
| 1233 | + def decode_disciplinability(_), do: {:error, "Unexpected type when decoding DiscordiaClass.disciplinability"} | |
| 1234 | + | |
| 1235 | + def encode_disciplinability(value) when is_integer(value), do: value | |
| 1236 | + def encode_disciplinability(_), do: {:error, "Unexpected type when encoding DiscordiaClass.disciplinability"} | |
| 1237 | + | |
| 1066 | 1238 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1067 | 1239 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding DiscordiaClass.disdiapason"} |
| 1068 | 1240 | |
| 1069 | 1241 | def encode_disdiapason(value) when is_binary(value), do: value |
| 1070 | 1242 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding DiscordiaClass.disdiapason"} |
| 1071 | 1243 | |
| 1244 | + def decode_goofer(value) when is_integer(value), do: value | |
| 1245 | + def decode_goofer(_), do: {:error, "Unexpected type when decoding DiscordiaClass.goofer"} | |
| 1246 | + | |
| 1247 | + def encode_goofer(value) when is_integer(value), do: value | |
| 1248 | + def encode_goofer(_), do: {:error, "Unexpected type when encoding DiscordiaClass.goofer"} | |
| 1249 | + | |
| 1250 | + def decode_laryngograph(value) when is_integer(value), do: value | |
| 1251 | + def decode_laryngograph(_), do: {:error, "Unexpected type when decoding DiscordiaClass.laryngograph"} | |
| 1252 | + | |
| 1253 | + def encode_laryngograph(value) when is_integer(value), do: value | |
| 1254 | + def encode_laryngograph(_), do: {:error, "Unexpected type when encoding DiscordiaClass.laryngograph"} | |
| 1255 | + | |
| 1256 | + def decode_leucitis(value) when is_integer(value), do: value | |
| 1257 | + def decode_leucitis(_), do: {:error, "Unexpected type when decoding DiscordiaClass.leucitis"} | |
| 1258 | + | |
| 1259 | + def encode_leucitis(value) when is_integer(value), do: value | |
| 1260 | + def encode_leucitis(_), do: {:error, "Unexpected type when encoding DiscordiaClass.leucitis"} | |
| 1261 | + | |
| 1262 | + def decode_lymphocyst(value) when is_integer(value), do: value | |
| 1263 | + def decode_lymphocyst(_), do: {:error, "Unexpected type when decoding DiscordiaClass.lymphocyst"} | |
| 1264 | + | |
| 1265 | + def encode_lymphocyst(value) when is_integer(value), do: value | |
| 1266 | + def encode_lymphocyst(_), do: {:error, "Unexpected type when encoding DiscordiaClass.lymphocyst"} | |
| 1267 | + | |
| 1268 | + def decode_microcosmology(value) when is_integer(value), do: value | |
| 1269 | + def decode_microcosmology(_), do: {:error, "Unexpected type when decoding DiscordiaClass.microcosmology"} | |
| 1270 | + | |
| 1271 | + def encode_microcosmology(value) when is_integer(value), do: value | |
| 1272 | + def encode_microcosmology(_), do: {:error, "Unexpected type when encoding DiscordiaClass.microcosmology"} | |
| 1273 | + | |
| 1274 | + def decode_nauseation(value) when is_integer(value), do: value | |
| 1275 | + def decode_nauseation(_), do: {:error, "Unexpected type when decoding DiscordiaClass.nauseation"} | |
| 1276 | + | |
| 1277 | + def encode_nauseation(value) when is_integer(value), do: value | |
| 1278 | + def encode_nauseation(_), do: {:error, "Unexpected type when encoding DiscordiaClass.nauseation"} | |
| 1279 | + | |
| 1280 | + def decode_patarin(value) when is_integer(value), do: value | |
| 1281 | + def decode_patarin(_), do: {:error, "Unexpected type when decoding DiscordiaClass.patarin"} | |
| 1282 | + | |
| 1283 | + def encode_patarin(value) when is_integer(value), do: value | |
| 1284 | + def encode_patarin(_), do: {:error, "Unexpected type when encoding DiscordiaClass.patarin"} | |
| 1285 | + | |
| 1286 | + def decode_preliberal(value) when is_integer(value), do: value | |
| 1287 | + def decode_preliberal(_), do: {:error, "Unexpected type when decoding DiscordiaClass.preliberal"} | |
| 1288 | + | |
| 1289 | + def encode_preliberal(value) when is_integer(value), do: value | |
| 1290 | + def encode_preliberal(_), do: {:error, "Unexpected type when encoding DiscordiaClass.preliberal"} | |
| 1291 | + | |
| 1292 | + def decode_prettifier(value) when is_integer(value), do: value | |
| 1293 | + def decode_prettifier(_), do: {:error, "Unexpected type when decoding DiscordiaClass.prettifier"} | |
| 1294 | + | |
| 1295 | + def encode_prettifier(value) when is_integer(value), do: value | |
| 1296 | + def encode_prettifier(_), do: {:error, "Unexpected type when encoding DiscordiaClass.prettifier"} | |
| 1297 | + | |
| 1298 | + def decode_rangework(value) when is_integer(value), do: value | |
| 1299 | + def decode_rangework(_), do: {:error, "Unexpected type when decoding DiscordiaClass.rangework"} | |
| 1300 | + | |
| 1301 | + def encode_rangework(value) when is_integer(value), do: value | |
| 1302 | + def encode_rangework(_), do: {:error, "Unexpected type when encoding DiscordiaClass.rangework"} | |
| 1303 | + | |
| 1304 | + def decode_redient(value) when is_integer(value), do: value | |
| 1305 | + def decode_redient(_), do: {:error, "Unexpected type when decoding DiscordiaClass.redient"} | |
| 1306 | + | |
| 1307 | + def encode_redient(value) when is_integer(value), do: value | |
| 1308 | + def encode_redient(_), do: {:error, "Unexpected type when encoding DiscordiaClass.redient"} | |
| 1309 | + | |
| 1310 | + def decode_subfusiform(value) when is_integer(value), do: value | |
| 1311 | + def decode_subfusiform(_), do: {:error, "Unexpected type when decoding DiscordiaClass.subfusiform"} | |
| 1312 | + | |
| 1313 | + def encode_subfusiform(value) when is_integer(value), do: value | |
| 1314 | + def encode_subfusiform(_), do: {:error, "Unexpected type when encoding DiscordiaClass.subfusiform"} | |
| 1315 | + | |
| 1316 | + def decode_suicidical(value) when is_integer(value), do: value | |
| 1317 | + def decode_suicidical(_), do: {:error, "Unexpected type when decoding DiscordiaClass.suicidical"} | |
| 1318 | + | |
| 1319 | + def encode_suicidical(value) when is_integer(value), do: value | |
| 1320 | + def encode_suicidical(_), do: {:error, "Unexpected type when encoding DiscordiaClass.suicidical"} | |
| 1321 | + | |
| 1322 | + def decode_swow(value) when is_integer(value), do: value | |
| 1323 | + def decode_swow(_), do: {:error, "Unexpected type when decoding DiscordiaClass.swow"} | |
| 1324 | + | |
| 1325 | + def encode_swow(value) when is_integer(value), do: value | |
| 1326 | + def encode_swow(_), do: {:error, "Unexpected type when encoding DiscordiaClass.swow"} | |
| 1327 | + | |
| 1328 | + def decode_wastrel(value) when is_integer(value), do: value | |
| 1329 | + def decode_wastrel(_), do: {:error, "Unexpected type when decoding DiscordiaClass.wastrel"} | |
| 1330 | + | |
| 1331 | + def encode_wastrel(value) when is_integer(value), do: value | |
| 1332 | + def encode_wastrel(_), do: {:error, "Unexpected type when encoding DiscordiaClass.wastrel"} | |
| 1333 | + | |
| 1334 | + def decode_wingle(value) when is_integer(value), do: value | |
| 1335 | + def decode_wingle(_), do: {:error, "Unexpected type when decoding DiscordiaClass.wingle"} | |
| 1336 | + | |
| 1337 | + def encode_wingle(value) when is_integer(value), do: value | |
| 1338 | + def encode_wingle(_), do: {:error, "Unexpected type when encoding DiscordiaClass.wingle"} | |
| 1339 | + | |
| 1072 | 1340 | def from_map(m) do |
| 1073 | 1341 | %DiscordiaClass{ |
| 1074 | - altaic: m["Altaic"], | |
| 1075 | - amoristic: m["amoristic"], | |
| 1076 | - blennophthalmia: m["blennophthalmia"], | |
| 1077 | - catharticalness: m["catharticalness"], | |
| 1078 | - chirotherium: m["Chirotherium"], | |
| 1079 | - disciplinability: m["disciplinability"], | |
| 1342 | + altaic: m["Altaic"] && decode_altaic(m["Altaic"]), | |
| 1343 | + amoristic: m["amoristic"] && decode_amoristic(m["amoristic"]), | |
| 1344 | + blennophthalmia: m["blennophthalmia"] && decode_blennophthalmia(m["blennophthalmia"]), | |
| 1345 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 1346 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1347 | + disciplinability: m["disciplinability"] && decode_disciplinability(m["disciplinability"]), | |
| 1080 | 1348 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1081 | - goofer: m["goofer"], | |
| 1349 | + goofer: m["goofer"] && decode_goofer(m["goofer"]), | |
| 1082 | 1350 | homocerc: m["homocerc"], |
| 1083 | - laryngograph: m["laryngograph"], | |
| 1084 | - leucitis: m["leucitis"], | |
| 1085 | - lymphocyst: m["lymphocyst"], | |
| 1086 | - microcosmology: m["microcosmology"], | |
| 1087 | - nauseation: m["nauseation"], | |
| 1351 | + laryngograph: m["laryngograph"] && decode_laryngograph(m["laryngograph"]), | |
| 1352 | + leucitis: m["leucitis"] && decode_leucitis(m["leucitis"]), | |
| 1353 | + lymphocyst: m["lymphocyst"] && decode_lymphocyst(m["lymphocyst"]), | |
| 1354 | + microcosmology: m["microcosmology"] && decode_microcosmology(m["microcosmology"]), | |
| 1355 | + nauseation: m["nauseation"] && decode_nauseation(m["nauseation"]), | |
| 1088 | 1356 | nonbookish: m["nonbookish"], |
| 1089 | - patarin: m["Patarin"], | |
| 1090 | - preliberal: m["preliberal"], | |
| 1091 | - prettifier: m["prettifier"], | |
| 1092 | - rangework: m["rangework"], | |
| 1093 | - redient: m["redient"], | |
| 1094 | - subfusiform: m["subfusiform"], | |
| 1095 | - suicidical: m["suicidical"], | |
| 1096 | - swow: m["swow"], | |
| 1097 | - wastrel: m["wastrel"], | |
| 1098 | - wingle: m["wingle"], | |
| 1357 | + patarin: m["Patarin"] && decode_patarin(m["Patarin"]), | |
| 1358 | + preliberal: m["preliberal"] && decode_preliberal(m["preliberal"]), | |
| 1359 | + prettifier: m["prettifier"] && decode_prettifier(m["prettifier"]), | |
| 1360 | + rangework: m["rangework"] && decode_rangework(m["rangework"]), | |
| 1361 | + redient: m["redient"] && decode_redient(m["redient"]), | |
| 1362 | + subfusiform: m["subfusiform"] && decode_subfusiform(m["subfusiform"]), | |
| 1363 | + suicidical: m["suicidical"] && decode_suicidical(m["suicidical"]), | |
| 1364 | + swow: m["swow"] && decode_swow(m["swow"]), | |
| 1365 | + wastrel: m["wastrel"] && decode_wastrel(m["wastrel"]), | |
| 1366 | + wingle: m["wingle"] && decode_wingle(m["wingle"]), | |
| 1099 | 1367 | } |
| 1100 | 1368 | end |
| 1101 | 1369 | |
| @@ -1383,39 +1651,173 @@ defmodule LaviniaClass do | ||
| 1383 | 1651 | uproute: integer() | nil |
| 1384 | 1652 | } |
| 1385 | 1653 | |
| 1654 | + def decode_agitable(value) when is_integer(value), do: value | |
| 1655 | + def decode_agitable(_), do: {:error, "Unexpected type when decoding LaviniaClass.agitable"} | |
| 1656 | + | |
| 1657 | + def encode_agitable(value) when is_integer(value), do: value | |
| 1658 | + def encode_agitable(_), do: {:error, "Unexpected type when encoding LaviniaClass.agitable"} | |
| 1659 | + | |
| 1660 | + def decode_asininity(value) when is_integer(value), do: value | |
| 1661 | + def decode_asininity(_), do: {:error, "Unexpected type when decoding LaviniaClass.asininity"} | |
| 1662 | + | |
| 1663 | + def encode_asininity(value) when is_integer(value), do: value | |
| 1664 | + def encode_asininity(_), do: {:error, "Unexpected type when encoding LaviniaClass.asininity"} | |
| 1665 | + | |
| 1666 | + def decode_benefiter(value) when is_integer(value), do: value | |
| 1667 | + def decode_benefiter(_), do: {:error, "Unexpected type when decoding LaviniaClass.benefiter"} | |
| 1668 | + | |
| 1669 | + def encode_benefiter(value) when is_integer(value), do: value | |
| 1670 | + def encode_benefiter(_), do: {:error, "Unexpected type when encoding LaviniaClass.benefiter"} | |
| 1671 | + | |
| 1672 | + def decode_bronzelike(value) when is_integer(value), do: value | |
| 1673 | + def decode_bronzelike(_), do: {:error, "Unexpected type when decoding LaviniaClass.bronzelike"} | |
| 1674 | + | |
| 1675 | + def encode_bronzelike(value) when is_integer(value), do: value | |
| 1676 | + def encode_bronzelike(_), do: {:error, "Unexpected type when encoding LaviniaClass.bronzelike"} | |
| 1677 | + | |
| 1678 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 1679 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 1680 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding LaviniaClass.catharticalness"} | |
| 1681 | + | |
| 1682 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 1683 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 1684 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding LaviniaClass.catharticalness"} | |
| 1685 | + | |
| 1686 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 1687 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding LaviniaClass.chirotherium"} | |
| 1688 | + | |
| 1689 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 1690 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding LaviniaClass.chirotherium"} | |
| 1691 | + | |
| 1692 | + def decode_cholesteatomatous(value) when is_integer(value), do: value | |
| 1693 | + def decode_cholesteatomatous(_), do: {:error, "Unexpected type when decoding LaviniaClass.cholesteatomatous"} | |
| 1694 | + | |
| 1695 | + def encode_cholesteatomatous(value) when is_integer(value), do: value | |
| 1696 | + def encode_cholesteatomatous(_), do: {:error, "Unexpected type when encoding LaviniaClass.cholesteatomatous"} | |
| 1697 | + | |
| 1698 | + def decode_deprivement(value) when is_integer(value), do: value | |
| 1699 | + def decode_deprivement(_), do: {:error, "Unexpected type when decoding LaviniaClass.deprivement"} | |
| 1700 | + | |
| 1701 | + def encode_deprivement(value) when is_integer(value), do: value | |
| 1702 | + def encode_deprivement(_), do: {:error, "Unexpected type when encoding LaviniaClass.deprivement"} | |
| 1703 | + | |
| 1386 | 1704 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1387 | 1705 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding LaviniaClass.disdiapason"} |
| 1388 | 1706 | |
| 1389 | 1707 | def encode_disdiapason(value) when is_binary(value), do: value |
| 1390 | 1708 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding LaviniaClass.disdiapason"} |
| 1391 | 1709 | |
| 1710 | + def decode_flippantness(value) when is_integer(value), do: value | |
| 1711 | + def decode_flippantness(_), do: {:error, "Unexpected type when decoding LaviniaClass.flippantness"} | |
| 1712 | + | |
| 1713 | + def encode_flippantness(value) when is_integer(value), do: value | |
| 1714 | + def encode_flippantness(_), do: {:error, "Unexpected type when encoding LaviniaClass.flippantness"} | |
| 1715 | + | |
| 1716 | + def decode_fogproof(value) when is_integer(value), do: value | |
| 1717 | + def decode_fogproof(_), do: {:error, "Unexpected type when decoding LaviniaClass.fogproof"} | |
| 1718 | + | |
| 1719 | + def encode_fogproof(value) when is_integer(value), do: value | |
| 1720 | + def encode_fogproof(_), do: {:error, "Unexpected type when encoding LaviniaClass.fogproof"} | |
| 1721 | + | |
| 1722 | + def decode_merrymeeting(value) when is_integer(value), do: value | |
| 1723 | + def decode_merrymeeting(_), do: {:error, "Unexpected type when decoding LaviniaClass.merrymeeting"} | |
| 1724 | + | |
| 1725 | + def encode_merrymeeting(value) when is_integer(value), do: value | |
| 1726 | + def encode_merrymeeting(_), do: {:error, "Unexpected type when encoding LaviniaClass.merrymeeting"} | |
| 1727 | + | |
| 1728 | + def decode_overcareful(value) when is_integer(value), do: value | |
| 1729 | + def decode_overcareful(_), do: {:error, "Unexpected type when decoding LaviniaClass.overcareful"} | |
| 1730 | + | |
| 1731 | + def encode_overcareful(value) when is_integer(value), do: value | |
| 1732 | + def encode_overcareful(_), do: {:error, "Unexpected type when encoding LaviniaClass.overcareful"} | |
| 1733 | + | |
| 1734 | + def decode_panaris(value) when is_integer(value), do: value | |
| 1735 | + def decode_panaris(_), do: {:error, "Unexpected type when decoding LaviniaClass.panaris"} | |
| 1736 | + | |
| 1737 | + def encode_panaris(value) when is_integer(value), do: value | |
| 1738 | + def encode_panaris(_), do: {:error, "Unexpected type when encoding LaviniaClass.panaris"} | |
| 1739 | + | |
| 1740 | + def decode_preacceptance(value) when is_integer(value), do: value | |
| 1741 | + def decode_preacceptance(_), do: {:error, "Unexpected type when decoding LaviniaClass.preacceptance"} | |
| 1742 | + | |
| 1743 | + def encode_preacceptance(value) when is_integer(value), do: value | |
| 1744 | + def encode_preacceptance(_), do: {:error, "Unexpected type when encoding LaviniaClass.preacceptance"} | |
| 1745 | + | |
| 1746 | + def decode_quinoxaline(value) when is_integer(value), do: value | |
| 1747 | + def decode_quinoxaline(_), do: {:error, "Unexpected type when decoding LaviniaClass.quinoxaline"} | |
| 1748 | + | |
| 1749 | + def encode_quinoxaline(value) when is_integer(value), do: value | |
| 1750 | + def encode_quinoxaline(_), do: {:error, "Unexpected type when encoding LaviniaClass.quinoxaline"} | |
| 1751 | + | |
| 1752 | + def decode_sig(value) when is_integer(value), do: value | |
| 1753 | + def decode_sig(_), do: {:error, "Unexpected type when decoding LaviniaClass.sig"} | |
| 1754 | + | |
| 1755 | + def encode_sig(value) when is_integer(value), do: value | |
| 1756 | + def encode_sig(_), do: {:error, "Unexpected type when encoding LaviniaClass.sig"} | |
| 1757 | + | |
| 1758 | + def decode_superconfusion(value) when is_integer(value), do: value | |
| 1759 | + def decode_superconfusion(_), do: {:error, "Unexpected type when decoding LaviniaClass.superconfusion"} | |
| 1760 | + | |
| 1761 | + def encode_superconfusion(value) when is_integer(value), do: value | |
| 1762 | + def encode_superconfusion(_), do: {:error, "Unexpected type when encoding LaviniaClass.superconfusion"} | |
| 1763 | + | |
| 1764 | + def decode_tacana(value) when is_integer(value), do: value | |
| 1765 | + def decode_tacana(_), do: {:error, "Unexpected type when decoding LaviniaClass.tacana"} | |
| 1766 | + | |
| 1767 | + def encode_tacana(value) when is_integer(value), do: value | |
| 1768 | + def encode_tacana(_), do: {:error, "Unexpected type when encoding LaviniaClass.tacana"} | |
| 1769 | + | |
| 1770 | + def decode_tillotter(value) when is_integer(value), do: value | |
| 1771 | + def decode_tillotter(_), do: {:error, "Unexpected type when decoding LaviniaClass.tillotter"} | |
| 1772 | + | |
| 1773 | + def encode_tillotter(value) when is_integer(value), do: value | |
| 1774 | + def encode_tillotter(_), do: {:error, "Unexpected type when encoding LaviniaClass.tillotter"} | |
| 1775 | + | |
| 1776 | + def decode_tranquillize(value) when is_integer(value), do: value | |
| 1777 | + def decode_tranquillize(_), do: {:error, "Unexpected type when decoding LaviniaClass.tranquillize"} | |
| 1778 | + | |
| 1779 | + def encode_tranquillize(value) when is_integer(value), do: value | |
| 1780 | + def encode_tranquillize(_), do: {:error, "Unexpected type when encoding LaviniaClass.tranquillize"} | |
| 1781 | + | |
| 1782 | + def decode_unquestionable(value) when is_integer(value), do: value | |
| 1783 | + def decode_unquestionable(_), do: {:error, "Unexpected type when decoding LaviniaClass.unquestionable"} | |
| 1784 | + | |
| 1785 | + def encode_unquestionable(value) when is_integer(value), do: value | |
| 1786 | + def encode_unquestionable(_), do: {:error, "Unexpected type when encoding LaviniaClass.unquestionable"} | |
| 1787 | + | |
| 1788 | + def decode_uproute(value) when is_integer(value), do: value | |
| 1789 | + def decode_uproute(_), do: {:error, "Unexpected type when decoding LaviniaClass.uproute"} | |
| 1790 | + | |
| 1791 | + def encode_uproute(value) when is_integer(value), do: value | |
| 1792 | + def encode_uproute(_), do: {:error, "Unexpected type when encoding LaviniaClass.uproute"} | |
| 1793 | + | |
| 1392 | 1794 | def from_map(m) do |
| 1393 | 1795 | %LaviniaClass{ |
| 1394 | - agitable: m["agitable"], | |
| 1395 | - asininity: m["asininity"], | |
| 1396 | - benefiter: m["benefiter"], | |
| 1397 | - bronzelike: m["bronzelike"], | |
| 1398 | - catharticalness: m["catharticalness"], | |
| 1399 | - chirotherium: m["Chirotherium"], | |
| 1400 | - cholesteatomatous: m["cholesteatomatous"], | |
| 1401 | - deprivement: m["deprivement"], | |
| 1796 | + agitable: m["agitable"] && decode_agitable(m["agitable"]), | |
| 1797 | + asininity: m["asininity"] && decode_asininity(m["asininity"]), | |
| 1798 | + benefiter: m["benefiter"] && decode_benefiter(m["benefiter"]), | |
| 1799 | + bronzelike: m["bronzelike"] && decode_bronzelike(m["bronzelike"]), | |
| 1800 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 1801 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1802 | + cholesteatomatous: m["cholesteatomatous"] && decode_cholesteatomatous(m["cholesteatomatous"]), | |
| 1803 | + deprivement: m["deprivement"] && decode_deprivement(m["deprivement"]), | |
| 1402 | 1804 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1403 | - flippantness: m["flippantness"], | |
| 1404 | - fogproof: m["fogproof"], | |
| 1805 | + flippantness: m["flippantness"] && decode_flippantness(m["flippantness"]), | |
| 1806 | + fogproof: m["fogproof"] && decode_fogproof(m["fogproof"]), | |
| 1405 | 1807 | homocerc: m["homocerc"], |
| 1406 | - merrymeeting: m["merrymeeting"], | |
| 1808 | + merrymeeting: m["merrymeeting"] && decode_merrymeeting(m["merrymeeting"]), | |
| 1407 | 1809 | nonbookish: m["nonbookish"], |
| 1408 | - overcareful: m["overcareful"], | |
| 1409 | - panaris: m["panaris"], | |
| 1410 | - preacceptance: m["preacceptance"], | |
| 1411 | - quinoxaline: m["quinoxaline"], | |
| 1412 | - sig: m["sig"], | |
| 1413 | - superconfusion: m["superconfusion"], | |
| 1414 | - tacana: m["Tacana"], | |
| 1415 | - tillotter: m["tillotter"], | |
| 1416 | - tranquillize: m["tranquillize"], | |
| 1417 | - unquestionable: m["unquestionable"], | |
| 1418 | - uproute: m["uproute"], | |
| 1810 | + overcareful: m["overcareful"] && decode_overcareful(m["overcareful"]), | |
| 1811 | + panaris: m["panaris"] && decode_panaris(m["panaris"]), | |
| 1812 | + preacceptance: m["preacceptance"] && decode_preacceptance(m["preacceptance"]), | |
| 1813 | + quinoxaline: m["quinoxaline"] && decode_quinoxaline(m["quinoxaline"]), | |
| 1814 | + sig: m["sig"] && decode_sig(m["sig"]), | |
| 1815 | + superconfusion: m["superconfusion"] && decode_superconfusion(m["superconfusion"]), | |
| 1816 | + tacana: m["Tacana"] && decode_tacana(m["Tacana"]), | |
| 1817 | + tillotter: m["tillotter"] && decode_tillotter(m["tillotter"]), | |
| 1818 | + tranquillize: m["tranquillize"] && decode_tranquillize(m["tranquillize"]), | |
| 1819 | + unquestionable: m["unquestionable"] && decode_unquestionable(m["unquestionable"]), | |
| 1820 | + uproute: m["uproute"] && decode_uproute(m["uproute"]), | |
| 1419 | 1821 | } |
| 1420 | 1822 | end |
Atypescript-effect-schemajust-schema-true--8c4ca457bcba / TopLevel.ts+280 −0
| @@ -0,0 +1,280 @@ | ||
| 1 | +import * as S from "effect/Schema"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export class OskarClass extends S.Class<OskarClass>("OskarClass")({ | |
| 5 | + "Acrobates": S.Null, | |
| 6 | + "beanshooter": S.Null, | |
| 7 | + "bearhound": S.Null, | |
| 8 | + "Cayuga": S.Null, | |
| 9 | + "guarneri": S.Null, | |
| 10 | + "hypochondriacism": S.Null, | |
| 11 | + "indication": S.Null, | |
| 12 | + "jaculative": S.Null, | |
| 13 | + "nagana": S.Null, | |
| 14 | + "Netherlandish": S.Null, | |
| 15 | + "noctivagous": S.Null, | |
| 16 | + "nonphysiological": S.Null, | |
| 17 | + "praxis": S.Null, | |
| 18 | + "provision": S.Null, | |
| 19 | + "subterhuman": S.Null, | |
| 20 | + "sunlit": S.Null, | |
| 21 | + "syncraniate": S.Null, | |
| 22 | + "teachment": S.Null, | |
| 23 | + "unmutinous": S.Null, | |
| 24 | + "unstoppable": S.Null, | |
| 25 | +}) {} | |
| 26 | + | |
| 27 | +export class LaviniaClass extends S.Class<LaviniaClass>("LaviniaClass")({ | |
| 28 | + "agitable": S.optional(S.NullOr(S.Int)), | |
| 29 | + "asininity": S.optional(S.NullOr(S.Int)), | |
| 30 | + "benefiter": S.optional(S.NullOr(S.Int)), | |
| 31 | + "bronzelike": S.optional(S.NullOr(S.Int)), | |
| 32 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 33 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 34 | + "cholesteatomatous": S.optional(S.NullOr(S.Int)), | |
| 35 | + "deprivement": S.optional(S.NullOr(S.Int)), | |
| 36 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 37 | + "flippantness": S.optional(S.NullOr(S.Int)), | |
| 38 | + "fogproof": S.optional(S.NullOr(S.Int)), | |
| 39 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 40 | + "merrymeeting": S.optional(S.NullOr(S.Int)), | |
| 41 | + "nonbookish": S.optional(S.Null), | |
| 42 | + "overcareful": S.optional(S.NullOr(S.Int)), | |
| 43 | + "panaris": S.optional(S.NullOr(S.Int)), | |
| 44 | + "preacceptance": S.optional(S.NullOr(S.Int)), | |
| 45 | + "quinoxaline": S.optional(S.NullOr(S.Int)), | |
| 46 | + "sig": S.optional(S.NullOr(S.Int)), | |
| 47 | + "superconfusion": S.optional(S.NullOr(S.Int)), | |
| 48 | + "Tacana": S.optional(S.NullOr(S.Int)), | |
| 49 | + "tillotter": S.optional(S.NullOr(S.Int)), | |
| 50 | + "tranquillize": S.optional(S.NullOr(S.Int)), | |
| 51 | + "unquestionable": S.optional(S.NullOr(S.Int)), | |
| 52 | + "uproute": S.optional(S.NullOr(S.Int)), | |
| 53 | +}) {} | |
| 54 | + | |
| 55 | +export class GryphosaurusClass extends S.Class<GryphosaurusClass>("GryphosaurusClass")({ | |
| 56 | + "amissibility": S.Null, | |
| 57 | + "Burushaski": S.Null, | |
| 58 | + "citronin": S.Null, | |
| 59 | + "coplaintiff": S.Null, | |
| 60 | + "disquisitionary": S.Null, | |
| 61 | + "enoplan": S.Null, | |
| 62 | + "faintness": S.Null, | |
| 63 | + "hebetomy": S.Null, | |
| 64 | + "islandry": S.Null, | |
| 65 | + "lameduck": S.Null, | |
| 66 | + "overbattle": S.Null, | |
| 67 | + "overinterested": S.Null, | |
| 68 | + "phrenologic": S.Null, | |
| 69 | + "rainband": S.Null, | |
| 70 | + "shiningly": S.Null, | |
| 71 | + "stamineous": S.Null, | |
| 72 | + "subscapularis": S.Null, | |
| 73 | + "Tahami": S.Null, | |
| 74 | + "undaubed": S.Null, | |
| 75 | + "underntime": S.Null, | |
| 76 | +}) {} | |
| 77 | + | |
| 78 | +export class DiscordiaClass extends S.Class<DiscordiaClass>("DiscordiaClass")({ | |
| 79 | + "Altaic": S.optional(S.NullOr(S.Int)), | |
| 80 | + "amoristic": S.optional(S.NullOr(S.Int)), | |
| 81 | + "blennophthalmia": S.optional(S.NullOr(S.Int)), | |
| 82 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 83 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 84 | + "disciplinability": S.optional(S.NullOr(S.Int)), | |
| 85 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 86 | + "goofer": S.optional(S.NullOr(S.Int)), | |
| 87 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 88 | + "laryngograph": S.optional(S.NullOr(S.Int)), | |
| 89 | + "leucitis": S.optional(S.NullOr(S.Int)), | |
| 90 | + "lymphocyst": S.optional(S.NullOr(S.Int)), | |
| 91 | + "microcosmology": S.optional(S.NullOr(S.Int)), | |
| 92 | + "nauseation": S.optional(S.NullOr(S.Int)), | |
| 93 | + "nonbookish": S.optional(S.Null), | |
| 94 | + "Patarin": S.optional(S.NullOr(S.Int)), | |
| 95 | + "preliberal": S.optional(S.NullOr(S.Int)), | |
| 96 | + "prettifier": S.optional(S.NullOr(S.Int)), | |
| 97 | + "rangework": S.optional(S.NullOr(S.Int)), | |
| 98 | + "redient": S.optional(S.NullOr(S.Int)), | |
| 99 | + "subfusiform": S.optional(S.NullOr(S.Int)), | |
| 100 | + "suicidical": S.optional(S.NullOr(S.Int)), | |
| 101 | + "swow": S.optional(S.NullOr(S.Int)), | |
| 102 | + "wastrel": S.optional(S.NullOr(S.Int)), | |
| 103 | + "wingle": S.optional(S.NullOr(S.Int)), | |
| 104 | +}) {} | |
| 105 | + | |
| 106 | +export class ChytridiaceaeClass extends S.Class<ChytridiaceaeClass>("ChytridiaceaeClass")({ | |
| 107 | + "Batidaceae": S.Null, | |
| 108 | + "Brechites": S.Null, | |
| 109 | + "codespairer": S.Null, | |
| 110 | + "Emery": S.Null, | |
| 111 | + "enervative": S.Null, | |
| 112 | + "excriminate": S.Null, | |
| 113 | + "goshenite": S.Null, | |
| 114 | + "grime": S.Null, | |
| 115 | + "gritten": S.Null, | |
| 116 | + "hectorly": S.Null, | |
| 117 | + "intermediation": S.Null, | |
| 118 | + "meeterly": S.Null, | |
| 119 | + "Narraganset": S.Null, | |
| 120 | + "onymatic": S.Null, | |
| 121 | + "paddlecock": S.Null, | |
| 122 | + "thana": S.Null, | |
| 123 | + "thornily": S.Null, | |
| 124 | + "uckia": S.Null, | |
| 125 | + "unmettle": S.Null, | |
| 126 | + "vorticellid": S.Null, | |
| 127 | +}) {} | |
| 128 | + | |
| 129 | +export class AnsarieClass extends S.Class<AnsarieClass>("AnsarieClass")({ | |
| 130 | + "accension": S.Null, | |
| 131 | + "Alida": S.Null, | |
| 132 | + "asteria": S.Null, | |
| 133 | + "beriberic": S.Null, | |
| 134 | + "edgebone": S.Null, | |
| 135 | + "gastrodialysis": S.Null, | |
| 136 | + "geographic": S.Null, | |
| 137 | + "Ictonyx": S.Null, | |
| 138 | + "metrocele": S.Null, | |
| 139 | + "misgraft": S.Null, | |
| 140 | + "monteith": S.Null, | |
| 141 | + "notcher": S.Null, | |
| 142 | + "prorestriction": S.Null, | |
| 143 | + "Ramist": S.Null, | |
| 144 | + "throatlet": S.Null, | |
| 145 | + "unfair": S.Null, | |
| 146 | + "unsynonymous": S.Null, | |
| 147 | + "water": S.Null, | |
| 148 | + "zestfully": S.Null, | |
| 149 | + "zincic": S.Null, | |
| 150 | +}) {} | |
| 151 | + | |
| 152 | +export class AnkeeClass extends S.Class<AnkeeClass>("AnkeeClass")({ | |
| 153 | + "Anomoean": S.Null, | |
| 154 | + "barleyhood": S.Null, | |
| 155 | + "befriender": S.Null, | |
| 156 | + "brutishness": S.Null, | |
| 157 | + "cephalalgy": S.Null, | |
| 158 | + "cirurgian": S.Null, | |
| 159 | + "conventionally": S.Null, | |
| 160 | + "jackshay": S.Null, | |
| 161 | + "milammeter": S.Null, | |
| 162 | + "Naja": S.Null, | |
| 163 | + "ombrological": S.Null, | |
| 164 | + "phonasthenia": S.Null, | |
| 165 | + "retrievableness": S.Null, | |
| 166 | + "snakily": S.Null, | |
| 167 | + "swot": S.Null, | |
| 168 | + "tartlet": S.Null, | |
| 169 | + "thiofuran": S.Null, | |
| 170 | + "tracheophone": S.Null, | |
| 171 | + "tuglike": S.Null, | |
| 172 | + "unscratchingly": S.Null, | |
| 173 | +}) {} | |
| 174 | + | |
| 175 | +export class Amphithyron extends S.Class<Amphithyron>("Amphithyron")({ | |
| 176 | + "akroasis": S.optional(S.NullOr(S.Int)), | |
| 177 | + "antiphonical": S.optional(S.NullOr(S.Int)), | |
| 178 | + "basebred": S.optional(S.NullOr(S.Int)), | |
| 179 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 180 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 181 | + "conductometric": S.optional(S.NullOr(S.Int)), | |
| 182 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 183 | + "ensilation": S.optional(S.NullOr(S.Int)), | |
| 184 | + "eyebolt": S.optional(S.NullOr(S.Int)), | |
| 185 | + "fistulated": S.optional(S.NullOr(S.Int)), | |
| 186 | + "heteropod": S.optional(S.NullOr(S.Int)), | |
| 187 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 188 | + "Juniperus": S.optional(S.NullOr(S.Int)), | |
| 189 | + "labyrinthically": S.optional(S.NullOr(S.Int)), | |
| 190 | + "martyrization": S.optional(S.NullOr(S.Int)), | |
| 191 | + "mispolicy": S.optional(S.NullOr(S.Int)), | |
| 192 | + "multipara": S.optional(S.NullOr(S.Int)), | |
| 193 | + "Nazirite": S.optional(S.NullOr(S.Int)), | |
| 194 | + "nonbookish": S.optional(S.Null), | |
| 195 | + "possessorial": S.optional(S.NullOr(S.Int)), | |
| 196 | + "shamed": S.optional(S.NullOr(S.Int)), | |
| 197 | + "shelfworn": S.optional(S.NullOr(S.Int)), | |
| 198 | + "stagnum": S.optional(S.NullOr(S.Int)), | |
| 199 | + "Those": S.optional(S.NullOr(S.Int)), | |
| 200 | + "undecimal": S.optional(S.NullOr(S.Int)), | |
| 201 | +}) {} | |
| 202 | + | |
| 203 | +export class Rebecca extends S.Class<Rebecca>("Rebecca")({ | |
| 204 | + "catharticalness": S.Number, | |
| 205 | + "Chirotherium": S.Int, | |
| 206 | + "disdiapason": S.String, | |
| 207 | + "homocerc": S.Boolean, | |
| 208 | + "nonbookish": S.Null, | |
| 209 | +}) {} | |
| 210 | + | |
| 211 | +export class AlleviateClass extends S.Class<AlleviateClass>("AlleviateClass")({ | |
| 212 | + "apriori": S.Null, | |
| 213 | + "beggarer": S.Null, | |
| 214 | + "brokenheartedly": S.Null, | |
| 215 | + "debilitation": S.Null, | |
| 216 | + "frike": S.Null, | |
| 217 | + "gastrolith": S.Null, | |
| 218 | + "Hulsean": S.Null, | |
| 219 | + "orthocentric": S.Null, | |
| 220 | + "petaly": S.Null, | |
| 221 | + "probudgeting": S.Null, | |
| 222 | + "reacquire": S.Null, | |
| 223 | + "scow": S.Null, | |
| 224 | + "shutoff": S.Null, | |
| 225 | + "subcontiguous": S.Null, | |
| 226 | + "suffumigate": S.Null, | |
| 227 | + "transformable": S.Null, | |
| 228 | + "uncoroneted": S.Null, | |
| 229 | + "unparking": S.Null, | |
| 230 | + "unvarnishedness": S.Null, | |
| 231 | + "wherewithal": S.Null, | |
| 232 | +}) {} | |
| 233 | + | |
| 234 | +export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | |
| 235 | + "Abranchiata": S.Array(S.Union(S.Array(S.Int), S.Int, S.Null)), | |
| 236 | + "academe": S.Array(S.Union(S.Array(S.Int), S.Int, S.Record({ key: S.String, value: S.Int}))), | |
| 237 | + "acquirable": S.Array(S.Union(S.Array(S.NullOr(S.Int)), S.Record({ key: S.String, value: S.Int}))), | |
| 238 | + "aerometry": S.Array(S.Union(S.Boolean, S.Number)), | |
| 239 | + "alexin": S.Array(S.Union(S.Array(S.Int), S.Boolean)), | |
| 240 | + "alleviate": S.Array(S.Union(S.Array(S.NullOr(S.Int)), AlleviateClass)), | |
| 241 | + "amaas": S.Array(S.Union(S.Boolean, S.Int, Rebecca)), | |
| 242 | + "ambassage": S.Array(S.Union(S.Array(S.Null), S.String)), | |
| 243 | + "amphithyron": S.Array(S.NullOr(Amphithyron)), | |
| 244 | + "Andriana": S.Array(S.NullOr(S.String)), | |
| 245 | + "ankee": S.Array(S.Union(S.Array(S.Int), S.Int, AnkeeClass)), | |
| 246 | + "annihilator": S.Array(S.NullOr(S.Record({ key: S.String, value: S.NullOr(S.Int)}))), | |
| 247 | + "annulose": S.Null, | |
| 248 | + "Ansarie": S.Array(S.Union(S.Array(S.Int), AnsarieClass, S.Null)), | |
| 249 | + "aphasia": S.Array(S.Union(S.Array(S.Int), S.Int)), | |
| 250 | + "asprawl": S.Array(S.Union(S.Number, S.String)), | |
| 251 | + "attractive": S.Array(S.NullOr(S.Boolean)), | |
| 252 | + "barksome": S.Record({ key: S.String, value: S.Int}), | |
| 253 | + "bedesman": S.Array(S.Union(S.Boolean, S.Number, S.String)), | |
| 254 | + "belard": S.Array(S.Union(S.Array(S.Int), S.Number, Rebecca)), | |
| 255 | + "bocking": S.Array(S.Union(S.Array(S.Int), S.Boolean, S.Record({ key: S.String, value: S.Int}))), | |
| 256 | + "brawlingly": S.Array(S.Union(S.Array(S.Null), S.Record({ key: S.String, value: S.NullOr(S.Int)}))), | |
| 257 | + "brookie": S.Array(S.Union(S.Array(S.Int), Rebecca)), | |
| 258 | + "bumboatman": S.Array(S.Union(S.Array(S.Null), S.String, S.Null)), | |
| 259 | + "bystreet": S.Array(S.Null), | |
| 260 | + "calaverite": S.Array(S.Union(S.Array(S.Int), S.String)), | |
| 261 | + "catallactic": S.Array(S.Union(S.Array(S.Null), S.Boolean, S.Record({ key: S.String, value: S.Int}))), | |
| 262 | + "cemental": S.Array(S.Union(S.Array(S.Int), S.Number, S.Record({ key: S.String, value: S.Int}))), | |
| 263 | + "Chytridiaceae": S.Array(S.Union(S.Boolean, ChytridiaceaeClass, S.Null)), | |
| 264 | + "Discordia": S.Array(S.Union(S.Array(S.Int), DiscordiaClass)), | |
| 265 | + "Endomyces": S.Array(S.Union(S.Int, S.String)), | |
| 266 | + "Epinephelidae": S.Array(S.Union(S.Boolean, S.Int, S.String)), | |
| 267 | + "Eupatorium": S.Array(S.Union(S.Array(S.Null), S.Record({ key: S.String, value: S.Int}))), | |
| 268 | + "Gryphosaurus": S.Array(S.Union(S.Array(S.Int), S.String, GryphosaurusClass)), | |
| 269 | + "Koryak": S.Array(S.Union(S.Record({ key: S.String, value: S.NullOr(S.Int)}), S.String)), | |
| 270 | + "Lavinia": S.Array(S.Union(S.String, LaviniaClass)), | |
| 271 | + "Oskar": S.Array(S.Union(S.Array(S.Int), OskarClass)), | |
| 272 | + "Rebecca": S.Array(S.Union(S.Int, S.String, Rebecca)), | |
| 273 | + "Rhomboganoidei": S.Array(S.Union(S.Array(S.Int), S.String, Rebecca)), | |
| 274 | + "Rigsmal": S.Boolean, | |
| 275 | + "Ruellia": S.Array(S.Union(S.Boolean, S.String, Rebecca)), | |
| 276 | + "School": S.Array(S.Union(S.Int, S.Record({ key: S.String, value: S.Int}), S.Null)), | |
| 277 | + "Shakespearolater": S.Array(S.Union(S.Array(S.Int), S.Number, S.String)), | |
| 278 | + "Svan": S.Array(S.Number), | |
| 279 | + "Wayao": S.Record({ key: S.String, value: S.Number}), | |
| 280 | +}) {} |
Atypescript-zodjust-schema-true--8c4ca457bcba / TopLevel.ts+280 −0
| @@ -0,0 +1,280 @@ | ||
| 1 | +import * as z from "zod"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export const AlleviateClassSchema = z.object({ | |
| 5 | + "apriori": z.null(), | |
| 6 | + "beggarer": z.null(), | |
| 7 | + "brokenheartedly": z.null(), | |
| 8 | + "debilitation": z.null(), | |
| 9 | + "frike": z.null(), | |
| 10 | + "gastrolith": z.null(), | |
| 11 | + "Hulsean": z.null(), | |
| 12 | + "orthocentric": z.null(), | |
| 13 | + "petaly": z.null(), | |
| 14 | + "probudgeting": z.null(), | |
| 15 | + "reacquire": z.null(), | |
| 16 | + "scow": z.null(), | |
| 17 | + "shutoff": z.null(), | |
| 18 | + "subcontiguous": z.null(), | |
| 19 | + "suffumigate": z.null(), | |
| 20 | + "transformable": z.null(), | |
| 21 | + "uncoroneted": z.null(), | |
| 22 | + "unparking": z.null(), | |
| 23 | + "unvarnishedness": z.null(), | |
| 24 | + "wherewithal": z.null(), | |
| 25 | +}); | |
| 26 | + | |
| 27 | +export const RebeccaSchema = z.object({ | |
| 28 | + "catharticalness": z.number(), | |
| 29 | + "Chirotherium": z.number().int(), | |
| 30 | + "disdiapason": z.string(), | |
| 31 | + "homocerc": z.boolean(), | |
| 32 | + "nonbookish": z.null(), | |
| 33 | +}); | |
| 34 | + | |
| 35 | +export const AmphithyronSchema = z.object({ | |
| 36 | + "akroasis": z.number().int().optional(), | |
| 37 | + "antiphonical": z.number().int().optional(), | |
| 38 | + "basebred": z.number().int().optional(), | |
| 39 | + "catharticalness": z.number().optional(), | |
| 40 | + "Chirotherium": z.number().int().optional(), | |
| 41 | + "conductometric": z.number().int().optional(), | |
| 42 | + "disdiapason": z.string().optional(), | |
| 43 | + "ensilation": z.number().int().optional(), | |
| 44 | + "eyebolt": z.number().int().optional(), | |
| 45 | + "fistulated": z.number().int().optional(), | |
| 46 | + "heteropod": z.number().int().optional(), | |
| 47 | + "homocerc": z.boolean().optional(), | |
| 48 | + "Juniperus": z.number().int().optional(), | |
| 49 | + "labyrinthically": z.number().int().optional(), | |
| 50 | + "martyrization": z.number().int().optional(), | |
| 51 | + "mispolicy": z.number().int().optional(), | |
| 52 | + "multipara": z.number().int().optional(), | |
| 53 | + "Nazirite": z.number().int().optional(), | |
| 54 | + "nonbookish": z.null().optional(), | |
| 55 | + "possessorial": z.number().int().optional(), | |
| 56 | + "shamed": z.number().int().optional(), | |
| 57 | + "shelfworn": z.number().int().optional(), | |
| 58 | + "stagnum": z.number().int().optional(), | |
| 59 | + "Those": z.number().int().optional(), | |
| 60 | + "undecimal": z.number().int().optional(), | |
| 61 | +}); | |
| 62 | + | |
| 63 | +export const AnkeeClassSchema = z.object({ | |
| 64 | + "Anomoean": z.null(), | |
| 65 | + "barleyhood": z.null(), | |
| 66 | + "befriender": z.null(), | |
| 67 | + "brutishness": z.null(), | |
| 68 | + "cephalalgy": z.null(), | |
| 69 | + "cirurgian": z.null(), | |
| 70 | + "conventionally": z.null(), | |
| 71 | + "jackshay": z.null(), | |
| 72 | + "milammeter": z.null(), | |
| 73 | + "Naja": z.null(), | |
| 74 | + "ombrological": z.null(), | |
| 75 | + "phonasthenia": z.null(), | |
| 76 | + "retrievableness": z.null(), | |
| 77 | + "snakily": z.null(), | |
| 78 | + "swot": z.null(), | |
| 79 | + "tartlet": z.null(), | |
| 80 | + "thiofuran": z.null(), | |
| 81 | + "tracheophone": z.null(), | |
| 82 | + "tuglike": z.null(), | |
| 83 | + "unscratchingly": z.null(), | |
| 84 | +}); | |
| 85 | + | |
| 86 | +export const AnsarieClassSchema = z.object({ | |
| 87 | + "accension": z.null(), | |
| 88 | + "Alida": z.null(), | |
| 89 | + "asteria": z.null(), | |
| 90 | + "beriberic": z.null(), | |
| 91 | + "edgebone": z.null(), | |
| 92 | + "gastrodialysis": z.null(), | |
| 93 | + "geographic": z.null(), | |
| 94 | + "Ictonyx": z.null(), | |
| 95 | + "metrocele": z.null(), | |
| 96 | + "misgraft": z.null(), | |
| 97 | + "monteith": z.null(), | |
| 98 | + "notcher": z.null(), | |
| 99 | + "prorestriction": z.null(), | |
| 100 | + "Ramist": z.null(), | |
| 101 | + "throatlet": z.null(), | |
| 102 | + "unfair": z.null(), | |
| 103 | + "unsynonymous": z.null(), | |
| 104 | + "water": z.null(), | |
| 105 | + "zestfully": z.null(), | |
| 106 | + "zincic": z.null(), | |
| 107 | +}); | |
| 108 | + | |
| 109 | +export const ChytridiaceaeClassSchema = z.object({ | |
| 110 | + "Batidaceae": z.null(), | |
| 111 | + "Brechites": z.null(), | |
| 112 | + "codespairer": z.null(), | |
| 113 | + "Emery": z.null(), | |
| 114 | + "enervative": z.null(), | |
| 115 | + "excriminate": z.null(), | |
| 116 | + "goshenite": z.null(), | |
| 117 | + "grime": z.null(), | |
| 118 | + "gritten": z.null(), | |
| 119 | + "hectorly": z.null(), | |
| 120 | + "intermediation": z.null(), | |
| 121 | + "meeterly": z.null(), | |
| 122 | + "Narraganset": z.null(), | |
| 123 | + "onymatic": z.null(), | |
| 124 | + "paddlecock": z.null(), | |
| 125 | + "thana": z.null(), | |
| 126 | + "thornily": z.null(), | |
| 127 | + "uckia": z.null(), | |
| 128 | + "unmettle": z.null(), | |
| 129 | + "vorticellid": z.null(), | |
| 130 | +}); | |
| 131 | + | |
| 132 | +export const DiscordiaClassSchema = z.object({ | |
| 133 | + "Altaic": z.number().int().optional(), | |
| 134 | + "amoristic": z.number().int().optional(), | |
| 135 | + "blennophthalmia": z.number().int().optional(), | |
| 136 | + "catharticalness": z.number().optional(), | |
| 137 | + "Chirotherium": z.number().int().optional(), | |
| 138 | + "disciplinability": z.number().int().optional(), | |
| 139 | + "disdiapason": z.string().optional(), | |
| 140 | + "goofer": z.number().int().optional(), | |
| 141 | + "homocerc": z.boolean().optional(), | |
| 142 | + "laryngograph": z.number().int().optional(), | |
| 143 | + "leucitis": z.number().int().optional(), | |
| 144 | + "lymphocyst": z.number().int().optional(), | |
| 145 | + "microcosmology": z.number().int().optional(), | |
| 146 | + "nauseation": z.number().int().optional(), | |
| 147 | + "nonbookish": z.null().optional(), | |
| 148 | + "Patarin": z.number().int().optional(), | |
| 149 | + "preliberal": z.number().int().optional(), | |
| 150 | + "prettifier": z.number().int().optional(), | |
| 151 | + "rangework": z.number().int().optional(), | |
| 152 | + "redient": z.number().int().optional(), | |
| 153 | + "subfusiform": z.number().int().optional(), | |
| 154 | + "suicidical": z.number().int().optional(), | |
| 155 | + "swow": z.number().int().optional(), | |
| 156 | + "wastrel": z.number().int().optional(), | |
| 157 | + "wingle": z.number().int().optional(), | |
| 158 | +}); | |
| 159 | + | |
| 160 | +export const GryphosaurusClassSchema = z.object({ | |
| 161 | + "amissibility": z.null(), | |
| 162 | + "Burushaski": z.null(), | |
| 163 | + "citronin": z.null(), | |
| 164 | + "coplaintiff": z.null(), | |
| 165 | + "disquisitionary": z.null(), | |
| 166 | + "enoplan": z.null(), | |
| 167 | + "faintness": z.null(), | |
| 168 | + "hebetomy": z.null(), | |
| 169 | + "islandry": z.null(), | |
| 170 | + "lameduck": z.null(), | |
| 171 | + "overbattle": z.null(), | |
| 172 | + "overinterested": z.null(), | |
| 173 | + "phrenologic": z.null(), | |
| 174 | + "rainband": z.null(), | |
| 175 | + "shiningly": z.null(), | |
| 176 | + "stamineous": z.null(), | |
| 177 | + "subscapularis": z.null(), | |
| 178 | + "Tahami": z.null(), | |
| 179 | + "undaubed": z.null(), | |
| 180 | + "underntime": z.null(), | |
| 181 | +}); | |
| 182 | + | |
| 183 | +export const LaviniaClassSchema = z.object({ | |
| 184 | + "agitable": z.number().int().optional(), | |
| 185 | + "asininity": z.number().int().optional(), | |
| 186 | + "benefiter": z.number().int().optional(), | |
| 187 | + "bronzelike": z.number().int().optional(), | |
| 188 | + "catharticalness": z.number().optional(), | |
| 189 | + "Chirotherium": z.number().int().optional(), | |
| 190 | + "cholesteatomatous": z.number().int().optional(), | |
| 191 | + "deprivement": z.number().int().optional(), | |
| 192 | + "disdiapason": z.string().optional(), | |
| 193 | + "flippantness": z.number().int().optional(), | |
| 194 | + "fogproof": z.number().int().optional(), | |
| 195 | + "homocerc": z.boolean().optional(), | |
| 196 | + "merrymeeting": z.number().int().optional(), | |
| 197 | + "nonbookish": z.null().optional(), | |
| 198 | + "overcareful": z.number().int().optional(), | |
| 199 | + "panaris": z.number().int().optional(), | |
| 200 | + "preacceptance": z.number().int().optional(), | |
| 201 | + "quinoxaline": z.number().int().optional(), | |
| 202 | + "sig": z.number().int().optional(), | |
| 203 | + "superconfusion": z.number().int().optional(), | |
| 204 | + "Tacana": z.number().int().optional(), | |
| 205 | + "tillotter": z.number().int().optional(), | |
| 206 | + "tranquillize": z.number().int().optional(), | |
| 207 | + "unquestionable": z.number().int().optional(), | |
| 208 | + "uproute": z.number().int().optional(), | |
| 209 | +}); | |
| 210 | + | |
| 211 | +export const OskarClassSchema = z.object({ | |
| 212 | + "Acrobates": z.null(), | |
| 213 | + "beanshooter": z.null(), | |
| 214 | + "bearhound": z.null(), | |
| 215 | + "Cayuga": z.null(), | |
| 216 | + "guarneri": z.null(), | |
| 217 | + "hypochondriacism": z.null(), | |
| 218 | + "indication": z.null(), | |
| 219 | + "jaculative": z.null(), | |
| 220 | + "nagana": z.null(), | |
| 221 | + "Netherlandish": z.null(), | |
| 222 | + "noctivagous": z.null(), | |
| 223 | + "nonphysiological": z.null(), | |
| 224 | + "praxis": z.null(), | |
| 225 | + "provision": z.null(), | |
| 226 | + "subterhuman": z.null(), | |
| 227 | + "sunlit": z.null(), | |
| 228 | + "syncraniate": z.null(), | |
| 229 | + "teachment": z.null(), | |
| 230 | + "unmutinous": z.null(), | |
| 231 | + "unstoppable": z.null(), | |
| 232 | +}); | |
| 233 | + | |
| 234 | +export const TopLevelSchema = z.object({ | |
| 235 | + "Abranchiata": z.array(z.union([z.null(), z.array(z.number().int()), z.number().int()])), | |
| 236 | + "academe": z.array(z.union([z.array(z.number().int()), z.number().int(), z.record(z.string(), z.number().int())])), | |
| 237 | + "acquirable": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), z.record(z.string(), z.number().int())])), | |
| 238 | + "aerometry": z.array(z.union([z.boolean(), z.number()])), | |
| 239 | + "alexin": z.array(z.union([z.array(z.number().int()), z.boolean()])), | |
| 240 | + "alleviate": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), AlleviateClassSchema])), | |
| 241 | + "amaas": z.array(z.union([z.boolean(), RebeccaSchema, z.number().int()])), | |
| 242 | + "ambassage": z.array(z.union([z.array(z.null()), z.string()])), | |
| 243 | + "amphithyron": z.array(z.union([z.null(), AmphithyronSchema])), | |
| 244 | + "Andriana": z.array(z.union([z.null(), z.string()])), | |
| 245 | + "ankee": z.array(z.union([z.array(z.number().int()), AnkeeClassSchema, z.number().int()])), | |
| 246 | + "annihilator": z.array(z.union([z.null(), z.record(z.string(), z.union([z.null(), z.number().int()]))])), | |
| 247 | + "annulose": z.null(), | |
| 248 | + "Ansarie": z.array(z.union([z.null(), z.array(z.number().int()), AnsarieClassSchema])), | |
| 249 | + "aphasia": z.array(z.union([z.array(z.number().int()), z.number().int()])), | |
| 250 | + "asprawl": z.array(z.union([z.number(), z.string()])), | |
| 251 | + "attractive": z.array(z.union([z.null(), z.boolean()])), | |
| 252 | + "barksome": z.record(z.string(), z.number().int()), | |
| 253 | + "bedesman": z.array(z.union([z.boolean(), z.number(), z.string()])), | |
| 254 | + "belard": z.array(z.union([z.array(z.number().int()), RebeccaSchema, z.number()])), | |
| 255 | + "bocking": z.array(z.union([z.array(z.number().int()), z.boolean(), z.record(z.string(), z.number().int())])), | |
| 256 | + "brawlingly": z.array(z.union([z.array(z.null()), z.record(z.string(), z.union([z.null(), z.number().int()]))])), | |
| 257 | + "brookie": z.array(z.union([z.array(z.number().int()), RebeccaSchema])), | |
| 258 | + "bumboatman": z.array(z.union([z.null(), z.array(z.null()), z.string()])), | |
| 259 | + "bystreet": z.array(z.null()), | |
| 260 | + "calaverite": z.array(z.union([z.array(z.number().int()), z.string()])), | |
| 261 | + "catallactic": z.array(z.union([z.array(z.null()), z.boolean(), z.record(z.string(), z.number().int())])), | |
| 262 | + "cemental": z.array(z.union([z.array(z.number().int()), z.number(), z.record(z.string(), z.number().int())])), | |
| 263 | + "Chytridiaceae": z.array(z.union([z.null(), z.boolean(), ChytridiaceaeClassSchema])), | |
| 264 | + "Discordia": z.array(z.union([z.array(z.number().int()), DiscordiaClassSchema])), | |
| 265 | + "Endomyces": z.array(z.union([z.number().int(), z.string()])), | |
| 266 | + "Epinephelidae": z.array(z.union([z.boolean(), z.number().int(), z.string()])), | |
| 267 | + "Eupatorium": z.array(z.union([z.array(z.null()), z.record(z.string(), z.number().int())])), | |
| 268 | + "Gryphosaurus": z.array(z.union([z.array(z.number().int()), GryphosaurusClassSchema, z.string()])), | |
| 269 | + "Koryak": z.array(z.union([z.record(z.string(), z.union([z.null(), z.number().int()])), z.string()])), | |
| 270 | + "Lavinia": z.array(z.union([LaviniaClassSchema, z.string()])), | |
| 271 | + "Oskar": z.array(z.union([z.array(z.number().int()), OskarClassSchema])), | |
| 272 | + "Rebecca": z.array(z.union([RebeccaSchema, z.number().int(), z.string()])), | |
| 273 | + "Rhomboganoidei": z.array(z.union([z.array(z.number().int()), RebeccaSchema, z.string()])), | |
| 274 | + "Rigsmal": z.boolean(), | |
| 275 | + "Ruellia": z.array(z.union([z.boolean(), RebeccaSchema, z.string()])), | |
| 276 | + "School": z.array(z.union([z.null(), z.number().int(), z.record(z.string(), z.number().int())])), | |
| 277 | + "Shakespearolater": z.array(z.union([z.array(z.number().int()), z.number(), z.string()])), | |
| 278 | + "Svan": z.array(z.number()), | |
| 279 | + "Wayao": z.record(z.string(), z.number()), | |
| 280 | +}); |
Test case
3 generated files · +1,268 −70test/inputs/json/priority/combinations3.json
Melixirdefault / QuickType.ex+500 −70
| @@ -666,39 +666,173 @@ defmodule LupusClass do | ||
| 666 | 666 | vendible: integer() | nil |
| 667 | 667 | } |
| 668 | 668 | |
| 669 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 670 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 671 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding LupusClass.catharticalness"} | |
| 672 | + | |
| 673 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 674 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 675 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding LupusClass.catharticalness"} | |
| 676 | + | |
| 677 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 678 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding LupusClass.chirotherium"} | |
| 679 | + | |
| 680 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 681 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding LupusClass.chirotherium"} | |
| 682 | + | |
| 683 | + def decode_chlorioninae(value) when is_integer(value), do: value | |
| 684 | + def decode_chlorioninae(_), do: {:error, "Unexpected type when decoding LupusClass.chlorioninae"} | |
| 685 | + | |
| 686 | + def encode_chlorioninae(value) when is_integer(value), do: value | |
| 687 | + def encode_chlorioninae(_), do: {:error, "Unexpected type when encoding LupusClass.chlorioninae"} | |
| 688 | + | |
| 689 | + def decode_corvinae(value) when is_integer(value), do: value | |
| 690 | + def decode_corvinae(_), do: {:error, "Unexpected type when decoding LupusClass.corvinae"} | |
| 691 | + | |
| 692 | + def encode_corvinae(value) when is_integer(value), do: value | |
| 693 | + def encode_corvinae(_), do: {:error, "Unexpected type when encoding LupusClass.corvinae"} | |
| 694 | + | |
| 695 | + def decode_crassina(value) when is_integer(value), do: value | |
| 696 | + def decode_crassina(_), do: {:error, "Unexpected type when decoding LupusClass.crassina"} | |
| 697 | + | |
| 698 | + def encode_crassina(value) when is_integer(value), do: value | |
| 699 | + def encode_crassina(_), do: {:error, "Unexpected type when encoding LupusClass.crassina"} | |
| 700 | + | |
| 669 | 701 | def decode_disdiapason(value) when is_binary(value), do: value |
| 670 | 702 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding LupusClass.disdiapason"} |
| 671 | 703 | |
| 672 | 704 | def encode_disdiapason(value) when is_binary(value), do: value |
| 673 | 705 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding LupusClass.disdiapason"} |
| 674 | 706 | |
| 707 | + def decode_exiguity(value) when is_integer(value), do: value | |
| 708 | + def decode_exiguity(_), do: {:error, "Unexpected type when decoding LupusClass.exiguity"} | |
| 709 | + | |
| 710 | + def encode_exiguity(value) when is_integer(value), do: value | |
| 711 | + def encode_exiguity(_), do: {:error, "Unexpected type when encoding LupusClass.exiguity"} | |
| 712 | + | |
| 713 | + def decode_farcist(value) when is_integer(value), do: value | |
| 714 | + def decode_farcist(_), do: {:error, "Unexpected type when decoding LupusClass.farcist"} | |
| 715 | + | |
| 716 | + def encode_farcist(value) when is_integer(value), do: value | |
| 717 | + def encode_farcist(_), do: {:error, "Unexpected type when encoding LupusClass.farcist"} | |
| 718 | + | |
| 719 | + def decode_holographical(value) when is_integer(value), do: value | |
| 720 | + def decode_holographical(_), do: {:error, "Unexpected type when decoding LupusClass.holographical"} | |
| 721 | + | |
| 722 | + def encode_holographical(value) when is_integer(value), do: value | |
| 723 | + def encode_holographical(_), do: {:error, "Unexpected type when encoding LupusClass.holographical"} | |
| 724 | + | |
| 725 | + def decode_ichthyophagan(value) when is_integer(value), do: value | |
| 726 | + def decode_ichthyophagan(_), do: {:error, "Unexpected type when decoding LupusClass.ichthyophagan"} | |
| 727 | + | |
| 728 | + def encode_ichthyophagan(value) when is_integer(value), do: value | |
| 729 | + def encode_ichthyophagan(_), do: {:error, "Unexpected type when encoding LupusClass.ichthyophagan"} | |
| 730 | + | |
| 731 | + def decode_implacable(value) when is_integer(value), do: value | |
| 732 | + def decode_implacable(_), do: {:error, "Unexpected type when decoding LupusClass.implacable"} | |
| 733 | + | |
| 734 | + def encode_implacable(value) when is_integer(value), do: value | |
| 735 | + def encode_implacable(_), do: {:error, "Unexpected type when encoding LupusClass.implacable"} | |
| 736 | + | |
| 737 | + def decode_outshiner(value) when is_integer(value), do: value | |
| 738 | + def decode_outshiner(_), do: {:error, "Unexpected type when decoding LupusClass.outshiner"} | |
| 739 | + | |
| 740 | + def encode_outshiner(value) when is_integer(value), do: value | |
| 741 | + def encode_outshiner(_), do: {:error, "Unexpected type when encoding LupusClass.outshiner"} | |
| 742 | + | |
| 743 | + def decode_overweather(value) when is_integer(value), do: value | |
| 744 | + def decode_overweather(_), do: {:error, "Unexpected type when decoding LupusClass.overweather"} | |
| 745 | + | |
| 746 | + def encode_overweather(value) when is_integer(value), do: value | |
| 747 | + def encode_overweather(_), do: {:error, "Unexpected type when encoding LupusClass.overweather"} | |
| 748 | + | |
| 749 | + def decode_protonegroid(value) when is_integer(value), do: value | |
| 750 | + def decode_protonegroid(_), do: {:error, "Unexpected type when decoding LupusClass.protonegroid"} | |
| 751 | + | |
| 752 | + def encode_protonegroid(value) when is_integer(value), do: value | |
| 753 | + def encode_protonegroid(_), do: {:error, "Unexpected type when encoding LupusClass.protonegroid"} | |
| 754 | + | |
| 755 | + def decode_shallowish(value) when is_integer(value), do: value | |
| 756 | + def decode_shallowish(_), do: {:error, "Unexpected type when decoding LupusClass.shallowish"} | |
| 757 | + | |
| 758 | + def encode_shallowish(value) when is_integer(value), do: value | |
| 759 | + def encode_shallowish(_), do: {:error, "Unexpected type when encoding LupusClass.shallowish"} | |
| 760 | + | |
| 761 | + def decode_snoke(value) when is_integer(value), do: value | |
| 762 | + def decode_snoke(_), do: {:error, "Unexpected type when decoding LupusClass.snoke"} | |
| 763 | + | |
| 764 | + def encode_snoke(value) when is_integer(value), do: value | |
| 765 | + def encode_snoke(_), do: {:error, "Unexpected type when encoding LupusClass.snoke"} | |
| 766 | + | |
| 767 | + def decode_snout(value) when is_integer(value), do: value | |
| 768 | + def decode_snout(_), do: {:error, "Unexpected type when decoding LupusClass.snout"} | |
| 769 | + | |
| 770 | + def encode_snout(value) when is_integer(value), do: value | |
| 771 | + def encode_snout(_), do: {:error, "Unexpected type when encoding LupusClass.snout"} | |
| 772 | + | |
| 773 | + def decode_surveillance(value) when is_integer(value), do: value | |
| 774 | + def decode_surveillance(_), do: {:error, "Unexpected type when decoding LupusClass.surveillance"} | |
| 775 | + | |
| 776 | + def encode_surveillance(value) when is_integer(value), do: value | |
| 777 | + def encode_surveillance(_), do: {:error, "Unexpected type when encoding LupusClass.surveillance"} | |
| 778 | + | |
| 779 | + def decode_threshingtime(value) when is_integer(value), do: value | |
| 780 | + def decode_threshingtime(_), do: {:error, "Unexpected type when decoding LupusClass.threshingtime"} | |
| 781 | + | |
| 782 | + def encode_threshingtime(value) when is_integer(value), do: value | |
| 783 | + def encode_threshingtime(_), do: {:error, "Unexpected type when encoding LupusClass.threshingtime"} | |
| 784 | + | |
| 785 | + def decode_thysanocarpus(value) when is_integer(value), do: value | |
| 786 | + def decode_thysanocarpus(_), do: {:error, "Unexpected type when decoding LupusClass.thysanocarpus"} | |
| 787 | + | |
| 788 | + def encode_thysanocarpus(value) when is_integer(value), do: value | |
| 789 | + def encode_thysanocarpus(_), do: {:error, "Unexpected type when encoding LupusClass.thysanocarpus"} | |
| 790 | + | |
| 791 | + def decode_unsignificantly(value) when is_integer(value), do: value | |
| 792 | + def decode_unsignificantly(_), do: {:error, "Unexpected type when decoding LupusClass.unsignificantly"} | |
| 793 | + | |
| 794 | + def encode_unsignificantly(value) when is_integer(value), do: value | |
| 795 | + def encode_unsignificantly(_), do: {:error, "Unexpected type when encoding LupusClass.unsignificantly"} | |
| 796 | + | |
| 797 | + def decode_unsnap(value) when is_integer(value), do: value | |
| 798 | + def decode_unsnap(_), do: {:error, "Unexpected type when decoding LupusClass.unsnap"} | |
| 799 | + | |
| 800 | + def encode_unsnap(value) when is_integer(value), do: value | |
| 801 | + def encode_unsnap(_), do: {:error, "Unexpected type when encoding LupusClass.unsnap"} | |
| 802 | + | |
| 803 | + def decode_vendible(value) when is_integer(value), do: value | |
| 804 | + def decode_vendible(_), do: {:error, "Unexpected type when decoding LupusClass.vendible"} | |
| 805 | + | |
| 806 | + def encode_vendible(value) when is_integer(value), do: value | |
| 807 | + def encode_vendible(_), do: {:error, "Unexpected type when encoding LupusClass.vendible"} | |
| 808 | + | |
| 675 | 809 | def from_map(m) do |
| 676 | 810 | %LupusClass{ |
| 677 | - catharticalness: m["catharticalness"], | |
| 678 | - chirotherium: m["Chirotherium"], | |
| 679 | - chlorioninae: m["Chlorioninae"], | |
| 680 | - corvinae: m["Corvinae"], | |
| 681 | - crassina: m["Crassina"], | |
| 811 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 812 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 813 | + chlorioninae: m["Chlorioninae"] && decode_chlorioninae(m["Chlorioninae"]), | |
| 814 | + corvinae: m["Corvinae"] && decode_corvinae(m["Corvinae"]), | |
| 815 | + crassina: m["Crassina"] && decode_crassina(m["Crassina"]), | |
| 682 | 816 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 683 | - exiguity: m["exiguity"], | |
| 684 | - farcist: m["farcist"], | |
| 685 | - holographical: m["holographical"], | |
| 817 | + exiguity: m["exiguity"] && decode_exiguity(m["exiguity"]), | |
| 818 | + farcist: m["farcist"] && decode_farcist(m["farcist"]), | |
| 819 | + holographical: m["holographical"] && decode_holographical(m["holographical"]), | |
| 686 | 820 | homocerc: m["homocerc"], |
| 687 | - ichthyophagan: m["ichthyophagan"], | |
| 688 | - implacable: m["implacable"], | |
| 821 | + ichthyophagan: m["ichthyophagan"] && decode_ichthyophagan(m["ichthyophagan"]), | |
| 822 | + implacable: m["implacable"] && decode_implacable(m["implacable"]), | |
| 689 | 823 | nonbookish: m["nonbookish"], |
| 690 | - outshiner: m["outshiner"], | |
| 691 | - overweather: m["overweather"], | |
| 692 | - protonegroid: m["protonegroid"], | |
| 693 | - shallowish: m["shallowish"], | |
| 694 | - snoke: m["snoke"], | |
| 695 | - snout: m["snout"], | |
| 696 | - surveillance: m["surveillance"], | |
| 697 | - threshingtime: m["threshingtime"], | |
| 698 | - thysanocarpus: m["Thysanocarpus"], | |
| 699 | - unsignificantly: m["unsignificantly"], | |
| 700 | - unsnap: m["unsnap"], | |
| 701 | - vendible: m["vendible"], | |
| 824 | + outshiner: m["outshiner"] && decode_outshiner(m["outshiner"]), | |
| 825 | + overweather: m["overweather"] && decode_overweather(m["overweather"]), | |
| 826 | + protonegroid: m["protonegroid"] && decode_protonegroid(m["protonegroid"]), | |
| 827 | + shallowish: m["shallowish"] && decode_shallowish(m["shallowish"]), | |
| 828 | + snoke: m["snoke"] && decode_snoke(m["snoke"]), | |
| 829 | + snout: m["snout"] && decode_snout(m["snout"]), | |
| 830 | + surveillance: m["surveillance"] && decode_surveillance(m["surveillance"]), | |
| 831 | + threshingtime: m["threshingtime"] && decode_threshingtime(m["threshingtime"]), | |
| 832 | + thysanocarpus: m["Thysanocarpus"] && decode_thysanocarpus(m["Thysanocarpus"]), | |
| 833 | + unsignificantly: m["unsignificantly"] && decode_unsignificantly(m["unsignificantly"]), | |
| 834 | + unsnap: m["unsnap"] && decode_unsnap(m["unsnap"]), | |
| 835 | + vendible: m["vendible"] && decode_vendible(m["vendible"]), | |
| 702 | 836 | } |
| 703 | 837 | end |
| 704 | 838 | |
| @@ -796,57 +930,191 @@ defmodule Maslin do | ||
| 796 | 930 | unjudiciously: nil | nil |
| 797 | 931 | } |
| 798 | 932 | |
| 933 | + def decode_alicant(value) when is_integer(value), do: value | |
| 934 | + def decode_alicant(_), do: {:error, "Unexpected type when decoding Maslin.alicant"} | |
| 935 | + | |
| 936 | + def encode_alicant(value) when is_integer(value), do: value | |
| 937 | + def encode_alicant(_), do: {:error, "Unexpected type when encoding Maslin.alicant"} | |
| 938 | + | |
| 939 | + def decode_anticorrosive(value) when is_integer(value), do: value | |
| 940 | + def decode_anticorrosive(_), do: {:error, "Unexpected type when decoding Maslin.anticorrosive"} | |
| 941 | + | |
| 942 | + def encode_anticorrosive(value) when is_integer(value), do: value | |
| 943 | + def encode_anticorrosive(_), do: {:error, "Unexpected type when encoding Maslin.anticorrosive"} | |
| 944 | + | |
| 945 | + def decode_be(value) when is_integer(value), do: value | |
| 946 | + def decode_be(_), do: {:error, "Unexpected type when decoding Maslin.be"} | |
| 947 | + | |
| 948 | + def encode_be(value) when is_integer(value), do: value | |
| 949 | + def encode_be(_), do: {:error, "Unexpected type when encoding Maslin.be"} | |
| 950 | + | |
| 951 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 952 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 953 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding Maslin.catharticalness"} | |
| 954 | + | |
| 955 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 956 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 957 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding Maslin.catharticalness"} | |
| 958 | + | |
| 959 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 960 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding Maslin.chirotherium"} | |
| 961 | + | |
| 962 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 963 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding Maslin.chirotherium"} | |
| 964 | + | |
| 965 | + def decode_chub(value) when is_integer(value), do: value | |
| 966 | + def decode_chub(_), do: {:error, "Unexpected type when decoding Maslin.chub"} | |
| 967 | + | |
| 968 | + def encode_chub(value) when is_integer(value), do: value | |
| 969 | + def encode_chub(_), do: {:error, "Unexpected type when encoding Maslin.chub"} | |
| 970 | + | |
| 971 | + def decode_cuprosilicon(value) when is_integer(value), do: value | |
| 972 | + def decode_cuprosilicon(_), do: {:error, "Unexpected type when decoding Maslin.cuprosilicon"} | |
| 973 | + | |
| 974 | + def encode_cuprosilicon(value) when is_integer(value), do: value | |
| 975 | + def encode_cuprosilicon(_), do: {:error, "Unexpected type when encoding Maslin.cuprosilicon"} | |
| 976 | + | |
| 977 | + def decode_curtailedly(value) when is_integer(value), do: value | |
| 978 | + def decode_curtailedly(_), do: {:error, "Unexpected type when decoding Maslin.curtailedly"} | |
| 979 | + | |
| 980 | + def encode_curtailedly(value) when is_integer(value), do: value | |
| 981 | + def encode_curtailedly(_), do: {:error, "Unexpected type when encoding Maslin.curtailedly"} | |
| 982 | + | |
| 983 | + def decode_dellenite(value) when is_integer(value), do: value | |
| 984 | + def decode_dellenite(_), do: {:error, "Unexpected type when decoding Maslin.dellenite"} | |
| 985 | + | |
| 986 | + def encode_dellenite(value) when is_integer(value), do: value | |
| 987 | + def encode_dellenite(_), do: {:error, "Unexpected type when encoding Maslin.dellenite"} | |
| 988 | + | |
| 989 | + def decode_dimitry(value) when is_integer(value), do: value | |
| 990 | + def decode_dimitry(_), do: {:error, "Unexpected type when decoding Maslin.dimitry"} | |
| 991 | + | |
| 992 | + def encode_dimitry(value) when is_integer(value), do: value | |
| 993 | + def encode_dimitry(_), do: {:error, "Unexpected type when encoding Maslin.dimitry"} | |
| 994 | + | |
| 799 | 995 | def decode_disdiapason(value) when is_binary(value), do: value |
| 800 | 996 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding Maslin.disdiapason"} |
| 801 | 997 | |
| 802 | 998 | def encode_disdiapason(value) when is_binary(value), do: value |
| 803 | 999 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding Maslin.disdiapason"} |
| 804 | 1000 | |
| 1001 | + def decode_ethmoiditis(value) when is_integer(value), do: value | |
| 1002 | + def decode_ethmoiditis(_), do: {:error, "Unexpected type when decoding Maslin.ethmoiditis"} | |
| 1003 | + | |
| 1004 | + def encode_ethmoiditis(value) when is_integer(value), do: value | |
| 1005 | + def encode_ethmoiditis(_), do: {:error, "Unexpected type when encoding Maslin.ethmoiditis"} | |
| 1006 | + | |
| 1007 | + def decode_goatherd(value) when is_integer(value), do: value | |
| 1008 | + def decode_goatherd(_), do: {:error, "Unexpected type when decoding Maslin.goatherd"} | |
| 1009 | + | |
| 1010 | + def encode_goatherd(value) when is_integer(value), do: value | |
| 1011 | + def encode_goatherd(_), do: {:error, "Unexpected type when encoding Maslin.goatherd"} | |
| 1012 | + | |
| 1013 | + def decode_hammerdress(value) when is_integer(value), do: value | |
| 1014 | + def decode_hammerdress(_), do: {:error, "Unexpected type when decoding Maslin.hammerdress"} | |
| 1015 | + | |
| 1016 | + def encode_hammerdress(value) when is_integer(value), do: value | |
| 1017 | + def encode_hammerdress(_), do: {:error, "Unexpected type when encoding Maslin.hammerdress"} | |
| 1018 | + | |
| 1019 | + def decode_lacunosity(value) when is_integer(value), do: value | |
| 1020 | + def decode_lacunosity(_), do: {:error, "Unexpected type when decoding Maslin.lacunosity"} | |
| 1021 | + | |
| 1022 | + def encode_lacunosity(value) when is_integer(value), do: value | |
| 1023 | + def encode_lacunosity(_), do: {:error, "Unexpected type when encoding Maslin.lacunosity"} | |
| 1024 | + | |
| 1025 | + def decode_mameliere(value) when is_integer(value), do: value | |
| 1026 | + def decode_mameliere(_), do: {:error, "Unexpected type when decoding Maslin.mameliere"} | |
| 1027 | + | |
| 1028 | + def encode_mameliere(value) when is_integer(value), do: value | |
| 1029 | + def encode_mameliere(_), do: {:error, "Unexpected type when encoding Maslin.mameliere"} | |
| 1030 | + | |
| 1031 | + def decode_oafishly(value) when is_integer(value), do: value | |
| 1032 | + def decode_oafishly(_), do: {:error, "Unexpected type when decoding Maslin.oafishly"} | |
| 1033 | + | |
| 1034 | + def encode_oafishly(value) when is_integer(value), do: value | |
| 1035 | + def encode_oafishly(_), do: {:error, "Unexpected type when encoding Maslin.oafishly"} | |
| 1036 | + | |
| 1037 | + def decode_saccharulmic(value) when is_integer(value), do: value | |
| 1038 | + def decode_saccharulmic(_), do: {:error, "Unexpected type when decoding Maslin.saccharulmic"} | |
| 1039 | + | |
| 1040 | + def encode_saccharulmic(value) when is_integer(value), do: value | |
| 1041 | + def encode_saccharulmic(_), do: {:error, "Unexpected type when encoding Maslin.saccharulmic"} | |
| 1042 | + | |
| 1043 | + def decode_scowlful(value) when is_integer(value), do: value | |
| 1044 | + def decode_scowlful(_), do: {:error, "Unexpected type when decoding Maslin.scowlful"} | |
| 1045 | + | |
| 1046 | + def encode_scowlful(value) when is_integer(value), do: value | |
| 1047 | + def encode_scowlful(_), do: {:error, "Unexpected type when encoding Maslin.scowlful"} | |
| 1048 | + | |
| 1049 | + def decode_sphaeridial(value) when is_integer(value), do: value | |
| 1050 | + def decode_sphaeridial(_), do: {:error, "Unexpected type when decoding Maslin.sphaeridial"} | |
| 1051 | + | |
| 1052 | + def encode_sphaeridial(value) when is_integer(value), do: value | |
| 1053 | + def encode_sphaeridial(_), do: {:error, "Unexpected type when encoding Maslin.sphaeridial"} | |
| 1054 | + | |
| 1055 | + def decode_subsecive(value) when is_integer(value), do: value | |
| 1056 | + def decode_subsecive(_), do: {:error, "Unexpected type when decoding Maslin.subsecive"} | |
| 1057 | + | |
| 1058 | + def encode_subsecive(value) when is_integer(value), do: value | |
| 1059 | + def encode_subsecive(_), do: {:error, "Unexpected type when encoding Maslin.subsecive"} | |
| 1060 | + | |
| 1061 | + def decode_trachyglossate(value) when is_integer(value), do: value | |
| 1062 | + def decode_trachyglossate(_), do: {:error, "Unexpected type when decoding Maslin.trachyglossate"} | |
| 1063 | + | |
| 1064 | + def encode_trachyglossate(value) when is_integer(value), do: value | |
| 1065 | + def encode_trachyglossate(_), do: {:error, "Unexpected type when encoding Maslin.trachyglossate"} | |
| 1066 | + | |
| 1067 | + def decode_unassuaged(value) when is_integer(value), do: value | |
| 1068 | + def decode_unassuaged(_), do: {:error, "Unexpected type when decoding Maslin.unassuaged"} | |
| 1069 | + | |
| 1070 | + def encode_unassuaged(value) when is_integer(value), do: value | |
| 1071 | + def encode_unassuaged(_), do: {:error, "Unexpected type when encoding Maslin.unassuaged"} | |
| 1072 | + | |
| 805 | 1073 | def from_map(m) do |
| 806 | 1074 | %Maslin{ |
| 807 | - alicant: m["Alicant"], | |
| 1075 | + alicant: m["Alicant"] && decode_alicant(m["Alicant"]), | |
| 808 | 1076 | antiatonement: m["antiatonement"], |
| 809 | - anticorrosive: m["anticorrosive"], | |
| 1077 | + anticorrosive: m["anticorrosive"] && decode_anticorrosive(m["anticorrosive"]), | |
| 810 | 1078 | aphidozer: m["aphidozer"], |
| 811 | 1079 | bakuninist: m["Bakuninist"], |
| 812 | - be: m["be"], | |
| 813 | - catharticalness: m["catharticalness"], | |
| 814 | - chirotherium: m["Chirotherium"], | |
| 815 | - chub: m["chub"], | |
| 816 | - cuprosilicon: m["cuprosilicon"], | |
| 817 | - curtailedly: m["curtailedly"], | |
| 818 | - dellenite: m["dellenite"], | |
| 819 | - dimitry: m["Dimitry"], | |
| 1080 | + be: m["be"] && decode_be(m["be"]), | |
| 1081 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 1082 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1083 | + chub: m["chub"] && decode_chub(m["chub"]), | |
| 1084 | + cuprosilicon: m["cuprosilicon"] && decode_cuprosilicon(m["cuprosilicon"]), | |
| 1085 | + curtailedly: m["curtailedly"] && decode_curtailedly(m["curtailedly"]), | |
| 1086 | + dellenite: m["dellenite"] && decode_dellenite(m["dellenite"]), | |
| 1087 | + dimitry: m["Dimitry"] && decode_dimitry(m["Dimitry"]), | |
| 820 | 1088 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 821 | 1089 | edifying: m["edifying"], |
| 822 | - ethmoiditis: m["ethmoiditis"], | |
| 1090 | + ethmoiditis: m["ethmoiditis"] && decode_ethmoiditis(m["ethmoiditis"]), | |
| 823 | 1091 | gastralgy: m["gastralgy"], |
| 824 | - goatherd: m["goatherd"], | |
| 825 | - hammerdress: m["hammerdress"], | |
| 1092 | + goatherd: m["goatherd"] && decode_goatherd(m["goatherd"]), | |
| 1093 | + hammerdress: m["hammerdress"] && decode_hammerdress(m["hammerdress"]), | |
| 826 | 1094 | hangfire: m["hangfire"], |
| 827 | 1095 | homocerc: m["homocerc"], |
| 828 | - lacunosity: m["lacunosity"], | |
| 1096 | + lacunosity: m["lacunosity"] && decode_lacunosity(m["lacunosity"]), | |
| 829 | 1097 | longiloquence: m["longiloquence"], |
| 830 | - mameliere: m["mameliere"], | |
| 1098 | + mameliere: m["mameliere"] && decode_mameliere(m["mameliere"]), | |
| 831 | 1099 | motherless: m["motherless"], |
| 832 | 1100 | nonbookish: m["nonbookish"], |
| 833 | 1101 | noncorrodible: m["noncorrodible"], |
| 834 | 1102 | nonsensicality: m["nonsensicality"], |
| 835 | - oafishly: m["oafishly"], | |
| 1103 | + oafishly: m["oafishly"] && decode_oafishly(m["oafishly"]), | |
| 836 | 1104 | pfund: m["pfund"], |
| 837 | 1105 | preadvisory: m["preadvisory"], |
| 838 | 1106 | retroflexed: m["retroflexed"], |
| 839 | - saccharulmic: m["saccharulmic"], | |
| 840 | - scowlful: m["scowlful"], | |
| 1107 | + saccharulmic: m["saccharulmic"] && decode_saccharulmic(m["saccharulmic"]), | |
| 1108 | + scowlful: m["scowlful"] && decode_scowlful(m["scowlful"]), | |
| 841 | 1109 | secluded: m["secluded"], |
| 842 | 1110 | slackage: m["slackage"], |
| 843 | - sphaeridial: m["sphaeridial"], | |
| 1111 | + sphaeridial: m["sphaeridial"] && decode_sphaeridial(m["sphaeridial"]), | |
| 844 | 1112 | spondulics: m["spondulics"], |
| 845 | - subsecive: m["subsecive"], | |
| 1113 | + subsecive: m["subsecive"] && decode_subsecive(m["subsecive"]), | |
| 846 | 1114 | swellmobsman: m["swellmobsman"], |
| 847 | - trachyglossate: m["trachyglossate"], | |
| 1115 | + trachyglossate: m["trachyglossate"] && decode_trachyglossate(m["trachyglossate"]), | |
| 848 | 1116 | trialogue: m["trialogue"], |
| 849 | - unassuaged: m["unassuaged"], | |
| 1117 | + unassuaged: m["unassuaged"] && decode_unassuaged(m["unassuaged"]), | |
| 850 | 1118 | ungross: m["ungross"], |
| 851 | 1119 | unjudiciously: m["unjudiciously"], |
| 852 | 1120 | } |
| @@ -1023,6 +1291,20 @@ defmodule MonotheisticallyClass do | ||
| 1023 | 1291 | whitestone: nil | nil |
| 1024 | 1292 | } |
| 1025 | 1293 | |
| 1294 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 1295 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 1296 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding MonotheisticallyClass.catharticalness"} | |
| 1297 | + | |
| 1298 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 1299 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 1300 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding MonotheisticallyClass.catharticalness"} | |
| 1301 | + | |
| 1302 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 1303 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding MonotheisticallyClass.chirotherium"} | |
| 1304 | + | |
| 1305 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 1306 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding MonotheisticallyClass.chirotherium"} | |
| 1307 | + | |
| 1026 | 1308 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1027 | 1309 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding MonotheisticallyClass.disdiapason"} |
| 1028 | 1310 | |
| @@ -1032,9 +1314,9 @@ defmodule MonotheisticallyClass do | ||
| 1032 | 1314 | def from_map(m) do |
| 1033 | 1315 | %MonotheisticallyClass{ |
| 1034 | 1316 | blaspheme: m["blaspheme"], |
| 1035 | - catharticalness: m["catharticalness"], | |
| 1317 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 1036 | 1318 | celiosalpingectomy: m["celiosalpingectomy"], |
| 1037 | - chirotherium: m["Chirotherium"], | |
| 1319 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1038 | 1320 | consummativeness: m["consummativeness"], |
| 1039 | 1321 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1040 | 1322 | egestive: m["egestive"], |
| @@ -1630,39 +1912,173 @@ defmodule PiaculumClass do | ||
| 1630 | 1912 | zipper: integer() | nil |
| 1631 | 1913 | } |
| 1632 | 1914 | |
| 1915 | + def decode_alada(value) when is_integer(value), do: value | |
| 1916 | + def decode_alada(_), do: {:error, "Unexpected type when decoding PiaculumClass.alada"} | |
| 1917 | + | |
| 1918 | + def encode_alada(value) when is_integer(value), do: value | |
| 1919 | + def encode_alada(_), do: {:error, "Unexpected type when encoding PiaculumClass.alada"} | |
| 1920 | + | |
| 1921 | + def decode_amphistomous(value) when is_integer(value), do: value | |
| 1922 | + def decode_amphistomous(_), do: {:error, "Unexpected type when decoding PiaculumClass.amphistomous"} | |
| 1923 | + | |
| 1924 | + def encode_amphistomous(value) when is_integer(value), do: value | |
| 1925 | + def encode_amphistomous(_), do: {:error, "Unexpected type when encoding PiaculumClass.amphistomous"} | |
| 1926 | + | |
| 1927 | + def decode_boysenberry(value) when is_integer(value), do: value | |
| 1928 | + def decode_boysenberry(_), do: {:error, "Unexpected type when decoding PiaculumClass.boysenberry"} | |
| 1929 | + | |
| 1930 | + def encode_boysenberry(value) when is_integer(value), do: value | |
| 1931 | + def encode_boysenberry(_), do: {:error, "Unexpected type when encoding PiaculumClass.boysenberry"} | |
| 1932 | + | |
| 1933 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 1934 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 1935 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding PiaculumClass.catharticalness"} | |
| 1936 | + | |
| 1937 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 1938 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 1939 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding PiaculumClass.catharticalness"} | |
| 1940 | + | |
| 1941 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 1942 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding PiaculumClass.chirotherium"} | |
| 1943 | + | |
| 1944 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 1945 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding PiaculumClass.chirotherium"} | |
| 1946 | + | |
| 1947 | + def decode_decardinalize(value) when is_integer(value), do: value | |
| 1948 | + def decode_decardinalize(_), do: {:error, "Unexpected type when decoding PiaculumClass.decardinalize"} | |
| 1949 | + | |
| 1950 | + def encode_decardinalize(value) when is_integer(value), do: value | |
| 1951 | + def encode_decardinalize(_), do: {:error, "Unexpected type when encoding PiaculumClass.decardinalize"} | |
| 1952 | + | |
| 1953 | + def decode_discouragement(value) when is_integer(value), do: value | |
| 1954 | + def decode_discouragement(_), do: {:error, "Unexpected type when decoding PiaculumClass.discouragement"} | |
| 1955 | + | |
| 1956 | + def encode_discouragement(value) when is_integer(value), do: value | |
| 1957 | + def encode_discouragement(_), do: {:error, "Unexpected type when encoding PiaculumClass.discouragement"} | |
| 1958 | + | |
| 1633 | 1959 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1634 | 1960 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding PiaculumClass.disdiapason"} |
| 1635 | 1961 | |
| 1636 | 1962 | def encode_disdiapason(value) when is_binary(value), do: value |
| 1637 | 1963 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding PiaculumClass.disdiapason"} |
| 1638 | 1964 | |
| 1965 | + def decode_doitrified(value) when is_integer(value), do: value | |
| 1966 | + def decode_doitrified(_), do: {:error, "Unexpected type when decoding PiaculumClass.doitrified"} | |
| 1967 | + | |
| 1968 | + def encode_doitrified(value) when is_integer(value), do: value | |
| 1969 | + def encode_doitrified(_), do: {:error, "Unexpected type when encoding PiaculumClass.doitrified"} | |
| 1970 | + | |
| 1971 | + def decode_hexaspermous(value) when is_integer(value), do: value | |
| 1972 | + def decode_hexaspermous(_), do: {:error, "Unexpected type when decoding PiaculumClass.hexaspermous"} | |
| 1973 | + | |
| 1974 | + def encode_hexaspermous(value) when is_integer(value), do: value | |
| 1975 | + def encode_hexaspermous(_), do: {:error, "Unexpected type when encoding PiaculumClass.hexaspermous"} | |
| 1976 | + | |
| 1977 | + def decode_insinking(value) when is_integer(value), do: value | |
| 1978 | + def decode_insinking(_), do: {:error, "Unexpected type when decoding PiaculumClass.insinking"} | |
| 1979 | + | |
| 1980 | + def encode_insinking(value) when is_integer(value), do: value | |
| 1981 | + def encode_insinking(_), do: {:error, "Unexpected type when encoding PiaculumClass.insinking"} | |
| 1982 | + | |
| 1983 | + def decode_loathfulness(value) when is_integer(value), do: value | |
| 1984 | + def decode_loathfulness(_), do: {:error, "Unexpected type when decoding PiaculumClass.loathfulness"} | |
| 1985 | + | |
| 1986 | + def encode_loathfulness(value) when is_integer(value), do: value | |
| 1987 | + def encode_loathfulness(_), do: {:error, "Unexpected type when encoding PiaculumClass.loathfulness"} | |
| 1988 | + | |
| 1989 | + def decode_miasmatical(value) when is_integer(value), do: value | |
| 1990 | + def decode_miasmatical(_), do: {:error, "Unexpected type when decoding PiaculumClass.miasmatical"} | |
| 1991 | + | |
| 1992 | + def encode_miasmatical(value) when is_integer(value), do: value | |
| 1993 | + def encode_miasmatical(_), do: {:error, "Unexpected type when encoding PiaculumClass.miasmatical"} | |
| 1994 | + | |
| 1995 | + def decode_neurofibril(value) when is_integer(value), do: value | |
| 1996 | + def decode_neurofibril(_), do: {:error, "Unexpected type when decoding PiaculumClass.neurofibril"} | |
| 1997 | + | |
| 1998 | + def encode_neurofibril(value) when is_integer(value), do: value | |
| 1999 | + def encode_neurofibril(_), do: {:error, "Unexpected type when encoding PiaculumClass.neurofibril"} | |
| 2000 | + | |
| 2001 | + def decode_phonendoscope(value) when is_integer(value), do: value | |
| 2002 | + def decode_phonendoscope(_), do: {:error, "Unexpected type when decoding PiaculumClass.phonendoscope"} | |
| 2003 | + | |
| 2004 | + def encode_phonendoscope(value) when is_integer(value), do: value | |
| 2005 | + def encode_phonendoscope(_), do: {:error, "Unexpected type when encoding PiaculumClass.phonendoscope"} | |
| 2006 | + | |
| 2007 | + def decode_pilferment(value) when is_integer(value), do: value | |
| 2008 | + def decode_pilferment(_), do: {:error, "Unexpected type when decoding PiaculumClass.pilferment"} | |
| 2009 | + | |
| 2010 | + def encode_pilferment(value) when is_integer(value), do: value | |
| 2011 | + def encode_pilferment(_), do: {:error, "Unexpected type when encoding PiaculumClass.pilferment"} | |
| 2012 | + | |
| 2013 | + def decode_predismissory(value) when is_integer(value), do: value | |
| 2014 | + def decode_predismissory(_), do: {:error, "Unexpected type when decoding PiaculumClass.predismissory"} | |
| 2015 | + | |
| 2016 | + def encode_predismissory(value) when is_integer(value), do: value | |
| 2017 | + def encode_predismissory(_), do: {:error, "Unexpected type when encoding PiaculumClass.predismissory"} | |
| 2018 | + | |
| 2019 | + def decode_preinscription(value) when is_integer(value), do: value | |
| 2020 | + def decode_preinscription(_), do: {:error, "Unexpected type when decoding PiaculumClass.preinscription"} | |
| 2021 | + | |
| 2022 | + def encode_preinscription(value) when is_integer(value), do: value | |
| 2023 | + def encode_preinscription(_), do: {:error, "Unexpected type when encoding PiaculumClass.preinscription"} | |
| 2024 | + | |
| 2025 | + def decode_quotative(value) when is_integer(value), do: value | |
| 2026 | + def decode_quotative(_), do: {:error, "Unexpected type when decoding PiaculumClass.quotative"} | |
| 2027 | + | |
| 2028 | + def encode_quotative(value) when is_integer(value), do: value | |
| 2029 | + def encode_quotative(_), do: {:error, "Unexpected type when encoding PiaculumClass.quotative"} | |
| 2030 | + | |
| 2031 | + def decode_sienna(value) when is_integer(value), do: value | |
| 2032 | + def decode_sienna(_), do: {:error, "Unexpected type when decoding PiaculumClass.sienna"} | |
| 2033 | + | |
| 2034 | + def encode_sienna(value) when is_integer(value), do: value | |
| 2035 | + def encode_sienna(_), do: {:error, "Unexpected type when encoding PiaculumClass.sienna"} | |
| 2036 | + | |
| 2037 | + def decode_thorax(value) when is_integer(value), do: value | |
| 2038 | + def decode_thorax(_), do: {:error, "Unexpected type when decoding PiaculumClass.thorax"} | |
| 2039 | + | |
| 2040 | + def encode_thorax(value) when is_integer(value), do: value | |
| 2041 | + def encode_thorax(_), do: {:error, "Unexpected type when encoding PiaculumClass.thorax"} | |
| 2042 | + | |
| 2043 | + def decode_yachting(value) when is_integer(value), do: value | |
| 2044 | + def decode_yachting(_), do: {:error, "Unexpected type when decoding PiaculumClass.yachting"} | |
| 2045 | + | |
| 2046 | + def encode_yachting(value) when is_integer(value), do: value | |
| 2047 | + def encode_yachting(_), do: {:error, "Unexpected type when encoding PiaculumClass.yachting"} | |
| 2048 | + | |
| 2049 | + def decode_zipper(value) when is_integer(value), do: value | |
| 2050 | + def decode_zipper(_), do: {:error, "Unexpected type when decoding PiaculumClass.zipper"} | |
| 2051 | + | |
| 2052 | + def encode_zipper(value) when is_integer(value), do: value | |
| 2053 | + def encode_zipper(_), do: {:error, "Unexpected type when encoding PiaculumClass.zipper"} | |
| 2054 | + | |
| 1639 | 2055 | def from_map(m) do |
| 1640 | 2056 | %PiaculumClass{ |
| 1641 | - alada: m["alada"], | |
| 1642 | - amphistomous: m["amphistomous"], | |
| 1643 | - boysenberry: m["boysenberry"], | |
| 1644 | - catharticalness: m["catharticalness"], | |
| 1645 | - chirotherium: m["Chirotherium"], | |
| 1646 | - decardinalize: m["decardinalize"], | |
| 1647 | - discouragement: m["discouragement"], | |
| 2057 | + alada: m["alada"] && decode_alada(m["alada"]), | |
| 2058 | + amphistomous: m["amphistomous"] && decode_amphistomous(m["amphistomous"]), | |
| 2059 | + boysenberry: m["boysenberry"] && decode_boysenberry(m["boysenberry"]), | |
| 2060 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 2061 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 2062 | + decardinalize: m["decardinalize"] && decode_decardinalize(m["decardinalize"]), | |
| 2063 | + discouragement: m["discouragement"] && decode_discouragement(m["discouragement"]), | |
| 1648 | 2064 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1649 | - doitrified: m["doitrified"], | |
| 1650 | - hexaspermous: m["hexaspermous"], | |
| 2065 | + doitrified: m["doitrified"] && decode_doitrified(m["doitrified"]), | |
| 2066 | + hexaspermous: m["hexaspermous"] && decode_hexaspermous(m["hexaspermous"]), | |
| 1651 | 2067 | homocerc: m["homocerc"], |
| 1652 | - insinking: m["insinking"], | |
| 1653 | - loathfulness: m["loathfulness"], | |
| 1654 | - miasmatical: m["miasmatical"], | |
| 1655 | - neurofibril: m["neurofibril"], | |
| 2068 | + insinking: m["insinking"] && decode_insinking(m["insinking"]), | |
| 2069 | + loathfulness: m["loathfulness"] && decode_loathfulness(m["loathfulness"]), | |
| 2070 | + miasmatical: m["miasmatical"] && decode_miasmatical(m["miasmatical"]), | |
| 2071 | + neurofibril: m["neurofibril"] && decode_neurofibril(m["neurofibril"]), | |
| 1656 | 2072 | nonbookish: m["nonbookish"], |
| 1657 | - phonendoscope: m["phonendoscope"], | |
| 1658 | - pilferment: m["pilferment"], | |
| 1659 | - predismissory: m["predismissory"], | |
| 1660 | - preinscription: m["preinscription"], | |
| 1661 | - quotative: m["quotative"], | |
| 1662 | - sienna: m["sienna"], | |
| 1663 | - thorax: m["thorax"], | |
| 1664 | - yachting: m["yachting"], | |
| 1665 | - zipper: m["Zipper"], | |
| 2073 | + phonendoscope: m["phonendoscope"] && decode_phonendoscope(m["phonendoscope"]), | |
| 2074 | + pilferment: m["pilferment"] && decode_pilferment(m["pilferment"]), | |
| 2075 | + predismissory: m["predismissory"] && decode_predismissory(m["predismissory"]), | |
| 2076 | + preinscription: m["preinscription"] && decode_preinscription(m["preinscription"]), | |
| 2077 | + quotative: m["quotative"] && decode_quotative(m["quotative"]), | |
| 2078 | + sienna: m["sienna"] && decode_sienna(m["sienna"]), | |
| 2079 | + thorax: m["thorax"] && decode_thorax(m["thorax"]), | |
| 2080 | + yachting: m["yachting"] && decode_yachting(m["yachting"]), | |
| 2081 | + zipper: m["Zipper"] && decode_zipper(m["Zipper"]), | |
| 1666 | 2082 | } |
| 1667 | 2083 | end |
| 1668 | 2084 | |
| @@ -1740,6 +2156,20 @@ defmodule Pneumocele do | ||
| 1740 | 2156 | visitorial: nil | nil |
| 1741 | 2157 | } |
| 1742 | 2158 | |
| 2159 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 2160 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 2161 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding Pneumocele.catharticalness"} | |
| 2162 | + | |
| 2163 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 2164 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 2165 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding Pneumocele.catharticalness"} | |
| 2166 | + | |
| 2167 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 2168 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding Pneumocele.chirotherium"} | |
| 2169 | + | |
| 2170 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 2171 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding Pneumocele.chirotherium"} | |
| 2172 | + | |
| 1743 | 2173 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1744 | 2174 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding Pneumocele.disdiapason"} |
| 1745 | 2175 | |
| @@ -1749,8 +2179,8 @@ defmodule Pneumocele do | ||
| 1749 | 2179 | def from_map(m) do |
| 1750 | 2180 | %Pneumocele{ |
| 1751 | 2181 | carbonarism: m["Carbonarism"], |
| 1752 | - catharticalness: m["catharticalness"], | |
| 1753 | - chirotherium: m["Chirotherium"], | |
| 2182 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 2183 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1754 | 2184 | cineolic: m["cineolic"], |
| 1755 | 2185 | cobbly: m["cobbly"], |
| 1756 | 2186 | conchyliferous: m["conchyliferous"], |
Atypescript-effect-schemajust-schema-true--8c4ca457bcba / TopLevel.ts+384 −0
| @@ -0,0 +1,384 @@ | ||
| 1 | +import * as S from "effect/Schema"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export class PrefreshmanClass extends S.Class<PrefreshmanClass>("PrefreshmanClass")({ | |
| 5 | + "azorubine": S.Null, | |
| 6 | + "choroiditis": S.Null, | |
| 7 | + "coagulatory": S.Null, | |
| 8 | + "cyclorama": S.Null, | |
| 9 | + "Dolphus": S.Null, | |
| 10 | + "duckhearted": S.Null, | |
| 11 | + "Ficus": S.Null, | |
| 12 | + "Gemaric": S.Null, | |
| 13 | + "jugation": S.Null, | |
| 14 | + "myoliposis": S.Null, | |
| 15 | + "nonnomination": S.Null, | |
| 16 | + "palay": S.Null, | |
| 17 | + "pentactinal": S.Null, | |
| 18 | + "Phaet": S.Null, | |
| 19 | + "piquant": S.Null, | |
| 20 | + "registration": S.Null, | |
| 21 | + "remancipation": S.Null, | |
| 22 | + "scutatiform": S.Null, | |
| 23 | + "theodolite": S.Null, | |
| 24 | + "underward": S.Null, | |
| 25 | +}) {} | |
| 26 | + | |
| 27 | +export class PotwhiskyClass extends S.Class<PotwhiskyClass>("PotwhiskyClass")({ | |
| 28 | + "arciform": S.Null, | |
| 29 | + "cresolin": S.Null, | |
| 30 | + "disheartener": S.Null, | |
| 31 | + "disproportionable": S.Null, | |
| 32 | + "Euchorda": S.Null, | |
| 33 | + "ferryway": S.Null, | |
| 34 | + "filamentiferous": S.Null, | |
| 35 | + "flemish": S.Null, | |
| 36 | + "forgainst": S.Null, | |
| 37 | + "grainering": S.Null, | |
| 38 | + "irrevoluble": S.Null, | |
| 39 | + "kindredship": S.Null, | |
| 40 | + "pinguitudinous": S.Null, | |
| 41 | + "simpletonic": S.Null, | |
| 42 | + "singsong": S.Null, | |
| 43 | + "submergement": S.Null, | |
| 44 | + "supraoesophagal": S.Null, | |
| 45 | + "thrashel": S.Null, | |
| 46 | + "tyremesis": S.Null, | |
| 47 | + "Yoruba": S.Null, | |
| 48 | +}) {} | |
| 49 | + | |
| 50 | +export class Pneumocele extends S.Class<Pneumocele>("Pneumocele")({ | |
| 51 | + "Carbonarism": S.optional(S.Null), | |
| 52 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 53 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 54 | + "cineolic": S.optional(S.Null), | |
| 55 | + "cobbly": S.optional(S.Null), | |
| 56 | + "conchyliferous": S.optional(S.Null), | |
| 57 | + "congregation": S.optional(S.Null), | |
| 58 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 59 | + "enterotomy": S.optional(S.Null), | |
| 60 | + "entophytal": S.optional(S.Null), | |
| 61 | + "fewtrils": S.optional(S.Null), | |
| 62 | + "herem": S.optional(S.Null), | |
| 63 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 64 | + "Koniga": S.optional(S.Null), | |
| 65 | + "meticulosity": S.optional(S.Null), | |
| 66 | + "Micky": S.optional(S.Null), | |
| 67 | + "mismarriage": S.optional(S.Null), | |
| 68 | + "neurotrophic": S.optional(S.Null), | |
| 69 | + "nonbookish": S.optional(S.Null), | |
| 70 | + "persuasively": S.optional(S.Null), | |
| 71 | + "replaceable": S.optional(S.Null), | |
| 72 | + "silex": S.optional(S.Null), | |
| 73 | + "taillight": S.optional(S.Null), | |
| 74 | + "unjealous": S.optional(S.Null), | |
| 75 | + "visitorial": S.optional(S.Null), | |
| 76 | +}) {} | |
| 77 | + | |
| 78 | +export class PiaculumClass extends S.Class<PiaculumClass>("PiaculumClass")({ | |
| 79 | + "alada": S.optional(S.NullOr(S.Int)), | |
| 80 | + "amphistomous": S.optional(S.NullOr(S.Int)), | |
| 81 | + "boysenberry": S.optional(S.NullOr(S.Int)), | |
| 82 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 83 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 84 | + "decardinalize": S.optional(S.NullOr(S.Int)), | |
| 85 | + "discouragement": S.optional(S.NullOr(S.Int)), | |
| 86 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 87 | + "doitrified": S.optional(S.NullOr(S.Int)), | |
| 88 | + "hexaspermous": S.optional(S.NullOr(S.Int)), | |
| 89 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 90 | + "insinking": S.optional(S.NullOr(S.Int)), | |
| 91 | + "loathfulness": S.optional(S.NullOr(S.Int)), | |
| 92 | + "miasmatical": S.optional(S.NullOr(S.Int)), | |
| 93 | + "neurofibril": S.optional(S.NullOr(S.Int)), | |
| 94 | + "nonbookish": S.optional(S.Null), | |
| 95 | + "phonendoscope": S.optional(S.NullOr(S.Int)), | |
| 96 | + "pilferment": S.optional(S.NullOr(S.Int)), | |
| 97 | + "predismissory": S.optional(S.NullOr(S.Int)), | |
| 98 | + "preinscription": S.optional(S.NullOr(S.Int)), | |
| 99 | + "quotative": S.optional(S.NullOr(S.Int)), | |
| 100 | + "sienna": S.optional(S.NullOr(S.Int)), | |
| 101 | + "thorax": S.optional(S.NullOr(S.Int)), | |
| 102 | + "yachting": S.optional(S.NullOr(S.Int)), | |
| 103 | + "Zipper": S.optional(S.NullOr(S.Int)), | |
| 104 | +}) {} | |
| 105 | + | |
| 106 | +export class OutrivalClass extends S.Class<OutrivalClass>("OutrivalClass")({ | |
| 107 | + "adroitly": S.Null, | |
| 108 | + "bridehood": S.Null, | |
| 109 | + "Castoroides": S.Null, | |
| 110 | + "Czechoslovak": S.Null, | |
| 111 | + "diagenesis": S.Null, | |
| 112 | + "dihexahedron": S.Null, | |
| 113 | + "dopester": S.Null, | |
| 114 | + "eumerism": S.Null, | |
| 115 | + "flyness": S.Null, | |
| 116 | + "fouler": S.Null, | |
| 117 | + "laudanosine": S.Null, | |
| 118 | + "Lingulidae": S.Null, | |
| 119 | + "minutary": S.Null, | |
| 120 | + "mitra": S.Null, | |
| 121 | + "opisthorchiasis": S.Null, | |
| 122 | + "pensively": S.Null, | |
| 123 | + "pubigerous": S.Null, | |
| 124 | + "rebellious": S.Null, | |
| 125 | + "recodify": S.Null, | |
| 126 | + "unpaced": S.Null, | |
| 127 | +}) {} | |
| 128 | + | |
| 129 | +export class OccupationalistClass extends S.Class<OccupationalistClass>("OccupationalistClass")({ | |
| 130 | + "beholdable": S.Null, | |
| 131 | + "brotuliform": S.Null, | |
| 132 | + "Chimakum": S.Null, | |
| 133 | + "doodler": S.Null, | |
| 134 | + "emulsin": S.Null, | |
| 135 | + "Fin": S.Null, | |
| 136 | + "flourishing": S.Null, | |
| 137 | + "flueless": S.Null, | |
| 138 | + "furtively": S.Null, | |
| 139 | + "gritter": S.Null, | |
| 140 | + "interwish": S.Null, | |
| 141 | + "monoxylic": S.Null, | |
| 142 | + "myristic": S.Null, | |
| 143 | + "nightwear": S.Null, | |
| 144 | + "peruser": S.Null, | |
| 145 | + "theoastrological": S.Null, | |
| 146 | + "thumby": S.Null, | |
| 147 | + "tingitid": S.Null, | |
| 148 | + "trailless": S.Null, | |
| 149 | + "unpocketed": S.Null, | |
| 150 | +}) {} | |
| 151 | + | |
| 152 | +export class Noncontributing extends S.Class<Noncontributing>("Noncontributing")({ | |
| 153 | + "estevin": S.String, | |
| 154 | + "jolterhead": S.Number, | |
| 155 | + "sauternes": S.Int, | |
| 156 | + "sparsely": S.Boolean, | |
| 157 | + "unrequested": S.Null, | |
| 158 | +}) {} | |
| 159 | + | |
| 160 | +export class MonotheisticallyClass extends S.Class<MonotheisticallyClass>("MonotheisticallyClass")({ | |
| 161 | + "blaspheme": S.optional(S.Null), | |
| 162 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 163 | + "celiosalpingectomy": S.optional(S.Null), | |
| 164 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 165 | + "consummativeness": S.optional(S.Null), | |
| 166 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 167 | + "egestive": S.optional(S.Null), | |
| 168 | + "enchylema": S.optional(S.Null), | |
| 169 | + "gasconade": S.optional(S.Null), | |
| 170 | + "holidayer": S.optional(S.Null), | |
| 171 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 172 | + "intuitionalism": S.optional(S.Null), | |
| 173 | + "lophiostomate": S.optional(S.Null), | |
| 174 | + "nonbookish": S.optional(S.Null), | |
| 175 | + "nonvolition": S.optional(S.Null), | |
| 176 | + "palatableness": S.optional(S.Null), | |
| 177 | + "pimpery": S.optional(S.Null), | |
| 178 | + "previolation": S.optional(S.Null), | |
| 179 | + "reconveyance": S.optional(S.Null), | |
| 180 | + "registership": S.optional(S.Null), | |
| 181 | + "rhyacolite": S.optional(S.Null), | |
| 182 | + "smithereens": S.optional(S.Null), | |
| 183 | + "superedification": S.optional(S.Null), | |
| 184 | + "trust": S.optional(S.Null), | |
| 185 | + "whitestone": S.optional(S.Null), | |
| 186 | +}) {} | |
| 187 | + | |
| 188 | +export class MonaziteClass extends S.Class<MonaziteClass>("MonaziteClass")({ | |
| 189 | + "catharticalness": S.Number, | |
| 190 | + "Chirotherium": S.Int, | |
| 191 | + "disdiapason": S.String, | |
| 192 | + "homocerc": S.Boolean, | |
| 193 | + "nonbookish": S.Null, | |
| 194 | +}) {} | |
| 195 | + | |
| 196 | +export class Maslin extends S.Class<Maslin>("Maslin")({ | |
| 197 | + "Alicant": S.optional(S.NullOr(S.Int)), | |
| 198 | + "antiatonement": S.optional(S.Null), | |
| 199 | + "anticorrosive": S.optional(S.NullOr(S.Int)), | |
| 200 | + "aphidozer": S.optional(S.Null), | |
| 201 | + "Bakuninist": S.optional(S.Null), | |
| 202 | + "be": S.optional(S.NullOr(S.Int)), | |
| 203 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 204 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 205 | + "chub": S.optional(S.NullOr(S.Int)), | |
| 206 | + "cuprosilicon": S.optional(S.NullOr(S.Int)), | |
| 207 | + "curtailedly": S.optional(S.NullOr(S.Int)), | |
| 208 | + "dellenite": S.optional(S.NullOr(S.Int)), | |
| 209 | + "Dimitry": S.optional(S.NullOr(S.Int)), | |
| 210 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 211 | + "edifying": S.optional(S.Null), | |
| 212 | + "ethmoiditis": S.optional(S.NullOr(S.Int)), | |
| 213 | + "gastralgy": S.optional(S.Null), | |
| 214 | + "goatherd": S.optional(S.NullOr(S.Int)), | |
| 215 | + "hammerdress": S.optional(S.NullOr(S.Int)), | |
| 216 | + "hangfire": S.optional(S.Null), | |
| 217 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 218 | + "lacunosity": S.optional(S.NullOr(S.Int)), | |
| 219 | + "longiloquence": S.optional(S.Null), | |
| 220 | + "mameliere": S.optional(S.NullOr(S.Int)), | |
| 221 | + "motherless": S.optional(S.Null), | |
| 222 | + "nonbookish": S.optional(S.Null), | |
| 223 | + "noncorrodible": S.optional(S.Null), | |
| 224 | + "nonsensicality": S.optional(S.Null), | |
| 225 | + "oafishly": S.optional(S.NullOr(S.Int)), | |
| 226 | + "pfund": S.optional(S.Null), | |
| 227 | + "preadvisory": S.optional(S.Null), | |
| 228 | + "retroflexed": S.optional(S.Null), | |
| 229 | + "saccharulmic": S.optional(S.NullOr(S.Int)), | |
| 230 | + "scowlful": S.optional(S.NullOr(S.Int)), | |
| 231 | + "secluded": S.optional(S.Null), | |
| 232 | + "slackage": S.optional(S.Null), | |
| 233 | + "sphaeridial": S.optional(S.NullOr(S.Int)), | |
| 234 | + "spondulics": S.optional(S.Null), | |
| 235 | + "subsecive": S.optional(S.NullOr(S.Int)), | |
| 236 | + "swellmobsman": S.optional(S.Null), | |
| 237 | + "trachyglossate": S.optional(S.NullOr(S.Int)), | |
| 238 | + "trialogue": S.optional(S.Null), | |
| 239 | + "unassuaged": S.optional(S.NullOr(S.Int)), | |
| 240 | + "ungross": S.optional(S.Null), | |
| 241 | + "unjudiciously": S.optional(S.Null), | |
| 242 | +}) {} | |
| 243 | + | |
| 244 | +export class LupusClass extends S.Class<LupusClass>("LupusClass")({ | |
| 245 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 246 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 247 | + "Chlorioninae": S.optional(S.NullOr(S.Int)), | |
| 248 | + "Corvinae": S.optional(S.NullOr(S.Int)), | |
| 249 | + "Crassina": S.optional(S.NullOr(S.Int)), | |
| 250 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 251 | + "exiguity": S.optional(S.NullOr(S.Int)), | |
| 252 | + "farcist": S.optional(S.NullOr(S.Int)), | |
| 253 | + "holographical": S.optional(S.NullOr(S.Int)), | |
| 254 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 255 | + "ichthyophagan": S.optional(S.NullOr(S.Int)), | |
| 256 | + "implacable": S.optional(S.NullOr(S.Int)), | |
| 257 | + "nonbookish": S.optional(S.Null), | |
| 258 | + "outshiner": S.optional(S.NullOr(S.Int)), | |
| 259 | + "overweather": S.optional(S.NullOr(S.Int)), | |
| 260 | + "protonegroid": S.optional(S.NullOr(S.Int)), | |
| 261 | + "shallowish": S.optional(S.NullOr(S.Int)), | |
| 262 | + "snoke": S.optional(S.NullOr(S.Int)), | |
| 263 | + "snout": S.optional(S.NullOr(S.Int)), | |
| 264 | + "surveillance": S.optional(S.NullOr(S.Int)), | |
| 265 | + "threshingtime": S.optional(S.NullOr(S.Int)), | |
| 266 | + "Thysanocarpus": S.optional(S.NullOr(S.Int)), | |
| 267 | + "unsignificantly": S.optional(S.NullOr(S.Int)), | |
| 268 | + "unsnap": S.optional(S.NullOr(S.Int)), | |
| 269 | + "vendible": S.optional(S.NullOr(S.Int)), | |
| 270 | +}) {} | |
| 271 | + | |
| 272 | +export class LandlubberlyClass extends S.Class<LandlubberlyClass>("LandlubberlyClass")({ | |
| 273 | + "acropoleis": S.Null, | |
| 274 | + "aminate": S.Null, | |
| 275 | + "Amyraldism": S.Null, | |
| 276 | + "bipenniform": S.Null, | |
| 277 | + "bugre": S.Null, | |
| 278 | + "calycule": S.Null, | |
| 279 | + "caoutchouc": S.Null, | |
| 280 | + "disprover": S.Null, | |
| 281 | + "fitroot": S.Null, | |
| 282 | + "fulgently": S.Null, | |
| 283 | + "kickup": S.Null, | |
| 284 | + "laevoversion": S.Null, | |
| 285 | + "moter": S.Null, | |
| 286 | + "objectivity": S.Null, | |
| 287 | + "posterity": S.Null, | |
| 288 | + "postnuptial": S.Null, | |
| 289 | + "precedentary": S.Null, | |
| 290 | + "saddling": S.Null, | |
| 291 | + "subcurrent": S.Null, | |
| 292 | + "unrecriminative": S.Null, | |
| 293 | +}) {} | |
| 294 | + | |
| 295 | +export class LadronismClass extends S.Class<LadronismClass>("LadronismClass")({ | |
| 296 | + "acclaimer": S.Null, | |
| 297 | + "achree": S.Null, | |
| 298 | + "base": S.Null, | |
| 299 | + "conundrumize": S.Null, | |
| 300 | + "degerminator": S.Null, | |
| 301 | + "describable": S.Null, | |
| 302 | + "exasperatedly": S.Null, | |
| 303 | + "heroine": S.Null, | |
| 304 | + "indazin": S.Null, | |
| 305 | + "luteous": S.Null, | |
| 306 | + "papular": S.Null, | |
| 307 | + "pritch": S.Null, | |
| 308 | + "Prodenia": S.Null, | |
| 309 | + "seege": S.Null, | |
| 310 | + "shopgirl": S.Null, | |
| 311 | + "tragedietta": S.Null, | |
| 312 | + "unsparse": S.Null, | |
| 313 | + "uplook": S.Null, | |
| 314 | + "vermiformis": S.Null, | |
| 315 | + "whafabout": S.Null, | |
| 316 | +}) {} | |
| 317 | + | |
| 318 | +export class JurorClass extends S.Class<JurorClass>("JurorClass")({ | |
| 319 | + "adipsy": S.Null, | |
| 320 | + "auxiliator": S.Null, | |
| 321 | + "benda": S.Null, | |
| 322 | + "benjamin": S.Null, | |
| 323 | + "brandling": S.Null, | |
| 324 | + "epicurishly": S.Null, | |
| 325 | + "eremochaetous": S.Null, | |
| 326 | + "marten": S.Null, | |
| 327 | + "monocline": S.Null, | |
| 328 | + "Olea": S.Null, | |
| 329 | + "palgat": S.Null, | |
| 330 | + "pennyworth": S.Null, | |
| 331 | + "pioury": S.Null, | |
| 332 | + "pragmatistic": S.Null, | |
| 333 | + "stylelessness": S.Null, | |
| 334 | + "systematical": S.Null, | |
| 335 | + "thready": S.Null, | |
| 336 | + "uncontemporary": S.Null, | |
| 337 | + "uncouched": S.Null, | |
| 338 | + "uninhabitedness": S.Null, | |
| 339 | +}) {} | |
| 340 | + | |
| 341 | +export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | |
| 342 | + "juror": S.Array(S.Union(S.Boolean, JurorClass)), | |
| 343 | + "kongoni": S.Array(S.Union(S.Array(S.Int), S.Record({ key: S.String, value: S.Int}))), | |
| 344 | + "ladronism": S.Array(S.Union(S.Number, S.String, LadronismClass)), | |
| 345 | + "landlubberly": S.Array(S.Union(S.Boolean, S.Int, LandlubberlyClass)), | |
| 346 | + "listener": S.Array(S.Union(S.Array(S.Null), S.Int)), | |
| 347 | + "lupus": S.Array(S.Union(S.Int, LupusClass)), | |
| 348 | + "maslin": S.Array(Maslin), | |
| 349 | + "monazite": S.Array(S.Union(S.Number, MonaziteClass)), | |
| 350 | + "monoliteral": S.Array(S.Union(S.Array(S.Null), S.Boolean)), | |
| 351 | + "monotheistically": S.Array(S.Union(S.Array(S.Null), MonotheisticallyClass)), | |
| 352 | + "montage": S.Array(S.Union(S.Array(S.Null), S.Number, S.String)), | |
| 353 | + "moralness": S.Array(S.Union(S.Array(S.Null), S.Number, S.Null)), | |
| 354 | + "mowra": S.Array(S.NullOr(MonaziteClass)), | |
| 355 | + "mulishly": S.Array(S.Union(S.Array(S.Int), S.Number, S.Null)), | |
| 356 | + "myoscope": S.Array(S.Union(S.Array(S.Null), S.Boolean, S.Int)), | |
| 357 | + "nach": S.Array(S.NullOr(S.Array(S.NullOr(S.Int)))), | |
| 358 | + "neuromastic": S.Array(S.Union(S.Array(S.Null), S.Number)), | |
| 359 | + "noncontributing": S.Array(Noncontributing), | |
| 360 | + "nonnervous": S.Array(S.Union(S.Boolean, S.Int)), | |
| 361 | + "nonvaluation": S.Array(S.Union(S.Array(S.Null), S.Boolean, S.Number)), | |
| 362 | + "occupationalist": S.Array(S.Union(S.Array(S.Null), OccupationalistClass, S.Null)), | |
| 363 | + "outrival": S.Array(S.Union(S.Number, OutrivalClass, S.Null)), | |
| 364 | + "paleographically": S.Array(S.Union(S.Number, S.Record({ key: S.String, value: S.NullOr(S.Int)}))), | |
| 365 | + "pamphletwise": S.Array(S.Union(S.Int, S.Record({ key: S.String, value: S.Int}), S.String)), | |
| 366 | + "pediatrics": S.Array(S.Union(S.Boolean, S.Number, S.Null)), | |
| 367 | + "perceptive": S.Array(S.Boolean), | |
| 368 | + "piaculum": S.Array(S.Union(S.Number, PiaculumClass)), | |
| 369 | + "piccadilly": S.Array(S.Union(S.Number, S.String, S.Null)), | |
| 370 | + "piffler": S.Array(S.Union(S.Array(S.Null), MonaziteClass)), | |
| 371 | + "pithful": S.Array(S.Union(S.Boolean, S.Int, S.Null)), | |
| 372 | + "placuntitis": S.Array(S.Union(S.Int, S.Record({ key: S.String, value: S.Int}))), | |
| 373 | + "plectopterous": S.Array(S.Union(S.Number, S.Record({ key: S.String, value: S.Int}))), | |
| 374 | + "pneumocele": S.Array(S.NullOr(Pneumocele)), | |
| 375 | + "poliorcetic": S.Array(S.Union(S.Boolean, MonaziteClass)), | |
| 376 | + "poormaster": S.Array(S.Union(S.Array(S.Int), S.Record({ key: S.String, value: S.Int}), S.Null)), | |
| 377 | + "potwhisky": S.Array(S.Union(S.Int, PotwhiskyClass, S.Null)), | |
| 378 | + "practicalizer": S.Array(S.Union(S.Array(S.Null), S.String, MonaziteClass)), | |
| 379 | + "prefreshman": S.Array(S.Union(S.Array(S.Null), S.String, PrefreshmanClass)), | |
| 380 | + "prehensility": S.Array(S.Union(S.Array(S.Null), S.Boolean, MonaziteClass)), | |
| 381 | + "prevoidance": S.Array(S.Union(S.Array(S.Int), S.Int, MonaziteClass)), | |
| 382 | + "probant": S.Array(S.Record({ key: S.String, value: S.NullOr(S.Int)})), | |
| 383 | + "protext": S.Array(S.Union(S.Array(S.Int), S.Boolean, MonaziteClass)), | |
| 384 | +}) {} |
Atypescript-zodjust-schema-true--8c4ca457bcba / TopLevel.ts+384 −0
| @@ -0,0 +1,384 @@ | ||
| 1 | +import * as z from "zod"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export const JurorClassSchema = z.object({ | |
| 5 | + "adipsy": z.null(), | |
| 6 | + "auxiliator": z.null(), | |
| 7 | + "benda": z.null(), | |
| 8 | + "benjamin": z.null(), | |
| 9 | + "brandling": z.null(), | |
| 10 | + "epicurishly": z.null(), | |
| 11 | + "eremochaetous": z.null(), | |
| 12 | + "marten": z.null(), | |
| 13 | + "monocline": z.null(), | |
| 14 | + "Olea": z.null(), | |
| 15 | + "palgat": z.null(), | |
| 16 | + "pennyworth": z.null(), | |
| 17 | + "pioury": z.null(), | |
| 18 | + "pragmatistic": z.null(), | |
| 19 | + "stylelessness": z.null(), | |
| 20 | + "systematical": z.null(), | |
| 21 | + "thready": z.null(), | |
| 22 | + "uncontemporary": z.null(), | |
| 23 | + "uncouched": z.null(), | |
| 24 | + "uninhabitedness": z.null(), | |
| 25 | +}); | |
| 26 | + | |
| 27 | +export const LadronismClassSchema = z.object({ | |
| 28 | + "acclaimer": z.null(), | |
| 29 | + "achree": z.null(), | |
| 30 | + "base": z.null(), | |
| 31 | + "conundrumize": z.null(), | |
| 32 | + "degerminator": z.null(), | |
| 33 | + "describable": z.null(), | |
| 34 | + "exasperatedly": z.null(), | |
| 35 | + "heroine": z.null(), | |
| 36 | + "indazin": z.null(), | |
| 37 | + "luteous": z.null(), | |
| 38 | + "papular": z.null(), | |
| 39 | + "pritch": z.null(), | |
| 40 | + "Prodenia": z.null(), | |
| 41 | + "seege": z.null(), | |
| 42 | + "shopgirl": z.null(), | |
| 43 | + "tragedietta": z.null(), | |
| 44 | + "unsparse": z.null(), | |
| 45 | + "uplook": z.null(), | |
| 46 | + "vermiformis": z.null(), | |
| 47 | + "whafabout": z.null(), | |
| 48 | +}); | |
| 49 | + | |
| 50 | +export const LandlubberlyClassSchema = z.object({ | |
| 51 | + "acropoleis": z.null(), | |
| 52 | + "aminate": z.null(), | |
| 53 | + "Amyraldism": z.null(), | |
| 54 | + "bipenniform": z.null(), | |
| 55 | + "bugre": z.null(), | |
| 56 | + "calycule": z.null(), | |
| 57 | + "caoutchouc": z.null(), | |
| 58 | + "disprover": z.null(), | |
| 59 | + "fitroot": z.null(), | |
| 60 | + "fulgently": z.null(), | |
| 61 | + "kickup": z.null(), | |
| 62 | + "laevoversion": z.null(), | |
| 63 | + "moter": z.null(), | |
| 64 | + "objectivity": z.null(), | |
| 65 | + "posterity": z.null(), | |
| 66 | + "postnuptial": z.null(), | |
| 67 | + "precedentary": z.null(), | |
| 68 | + "saddling": z.null(), | |
| 69 | + "subcurrent": z.null(), | |
| 70 | + "unrecriminative": z.null(), | |
| 71 | +}); | |
| 72 | + | |
| 73 | +export const LupusClassSchema = z.object({ | |
| 74 | + "catharticalness": z.number().optional(), | |
| 75 | + "Chirotherium": z.number().int().optional(), | |
| 76 | + "Chlorioninae": z.number().int().optional(), | |
| 77 | + "Corvinae": z.number().int().optional(), | |
| 78 | + "Crassina": z.number().int().optional(), | |
| 79 | + "disdiapason": z.string().optional(), | |
| 80 | + "exiguity": z.number().int().optional(), | |
| 81 | + "farcist": z.number().int().optional(), | |
| 82 | + "holographical": z.number().int().optional(), | |
| 83 | + "homocerc": z.boolean().optional(), | |
| 84 | + "ichthyophagan": z.number().int().optional(), | |
| 85 | + "implacable": z.number().int().optional(), | |
| 86 | + "nonbookish": z.null().optional(), | |
| 87 | + "outshiner": z.number().int().optional(), | |
| 88 | + "overweather": z.number().int().optional(), | |
| 89 | + "protonegroid": z.number().int().optional(), | |
| 90 | + "shallowish": z.number().int().optional(), | |
| 91 | + "snoke": z.number().int().optional(), | |
| 92 | + "snout": z.number().int().optional(), | |
| 93 | + "surveillance": z.number().int().optional(), | |
| 94 | + "threshingtime": z.number().int().optional(), | |
| 95 | + "Thysanocarpus": z.number().int().optional(), | |
| 96 | + "unsignificantly": z.number().int().optional(), | |
| 97 | + "unsnap": z.number().int().optional(), | |
| 98 | + "vendible": z.number().int().optional(), | |
| 99 | +}); | |
| 100 | + | |
| 101 | +export const MaslinSchema = z.object({ | |
| 102 | + "Alicant": z.number().int().optional(), | |
| 103 | + "antiatonement": z.null().optional(), | |
| 104 | + "anticorrosive": z.number().int().optional(), | |
| 105 | + "aphidozer": z.null().optional(), | |
| 106 | + "Bakuninist": z.null().optional(), | |
| 107 | + "be": z.number().int().optional(), | |
| 108 | + "catharticalness": z.number().optional(), | |
| 109 | + "Chirotherium": z.number().int().optional(), | |
| 110 | + "chub": z.number().int().optional(), | |
| 111 | + "cuprosilicon": z.number().int().optional(), | |
| 112 | + "curtailedly": z.number().int().optional(), | |
| 113 | + "dellenite": z.number().int().optional(), | |
| 114 | + "Dimitry": z.number().int().optional(), | |
| 115 | + "disdiapason": z.string().optional(), | |
| 116 | + "edifying": z.null().optional(), | |
| 117 | + "ethmoiditis": z.number().int().optional(), | |
| 118 | + "gastralgy": z.null().optional(), | |
| 119 | + "goatherd": z.number().int().optional(), | |
| 120 | + "hammerdress": z.number().int().optional(), | |
| 121 | + "hangfire": z.null().optional(), | |
| 122 | + "homocerc": z.boolean().optional(), | |
| 123 | + "lacunosity": z.number().int().optional(), | |
| 124 | + "longiloquence": z.null().optional(), | |
| 125 | + "mameliere": z.number().int().optional(), | |
| 126 | + "motherless": z.null().optional(), | |
| 127 | + "nonbookish": z.null().optional(), | |
| 128 | + "noncorrodible": z.null().optional(), | |
| 129 | + "nonsensicality": z.null().optional(), | |
| 130 | + "oafishly": z.number().int().optional(), | |
| 131 | + "pfund": z.null().optional(), | |
| 132 | + "preadvisory": z.null().optional(), | |
| 133 | + "retroflexed": z.null().optional(), | |
| 134 | + "saccharulmic": z.number().int().optional(), | |
| 135 | + "scowlful": z.number().int().optional(), | |
| 136 | + "secluded": z.null().optional(), | |
| 137 | + "slackage": z.null().optional(), | |
| 138 | + "sphaeridial": z.number().int().optional(), | |
| 139 | + "spondulics": z.null().optional(), | |
| 140 | + "subsecive": z.number().int().optional(), | |
| 141 | + "swellmobsman": z.null().optional(), | |
| 142 | + "trachyglossate": z.number().int().optional(), | |
| 143 | + "trialogue": z.null().optional(), | |
| 144 | + "unassuaged": z.number().int().optional(), | |
| 145 | + "ungross": z.null().optional(), | |
| 146 | + "unjudiciously": z.null().optional(), | |
| 147 | +}); | |
| 148 | + | |
| 149 | +export const MonaziteClassSchema = z.object({ | |
| 150 | + "catharticalness": z.number(), | |
| 151 | + "Chirotherium": z.number().int(), | |
| 152 | + "disdiapason": z.string(), | |
| 153 | + "homocerc": z.boolean(), | |
| 154 | + "nonbookish": z.null(), | |
| 155 | +}); | |
| 156 | + | |
| 157 | +export const MonotheisticallyClassSchema = z.object({ | |
| 158 | + "blaspheme": z.null().optional(), | |
| 159 | + "catharticalness": z.number().optional(), | |
| 160 | + "celiosalpingectomy": z.null().optional(), | |
| 161 | + "Chirotherium": z.number().int().optional(), | |
| 162 | + "consummativeness": z.null().optional(), | |
| 163 | + "disdiapason": z.string().optional(), | |
| 164 | + "egestive": z.null().optional(), | |
| 165 | + "enchylema": z.null().optional(), | |
| 166 | + "gasconade": z.null().optional(), | |
| 167 | + "holidayer": z.null().optional(), | |
| 168 | + "homocerc": z.boolean().optional(), | |
| 169 | + "intuitionalism": z.null().optional(), | |
| 170 | + "lophiostomate": z.null().optional(), | |
| 171 | + "nonbookish": z.null().optional(), | |
| 172 | + "nonvolition": z.null().optional(), | |
| 173 | + "palatableness": z.null().optional(), | |
| 174 | + "pimpery": z.null().optional(), | |
| 175 | + "previolation": z.null().optional(), | |
| 176 | + "reconveyance": z.null().optional(), | |
| 177 | + "registership": z.null().optional(), | |
| 178 | + "rhyacolite": z.null().optional(), | |
| 179 | + "smithereens": z.null().optional(), | |
| 180 | + "superedification": z.null().optional(), | |
| 181 | + "trust": z.null().optional(), | |
| 182 | + "whitestone": z.null().optional(), | |
| 183 | +}); | |
| 184 | + | |
| 185 | +export const NoncontributingSchema = z.object({ | |
| 186 | + "estevin": z.string(), | |
| 187 | + "jolterhead": z.number(), | |
| 188 | + "sauternes": z.number().int(), | |
| 189 | + "sparsely": z.boolean(), | |
| 190 | + "unrequested": z.null(), | |
| 191 | +}); | |
| 192 | + | |
| 193 | +export const OccupationalistClassSchema = z.object({ | |
| 194 | + "beholdable": z.null(), | |
| 195 | + "brotuliform": z.null(), | |
| 196 | + "Chimakum": z.null(), | |
| 197 | + "doodler": z.null(), | |
| 198 | + "emulsin": z.null(), | |
| 199 | + "Fin": z.null(), | |
| 200 | + "flourishing": z.null(), | |
| 201 | + "flueless": z.null(), | |
| 202 | + "furtively": z.null(), | |
| 203 | + "gritter": z.null(), | |
| 204 | + "interwish": z.null(), | |
| 205 | + "monoxylic": z.null(), | |
| 206 | + "myristic": z.null(), | |
| 207 | + "nightwear": z.null(), | |
| 208 | + "peruser": z.null(), | |
| 209 | + "theoastrological": z.null(), | |
| 210 | + "thumby": z.null(), | |
| 211 | + "tingitid": z.null(), | |
| 212 | + "trailless": z.null(), | |
| 213 | + "unpocketed": z.null(), | |
| 214 | +}); | |
| 215 | + | |
| 216 | +export const OutrivalClassSchema = z.object({ | |
| 217 | + "adroitly": z.null(), | |
| 218 | + "bridehood": z.null(), | |
| 219 | + "Castoroides": z.null(), | |
| 220 | + "Czechoslovak": z.null(), | |
| 221 | + "diagenesis": z.null(), | |
| 222 | + "dihexahedron": z.null(), | |
| 223 | + "dopester": z.null(), | |
| 224 | + "eumerism": z.null(), | |
| 225 | + "flyness": z.null(), | |
| 226 | + "fouler": z.null(), | |
| 227 | + "laudanosine": z.null(), | |
| 228 | + "Lingulidae": z.null(), | |
| 229 | + "minutary": z.null(), | |
| 230 | + "mitra": z.null(), | |
| 231 | + "opisthorchiasis": z.null(), | |
| 232 | + "pensively": z.null(), | |
| 233 | + "pubigerous": z.null(), | |
| 234 | + "rebellious": z.null(), | |
| 235 | + "recodify": z.null(), | |
| 236 | + "unpaced": z.null(), | |
| 237 | +}); | |
| 238 | + | |
| 239 | +export const PiaculumClassSchema = z.object({ | |
| 240 | + "alada": z.number().int().optional(), | |
| 241 | + "amphistomous": z.number().int().optional(), | |
| 242 | + "boysenberry": z.number().int().optional(), | |
| 243 | + "catharticalness": z.number().optional(), | |
| 244 | + "Chirotherium": z.number().int().optional(), | |
| 245 | + "decardinalize": z.number().int().optional(), | |
| 246 | + "discouragement": z.number().int().optional(), | |
| 247 | + "disdiapason": z.string().optional(), | |
| 248 | + "doitrified": z.number().int().optional(), | |
| 249 | + "hexaspermous": z.number().int().optional(), | |
| 250 | + "homocerc": z.boolean().optional(), | |
| 251 | + "insinking": z.number().int().optional(), | |
| 252 | + "loathfulness": z.number().int().optional(), | |
| 253 | + "miasmatical": z.number().int().optional(), | |
| 254 | + "neurofibril": z.number().int().optional(), | |
| 255 | + "nonbookish": z.null().optional(), | |
| 256 | + "phonendoscope": z.number().int().optional(), | |
| 257 | + "pilferment": z.number().int().optional(), | |
| 258 | + "predismissory": z.number().int().optional(), | |
| 259 | + "preinscription": z.number().int().optional(), | |
| 260 | + "quotative": z.number().int().optional(), | |
| 261 | + "sienna": z.number().int().optional(), | |
| 262 | + "thorax": z.number().int().optional(), | |
| 263 | + "yachting": z.number().int().optional(), | |
| 264 | + "Zipper": z.number().int().optional(), | |
| 265 | +}); | |
| 266 | + | |
| 267 | +export const PneumoceleSchema = z.object({ | |
| 268 | + "Carbonarism": z.null().optional(), | |
| 269 | + "catharticalness": z.number().optional(), | |
| 270 | + "Chirotherium": z.number().int().optional(), | |
| 271 | + "cineolic": z.null().optional(), | |
| 272 | + "cobbly": z.null().optional(), | |
| 273 | + "conchyliferous": z.null().optional(), | |
| 274 | + "congregation": z.null().optional(), | |
| 275 | + "disdiapason": z.string().optional(), | |
| 276 | + "enterotomy": z.null().optional(), | |
| 277 | + "entophytal": z.null().optional(), | |
| 278 | + "fewtrils": z.null().optional(), | |
| 279 | + "herem": z.null().optional(), | |
| 280 | + "homocerc": z.boolean().optional(), | |
| 281 | + "Koniga": z.null().optional(), | |
| 282 | + "meticulosity": z.null().optional(), | |
| 283 | + "Micky": z.null().optional(), | |
| 284 | + "mismarriage": z.null().optional(), | |
| 285 | + "neurotrophic": z.null().optional(), | |
| 286 | + "nonbookish": z.null().optional(), | |
| 287 | + "persuasively": z.null().optional(), | |
| 288 | + "replaceable": z.null().optional(), | |
| 289 | + "silex": z.null().optional(), | |
| 290 | + "taillight": z.null().optional(), | |
| 291 | + "unjealous": z.null().optional(), | |
| 292 | + "visitorial": z.null().optional(), | |
| 293 | +}); | |
| 294 | + | |
| 295 | +export const PotwhiskyClassSchema = z.object({ | |
| 296 | + "arciform": z.null(), | |
| 297 | + "cresolin": z.null(), | |
| 298 | + "disheartener": z.null(), | |
| 299 | + "disproportionable": z.null(), | |
| 300 | + "Euchorda": z.null(), | |
| 301 | + "ferryway": z.null(), | |
| 302 | + "filamentiferous": z.null(), | |
| 303 | + "flemish": z.null(), | |
| 304 | + "forgainst": z.null(), | |
| 305 | + "grainering": z.null(), | |
| 306 | + "irrevoluble": z.null(), | |
| 307 | + "kindredship": z.null(), | |
| 308 | + "pinguitudinous": z.null(), | |
| 309 | + "simpletonic": z.null(), | |
| 310 | + "singsong": z.null(), | |
| 311 | + "submergement": z.null(), | |
| 312 | + "supraoesophagal": z.null(), | |
| 313 | + "thrashel": z.null(), | |
| 314 | + "tyremesis": z.null(), | |
| 315 | + "Yoruba": z.null(), | |
| 316 | +}); | |
| 317 | + | |
| 318 | +export const PrefreshmanClassSchema = z.object({ | |
| 319 | + "azorubine": z.null(), | |
| 320 | + "choroiditis": z.null(), | |
| 321 | + "coagulatory": z.null(), | |
| 322 | + "cyclorama": z.null(), | |
| 323 | + "Dolphus": z.null(), | |
| 324 | + "duckhearted": z.null(), | |
| 325 | + "Ficus": z.null(), | |
| 326 | + "Gemaric": z.null(), | |
| 327 | + "jugation": z.null(), | |
| 328 | + "myoliposis": z.null(), | |
| 329 | + "nonnomination": z.null(), | |
| 330 | + "palay": z.null(), | |
| 331 | + "pentactinal": z.null(), | |
| 332 | + "Phaet": z.null(), | |
| 333 | + "piquant": z.null(), | |
| 334 | + "registration": z.null(), | |
| 335 | + "remancipation": z.null(), | |
| 336 | + "scutatiform": z.null(), | |
| 337 | + "theodolite": z.null(), | |
| 338 | + "underward": z.null(), | |
| 339 | +}); | |
| 340 | + | |
| 341 | +export const TopLevelSchema = z.object({ | |
| 342 | + "juror": z.array(z.union([z.boolean(), JurorClassSchema])), | |
| 343 | + "kongoni": z.array(z.union([z.array(z.number().int()), z.record(z.string(), z.number().int())])), | |
| 344 | + "ladronism": z.array(z.union([LadronismClassSchema, z.number(), z.string()])), | |
| 345 | + "landlubberly": z.array(z.union([z.boolean(), LandlubberlyClassSchema, z.number().int()])), | |
| 346 | + "listener": z.array(z.union([z.array(z.null()), z.number().int()])), | |
| 347 | + "lupus": z.array(z.union([LupusClassSchema, z.number().int()])), | |
| 348 | + "maslin": z.array(MaslinSchema), | |
| 349 | + "monazite": z.array(z.union([MonaziteClassSchema, z.number()])), | |
| 350 | + "monoliteral": z.array(z.union([z.array(z.null()), z.boolean()])), | |
| 351 | + "monotheistically": z.array(z.union([z.array(z.null()), MonotheisticallyClassSchema])), | |
| 352 | + "montage": z.array(z.union([z.array(z.null()), z.number(), z.string()])), | |
| 353 | + "moralness": z.array(z.union([z.null(), z.array(z.null()), z.number()])), | |
| 354 | + "mowra": z.array(z.union([z.null(), MonaziteClassSchema])), | |
| 355 | + "mulishly": z.array(z.union([z.null(), z.array(z.number().int()), z.number()])), | |
| 356 | + "myoscope": z.array(z.union([z.array(z.null()), z.boolean(), z.number().int()])), | |
| 357 | + "nach": z.array(z.union([z.null(), z.array(z.union([z.null(), z.number().int()]))])), | |
| 358 | + "neuromastic": z.array(z.union([z.array(z.null()), z.number()])), | |
| 359 | + "noncontributing": z.array(NoncontributingSchema), | |
| 360 | + "nonnervous": z.array(z.union([z.boolean(), z.number().int()])), | |
| 361 | + "nonvaluation": z.array(z.union([z.array(z.null()), z.boolean(), z.number()])), | |
| 362 | + "occupationalist": z.array(z.union([z.null(), z.array(z.null()), OccupationalistClassSchema])), | |
| 363 | + "outrival": z.array(z.union([z.null(), OutrivalClassSchema, z.number()])), | |
| 364 | + "paleographically": z.array(z.union([z.number(), z.record(z.string(), z.union([z.null(), z.number().int()]))])), | |
| 365 | + "pamphletwise": z.array(z.union([z.number().int(), z.record(z.string(), z.number().int()), z.string()])), | |
| 366 | + "pediatrics": z.array(z.union([z.null(), z.boolean(), z.number()])), | |
| 367 | + "perceptive": z.array(z.boolean()), | |
| 368 | + "piaculum": z.array(z.union([PiaculumClassSchema, z.number()])), | |
| 369 | + "piccadilly": z.array(z.union([z.null(), z.number(), z.string()])), | |
| 370 | + "piffler": z.array(z.union([z.array(z.null()), MonaziteClassSchema])), | |
| 371 | + "pithful": z.array(z.union([z.null(), z.boolean(), z.number().int()])), | |
| 372 | + "placuntitis": z.array(z.union([z.number().int(), z.record(z.string(), z.number().int())])), | |
| 373 | + "plectopterous": z.array(z.union([z.number(), z.record(z.string(), z.number().int())])), | |
| 374 | + "pneumocele": z.array(z.union([z.null(), PneumoceleSchema])), | |
| 375 | + "poliorcetic": z.array(z.union([z.boolean(), MonaziteClassSchema])), | |
| 376 | + "poormaster": z.array(z.union([z.null(), z.array(z.number().int()), z.record(z.string(), z.number().int())])), | |
| 377 | + "potwhisky": z.array(z.union([z.null(), PotwhiskyClassSchema, z.number().int()])), | |
| 378 | + "practicalizer": z.array(z.union([z.array(z.null()), MonaziteClassSchema, z.string()])), | |
| 379 | + "prefreshman": z.array(z.union([z.array(z.null()), PrefreshmanClassSchema, z.string()])), | |
| 380 | + "prehensility": z.array(z.union([z.array(z.null()), z.boolean(), MonaziteClassSchema])), | |
| 381 | + "prevoidance": z.array(z.union([z.array(z.number().int()), MonaziteClassSchema, z.number().int()])), | |
| 382 | + "probant": z.array(z.record(z.string(), z.union([z.null(), z.number().int()]))), | |
| 383 | + "protext": z.array(z.union([z.array(z.number().int()), z.boolean(), MonaziteClassSchema])), | |
| 384 | +}); |
Test case
3 generated files · +1,396 −72test/inputs/json/priority/combinations4.json
Melixirdefault / QuickType.ex+516 −72
| @@ -533,6 +533,20 @@ defmodule Reimagine do | ||
| 533 | 533 | waltzlike: nil | nil |
| 534 | 534 | } |
| 535 | 535 | |
| 536 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 537 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 538 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding Reimagine.catharticalness"} | |
| 539 | + | |
| 540 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 541 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 542 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding Reimagine.catharticalness"} | |
| 543 | + | |
| 544 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 545 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding Reimagine.chirotherium"} | |
| 546 | + | |
| 547 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 548 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding Reimagine.chirotherium"} | |
| 549 | + | |
| 536 | 550 | def decode_disdiapason(value) when is_binary(value), do: value |
| 537 | 551 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding Reimagine.disdiapason"} |
| 538 | 552 | |
| @@ -544,8 +558,8 @@ defmodule Reimagine do | ||
| 544 | 558 | adducible: m["adducible"], |
| 545 | 559 | anabolin: m["anabolin"], |
| 546 | 560 | brainy: m["brainy"], |
| 547 | - catharticalness: m["catharticalness"], | |
| 548 | - chirotherium: m["Chirotherium"], | |
| 561 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 562 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 549 | 563 | chrysamine: m["chrysamine"], |
| 550 | 564 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 551 | 565 | fluxweed: m["fluxweed"], |
| @@ -1273,6 +1287,20 @@ defmodule SaxtenClass do | ||
| 1273 | 1287 | withdrawnness: nil | nil |
| 1274 | 1288 | } |
| 1275 | 1289 | |
| 1290 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 1291 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 1292 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding SaxtenClass.catharticalness"} | |
| 1293 | + | |
| 1294 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 1295 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 1296 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding SaxtenClass.catharticalness"} | |
| 1297 | + | |
| 1298 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 1299 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding SaxtenClass.chirotherium"} | |
| 1300 | + | |
| 1301 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 1302 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding SaxtenClass.chirotherium"} | |
| 1303 | + | |
| 1276 | 1304 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1277 | 1305 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding SaxtenClass.disdiapason"} |
| 1278 | 1306 | |
| @@ -1283,9 +1311,9 @@ defmodule SaxtenClass do | ||
| 1283 | 1311 | %SaxtenClass{ |
| 1284 | 1312 | algarrobilla: m["algarrobilla"], |
| 1285 | 1313 | bowgrace: m["bowgrace"], |
| 1286 | - catharticalness: m["catharticalness"], | |
| 1314 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 1287 | 1315 | centaurid: m["Centaurid"], |
| 1288 | - chirotherium: m["Chirotherium"], | |
| 1316 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1289 | 1317 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1290 | 1318 | flix: m["flix"], |
| 1291 | 1319 | germanely: m["germanely"], |
| @@ -1803,39 +1831,173 @@ defmodule Staghunting do | ||
| 1803 | 1831 | ungirlish: integer() | nil |
| 1804 | 1832 | } |
| 1805 | 1833 | |
| 1834 | + def decode_calorimetric(value) when is_integer(value), do: value | |
| 1835 | + def decode_calorimetric(_), do: {:error, "Unexpected type when decoding Staghunting.calorimetric"} | |
| 1836 | + | |
| 1837 | + def encode_calorimetric(value) when is_integer(value), do: value | |
| 1838 | + def encode_calorimetric(_), do: {:error, "Unexpected type when encoding Staghunting.calorimetric"} | |
| 1839 | + | |
| 1840 | + def decode_canid(value) when is_integer(value), do: value | |
| 1841 | + def decode_canid(_), do: {:error, "Unexpected type when decoding Staghunting.canid"} | |
| 1842 | + | |
| 1843 | + def encode_canid(value) when is_integer(value), do: value | |
| 1844 | + def encode_canid(_), do: {:error, "Unexpected type when encoding Staghunting.canid"} | |
| 1845 | + | |
| 1846 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 1847 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 1848 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding Staghunting.catharticalness"} | |
| 1849 | + | |
| 1850 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 1851 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 1852 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding Staghunting.catharticalness"} | |
| 1853 | + | |
| 1854 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 1855 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding Staghunting.chirotherium"} | |
| 1856 | + | |
| 1857 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 1858 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding Staghunting.chirotherium"} | |
| 1859 | + | |
| 1806 | 1860 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1807 | 1861 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding Staghunting.disdiapason"} |
| 1808 | 1862 | |
| 1809 | 1863 | def encode_disdiapason(value) when is_binary(value), do: value |
| 1810 | 1864 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding Staghunting.disdiapason"} |
| 1811 | 1865 | |
| 1866 | + def decode_ditriglyphic(value) when is_integer(value), do: value | |
| 1867 | + def decode_ditriglyphic(_), do: {:error, "Unexpected type when decoding Staghunting.ditriglyphic"} | |
| 1868 | + | |
| 1869 | + def encode_ditriglyphic(value) when is_integer(value), do: value | |
| 1870 | + def encode_ditriglyphic(_), do: {:error, "Unexpected type when encoding Staghunting.ditriglyphic"} | |
| 1871 | + | |
| 1872 | + def decode_floriferousness(value) when is_integer(value), do: value | |
| 1873 | + def decode_floriferousness(_), do: {:error, "Unexpected type when decoding Staghunting.floriferousness"} | |
| 1874 | + | |
| 1875 | + def encode_floriferousness(value) when is_integer(value), do: value | |
| 1876 | + def encode_floriferousness(_), do: {:error, "Unexpected type when encoding Staghunting.floriferousness"} | |
| 1877 | + | |
| 1878 | + def decode_gamelike(value) when is_integer(value), do: value | |
| 1879 | + def decode_gamelike(_), do: {:error, "Unexpected type when decoding Staghunting.gamelike"} | |
| 1880 | + | |
| 1881 | + def encode_gamelike(value) when is_integer(value), do: value | |
| 1882 | + def encode_gamelike(_), do: {:error, "Unexpected type when encoding Staghunting.gamelike"} | |
| 1883 | + | |
| 1884 | + def decode_grig(value) when is_integer(value), do: value | |
| 1885 | + def decode_grig(_), do: {:error, "Unexpected type when decoding Staghunting.grig"} | |
| 1886 | + | |
| 1887 | + def encode_grig(value) when is_integer(value), do: value | |
| 1888 | + def encode_grig(_), do: {:error, "Unexpected type when encoding Staghunting.grig"} | |
| 1889 | + | |
| 1890 | + def decode_interloan(value) when is_integer(value), do: value | |
| 1891 | + def decode_interloan(_), do: {:error, "Unexpected type when decoding Staghunting.interloan"} | |
| 1892 | + | |
| 1893 | + def encode_interloan(value) when is_integer(value), do: value | |
| 1894 | + def encode_interloan(_), do: {:error, "Unexpected type when encoding Staghunting.interloan"} | |
| 1895 | + | |
| 1896 | + def decode_lithotomy(value) when is_integer(value), do: value | |
| 1897 | + def decode_lithotomy(_), do: {:error, "Unexpected type when decoding Staghunting.lithotomy"} | |
| 1898 | + | |
| 1899 | + def encode_lithotomy(value) when is_integer(value), do: value | |
| 1900 | + def encode_lithotomy(_), do: {:error, "Unexpected type when encoding Staghunting.lithotomy"} | |
| 1901 | + | |
| 1902 | + def decode_loric(value) when is_integer(value), do: value | |
| 1903 | + def decode_loric(_), do: {:error, "Unexpected type when decoding Staghunting.loric"} | |
| 1904 | + | |
| 1905 | + def encode_loric(value) when is_integer(value), do: value | |
| 1906 | + def encode_loric(_), do: {:error, "Unexpected type when encoding Staghunting.loric"} | |
| 1907 | + | |
| 1908 | + def decode_membranocoriaceous(value) when is_integer(value), do: value | |
| 1909 | + def decode_membranocoriaceous(_), do: {:error, "Unexpected type when decoding Staghunting.membranocoriaceous"} | |
| 1910 | + | |
| 1911 | + def encode_membranocoriaceous(value) when is_integer(value), do: value | |
| 1912 | + def encode_membranocoriaceous(_), do: {:error, "Unexpected type when encoding Staghunting.membranocoriaceous"} | |
| 1913 | + | |
| 1914 | + def decode_membranogenic(value) when is_integer(value), do: value | |
| 1915 | + def decode_membranogenic(_), do: {:error, "Unexpected type when decoding Staghunting.membranogenic"} | |
| 1916 | + | |
| 1917 | + def encode_membranogenic(value) when is_integer(value), do: value | |
| 1918 | + def encode_membranogenic(_), do: {:error, "Unexpected type when encoding Staghunting.membranogenic"} | |
| 1919 | + | |
| 1920 | + def decode_overtrump(value) when is_integer(value), do: value | |
| 1921 | + def decode_overtrump(_), do: {:error, "Unexpected type when decoding Staghunting.overtrump"} | |
| 1922 | + | |
| 1923 | + def encode_overtrump(value) when is_integer(value), do: value | |
| 1924 | + def encode_overtrump(_), do: {:error, "Unexpected type when encoding Staghunting.overtrump"} | |
| 1925 | + | |
| 1926 | + def decode_scotino(value) when is_integer(value), do: value | |
| 1927 | + def decode_scotino(_), do: {:error, "Unexpected type when decoding Staghunting.scotino"} | |
| 1928 | + | |
| 1929 | + def encode_scotino(value) when is_integer(value), do: value | |
| 1930 | + def encode_scotino(_), do: {:error, "Unexpected type when encoding Staghunting.scotino"} | |
| 1931 | + | |
| 1932 | + def decode_seasonable(value) when is_integer(value), do: value | |
| 1933 | + def decode_seasonable(_), do: {:error, "Unexpected type when decoding Staghunting.seasonable"} | |
| 1934 | + | |
| 1935 | + def encode_seasonable(value) when is_integer(value), do: value | |
| 1936 | + def encode_seasonable(_), do: {:error, "Unexpected type when encoding Staghunting.seasonable"} | |
| 1937 | + | |
| 1938 | + def decode_sephen(value) when is_integer(value), do: value | |
| 1939 | + def decode_sephen(_), do: {:error, "Unexpected type when decoding Staghunting.sephen"} | |
| 1940 | + | |
| 1941 | + def encode_sephen(value) when is_integer(value), do: value | |
| 1942 | + def encode_sephen(_), do: {:error, "Unexpected type when encoding Staghunting.sephen"} | |
| 1943 | + | |
| 1944 | + def decode_stigmarioid(value) when is_integer(value), do: value | |
| 1945 | + def decode_stigmarioid(_), do: {:error, "Unexpected type when decoding Staghunting.stigmarioid"} | |
| 1946 | + | |
| 1947 | + def encode_stigmarioid(value) when is_integer(value), do: value | |
| 1948 | + def encode_stigmarioid(_), do: {:error, "Unexpected type when encoding Staghunting.stigmarioid"} | |
| 1949 | + | |
| 1950 | + def decode_tired(value) when is_integer(value), do: value | |
| 1951 | + def decode_tired(_), do: {:error, "Unexpected type when decoding Staghunting.tired"} | |
| 1952 | + | |
| 1953 | + def encode_tired(value) when is_integer(value), do: value | |
| 1954 | + def encode_tired(_), do: {:error, "Unexpected type when encoding Staghunting.tired"} | |
| 1955 | + | |
| 1956 | + def decode_trifid(value) when is_integer(value), do: value | |
| 1957 | + def decode_trifid(_), do: {:error, "Unexpected type when decoding Staghunting.trifid"} | |
| 1958 | + | |
| 1959 | + def encode_trifid(value) when is_integer(value), do: value | |
| 1960 | + def encode_trifid(_), do: {:error, "Unexpected type when encoding Staghunting.trifid"} | |
| 1961 | + | |
| 1962 | + def decode_undefeatedly(value) when is_integer(value), do: value | |
| 1963 | + def decode_undefeatedly(_), do: {:error, "Unexpected type when decoding Staghunting.undefeatedly"} | |
| 1964 | + | |
| 1965 | + def encode_undefeatedly(value) when is_integer(value), do: value | |
| 1966 | + def encode_undefeatedly(_), do: {:error, "Unexpected type when encoding Staghunting.undefeatedly"} | |
| 1967 | + | |
| 1968 | + def decode_ungirlish(value) when is_integer(value), do: value | |
| 1969 | + def decode_ungirlish(_), do: {:error, "Unexpected type when decoding Staghunting.ungirlish"} | |
| 1970 | + | |
| 1971 | + def encode_ungirlish(value) when is_integer(value), do: value | |
| 1972 | + def encode_ungirlish(_), do: {:error, "Unexpected type when encoding Staghunting.ungirlish"} | |
| 1973 | + | |
| 1812 | 1974 | def from_map(m) do |
| 1813 | 1975 | %Staghunting{ |
| 1814 | - calorimetric: m["calorimetric"], | |
| 1815 | - canid: m["canid"], | |
| 1816 | - catharticalness: m["catharticalness"], | |
| 1817 | - chirotherium: m["Chirotherium"], | |
| 1976 | + calorimetric: m["calorimetric"] && decode_calorimetric(m["calorimetric"]), | |
| 1977 | + canid: m["canid"] && decode_canid(m["canid"]), | |
| 1978 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 1979 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 1818 | 1980 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1819 | - ditriglyphic: m["ditriglyphic"], | |
| 1820 | - floriferousness: m["floriferousness"], | |
| 1821 | - gamelike: m["gamelike"], | |
| 1822 | - grig: m["grig"], | |
| 1981 | + ditriglyphic: m["ditriglyphic"] && decode_ditriglyphic(m["ditriglyphic"]), | |
| 1982 | + floriferousness: m["floriferousness"] && decode_floriferousness(m["floriferousness"]), | |
| 1983 | + gamelike: m["gamelike"] && decode_gamelike(m["gamelike"]), | |
| 1984 | + grig: m["grig"] && decode_grig(m["grig"]), | |
| 1823 | 1985 | homocerc: m["homocerc"], |
| 1824 | - interloan: m["interloan"], | |
| 1825 | - lithotomy: m["lithotomy"], | |
| 1826 | - loric: m["loric"], | |
| 1827 | - membranocoriaceous: m["membranocoriaceous"], | |
| 1828 | - membranogenic: m["membranogenic"], | |
| 1986 | + interloan: m["interloan"] && decode_interloan(m["interloan"]), | |
| 1987 | + lithotomy: m["lithotomy"] && decode_lithotomy(m["lithotomy"]), | |
| 1988 | + loric: m["loric"] && decode_loric(m["loric"]), | |
| 1989 | + membranocoriaceous: m["membranocoriaceous"] && decode_membranocoriaceous(m["membranocoriaceous"]), | |
| 1990 | + membranogenic: m["membranogenic"] && decode_membranogenic(m["membranogenic"]), | |
| 1829 | 1991 | nonbookish: m["nonbookish"], |
| 1830 | - overtrump: m["overtrump"], | |
| 1831 | - scotino: m["scotino"], | |
| 1832 | - seasonable: m["seasonable"], | |
| 1833 | - sephen: m["sephen"], | |
| 1834 | - stigmarioid: m["stigmarioid"], | |
| 1835 | - tired: m["tired"], | |
| 1836 | - trifid: m["trifid"], | |
| 1837 | - undefeatedly: m["undefeatedly"], | |
| 1838 | - ungirlish: m["ungirlish"], | |
| 1992 | + overtrump: m["overtrump"] && decode_overtrump(m["overtrump"]), | |
| 1993 | + scotino: m["scotino"] && decode_scotino(m["scotino"]), | |
| 1994 | + seasonable: m["seasonable"] && decode_seasonable(m["seasonable"]), | |
| 1995 | + sephen: m["sephen"] && decode_sephen(m["sephen"]), | |
| 1996 | + stigmarioid: m["stigmarioid"] && decode_stigmarioid(m["stigmarioid"]), | |
| 1997 | + tired: m["tired"] && decode_tired(m["tired"]), | |
| 1998 | + trifid: m["trifid"] && decode_trifid(m["trifid"]), | |
| 1999 | + undefeatedly: m["undefeatedly"] && decode_undefeatedly(m["undefeatedly"]), | |
| 2000 | + ungirlish: m["ungirlish"] && decode_ungirlish(m["ungirlish"]), | |
| 1839 | 2001 | } |
| 1840 | 2002 | end |
| 1841 | 2003 | |
| @@ -1913,39 +2075,173 @@ defmodule StrenuosityClass do | ||
| 1913 | 2075 | yankeeist: integer() | nil |
| 1914 | 2076 | } |
| 1915 | 2077 | |
| 2078 | + def decode_bliss(value) when is_integer(value), do: value | |
| 2079 | + def decode_bliss(_), do: {:error, "Unexpected type when decoding StrenuosityClass.bliss"} | |
| 2080 | + | |
| 2081 | + def encode_bliss(value) when is_integer(value), do: value | |
| 2082 | + def encode_bliss(_), do: {:error, "Unexpected type when encoding StrenuosityClass.bliss"} | |
| 2083 | + | |
| 2084 | + def decode_buccate(value) when is_integer(value), do: value | |
| 2085 | + def decode_buccate(_), do: {:error, "Unexpected type when decoding StrenuosityClass.buccate"} | |
| 2086 | + | |
| 2087 | + def encode_buccate(value) when is_integer(value), do: value | |
| 2088 | + def encode_buccate(_), do: {:error, "Unexpected type when encoding StrenuosityClass.buccate"} | |
| 2089 | + | |
| 2090 | + def decode_bulletproof(value) when is_integer(value), do: value | |
| 2091 | + def decode_bulletproof(_), do: {:error, "Unexpected type when decoding StrenuosityClass.bulletproof"} | |
| 2092 | + | |
| 2093 | + def encode_bulletproof(value) when is_integer(value), do: value | |
| 2094 | + def encode_bulletproof(_), do: {:error, "Unexpected type when encoding StrenuosityClass.bulletproof"} | |
| 2095 | + | |
| 2096 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 2097 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 2098 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding StrenuosityClass.catharticalness"} | |
| 2099 | + | |
| 2100 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 2101 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 2102 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding StrenuosityClass.catharticalness"} | |
| 2103 | + | |
| 2104 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 2105 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding StrenuosityClass.chirotherium"} | |
| 2106 | + | |
| 2107 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 2108 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding StrenuosityClass.chirotherium"} | |
| 2109 | + | |
| 2110 | + def decode_crumblingness(value) when is_integer(value), do: value | |
| 2111 | + def decode_crumblingness(_), do: {:error, "Unexpected type when decoding StrenuosityClass.crumblingness"} | |
| 2112 | + | |
| 2113 | + def encode_crumblingness(value) when is_integer(value), do: value | |
| 2114 | + def encode_crumblingness(_), do: {:error, "Unexpected type when encoding StrenuosityClass.crumblingness"} | |
| 2115 | + | |
| 1916 | 2116 | def decode_disdiapason(value) when is_binary(value), do: value |
| 1917 | 2117 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding StrenuosityClass.disdiapason"} |
| 1918 | 2118 | |
| 1919 | 2119 | def encode_disdiapason(value) when is_binary(value), do: value |
| 1920 | 2120 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding StrenuosityClass.disdiapason"} |
| 1921 | 2121 | |
| 2122 | + def decode_engagedly(value) when is_integer(value), do: value | |
| 2123 | + def decode_engagedly(_), do: {:error, "Unexpected type when decoding StrenuosityClass.engagedly"} | |
| 2124 | + | |
| 2125 | + def encode_engagedly(value) when is_integer(value), do: value | |
| 2126 | + def encode_engagedly(_), do: {:error, "Unexpected type when encoding StrenuosityClass.engagedly"} | |
| 2127 | + | |
| 2128 | + def decode_fightable(value) when is_integer(value), do: value | |
| 2129 | + def decode_fightable(_), do: {:error, "Unexpected type when decoding StrenuosityClass.fightable"} | |
| 2130 | + | |
| 2131 | + def encode_fightable(value) when is_integer(value), do: value | |
| 2132 | + def encode_fightable(_), do: {:error, "Unexpected type when encoding StrenuosityClass.fightable"} | |
| 2133 | + | |
| 2134 | + def decode_hoariness(value) when is_integer(value), do: value | |
| 2135 | + def decode_hoariness(_), do: {:error, "Unexpected type when decoding StrenuosityClass.hoariness"} | |
| 2136 | + | |
| 2137 | + def encode_hoariness(value) when is_integer(value), do: value | |
| 2138 | + def encode_hoariness(_), do: {:error, "Unexpected type when encoding StrenuosityClass.hoariness"} | |
| 2139 | + | |
| 2140 | + def decode_hypopodium(value) when is_integer(value), do: value | |
| 2141 | + def decode_hypopodium(_), do: {:error, "Unexpected type when decoding StrenuosityClass.hypopodium"} | |
| 2142 | + | |
| 2143 | + def encode_hypopodium(value) when is_integer(value), do: value | |
| 2144 | + def encode_hypopodium(_), do: {:error, "Unexpected type when encoding StrenuosityClass.hypopodium"} | |
| 2145 | + | |
| 2146 | + def decode_luxurist(value) when is_integer(value), do: value | |
| 2147 | + def decode_luxurist(_), do: {:error, "Unexpected type when decoding StrenuosityClass.luxurist"} | |
| 2148 | + | |
| 2149 | + def encode_luxurist(value) when is_integer(value), do: value | |
| 2150 | + def encode_luxurist(_), do: {:error, "Unexpected type when encoding StrenuosityClass.luxurist"} | |
| 2151 | + | |
| 2152 | + def decode_mechanician(value) when is_integer(value), do: value | |
| 2153 | + def decode_mechanician(_), do: {:error, "Unexpected type when decoding StrenuosityClass.mechanician"} | |
| 2154 | + | |
| 2155 | + def encode_mechanician(value) when is_integer(value), do: value | |
| 2156 | + def encode_mechanician(_), do: {:error, "Unexpected type when encoding StrenuosityClass.mechanician"} | |
| 2157 | + | |
| 2158 | + def decode_onopordon(value) when is_integer(value), do: value | |
| 2159 | + def decode_onopordon(_), do: {:error, "Unexpected type when decoding StrenuosityClass.onopordon"} | |
| 2160 | + | |
| 2161 | + def encode_onopordon(value) when is_integer(value), do: value | |
| 2162 | + def encode_onopordon(_), do: {:error, "Unexpected type when encoding StrenuosityClass.onopordon"} | |
| 2163 | + | |
| 2164 | + def decode_podgily(value) when is_integer(value), do: value | |
| 2165 | + def decode_podgily(_), do: {:error, "Unexpected type when decoding StrenuosityClass.podgily"} | |
| 2166 | + | |
| 2167 | + def encode_podgily(value) when is_integer(value), do: value | |
| 2168 | + def encode_podgily(_), do: {:error, "Unexpected type when encoding StrenuosityClass.podgily"} | |
| 2169 | + | |
| 2170 | + def decode_reformableness(value) when is_integer(value), do: value | |
| 2171 | + def decode_reformableness(_), do: {:error, "Unexpected type when decoding StrenuosityClass.reformableness"} | |
| 2172 | + | |
| 2173 | + def encode_reformableness(value) when is_integer(value), do: value | |
| 2174 | + def encode_reformableness(_), do: {:error, "Unexpected type when encoding StrenuosityClass.reformableness"} | |
| 2175 | + | |
| 2176 | + def decode_scatterbrains(value) when is_integer(value), do: value | |
| 2177 | + def decode_scatterbrains(_), do: {:error, "Unexpected type when decoding StrenuosityClass.scatterbrains"} | |
| 2178 | + | |
| 2179 | + def encode_scatterbrains(value) when is_integer(value), do: value | |
| 2180 | + def encode_scatterbrains(_), do: {:error, "Unexpected type when encoding StrenuosityClass.scatterbrains"} | |
| 2181 | + | |
| 2182 | + def decode_seminuria(value) when is_integer(value), do: value | |
| 2183 | + def decode_seminuria(_), do: {:error, "Unexpected type when decoding StrenuosityClass.seminuria"} | |
| 2184 | + | |
| 2185 | + def encode_seminuria(value) when is_integer(value), do: value | |
| 2186 | + def encode_seminuria(_), do: {:error, "Unexpected type when encoding StrenuosityClass.seminuria"} | |
| 2187 | + | |
| 2188 | + def decode_sodomite(value) when is_integer(value), do: value | |
| 2189 | + def decode_sodomite(_), do: {:error, "Unexpected type when decoding StrenuosityClass.sodomite"} | |
| 2190 | + | |
| 2191 | + def encode_sodomite(value) when is_integer(value), do: value | |
| 2192 | + def encode_sodomite(_), do: {:error, "Unexpected type when encoding StrenuosityClass.sodomite"} | |
| 2193 | + | |
| 2194 | + def decode_tramp(value) when is_integer(value), do: value | |
| 2195 | + def decode_tramp(_), do: {:error, "Unexpected type when decoding StrenuosityClass.tramp"} | |
| 2196 | + | |
| 2197 | + def encode_tramp(value) when is_integer(value), do: value | |
| 2198 | + def encode_tramp(_), do: {:error, "Unexpected type when encoding StrenuosityClass.tramp"} | |
| 2199 | + | |
| 2200 | + def decode_undueness(value) when is_integer(value), do: value | |
| 2201 | + def decode_undueness(_), do: {:error, "Unexpected type when decoding StrenuosityClass.undueness"} | |
| 2202 | + | |
| 2203 | + def encode_undueness(value) when is_integer(value), do: value | |
| 2204 | + def encode_undueness(_), do: {:error, "Unexpected type when encoding StrenuosityClass.undueness"} | |
| 2205 | + | |
| 2206 | + def decode_worthily(value) when is_integer(value), do: value | |
| 2207 | + def decode_worthily(_), do: {:error, "Unexpected type when decoding StrenuosityClass.worthily"} | |
| 2208 | + | |
| 2209 | + def encode_worthily(value) when is_integer(value), do: value | |
| 2210 | + def encode_worthily(_), do: {:error, "Unexpected type when encoding StrenuosityClass.worthily"} | |
| 2211 | + | |
| 2212 | + def decode_yankeeist(value) when is_integer(value), do: value | |
| 2213 | + def decode_yankeeist(_), do: {:error, "Unexpected type when decoding StrenuosityClass.yankeeist"} | |
| 2214 | + | |
| 2215 | + def encode_yankeeist(value) when is_integer(value), do: value | |
| 2216 | + def encode_yankeeist(_), do: {:error, "Unexpected type when encoding StrenuosityClass.yankeeist"} | |
| 2217 | + | |
| 1922 | 2218 | def from_map(m) do |
| 1923 | 2219 | %StrenuosityClass{ |
| 1924 | - bliss: m["bliss"], | |
| 1925 | - buccate: m["buccate"], | |
| 1926 | - bulletproof: m["bulletproof"], | |
| 1927 | - catharticalness: m["catharticalness"], | |
| 1928 | - chirotherium: m["Chirotherium"], | |
| 1929 | - crumblingness: m["crumblingness"], | |
| 2220 | + bliss: m["bliss"] && decode_bliss(m["bliss"]), | |
| 2221 | + buccate: m["buccate"] && decode_buccate(m["buccate"]), | |
| 2222 | + bulletproof: m["bulletproof"] && decode_bulletproof(m["bulletproof"]), | |
| 2223 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 2224 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 2225 | + crumblingness: m["crumblingness"] && decode_crumblingness(m["crumblingness"]), | |
| 1930 | 2226 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 1931 | - engagedly: m["engagedly"], | |
| 1932 | - fightable: m["fightable"], | |
| 1933 | - hoariness: m["hoariness"], | |
| 2227 | + engagedly: m["engagedly"] && decode_engagedly(m["engagedly"]), | |
| 2228 | + fightable: m["fightable"] && decode_fightable(m["fightable"]), | |
| 2229 | + hoariness: m["hoariness"] && decode_hoariness(m["hoariness"]), | |
| 1934 | 2230 | homocerc: m["homocerc"], |
| 1935 | - hypopodium: m["hypopodium"], | |
| 1936 | - luxurist: m["luxurist"], | |
| 1937 | - mechanician: m["mechanician"], | |
| 2231 | + hypopodium: m["hypopodium"] && decode_hypopodium(m["hypopodium"]), | |
| 2232 | + luxurist: m["luxurist"] && decode_luxurist(m["luxurist"]), | |
| 2233 | + mechanician: m["mechanician"] && decode_mechanician(m["mechanician"]), | |
| 1938 | 2234 | nonbookish: m["nonbookish"], |
| 1939 | - onopordon: m["Onopordon"], | |
| 1940 | - podgily: m["podgily"], | |
| 1941 | - reformableness: m["reformableness"], | |
| 1942 | - scatterbrains: m["scatterbrains"], | |
| 1943 | - seminuria: m["seminuria"], | |
| 1944 | - sodomite: m["Sodomite"], | |
| 1945 | - tramp: m["tramp"], | |
| 1946 | - undueness: m["undueness"], | |
| 1947 | - worthily: m["worthily"], | |
| 1948 | - yankeeist: m["Yankeeist"], | |
| 2235 | + onopordon: m["Onopordon"] && decode_onopordon(m["Onopordon"]), | |
| 2236 | + podgily: m["podgily"] && decode_podgily(m["podgily"]), | |
| 2237 | + reformableness: m["reformableness"] && decode_reformableness(m["reformableness"]), | |
| 2238 | + scatterbrains: m["scatterbrains"] && decode_scatterbrains(m["scatterbrains"]), | |
| 2239 | + seminuria: m["seminuria"] && decode_seminuria(m["seminuria"]), | |
| 2240 | + sodomite: m["Sodomite"] && decode_sodomite(m["Sodomite"]), | |
| 2241 | + tramp: m["tramp"] && decode_tramp(m["tramp"]), | |
| 2242 | + undueness: m["undueness"] && decode_undueness(m["undueness"]), | |
| 2243 | + worthily: m["worthily"] && decode_worthily(m["worthily"]), | |
| 2244 | + yankeeist: m["Yankeeist"] && decode_yankeeist(m["Yankeeist"]), | |
| 1949 | 2245 | } |
| 1950 | 2246 | end |
| 1951 | 2247 | |
| @@ -2023,6 +2319,20 @@ defmodule TruantcyClass do | ||
| 2023 | 2319 | yuman: nil | nil |
| 2024 | 2320 | } |
| 2025 | 2321 | |
| 2322 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 2323 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 2324 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding TruantcyClass.catharticalness"} | |
| 2325 | + | |
| 2326 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 2327 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 2328 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding TruantcyClass.catharticalness"} | |
| 2329 | + | |
| 2330 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 2331 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding TruantcyClass.chirotherium"} | |
| 2332 | + | |
| 2333 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 2334 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding TruantcyClass.chirotherium"} | |
| 2335 | + | |
| 2026 | 2336 | def decode_disdiapason(value) when is_binary(value), do: value |
| 2027 | 2337 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding TruantcyClass.disdiapason"} |
| 2028 | 2338 | |
| @@ -2034,9 +2344,9 @@ defmodule TruantcyClass do | ||
| 2034 | 2344 | alfiona: m["alfiona"], |
| 2035 | 2345 | ascaridiasis: m["ascaridiasis"], |
| 2036 | 2346 | bungey: m["bungey"], |
| 2037 | - catharticalness: m["catharticalness"], | |
| 2347 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 2038 | 2348 | ceroxyle: m["ceroxyle"], |
| 2039 | - chirotherium: m["Chirotherium"], | |
| 2349 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 2040 | 2350 | chorology: m["chorology"], |
| 2041 | 2351 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 2042 | 2352 | enmarble: m["enmarble"], |
| @@ -2133,39 +2443,173 @@ defmodule UnimpeachablyClass do | ||
| 2133 | 2443 | unsuggestedness: integer() | nil |
| 2134 | 2444 | } |
| 2135 | 2445 | |
| 2446 | + def decode_acerin(value) when is_integer(value), do: value | |
| 2447 | + def decode_acerin(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.acerin"} | |
| 2448 | + | |
| 2449 | + def encode_acerin(value) when is_integer(value), do: value | |
| 2450 | + def encode_acerin(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.acerin"} | |
| 2451 | + | |
| 2452 | + def decode_bobadil(value) when is_integer(value), do: value | |
| 2453 | + def decode_bobadil(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.bobadil"} | |
| 2454 | + | |
| 2455 | + def encode_bobadil(value) when is_integer(value), do: value | |
| 2456 | + def encode_bobadil(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.bobadil"} | |
| 2457 | + | |
| 2458 | + def decode_catharticalness(value) when is_float(value), do: value | |
| 2459 | + def decode_catharticalness(value) when is_integer(value), do: value | |
| 2460 | + def decode_catharticalness(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.catharticalness"} | |
| 2461 | + | |
| 2462 | + def encode_catharticalness(value) when is_float(value), do: value | |
| 2463 | + def encode_catharticalness(value) when is_integer(value), do: value | |
| 2464 | + def encode_catharticalness(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.catharticalness"} | |
| 2465 | + | |
| 2466 | + def decode_chirotherium(value) when is_integer(value), do: value | |
| 2467 | + def decode_chirotherium(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.chirotherium"} | |
| 2468 | + | |
| 2469 | + def encode_chirotherium(value) when is_integer(value), do: value | |
| 2470 | + def encode_chirotherium(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.chirotherium"} | |
| 2471 | + | |
| 2472 | + def decode_chlorophylligenous(value) when is_integer(value), do: value | |
| 2473 | + def decode_chlorophylligenous(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.chlorophylligenous"} | |
| 2474 | + | |
| 2475 | + def encode_chlorophylligenous(value) when is_integer(value), do: value | |
| 2476 | + def encode_chlorophylligenous(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.chlorophylligenous"} | |
| 2477 | + | |
| 2478 | + def decode_conversational(value) when is_integer(value), do: value | |
| 2479 | + def decode_conversational(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.conversational"} | |
| 2480 | + | |
| 2481 | + def encode_conversational(value) when is_integer(value), do: value | |
| 2482 | + def encode_conversational(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.conversational"} | |
| 2483 | + | |
| 2484 | + def decode_demiowl(value) when is_integer(value), do: value | |
| 2485 | + def decode_demiowl(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.demiowl"} | |
| 2486 | + | |
| 2487 | + def encode_demiowl(value) when is_integer(value), do: value | |
| 2488 | + def encode_demiowl(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.demiowl"} | |
| 2489 | + | |
| 2136 | 2490 | def decode_disdiapason(value) when is_binary(value), do: value |
| 2137 | 2491 | def decode_disdiapason(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.disdiapason"} |
| 2138 | 2492 | |
| 2139 | 2493 | def encode_disdiapason(value) when is_binary(value), do: value |
| 2140 | 2494 | def encode_disdiapason(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.disdiapason"} |
| 2141 | 2495 | |
| 2496 | + def decode_ectorhinal(value) when is_integer(value), do: value | |
| 2497 | + def decode_ectorhinal(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.ectorhinal"} | |
| 2498 | + | |
| 2499 | + def encode_ectorhinal(value) when is_integer(value), do: value | |
| 2500 | + def encode_ectorhinal(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.ectorhinal"} | |
| 2501 | + | |
| 2502 | + def decode_gamblesomeness(value) when is_integer(value), do: value | |
| 2503 | + def decode_gamblesomeness(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.gamblesomeness"} | |
| 2504 | + | |
| 2505 | + def encode_gamblesomeness(value) when is_integer(value), do: value | |
| 2506 | + def encode_gamblesomeness(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.gamblesomeness"} | |
| 2507 | + | |
| 2508 | + def decode_irrorate(value) when is_integer(value), do: value | |
| 2509 | + def decode_irrorate(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.irrorate"} | |
| 2510 | + | |
| 2511 | + def encode_irrorate(value) when is_integer(value), do: value | |
| 2512 | + def encode_irrorate(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.irrorate"} | |
| 2513 | + | |
| 2514 | + def decode_kindergartening(value) when is_integer(value), do: value | |
| 2515 | + def decode_kindergartening(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.kindergartening"} | |
| 2516 | + | |
| 2517 | + def encode_kindergartening(value) when is_integer(value), do: value | |
| 2518 | + def encode_kindergartening(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.kindergartening"} | |
| 2519 | + | |
| 2520 | + def decode_lateritic(value) when is_integer(value), do: value | |
| 2521 | + def decode_lateritic(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.lateritic"} | |
| 2522 | + | |
| 2523 | + def encode_lateritic(value) when is_integer(value), do: value | |
| 2524 | + def encode_lateritic(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.lateritic"} | |
| 2525 | + | |
| 2526 | + def decode_mespil(value) when is_integer(value), do: value | |
| 2527 | + def decode_mespil(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.mespil"} | |
| 2528 | + | |
| 2529 | + def encode_mespil(value) when is_integer(value), do: value | |
| 2530 | + def encode_mespil(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.mespil"} | |
| 2531 | + | |
| 2532 | + def decode_misconfiguration(value) when is_integer(value), do: value | |
| 2533 | + def decode_misconfiguration(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.misconfiguration"} | |
| 2534 | + | |
| 2535 | + def encode_misconfiguration(value) when is_integer(value), do: value | |
| 2536 | + def encode_misconfiguration(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.misconfiguration"} | |
| 2537 | + | |
| 2538 | + def decode_planometry(value) when is_integer(value), do: value | |
| 2539 | + def decode_planometry(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.planometry"} | |
| 2540 | + | |
| 2541 | + def encode_planometry(value) when is_integer(value), do: value | |
| 2542 | + def encode_planometry(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.planometry"} | |
| 2543 | + | |
| 2544 | + def decode_quiina(value) when is_integer(value), do: value | |
| 2545 | + def decode_quiina(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.quiina"} | |
| 2546 | + | |
| 2547 | + def encode_quiina(value) when is_integer(value), do: value | |
| 2548 | + def encode_quiina(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.quiina"} | |
| 2549 | + | |
| 2550 | + def decode_robert(value) when is_integer(value), do: value | |
| 2551 | + def decode_robert(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.robert"} | |
| 2552 | + | |
| 2553 | + def encode_robert(value) when is_integer(value), do: value | |
| 2554 | + def encode_robert(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.robert"} | |
| 2555 | + | |
| 2556 | + def decode_rot(value) when is_integer(value), do: value | |
| 2557 | + def decode_rot(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.rot"} | |
| 2558 | + | |
| 2559 | + def encode_rot(value) when is_integer(value), do: value | |
| 2560 | + def encode_rot(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.rot"} | |
| 2561 | + | |
| 2562 | + def decode_subcinctorium(value) when is_integer(value), do: value | |
| 2563 | + def decode_subcinctorium(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.subcinctorium"} | |
| 2564 | + | |
| 2565 | + def encode_subcinctorium(value) when is_integer(value), do: value | |
| 2566 | + def encode_subcinctorium(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.subcinctorium"} | |
| 2567 | + | |
| 2568 | + def decode_tussocker(value) when is_integer(value), do: value | |
| 2569 | + def decode_tussocker(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.tussocker"} | |
| 2570 | + | |
| 2571 | + def encode_tussocker(value) when is_integer(value), do: value | |
| 2572 | + def encode_tussocker(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.tussocker"} | |
| 2573 | + | |
| 2574 | + def decode_ultraproud(value) when is_integer(value), do: value | |
| 2575 | + def decode_ultraproud(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.ultraproud"} | |
| 2576 | + | |
| 2577 | + def encode_ultraproud(value) when is_integer(value), do: value | |
| 2578 | + def encode_ultraproud(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.ultraproud"} | |
| 2579 | + | |
| 2580 | + def decode_unsuggestedness(value) when is_integer(value), do: value | |
| 2581 | + def decode_unsuggestedness(_), do: {:error, "Unexpected type when decoding UnimpeachablyClass.unsuggestedness"} | |
| 2582 | + | |
| 2583 | + def encode_unsuggestedness(value) when is_integer(value), do: value | |
| 2584 | + def encode_unsuggestedness(_), do: {:error, "Unexpected type when encoding UnimpeachablyClass.unsuggestedness"} | |
| 2585 | + | |
| 2142 | 2586 | def from_map(m) do |
| 2143 | 2587 | %UnimpeachablyClass{ |
| 2144 | - acerin: m["acerin"], | |
| 2145 | - bobadil: m["Bobadil"], | |
| 2146 | - catharticalness: m["catharticalness"], | |
| 2147 | - chirotherium: m["Chirotherium"], | |
| 2148 | - chlorophylligenous: m["chlorophylligenous"], | |
| 2149 | - conversational: m["conversational"], | |
| 2150 | - demiowl: m["demiowl"], | |
| 2588 | + acerin: m["acerin"] && decode_acerin(m["acerin"]), | |
| 2589 | + bobadil: m["Bobadil"] && decode_bobadil(m["Bobadil"]), | |
| 2590 | + catharticalness: m["catharticalness"] && decode_catharticalness(m["catharticalness"]), | |
| 2591 | + chirotherium: m["Chirotherium"] && decode_chirotherium(m["Chirotherium"]), | |
| 2592 | + chlorophylligenous: m["chlorophylligenous"] && decode_chlorophylligenous(m["chlorophylligenous"]), | |
| 2593 | + conversational: m["conversational"] && decode_conversational(m["conversational"]), | |
| 2594 | + demiowl: m["demiowl"] && decode_demiowl(m["demiowl"]), | |
| 2151 | 2595 | disdiapason: m["disdiapason"] && decode_disdiapason(m["disdiapason"]), |
| 2152 | - ectorhinal: m["ectorhinal"], | |
| 2153 | - gamblesomeness: m["gamblesomeness"], | |
| 2596 | + ectorhinal: m["ectorhinal"] && decode_ectorhinal(m["ectorhinal"]), | |
| 2597 | + gamblesomeness: m["gamblesomeness"] && decode_gamblesomeness(m["gamblesomeness"]), | |
| 2154 | 2598 | homocerc: m["homocerc"], |
| 2155 | - irrorate: m["irrorate"], | |
| 2156 | - kindergartening: m["kindergartening"], | |
| 2157 | - lateritic: m["lateritic"], | |
| 2158 | - mespil: m["mespil"], | |
| 2159 | - misconfiguration: m["misconfiguration"], | |
| 2599 | + irrorate: m["irrorate"] && decode_irrorate(m["irrorate"]), | |
| 2600 | + kindergartening: m["kindergartening"] && decode_kindergartening(m["kindergartening"]), | |
| 2601 | + lateritic: m["lateritic"] && decode_lateritic(m["lateritic"]), | |
| 2602 | + mespil: m["mespil"] && decode_mespil(m["mespil"]), | |
| 2603 | + misconfiguration: m["misconfiguration"] && decode_misconfiguration(m["misconfiguration"]), | |
| 2160 | 2604 | nonbookish: m["nonbookish"], |
| 2161 | - planometry: m["planometry"], | |
| 2162 | - quiina: m["Quiina"], | |
| 2163 | - robert: m["Robert"], | |
| 2164 | - rot: m["rot"], | |
| 2165 | - subcinctorium: m["subcinctorium"], | |
| 2166 | - tussocker: m["tussocker"], | |
| 2167 | - ultraproud: m["ultraproud"], | |
| 2168 | - unsuggestedness: m["unsuggestedness"], | |
| 2605 | + planometry: m["planometry"] && decode_planometry(m["planometry"]), | |
| 2606 | + quiina: m["Quiina"] && decode_quiina(m["Quiina"]), | |
| 2607 | + robert: m["Robert"] && decode_robert(m["Robert"]), | |
| 2608 | + rot: m["rot"] && decode_rot(m["rot"]), | |
| 2609 | + subcinctorium: m["subcinctorium"] && decode_subcinctorium(m["subcinctorium"]), | |
| 2610 | + tussocker: m["tussocker"] && decode_tussocker(m["tussocker"]), | |
| 2611 | + ultraproud: m["ultraproud"] && decode_ultraproud(m["ultraproud"]), | |
| 2612 | + unsuggestedness: m["unsuggestedness"] && decode_unsuggestedness(m["unsuggestedness"]), | |
| 2169 | 2613 | } |
| 2170 | 2614 | end |
Atypescript-effect-schemajust-schema-true--8c4ca457bcba / TopLevel.ts+440 −0
| @@ -0,0 +1,440 @@ | ||
| 1 | +import * as S from "effect/Schema"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export class WrothyClass extends S.Class<WrothyClass>("WrothyClass")({ | |
| 5 | + "Aeschynanthus": S.Null, | |
| 6 | + "aquiferous": S.Null, | |
| 7 | + "cheapener": S.Null, | |
| 8 | + "enumeration": S.Null, | |
| 9 | + "Ephesine": S.Null, | |
| 10 | + "escadrille": S.Null, | |
| 11 | + "estrous": S.Null, | |
| 12 | + "interestedly": S.Null, | |
| 13 | + "katakinetomer": S.Null, | |
| 14 | + "mortification": S.Null, | |
| 15 | + "morula": S.Null, | |
| 16 | + "orthosymmetrical": S.Null, | |
| 17 | + "overbark": S.Null, | |
| 18 | + "politist": S.Null, | |
| 19 | + "qualified": S.Null, | |
| 20 | + "sphenomalar": S.Null, | |
| 21 | + "throatful": S.Null, | |
| 22 | + "transhumance": S.Null, | |
| 23 | + "triandrian": S.Null, | |
| 24 | + "unbooked": S.Null, | |
| 25 | +}) {} | |
| 26 | + | |
| 27 | +export class UnstressedClass extends S.Class<UnstressedClass>("UnstressedClass")({ | |
| 28 | + "Alain": S.Null, | |
| 29 | + "Amphirhina": S.Null, | |
| 30 | + "antimachinery": S.Null, | |
| 31 | + "coldish": S.Null, | |
| 32 | + "crantara": S.Null, | |
| 33 | + "distinguishing": S.Null, | |
| 34 | + "elytroposis": S.Null, | |
| 35 | + "gentianwort": S.Null, | |
| 36 | + "heliosis": S.Null, | |
| 37 | + "instrumental": S.Null, | |
| 38 | + "introinflection": S.Null, | |
| 39 | + "kala": S.Null, | |
| 40 | + "Lincolnian": S.Null, | |
| 41 | + "metad": S.Null, | |
| 42 | + "Sarcophilus": S.Null, | |
| 43 | + "swingingly": S.Null, | |
| 44 | + "unconformity": S.Null, | |
| 45 | + "undecreed": S.Null, | |
| 46 | + "venerable": S.Null, | |
| 47 | + "vowellessness": S.Null, | |
| 48 | +}) {} | |
| 49 | + | |
| 50 | +export class UnimpeachablyClass extends S.Class<UnimpeachablyClass>("UnimpeachablyClass")({ | |
| 51 | + "acerin": S.optional(S.NullOr(S.Int)), | |
| 52 | + "Bobadil": S.optional(S.NullOr(S.Int)), | |
| 53 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 54 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 55 | + "chlorophylligenous": S.optional(S.NullOr(S.Int)), | |
| 56 | + "conversational": S.optional(S.NullOr(S.Int)), | |
| 57 | + "demiowl": S.optional(S.NullOr(S.Int)), | |
| 58 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 59 | + "ectorhinal": S.optional(S.NullOr(S.Int)), | |
| 60 | + "gamblesomeness": S.optional(S.NullOr(S.Int)), | |
| 61 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 62 | + "irrorate": S.optional(S.NullOr(S.Int)), | |
| 63 | + "kindergartening": S.optional(S.NullOr(S.Int)), | |
| 64 | + "lateritic": S.optional(S.NullOr(S.Int)), | |
| 65 | + "mespil": S.optional(S.NullOr(S.Int)), | |
| 66 | + "misconfiguration": S.optional(S.NullOr(S.Int)), | |
| 67 | + "nonbookish": S.optional(S.Null), | |
| 68 | + "planometry": S.optional(S.NullOr(S.Int)), | |
| 69 | + "Quiina": S.optional(S.NullOr(S.Int)), | |
| 70 | + "Robert": S.optional(S.NullOr(S.Int)), | |
| 71 | + "rot": S.optional(S.NullOr(S.Int)), | |
| 72 | + "subcinctorium": S.optional(S.NullOr(S.Int)), | |
| 73 | + "tussocker": S.optional(S.NullOr(S.Int)), | |
| 74 | + "ultraproud": S.optional(S.NullOr(S.Int)), | |
| 75 | + "unsuggestedness": S.optional(S.NullOr(S.Int)), | |
| 76 | +}) {} | |
| 77 | + | |
| 78 | +export class TruantcyClass extends S.Class<TruantcyClass>("TruantcyClass")({ | |
| 79 | + "alfiona": S.optional(S.Null), | |
| 80 | + "ascaridiasis": S.optional(S.Null), | |
| 81 | + "bungey": S.optional(S.Null), | |
| 82 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 83 | + "ceroxyle": S.optional(S.Null), | |
| 84 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 85 | + "chorology": S.optional(S.Null), | |
| 86 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 87 | + "enmarble": S.optional(S.Null), | |
| 88 | + "Epeira": S.optional(S.Null), | |
| 89 | + "Eurylaimi": S.optional(S.Null), | |
| 90 | + "germination": S.optional(S.Null), | |
| 91 | + "hallelujah": S.optional(S.Null), | |
| 92 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 93 | + "lev": S.optional(S.Null), | |
| 94 | + "mouthing": S.optional(S.Null), | |
| 95 | + "nonbookish": S.optional(S.Null), | |
| 96 | + "philliloo": S.optional(S.Null), | |
| 97 | + "planetal": S.optional(S.Null), | |
| 98 | + "poney": S.optional(S.Null), | |
| 99 | + "punctualist": S.optional(S.Null), | |
| 100 | + "returnlessly": S.optional(S.Null), | |
| 101 | + "skelder": S.optional(S.Null), | |
| 102 | + "windwaywardly": S.optional(S.Null), | |
| 103 | + "Yuman": S.optional(S.Null), | |
| 104 | +}) {} | |
| 105 | + | |
| 106 | +export class StrenuosityClass extends S.Class<StrenuosityClass>("StrenuosityClass")({ | |
| 107 | + "bliss": S.optional(S.NullOr(S.Int)), | |
| 108 | + "buccate": S.optional(S.NullOr(S.Int)), | |
| 109 | + "bulletproof": S.optional(S.NullOr(S.Int)), | |
| 110 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 111 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 112 | + "crumblingness": S.optional(S.NullOr(S.Int)), | |
| 113 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 114 | + "engagedly": S.optional(S.NullOr(S.Int)), | |
| 115 | + "fightable": S.optional(S.NullOr(S.Int)), | |
| 116 | + "hoariness": S.optional(S.NullOr(S.Int)), | |
| 117 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 118 | + "hypopodium": S.optional(S.NullOr(S.Int)), | |
| 119 | + "luxurist": S.optional(S.NullOr(S.Int)), | |
| 120 | + "mechanician": S.optional(S.NullOr(S.Int)), | |
| 121 | + "nonbookish": S.optional(S.Null), | |
| 122 | + "Onopordon": S.optional(S.NullOr(S.Int)), | |
| 123 | + "podgily": S.optional(S.NullOr(S.Int)), | |
| 124 | + "reformableness": S.optional(S.NullOr(S.Int)), | |
| 125 | + "scatterbrains": S.optional(S.NullOr(S.Int)), | |
| 126 | + "seminuria": S.optional(S.NullOr(S.Int)), | |
| 127 | + "Sodomite": S.optional(S.NullOr(S.Int)), | |
| 128 | + "tramp": S.optional(S.NullOr(S.Int)), | |
| 129 | + "undueness": S.optional(S.NullOr(S.Int)), | |
| 130 | + "worthily": S.optional(S.NullOr(S.Int)), | |
| 131 | + "Yankeeist": S.optional(S.NullOr(S.Int)), | |
| 132 | +}) {} | |
| 133 | + | |
| 134 | +export class Staghunting extends S.Class<Staghunting>("Staghunting")({ | |
| 135 | + "calorimetric": S.optional(S.NullOr(S.Int)), | |
| 136 | + "canid": S.optional(S.NullOr(S.Int)), | |
| 137 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 138 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 139 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 140 | + "ditriglyphic": S.optional(S.NullOr(S.Int)), | |
| 141 | + "floriferousness": S.optional(S.NullOr(S.Int)), | |
| 142 | + "gamelike": S.optional(S.NullOr(S.Int)), | |
| 143 | + "grig": S.optional(S.NullOr(S.Int)), | |
| 144 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 145 | + "interloan": S.optional(S.NullOr(S.Int)), | |
| 146 | + "lithotomy": S.optional(S.NullOr(S.Int)), | |
| 147 | + "loric": S.optional(S.NullOr(S.Int)), | |
| 148 | + "membranocoriaceous": S.optional(S.NullOr(S.Int)), | |
| 149 | + "membranogenic": S.optional(S.NullOr(S.Int)), | |
| 150 | + "nonbookish": S.optional(S.Null), | |
| 151 | + "overtrump": S.optional(S.NullOr(S.Int)), | |
| 152 | + "scotino": S.optional(S.NullOr(S.Int)), | |
| 153 | + "seasonable": S.optional(S.NullOr(S.Int)), | |
| 154 | + "sephen": S.optional(S.NullOr(S.Int)), | |
| 155 | + "stigmarioid": S.optional(S.NullOr(S.Int)), | |
| 156 | + "tired": S.optional(S.NullOr(S.Int)), | |
| 157 | + "trifid": S.optional(S.NullOr(S.Int)), | |
| 158 | + "undefeatedly": S.optional(S.NullOr(S.Int)), | |
| 159 | + "ungirlish": S.optional(S.NullOr(S.Int)), | |
| 160 | +}) {} | |
| 161 | + | |
| 162 | +export class SisteringClass extends S.Class<SisteringClass>("SisteringClass")({ | |
| 163 | + "amphicarpic": S.Null, | |
| 164 | + "Chianti": S.Null, | |
| 165 | + "frigorific": S.Null, | |
| 166 | + "Haplomi": S.Null, | |
| 167 | + "hyperkinesis": S.Null, | |
| 168 | + "laudable": S.Null, | |
| 169 | + "madwoman": S.Null, | |
| 170 | + "maimedly": S.Null, | |
| 171 | + "Micropterygidae": S.Null, | |
| 172 | + "microrhabdus": S.Null, | |
| 173 | + "nondense": S.Null, | |
| 174 | + "phlebemphraxis": S.Null, | |
| 175 | + "redsear": S.Null, | |
| 176 | + "schismatical": S.Null, | |
| 177 | + "tartryl": S.Null, | |
| 178 | + "unabhorred": S.Null, | |
| 179 | + "undeliberateness": S.Null, | |
| 180 | + "unmixable": S.Null, | |
| 181 | + "untruckling": S.Null, | |
| 182 | + "vineal": S.Null, | |
| 183 | +}) {} | |
| 184 | + | |
| 185 | +export class Scatty extends S.Class<Scatty>("Scatty")({ | |
| 186 | + "aeriferous": S.Null, | |
| 187 | + "antical": S.Null, | |
| 188 | + "antighostism": S.Null, | |
| 189 | + "arcanum": S.Null, | |
| 190 | + "autotrophy": S.Null, | |
| 191 | + "baronial": S.Null, | |
| 192 | + "caffeine": S.Null, | |
| 193 | + "gorgoniacean": S.Null, | |
| 194 | + "heroical": S.Null, | |
| 195 | + "hydropical": S.Null, | |
| 196 | + "mechanology": S.Null, | |
| 197 | + "musicopoetic": S.Null, | |
| 198 | + "officiality": S.Null, | |
| 199 | + "oftentimes": S.Null, | |
| 200 | + "ophthalmotonometer": S.Null, | |
| 201 | + "reflectively": S.Null, | |
| 202 | + "springer": S.Null, | |
| 203 | + "Tabasco": S.Null, | |
| 204 | + "teleianthous": S.Null, | |
| 205 | + "uncombated": S.Null, | |
| 206 | +}) {} | |
| 207 | + | |
| 208 | +export class SaxtenClass extends S.Class<SaxtenClass>("SaxtenClass")({ | |
| 209 | + "algarrobilla": S.optional(S.Null), | |
| 210 | + "bowgrace": S.optional(S.Null), | |
| 211 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 212 | + "Centaurid": S.optional(S.Null), | |
| 213 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 214 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 215 | + "flix": S.optional(S.Null), | |
| 216 | + "germanely": S.optional(S.Null), | |
| 217 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 218 | + "inhume": S.optional(S.Null), | |
| 219 | + "lepidote": S.optional(S.Null), | |
| 220 | + "megalochirous": S.optional(S.Null), | |
| 221 | + "ninepenny": S.optional(S.Null), | |
| 222 | + "nonbookish": S.optional(S.Null), | |
| 223 | + "nondeist": S.optional(S.Null), | |
| 224 | + "nymphaeaceous": S.optional(S.Null), | |
| 225 | + "parietofrontal": S.optional(S.Null), | |
| 226 | + "sancyite": S.optional(S.Null), | |
| 227 | + "subjectivist": S.optional(S.Null), | |
| 228 | + "tibiad": S.optional(S.Null), | |
| 229 | + "transonic": S.optional(S.Null), | |
| 230 | + "tripetalous": S.optional(S.Null), | |
| 231 | + "trunchman": S.optional(S.Null), | |
| 232 | + "urger": S.optional(S.Null), | |
| 233 | + "withdrawnness": S.optional(S.Null), | |
| 234 | +}) {} | |
| 235 | + | |
| 236 | +export class SantirClass extends S.Class<SantirClass>("SantirClass")({ | |
| 237 | + "admiredly": S.Null, | |
| 238 | + "demicaponier": S.Null, | |
| 239 | + "epitympanic": S.Null, | |
| 240 | + "investitor": S.Null, | |
| 241 | + "lupiform": S.Null, | |
| 242 | + "monoflagellate": S.Null, | |
| 243 | + "paleoethnic": S.Null, | |
| 244 | + "prediscountable": S.Null, | |
| 245 | + "rhetoricals": S.Null, | |
| 246 | + "roomth": S.Null, | |
| 247 | + "saccharose": S.Null, | |
| 248 | + "septonasal": S.Null, | |
| 249 | + "serpenticide": S.Null, | |
| 250 | + "setarious": S.Null, | |
| 251 | + "spaework": S.Null, | |
| 252 | + "stylite": S.Null, | |
| 253 | + "Suessiones": S.Null, | |
| 254 | + "timelily": S.Null, | |
| 255 | + "unprofaned": S.Null, | |
| 256 | + "vorticular": S.Null, | |
| 257 | +}) {} | |
| 258 | + | |
| 259 | +export class RewriteClass extends S.Class<RewriteClass>("RewriteClass")({ | |
| 260 | + "accountancy": S.Null, | |
| 261 | + "cacotrophic": S.Null, | |
| 262 | + "contest": S.Null, | |
| 263 | + "couthily": S.Null, | |
| 264 | + "falculate": S.Null, | |
| 265 | + "foreseize": S.Null, | |
| 266 | + "Hyades": S.Null, | |
| 267 | + "lemnad": S.Null, | |
| 268 | + "monotheistically": S.Null, | |
| 269 | + "nonflying": S.Null, | |
| 270 | + "Ptenoglossa": S.Null, | |
| 271 | + "repatch": S.Null, | |
| 272 | + "rodman": S.Null, | |
| 273 | + "strung": S.Null, | |
| 274 | + "titmal": S.Null, | |
| 275 | + "twalpennyworth": S.Null, | |
| 276 | + "unblamable": S.Null, | |
| 277 | + "vertical": S.Null, | |
| 278 | + "Whiggification": S.Null, | |
| 279 | + "yardman": S.Null, | |
| 280 | +}) {} | |
| 281 | + | |
| 282 | +export class Ressaut extends S.Class<Ressaut>("Ressaut")({ | |
| 283 | + "apperceptive": S.String, | |
| 284 | + "cuttoo": S.String, | |
| 285 | + "douser": S.String, | |
| 286 | + "drinkproof": S.String, | |
| 287 | + "forementioned": S.String, | |
| 288 | + "Freesia": S.String, | |
| 289 | + "Genevieve": S.String, | |
| 290 | + "hyperdiabolical": S.String, | |
| 291 | + "hypocone": S.String, | |
| 292 | + "irreverentially": S.String, | |
| 293 | + "jumart": S.String, | |
| 294 | + "Mimosaceae": S.String, | |
| 295 | + "mollicrush": S.String, | |
| 296 | + "nedder": S.String, | |
| 297 | + "retinasphalt": S.String, | |
| 298 | + "sough": S.String, | |
| 299 | + "steading": S.String, | |
| 300 | + "Theopaschitism": S.String, | |
| 301 | + "undurableness": S.String, | |
| 302 | + "unmingleable": S.String, | |
| 303 | +}) {} | |
| 304 | + | |
| 305 | +export class Reimagine extends S.Class<Reimagine>("Reimagine")({ | |
| 306 | + "adducible": S.optional(S.Null), | |
| 307 | + "anabolin": S.optional(S.Null), | |
| 308 | + "brainy": S.optional(S.Null), | |
| 309 | + "catharticalness": S.optional(S.NullOr(S.Number)), | |
| 310 | + "Chirotherium": S.optional(S.NullOr(S.Int)), | |
| 311 | + "chrysamine": S.optional(S.Null), | |
| 312 | + "disdiapason": S.optional(S.NullOr(S.String)), | |
| 313 | + "fluxweed": S.optional(S.Null), | |
| 314 | + "glaucine": S.optional(S.Null), | |
| 315 | + "grobianism": S.optional(S.Null), | |
| 316 | + "Hermo": S.optional(S.Null), | |
| 317 | + "hieroglyphist": S.optional(S.Null), | |
| 318 | + "homocerc": S.optional(S.NullOr(S.Boolean)), | |
| 319 | + "icteroid": S.optional(S.Null), | |
| 320 | + "immortal": S.optional(S.Null), | |
| 321 | + "impetulant": S.optional(S.Null), | |
| 322 | + "irrigate": S.optional(S.Null), | |
| 323 | + "myxedema": S.optional(S.Null), | |
| 324 | + "nonbookish": S.optional(S.Null), | |
| 325 | + "onyx": S.optional(S.Null), | |
| 326 | + "repasser": S.optional(S.Null), | |
| 327 | + "septomarginal": S.optional(S.Null), | |
| 328 | + "subdie": S.optional(S.Null), | |
| 329 | + "tibiometatarsal": S.optional(S.Null), | |
| 330 | + "waltzlike": S.optional(S.Null), | |
| 331 | +}) {} | |
| 332 | + | |
| 333 | +export class QuebrachineClass extends S.Class<QuebrachineClass>("QuebrachineClass")({ | |
| 334 | + "catharticalness": S.Number, | |
| 335 | + "Chirotherium": S.Int, | |
| 336 | + "disdiapason": S.String, | |
| 337 | + "homocerc": S.Boolean, | |
| 338 | + "nonbookish": S.Null, | |
| 339 | +}) {} | |
| 340 | + | |
| 341 | +export class PyodermiaClass extends S.Class<PyodermiaClass>("PyodermiaClass")({ | |
| 342 | + "aphoristically": S.Null, | |
| 343 | + "apophyllous": S.Null, | |
| 344 | + "cognize": S.Null, | |
| 345 | + "dermonosology": S.Null, | |
| 346 | + "Gyppo": S.Null, | |
| 347 | + "ither": S.Null, | |
| 348 | + "juglandaceous": S.Null, | |
| 349 | + "litho": S.Null, | |
| 350 | + "macropterous": S.Null, | |
| 351 | + "photographer": S.Null, | |
| 352 | + "romancing": S.Null, | |
| 353 | + "rumness": S.Null, | |
| 354 | + "somniloquist": S.Null, | |
| 355 | + "stressfully": S.Null, | |
| 356 | + "tactically": S.Null, | |
| 357 | + "tracheophony": S.Null, | |
| 358 | + "unappositely": S.Null, | |
| 359 | + "unclothedly": S.Null, | |
| 360 | + "unimplied": S.Null, | |
| 361 | + "unsyncopated": S.Null, | |
| 362 | +}) {} | |
| 363 | + | |
| 364 | +export class PulpitismClass extends S.Class<PulpitismClass>("PulpitismClass")({ | |
| 365 | + "abnet": S.Null, | |
| 366 | + "buckhorn": S.Null, | |
| 367 | + "calciform": S.Null, | |
| 368 | + "chelophore": S.Null, | |
| 369 | + "cogitation": S.Null, | |
| 370 | + "decreeable": S.Null, | |
| 371 | + "despicable": S.Null, | |
| 372 | + "isodiazo": S.Null, | |
| 373 | + "jadedly": S.Null, | |
| 374 | + "leptochlorite": S.Null, | |
| 375 | + "nursling": S.Null, | |
| 376 | + "palamedean": S.Null, | |
| 377 | + "photoheliograph": S.Null, | |
| 378 | + "pipewood": S.Null, | |
| 379 | + "roberd": S.Null, | |
| 380 | + "statable": S.Null, | |
| 381 | + "superassume": S.Null, | |
| 382 | + "syllabe": S.Null, | |
| 383 | + "toughhead": S.Null, | |
| 384 | + "underburn": S.Null, | |
| 385 | +}) {} | |
| 386 | + | |
| 387 | +export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | |
| 388 | + "protrusive": S.Array(S.Union(S.Array(S.NullOr(S.Int)), S.Number)), | |
| 389 | + "pulpitism": S.Array(S.Union(S.Array(S.Int), S.Number, PulpitismClass)), | |
| 390 | + "pyodermia": S.Array(S.Union(S.Int, PyodermiaClass)), | |
| 391 | + "quebrachine": S.Array(S.Union(S.Boolean, QuebrachineClass, S.Null)), | |
| 392 | + "querier": S.Array(S.Union(S.Boolean, S.Record({ key: S.String, value: S.Int}))), | |
| 393 | + "rebarbative": S.Array(S.Union(S.Array(S.Int), S.Boolean, S.Number)), | |
| 394 | + "reimagine": S.Array(Reimagine), | |
| 395 | + "ressaut": Ressaut, | |
| 396 | + "retrocervical": S.Array(S.Union(S.Array(S.NullOr(S.Int)), S.Int)), | |
| 397 | + "revert": S.Array(S.Union(S.Boolean, S.String)), | |
| 398 | + "rewrite": S.Array(S.Union(S.Array(S.Null), S.Number, RewriteClass)), | |
| 399 | + "saccoderm": S.Array(S.Union(S.Array(S.Int), S.String, S.Null)), | |
| 400 | + "santir": S.Array(S.Union(S.Number, SantirClass)), | |
| 401 | + "saprophilous": S.Array(S.Union(S.Record({ key: S.String, value: S.Int}), S.String, S.Null)), | |
| 402 | + "saxten": S.Array(S.Union(S.String, SaxtenClass)), | |
| 403 | + "scatty": S.Array(S.NullOr(Scatty)), | |
| 404 | + "scoffer": S.Array(S.Union(S.Array(S.Null), S.Record({ key: S.String, value: S.Int}), S.Null)), | |
| 405 | + "scrampum": S.Array(S.Union(S.Array(S.Int), S.Boolean, S.Null)), | |
| 406 | + "semantic": S.Number, | |
| 407 | + "serpentinic": S.Array(S.Union(S.Array(S.Int), S.Number)), | |
| 408 | + "shadowable": S.Array(S.Union(S.Array(S.NullOr(S.Int)), S.Boolean)), | |
| 409 | + "sistering": S.Array(S.Union(S.Array(S.Null), S.Int, SisteringClass)), | |
| 410 | + "staghunting": S.Array(Staghunting), | |
| 411 | + "stagmometer": S.Array(S.Union(S.Array(S.NullOr(S.Int)), S.String)), | |
| 412 | + "stimulability": S.Array(S.Union(S.Boolean, S.Int, S.Record({ key: S.String, value: S.Int}))), | |
| 413 | + "strangleable": S.Array(S.Union(S.Array(S.Null), S.Number)), | |
| 414 | + "strenuosity": S.Array(S.Union(S.Array(S.Null), StrenuosityClass)), | |
| 415 | + "tabaxir": S.Array(S.Union(S.Boolean, S.Number)), | |
| 416 | + "talpiform": S.Array(S.Union(S.Number, QuebrachineClass, S.Null)), | |
| 417 | + "thwack": S.Array(S.Union(S.Boolean, S.Number, QuebrachineClass)), | |
| 418 | + "to": S.Array(S.NullOr(S.Number)), | |
| 419 | + "tortricine": S.Array(S.Union(S.Array(S.NullOr(S.Int)), QuebrachineClass)), | |
| 420 | + "truantcy": S.Array(S.Union(S.Boolean, TruantcyClass)), | |
| 421 | + "turgesce": S.Array(S.String), | |
| 422 | + "unbeginning": S.Array(S.Union(S.Array(S.Null), S.Record({ key: S.String, value: S.Int}), S.String)), | |
| 423 | + "underdunged": S.Array(S.Number), | |
| 424 | + "undesirability": S.Array(S.Union(S.Array(S.Int), S.Record({ key: S.String, value: S.Int}), S.String)), | |
| 425 | + "unerasing": S.Array(S.Union(S.Array(S.Null), S.Int, S.Record({ key: S.String, value: S.Int}))), | |
| 426 | + "unguentarium": S.Array(S.Union(S.Array(S.Null), S.Int, S.Null)), | |
| 427 | + "unimpeachably": S.Array(S.Union(S.Boolean, UnimpeachablyClass)), | |
| 428 | + "unmortgaged": S.Array(S.Union(S.Number, S.Record({ key: S.String, value: S.Int}), S.Null)), | |
| 429 | + "unobstructed": S.Array(S.Union(S.Int, QuebrachineClass, S.Null)), | |
| 430 | + "unreceptivity": S.Array(S.Union(S.Array(S.Null), S.Int, S.String)), | |
| 431 | + "unsatisfactoriness": S.Array(S.Union(S.Array(S.Int), S.Boolean, S.Int)), | |
| 432 | + "unsecurity": S.Array(S.Int), | |
| 433 | + "unstressed": S.Array(S.Union(S.Boolean, S.String, UnstressedClass)), | |
| 434 | + "untasked": S.Array(S.Union(S.Array(S.Null), S.Number, S.Record({ key: S.String, value: S.Int}))), | |
| 435 | + "unvarying": S.Array(S.Union(S.Boolean, S.Number, S.Record({ key: S.String, value: S.Int}))), | |
| 436 | + "vehemently": S.Array(S.Union(S.Array(S.Null), S.Boolean, S.Null)), | |
| 437 | + "warriorship": S.Record({ key: S.String, value: S.Boolean}), | |
| 438 | + "whitepot": S.Array(S.Union(S.Number, QuebrachineClass)), | |
| 439 | + "wrothy": S.Array(S.Union(S.Array(S.Null), WrothyClass)), | |
| 440 | +}) {} |
Atypescript-zodjust-schema-true--8c4ca457bcba / TopLevel.ts+440 −0
| @@ -0,0 +1,440 @@ | ||
| 1 | +import * as z from "zod"; | |
| 2 | + | |
| 3 | + | |
| 4 | +export const PulpitismClassSchema = z.object({ | |
| 5 | + "abnet": z.null(), | |
| 6 | + "buckhorn": z.null(), | |
| 7 | + "calciform": z.null(), | |
| 8 | + "chelophore": z.null(), | |
| 9 | + "cogitation": z.null(), | |
| 10 | + "decreeable": z.null(), | |
| 11 | + "despicable": z.null(), | |
| 12 | + "isodiazo": z.null(), | |
| 13 | + "jadedly": z.null(), | |
| 14 | + "leptochlorite": z.null(), | |
| 15 | + "nursling": z.null(), | |
| 16 | + "palamedean": z.null(), | |
| 17 | + "photoheliograph": z.null(), | |
| 18 | + "pipewood": z.null(), | |
| 19 | + "roberd": z.null(), | |
| 20 | + "statable": z.null(), | |
| 21 | + "superassume": z.null(), | |
| 22 | + "syllabe": z.null(), | |
| 23 | + "toughhead": z.null(), | |
| 24 | + "underburn": z.null(), | |
| 25 | +}); | |
| 26 | + | |
| 27 | +export const PyodermiaClassSchema = z.object({ | |
| 28 | + "aphoristically": z.null(), | |
| 29 | + "apophyllous": z.null(), | |
| 30 | + "cognize": z.null(), | |
| 31 | + "dermonosology": z.null(), | |
| 32 | + "Gyppo": z.null(), | |
| 33 | + "ither": z.null(), | |
| 34 | + "juglandaceous": z.null(), | |
| 35 | + "litho": z.null(), | |
| 36 | + "macropterous": z.null(), | |
| 37 | + "photographer": z.null(), | |
| 38 | + "romancing": z.null(), | |
| 39 | + "rumness": z.null(), | |
| 40 | + "somniloquist": z.null(), | |
| 41 | + "stressfully": z.null(), | |
| 42 | + "tactically": z.null(), | |
| 43 | + "tracheophony": z.null(), | |
| 44 | + "unappositely": z.null(), | |
| 45 | + "unclothedly": z.null(), | |
| 46 | + "unimplied": z.null(), | |
| 47 | + "unsyncopated": z.null(), | |
| 48 | +}); | |
| 49 | + | |
| 50 | +export const QuebrachineClassSchema = z.object({ | |
| 51 | + "catharticalness": z.number(), | |
| 52 | + "Chirotherium": z.number().int(), | |
| 53 | + "disdiapason": z.string(), | |
| 54 | + "homocerc": z.boolean(), | |
| 55 | + "nonbookish": z.null(), | |
| 56 | +}); | |
| 57 | + | |
| 58 | +export const ReimagineSchema = z.object({ | |
| 59 | + "adducible": z.null().optional(), | |
| 60 | + "anabolin": z.null().optional(), | |
| 61 | + "brainy": z.null().optional(), | |
| 62 | + "catharticalness": z.number().optional(), | |
| 63 | + "Chirotherium": z.number().int().optional(), | |
| 64 | + "chrysamine": z.null().optional(), | |
| 65 | + "disdiapason": z.string().optional(), | |
| 66 | + "fluxweed": z.null().optional(), | |
| 67 | + "glaucine": z.null().optional(), | |
| 68 | + "grobianism": z.null().optional(), | |
| 69 | + "Hermo": z.null().optional(), | |
| 70 | + "hieroglyphist": z.null().optional(), | |
| 71 | + "homocerc": z.boolean().optional(), | |
| 72 | + "icteroid": z.null().optional(), | |
| 73 | + "immortal": z.null().optional(), | |
| 74 | + "impetulant": z.null().optional(), | |
| 75 | + "irrigate": z.null().optional(), | |
| 76 | + "myxedema": z.null().optional(), | |
| 77 | + "nonbookish": z.null().optional(), | |
| 78 | + "onyx": z.null().optional(), | |
| 79 | + "repasser": z.null().optional(), | |
| 80 | + "septomarginal": z.null().optional(), | |
| 81 | + "subdie": z.null().optional(), | |
| 82 | + "tibiometatarsal": z.null().optional(), | |
| 83 | + "waltzlike": z.null().optional(), | |
| 84 | +}); | |
| 85 | + | |
| 86 | +export const RessautSchema = z.object({ | |
| 87 | + "apperceptive": z.string(), | |
| 88 | + "cuttoo": z.string(), | |
| 89 | + "douser": z.string(), | |
| 90 | + "drinkproof": z.string(), | |
| 91 | + "forementioned": z.string(), | |
| 92 | + "Freesia": z.string(), | |
| 93 | + "Genevieve": z.string(), | |
| 94 | + "hyperdiabolical": z.string(), | |
| 95 | + "hypocone": z.string(), | |
| 96 | + "irreverentially": z.string(), | |
| 97 | + "jumart": z.string(), | |
| 98 | + "Mimosaceae": z.string(), | |
| 99 | + "mollicrush": z.string(), | |
| 100 | + "nedder": z.string(), | |
| 101 | + "retinasphalt": z.string(), | |
| 102 | + "sough": z.string(), | |
| 103 | + "steading": z.string(), | |
| 104 | + "Theopaschitism": z.string(), | |
| 105 | + "undurableness": z.string(), | |
| 106 | + "unmingleable": z.string(), | |
| 107 | +}); | |
| 108 | + | |
| 109 | +export const RewriteClassSchema = z.object({ | |
| 110 | + "accountancy": z.null(), | |
| 111 | + "cacotrophic": z.null(), | |
| 112 | + "contest": z.null(), | |
| 113 | + "couthily": z.null(), | |
| 114 | + "falculate": z.null(), | |
| 115 | + "foreseize": z.null(), | |
| 116 | + "Hyades": z.null(), | |
| 117 | + "lemnad": z.null(), | |
| 118 | + "monotheistically": z.null(), | |
| 119 | + "nonflying": z.null(), | |
| 120 | + "Ptenoglossa": z.null(), | |
| 121 | + "repatch": z.null(), | |
| 122 | + "rodman": z.null(), | |
| 123 | + "strung": z.null(), | |
| 124 | + "titmal": z.null(), | |
| 125 | + "twalpennyworth": z.null(), | |
| 126 | + "unblamable": z.null(), | |
| 127 | + "vertical": z.null(), | |
| 128 | + "Whiggification": z.null(), | |
| 129 | + "yardman": z.null(), | |
| 130 | +}); | |
| 131 | + | |
| 132 | +export const SantirClassSchema = z.object({ | |
| 133 | + "admiredly": z.null(), | |
| 134 | + "demicaponier": z.null(), | |
| 135 | + "epitympanic": z.null(), | |
| 136 | + "investitor": z.null(), | |
| 137 | + "lupiform": z.null(), | |
| 138 | + "monoflagellate": z.null(), | |
| 139 | + "paleoethnic": z.null(), | |
| 140 | + "prediscountable": z.null(), | |
| 141 | + "rhetoricals": z.null(), | |
| 142 | + "roomth": z.null(), | |
| 143 | + "saccharose": z.null(), | |
| 144 | + "septonasal": z.null(), | |
| 145 | + "serpenticide": z.null(), | |
| 146 | + "setarious": z.null(), | |
| 147 | + "spaework": z.null(), | |
| 148 | + "stylite": z.null(), | |
| 149 | + "Suessiones": z.null(), | |
| 150 | + "timelily": z.null(), | |
| 151 | + "unprofaned": z.null(), | |
| 152 | + "vorticular": z.null(), | |
| 153 | +}); | |
| 154 | + | |
| 155 | +export const SaxtenClassSchema = z.object({ | |
| 156 | + "algarrobilla": z.null().optional(), | |
| 157 | + "bowgrace": z.null().optional(), | |
| 158 | + "catharticalness": z.number().optional(), | |
| 159 | + "Centaurid": z.null().optional(), | |
| 160 | + "Chirotherium": z.number().int().optional(), | |
| 161 | + "disdiapason": z.string().optional(), | |
| 162 | + "flix": z.null().optional(), | |
| 163 | + "germanely": z.null().optional(), | |
| 164 | + "homocerc": z.boolean().optional(), | |
| 165 | + "inhume": z.null().optional(), | |
| 166 | + "lepidote": z.null().optional(), | |
| 167 | + "megalochirous": z.null().optional(), | |
| 168 | + "ninepenny": z.null().optional(), | |
| 169 | + "nonbookish": z.null().optional(), | |
| 170 | + "nondeist": z.null().optional(), | |
| 171 | + "nymphaeaceous": z.null().optional(), | |
| 172 | + "parietofrontal": z.null().optional(), | |
| 173 | + "sancyite": z.null().optional(), | |
| 174 | + "subjectivist": z.null().optional(), | |
| 175 | + "tibiad": z.null().optional(), | |
| 176 | + "transonic": z.null().optional(), | |
| 177 | + "tripetalous": z.null().optional(), | |
| 178 | + "trunchman": z.null().optional(), | |
| 179 | + "urger": z.null().optional(), | |
| 180 | + "withdrawnness": z.null().optional(), | |
| 181 | +}); | |
| 182 | + | |
| 183 | +export const ScattySchema = z.object({ | |
| 184 | + "aeriferous": z.null(), | |
| 185 | + "antical": z.null(), | |
| 186 | + "antighostism": z.null(), | |
| 187 | + "arcanum": z.null(), | |
| 188 | + "autotrophy": z.null(), | |
| 189 | + "baronial": z.null(), | |
| 190 | + "caffeine": z.null(), | |
| 191 | + "gorgoniacean": z.null(), | |
| 192 | + "heroical": z.null(), | |
| 193 | + "hydropical": z.null(), | |
| 194 | + "mechanology": z.null(), | |
| 195 | + "musicopoetic": z.null(), | |
| 196 | + "officiality": z.null(), | |
| 197 | + "oftentimes": z.null(), | |
| 198 | + "ophthalmotonometer": z.null(), | |
| 199 | + "reflectively": z.null(), | |
| 200 | + "springer": z.null(), | |
| 201 | + "Tabasco": z.null(), | |
| 202 | + "teleianthous": z.null(), | |
| 203 | + "uncombated": z.null(), | |
| 204 | +}); | |
| 205 | + | |
| 206 | +export const SisteringClassSchema = z.object({ | |
| 207 | + "amphicarpic": z.null(), | |
| 208 | + "Chianti": z.null(), | |
| 209 | + "frigorific": z.null(), | |
| 210 | + "Haplomi": z.null(), | |
| 211 | + "hyperkinesis": z.null(), | |
| 212 | + "laudable": z.null(), | |
| 213 | + "madwoman": z.null(), | |
| 214 | + "maimedly": z.null(), | |
| 215 | + "Micropterygidae": z.null(), | |
| 216 | + "microrhabdus": z.null(), | |
| 217 | + "nondense": z.null(), | |
| 218 | + "phlebemphraxis": z.null(), | |
| 219 | + "redsear": z.null(), | |
| 220 | + "schismatical": z.null(), | |
| 221 | + "tartryl": z.null(), | |
| 222 | + "unabhorred": z.null(), | |
| 223 | + "undeliberateness": z.null(), | |
| 224 | + "unmixable": z.null(), | |
| 225 | + "untruckling": z.null(), | |
| 226 | + "vineal": z.null(), | |
| 227 | +}); | |
| 228 | + | |
| 229 | +export const StaghuntingSchema = z.object({ | |
| 230 | + "calorimetric": z.number().int().optional(), | |
| 231 | + "canid": z.number().int().optional(), | |
| 232 | + "catharticalness": z.number().optional(), | |
| 233 | + "Chirotherium": z.number().int().optional(), | |
| 234 | + "disdiapason": z.string().optional(), | |
| 235 | + "ditriglyphic": z.number().int().optional(), | |
| 236 | + "floriferousness": z.number().int().optional(), | |
| 237 | + "gamelike": z.number().int().optional(), | |
| 238 | + "grig": z.number().int().optional(), | |
| 239 | + "homocerc": z.boolean().optional(), | |
| 240 | + "interloan": z.number().int().optional(), | |
| 241 | + "lithotomy": z.number().int().optional(), | |
| 242 | + "loric": z.number().int().optional(), | |
| 243 | + "membranocoriaceous": z.number().int().optional(), | |
| 244 | + "membranogenic": z.number().int().optional(), | |
| 245 | + "nonbookish": z.null().optional(), | |
| 246 | + "overtrump": z.number().int().optional(), | |
| 247 | + "scotino": z.number().int().optional(), | |
| 248 | + "seasonable": z.number().int().optional(), | |
| 249 | + "sephen": z.number().int().optional(), | |
| 250 | + "stigmarioid": z.number().int().optional(), | |
| 251 | + "tired": z.number().int().optional(), | |
| 252 | + "trifid": z.number().int().optional(), | |
| 253 | + "undefeatedly": z.number().int().optional(), | |
| 254 | + "ungirlish": z.number().int().optional(), | |
| 255 | +}); | |
| 256 | + | |
| 257 | +export const StrenuosityClassSchema = z.object({ | |
| 258 | + "bliss": z.number().int().optional(), | |
| 259 | + "buccate": z.number().int().optional(), | |
| 260 | + "bulletproof": z.number().int().optional(), | |
| 261 | + "catharticalness": z.number().optional(), | |
| 262 | + "Chirotherium": z.number().int().optional(), | |
| 263 | + "crumblingness": z.number().int().optional(), | |
| 264 | + "disdiapason": z.string().optional(), | |
| 265 | + "engagedly": z.number().int().optional(), | |
| 266 | + "fightable": z.number().int().optional(), | |
| 267 | + "hoariness": z.number().int().optional(), | |
| 268 | + "homocerc": z.boolean().optional(), | |
| 269 | + "hypopodium": z.number().int().optional(), | |
| 270 | + "luxurist": z.number().int().optional(), | |
| 271 | + "mechanician": z.number().int().optional(), | |
| 272 | + "nonbookish": z.null().optional(), | |
| 273 | + "Onopordon": z.number().int().optional(), | |
| 274 | + "podgily": z.number().int().optional(), | |
| 275 | + "reformableness": z.number().int().optional(), | |
| 276 | + "scatterbrains": z.number().int().optional(), | |
| 277 | + "seminuria": z.number().int().optional(), | |
| 278 | + "Sodomite": z.number().int().optional(), | |
| 279 | + "tramp": z.number().int().optional(), | |
| 280 | + "undueness": z.number().int().optional(), | |
| 281 | + "worthily": z.number().int().optional(), | |
| 282 | + "Yankeeist": z.number().int().optional(), | |
| 283 | +}); | |
| 284 | + | |
| 285 | +export const TruantcyClassSchema = z.object({ | |
| 286 | + "alfiona": z.null().optional(), | |
| 287 | + "ascaridiasis": z.null().optional(), | |
| 288 | + "bungey": z.null().optional(), | |
| 289 | + "catharticalness": z.number().optional(), | |
| 290 | + "ceroxyle": z.null().optional(), | |
| 291 | + "Chirotherium": z.number().int().optional(), | |
| 292 | + "chorology": z.null().optional(), | |
| 293 | + "disdiapason": z.string().optional(), | |
| 294 | + "enmarble": z.null().optional(), | |
| 295 | + "Epeira": z.null().optional(), | |
| 296 | + "Eurylaimi": z.null().optional(), | |
| 297 | + "germination": z.null().optional(), | |
| 298 | + "hallelujah": z.null().optional(), | |
| 299 | + "homocerc": z.boolean().optional(), | |
| 300 | + "lev": z.null().optional(), | |
| 301 | + "mouthing": z.null().optional(), | |
| 302 | + "nonbookish": z.null().optional(), | |
| 303 | + "philliloo": z.null().optional(), | |
| 304 | + "planetal": z.null().optional(), | |
| 305 | + "poney": z.null().optional(), | |
| 306 | + "punctualist": z.null().optional(), | |
| 307 | + "returnlessly": z.null().optional(), | |
| 308 | + "skelder": z.null().optional(), | |
| 309 | + "windwaywardly": z.null().optional(), | |
| 310 | + "Yuman": z.null().optional(), | |
| 311 | +}); | |
| 312 | + | |
| 313 | +export const UnimpeachablyClassSchema = z.object({ | |
| 314 | + "acerin": z.number().int().optional(), | |
| 315 | + "Bobadil": z.number().int().optional(), | |
| 316 | + "catharticalness": z.number().optional(), | |
| 317 | + "Chirotherium": z.number().int().optional(), | |
| 318 | + "chlorophylligenous": z.number().int().optional(), | |
| 319 | + "conversational": z.number().int().optional(), | |
| 320 | + "demiowl": z.number().int().optional(), | |
| 321 | + "disdiapason": z.string().optional(), | |
| 322 | + "ectorhinal": z.number().int().optional(), | |
| 323 | + "gamblesomeness": z.number().int().optional(), | |
| 324 | + "homocerc": z.boolean().optional(), | |
| 325 | + "irrorate": z.number().int().optional(), | |
| 326 | + "kindergartening": z.number().int().optional(), | |
| 327 | + "lateritic": z.number().int().optional(), | |
| 328 | + "mespil": z.number().int().optional(), | |
| 329 | + "misconfiguration": z.number().int().optional(), | |
| 330 | + "nonbookish": z.null().optional(), | |
| 331 | + "planometry": z.number().int().optional(), | |
| 332 | + "Quiina": z.number().int().optional(), | |
| 333 | + "Robert": z.number().int().optional(), | |
| 334 | + "rot": z.number().int().optional(), | |
| 335 | + "subcinctorium": z.number().int().optional(), | |
| 336 | + "tussocker": z.number().int().optional(), | |
| 337 | + "ultraproud": z.number().int().optional(), | |
| 338 | + "unsuggestedness": z.number().int().optional(), | |
| 339 | +}); | |
| 340 | + | |
| 341 | +export const UnstressedClassSchema = z.object({ | |
| 342 | + "Alain": z.null(), | |
| 343 | + "Amphirhina": z.null(), | |
| 344 | + "antimachinery": z.null(), | |
| 345 | + "coldish": z.null(), | |
| 346 | + "crantara": z.null(), | |
| 347 | + "distinguishing": z.null(), | |
| 348 | + "elytroposis": z.null(), | |
| 349 | + "gentianwort": z.null(), | |
| 350 | + "heliosis": z.null(), | |
| 351 | + "instrumental": z.null(), | |
| 352 | + "introinflection": z.null(), | |
| 353 | + "kala": z.null(), | |
| 354 | + "Lincolnian": z.null(), | |
| 355 | + "metad": z.null(), | |
| 356 | + "Sarcophilus": z.null(), | |
| 357 | + "swingingly": z.null(), | |
| 358 | + "unconformity": z.null(), | |
| 359 | + "undecreed": z.null(), | |
| 360 | + "venerable": z.null(), | |
| 361 | + "vowellessness": z.null(), | |
| 362 | +}); | |
| 363 | + | |
| 364 | +export const WrothyClassSchema = z.object({ | |
| 365 | + "Aeschynanthus": z.null(), | |
| 366 | + "aquiferous": z.null(), | |
| 367 | + "cheapener": z.null(), | |
| 368 | + "enumeration": z.null(), | |
| 369 | + "Ephesine": z.null(), | |
| 370 | + "escadrille": z.null(), | |
| 371 | + "estrous": z.null(), | |
| 372 | + "interestedly": z.null(), | |
| 373 | + "katakinetomer": z.null(), | |
| 374 | + "mortification": z.null(), | |
| 375 | + "morula": z.null(), | |
| 376 | + "orthosymmetrical": z.null(), | |
| 377 | + "overbark": z.null(), | |
| 378 | + "politist": z.null(), | |
| 379 | + "qualified": z.null(), | |
| 380 | + "sphenomalar": z.null(), | |
| 381 | + "throatful": z.null(), | |
| 382 | + "transhumance": z.null(), | |
| 383 | + "triandrian": z.null(), | |
| 384 | + "unbooked": z.null(), | |
| 385 | +}); | |
| 386 | + | |
| 387 | +export const TopLevelSchema = z.object({ | |
| 388 | + "protrusive": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), z.number()])), | |
| 389 | + "pulpitism": z.array(z.union([z.array(z.number().int()), PulpitismClassSchema, z.number()])), | |
| 390 | + "pyodermia": z.array(z.union([PyodermiaClassSchema, z.number().int()])), | |
| 391 | + "quebrachine": z.array(z.union([z.null(), z.boolean(), QuebrachineClassSchema])), | |
| 392 | + "querier": z.array(z.union([z.boolean(), z.record(z.string(), z.number().int())])), | |
| 393 | + "rebarbative": z.array(z.union([z.array(z.number().int()), z.boolean(), z.number()])), | |
| 394 | + "reimagine": z.array(ReimagineSchema), | |
| 395 | + "ressaut": RessautSchema, | |
| 396 | + "retrocervical": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), z.number().int()])), | |
| 397 | + "revert": z.array(z.union([z.boolean(), z.string()])), | |
| 398 | + "rewrite": z.array(z.union([z.array(z.null()), RewriteClassSchema, z.number()])), | |
| 399 | + "saccoderm": z.array(z.union([z.null(), z.array(z.number().int()), z.string()])), | |
| 400 | + "santir": z.array(z.union([SantirClassSchema, z.number()])), | |
| 401 | + "saprophilous": z.array(z.union([z.null(), z.record(z.string(), z.number().int()), z.string()])), | |
| 402 | + "saxten": z.array(z.union([SaxtenClassSchema, z.string()])), | |
| 403 | + "scatty": z.array(z.union([z.null(), ScattySchema])), | |
| 404 | + "scoffer": z.array(z.union([z.null(), z.array(z.null()), z.record(z.string(), z.number().int())])), | |
| 405 | + "scrampum": z.array(z.union([z.null(), z.array(z.number().int()), z.boolean()])), | |
| 406 | + "semantic": z.number(), | |
| 407 | + "serpentinic": z.array(z.union([z.array(z.number().int()), z.number()])), | |
| 408 | + "shadowable": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), z.boolean()])), | |
| 409 | + "sistering": z.array(z.union([z.array(z.null()), SisteringClassSchema, z.number().int()])), | |
| 410 | + "staghunting": z.array(StaghuntingSchema), | |
| 411 | + "stagmometer": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), z.string()])), | |
| 412 | + "stimulability": z.array(z.union([z.boolean(), z.number().int(), z.record(z.string(), z.number().int())])), | |
| 413 | + "strangleable": z.array(z.union([z.array(z.null()), z.number()])), | |
| 414 | + "strenuosity": z.array(z.union([z.array(z.null()), StrenuosityClassSchema])), | |
| 415 | + "tabaxir": z.array(z.union([z.boolean(), z.number()])), | |
| 416 | + "talpiform": z.array(z.union([z.null(), QuebrachineClassSchema, z.number()])), | |
| 417 | + "thwack": z.array(z.union([z.boolean(), QuebrachineClassSchema, z.number()])), | |
| 418 | + "to": z.array(z.union([z.null(), z.number()])), | |
| 419 | + "tortricine": z.array(z.union([z.array(z.union([z.null(), z.number().int()])), QuebrachineClassSchema])), | |
| 420 | + "truantcy": z.array(z.union([z.boolean(), TruantcyClassSchema])), | |
| 421 | + "turgesce": z.array(z.string()), | |
| 422 | + "unbeginning": z.array(z.union([z.array(z.null()), z.record(z.string(), z.number().int()), z.string()])), | |
| 423 | + "underdunged": z.array(z.number()), | |
| 424 | + "undesirability": z.array(z.union([z.array(z.number().int()), z.record(z.string(), z.number().int()), z.string()])), | |
| 425 | + "unerasing": z.array(z.union([z.array(z.null()), z.number().int(), z.record(z.string(), z.number().int())])), | |
| 426 | + "unguentarium": z.array(z.union([z.null(), z.array(z.null()), z.number().int()])), | |
| 427 | + "unimpeachably": z.array(z.union([z.boolean(), UnimpeachablyClassSchema])), | |
| 428 | + "unmortgaged": z.array(z.union([z.null(), z.number(), z.record(z.string(), z.number().int())])), | |
| 429 | + "unobstructed": z.array(z.union([z.null(), QuebrachineClassSchema, z.number().int()])), | |
| 430 | + "unreceptivity": z.array(z.union([z.array(z.null()), z.number().int(), z.string()])), | |
| 431 | + "unsatisfactoriness": z.array(z.union([z.array(z.number().int()), z.boolean(), z.number().int()])), | |
| 432 | + "unsecurity": z.array(z.number().int()), | |
| 433 | + "unstressed": z.array(z.union([z.boolean(), UnstressedClassSchema, z.string()])), | |
| 434 | + "untasked": z.array(z.union([z.array(z.null()), z.number(), z.record(z.string(), z.number().int())])), | |
| 435 | + "unvarying": z.array(z.union([z.boolean(), z.number(), z.record(z.string(), z.number().int())])), | |
| 436 | + "vehemently": z.array(z.union([z.null(), z.array(z.null()), z.boolean()])), | |
| 437 | + "warriorship": z.record(z.string(), z.boolean()), | |
| 438 | + "whitepot": z.array(z.union([QuebrachineClassSchema, z.number()])), | |
| 439 | + "wrothy": z.array(z.union([z.array(z.null()), WrothyClassSchema])), | |
| 440 | +}); |
Test case
38 generated files · +3,537 −52test/inputs/json/priority/keywords.json
Mcjsondefault / TopLevel.c+65 −0
| @@ -14990,6 +14990,61 @@ void cJSON_DeleteRight(struct Right * x) { | ||
| 14990 | 14990 | } |
| 14991 | 14991 | } |
| 14992 | 14992 | |
| 14993 | +struct S * cJSON_ParseS(const char * s) { | |
| 14994 | + struct S * x = NULL; | |
| 14995 | + if (NULL != s) { | |
| 14996 | + cJSON * j = cJSON_Parse(s); | |
| 14997 | + if (NULL != j) { | |
| 14998 | + x = cJSON_GetSValue(j); | |
| 14999 | + cJSON_Delete(j); | |
| 15000 | + } | |
| 15001 | + } | |
| 15002 | + return x; | |
| 15003 | +} | |
| 15004 | + | |
| 15005 | +struct S * cJSON_GetSValue(const cJSON * j) { | |
| 15006 | + struct S * x = NULL; | |
| 15007 | + if (NULL != j) { | |
| 15008 | + if (NULL != (x = cJSON_malloc(sizeof(struct S)))) { | |
| 15009 | + memset(x, 0, sizeof(struct S)); | |
| 15010 | + if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteS(x); return NULL; } | |
| 15011 | + if (cJSON_HasObjectItem(j, "s")) { | |
| 15012 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteS(x); return NULL; } | |
| 15013 | + x->s = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "s")); | |
| 15014 | + } | |
| 15015 | + } | |
| 15016 | + } | |
| 15017 | + return x; | |
| 15018 | +} | |
| 15019 | + | |
| 15020 | +cJSON * cJSON_CreateS(const struct S * x) { | |
| 15021 | + cJSON * j = NULL; | |
| 15022 | + if (NULL != x) { | |
| 15023 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 15024 | + cJSON_AddNumberToObject(j, "s", x->s); | |
| 15025 | + } | |
| 15026 | + } | |
| 15027 | + return j; | |
| 15028 | +} | |
| 15029 | + | |
| 15030 | +char * cJSON_PrintS(const struct S * x) { | |
| 15031 | + char * s = NULL; | |
| 15032 | + if (NULL != x) { | |
| 15033 | + cJSON * j = cJSON_CreateS(x); | |
| 15034 | + if (NULL != j) { | |
| 15035 | + s = cJSON_Print(j); | |
| 15036 | + cJSON_Delete(j); | |
| 15037 | + } | |
| 15038 | + } | |
| 15039 | + return s; | |
| 15040 | +} | |
| 15041 | + | |
| 15042 | +void cJSON_DeleteS(struct S * x) { | |
| 15043 | + if (NULL != x) { | |
| 15044 | + cJSON_free(x); | |
| 15045 | + } | |
| 15046 | +} | |
| 15047 | + | |
| 14993 | 15048 | struct Sbyte * cJSON_ParseSbyte(const char * s) { |
| 14994 | 15049 | struct Sbyte * x = NULL; |
| 14995 | 15050 | if (NULL != s) { |
| @@ -16621,6 +16676,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16621 | 16676 | x->right = cJSON_GetRightValue(cJSON_GetObjectItemCaseSensitive(j, "right")); |
| 16622 | 16677 | if (NULL == x->right) { cJSON_DeleteObj4(x); return NULL; } |
| 16623 | 16678 | } |
| 16679 | + if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16680 | + if (cJSON_HasObjectItem(j, "s")) { | |
| 16681 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16682 | + x->s = cJSON_GetSValue(cJSON_GetObjectItemCaseSensitive(j, "s")); | |
| 16683 | + if (NULL == x->s) { cJSON_DeleteObj4(x); return NULL; } | |
| 16684 | + } | |
| 16624 | 16685 | if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteObj4(x); return NULL; } |
| 16625 | 16686 | if (cJSON_HasObjectItem(j, "sbyte")) { |
| 16626 | 16687 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteObj4(x); return NULL; } |
| @@ -16820,6 +16881,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16820 | 16881 | cJSON_AddItemToObject(j, "retain", cJSON_CreateRetain(x->retain)); |
| 16821 | 16882 | cJSON_AddItemToObject(j, "rethrows", cJSON_CreateRethrows(x->rethrows)); |
| 16822 | 16883 | cJSON_AddItemToObject(j, "right", cJSON_CreateRight(x->right)); |
| 16884 | + cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s)); | |
| 16823 | 16885 | cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte)); |
| 16824 | 16886 | cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed)); |
| 16825 | 16887 | cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel)); |
| @@ -16981,6 +17043,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16981 | 17043 | if (NULL != x->right) { |
| 16982 | 17044 | cJSON_DeleteRight(x->right); |
| 16983 | 17045 | } |
| 17046 | + if (NULL != x->s) { | |
| 17047 | + cJSON_DeleteS(x->s); | |
| 17048 | + } | |
| 16984 | 17049 | if (NULL != x->sbyte) { |
| 16985 | 17050 | cJSON_DeleteSbyte(x->sbyte); |
| 16986 | 17051 | } |
Mcjsondefault / TopLevel.h+11 −0
| @@ -1181,6 +1181,10 @@ struct Right { | ||
| 1181 | 1181 | int64_t right; |
| 1182 | 1182 | }; |
| 1183 | 1183 | |
| 1184 | +struct S { | |
| 1185 | + int64_t s; | |
| 1186 | +}; | |
| 1187 | + | |
| 1184 | 1188 | struct Sbyte { |
| 1185 | 1189 | int64_t sbyte; |
| 1186 | 1190 | }; |
| @@ -1322,6 +1326,7 @@ struct Obj4 { | ||
| 1322 | 1326 | struct Retain * retain; |
| 1323 | 1327 | struct Rethrows * rethrows; |
| 1324 | 1328 | struct Right * right; |
| 1329 | + struct S * s; | |
| 1325 | 1330 | struct Sbyte * sbyte; |
| 1326 | 1331 | struct Sealed * sealed; |
| 1327 | 1332 | struct Sel * sel; |
| @@ -2884,6 +2889,12 @@ cJSON * cJSON_CreateRight(const struct Right * x); | ||
| 2884 | 2889 | char * cJSON_PrintRight(const struct Right * x); |
| 2885 | 2890 | void cJSON_DeleteRight(struct Right * x); |
| 2886 | 2891 | |
| 2892 | +struct S * cJSON_ParseS(const char * s); | |
| 2893 | +struct S * cJSON_GetSValue(const cJSON * j); | |
| 2894 | +cJSON * cJSON_CreateS(const struct S * x); | |
| 2895 | +char * cJSON_PrintS(const struct S * x); | |
| 2896 | +void cJSON_DeleteS(struct S * x); | |
| 2897 | + | |
| 2887 | 2898 | struct Sbyte * cJSON_ParseSbyte(const char * s); |
| 2888 | 2899 | struct Sbyte * cJSON_GetSbyteValue(const cJSON * j); |
| 2889 | 2900 | cJSON * cJSON_CreateSbyte(const struct Sbyte * x); |
Mcplusplusdefault / quicktype.hpp+35 −0
| @@ -4310,6 +4310,20 @@ namespace quicktype { | ||
| 4310 | 4310 | void set_right(const int64_t & value) { this->right = value; } |
| 4311 | 4311 | }; |
| 4312 | 4312 | |
| 4313 | + class S { | |
| 4314 | + public: | |
| 4315 | + S() = default; | |
| 4316 | + virtual ~S() = default; | |
| 4317 | + | |
| 4318 | + private: | |
| 4319 | + int64_t s; | |
| 4320 | + | |
| 4321 | + public: | |
| 4322 | + const int64_t & get_s() const { return s; } | |
| 4323 | + int64_t & get_mutable_s() { return s; } | |
| 4324 | + void set_s(const int64_t & value) { this->s = value; } | |
| 4325 | + }; | |
| 4326 | + | |
| 4313 | 4327 | class Sbyte { |
| 4314 | 4328 | public: |
| 4315 | 4329 | Sbyte() = default; |
| @@ -4719,6 +4733,7 @@ namespace quicktype { | ||
| 4719 | 4733 | Retain retain; |
| 4720 | 4734 | Rethrows rethrows; |
| 4721 | 4735 | Right right; |
| 4736 | + S s; | |
| 4722 | 4737 | Sbyte sbyte; |
| 4723 | 4738 | Sealed sealed; |
| 4724 | 4739 | Sel sel; |
| @@ -4903,6 +4918,10 @@ namespace quicktype { | ||
| 4903 | 4918 | Right & get_mutable_right() { return right; } |
| 4904 | 4919 | void set_right(const Right & value) { this->right = value; } |
| 4905 | 4920 | |
| 4921 | + const S & get_s() const { return s; } | |
| 4922 | + S & get_mutable_s() { return s; } | |
| 4923 | + void set_s(const S & value) { this->s = value; } | |
| 4924 | + | |
| 4906 | 4925 | const Sbyte & get_sbyte() const { return sbyte; } |
| 4907 | 4926 | Sbyte & get_mutable_sbyte() { return sbyte; } |
| 4908 | 4927 | void set_sbyte(const Sbyte & value) { this->sbyte = value; } |
| @@ -6151,6 +6170,9 @@ namespace quicktype { | ||
| 6151 | 6170 | void from_json(const json & j, Right & x); |
| 6152 | 6171 | void to_json(json & j, const Right & x); |
| 6153 | 6172 | |
| 6173 | + void from_json(const json & j, S & x); | |
| 6174 | + void to_json(json & j, const S & x); | |
| 6175 | + | |
| 6154 | 6176 | void from_json(const json & j, Sbyte & x); |
| 6155 | 6177 | void to_json(json & j, const Sbyte & x); |
| 6156 | 6178 | |
| @@ -9284,6 +9306,17 @@ namespace quicktype { | ||
| 9284 | 9306 | j["right"] = x.get_right(); |
| 9285 | 9307 | } |
| 9286 | 9308 | |
| 9309 | + inline void from_json(const json & j, S& x) { | |
| 9310 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9311 | + if (j.find("s") != j.end() && !j.at("s").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9312 | + x.set_s(j.at("s").get<int64_t>()); | |
| 9313 | + } | |
| 9314 | + | |
| 9315 | + inline void to_json(json & j, const S & x) { | |
| 9316 | + j = json::object(); | |
| 9317 | + j["s"] = x.get_s(); | |
| 9318 | + } | |
| 9319 | + | |
| 9287 | 9320 | inline void from_json(const json & j, Sbyte& x) { |
| 9288 | 9321 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9289 | 9322 | if (j.find("sbyte") != j.end() && !j.at("sbyte").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -9612,6 +9645,7 @@ namespace quicktype { | ||
| 9612 | 9645 | x.set_retain(j.at("retain").get<Retain>()); |
| 9613 | 9646 | x.set_rethrows(j.at("rethrows").get<Rethrows>()); |
| 9614 | 9647 | x.set_right(j.at("right").get<Right>()); |
| 9648 | + x.set_s(j.at("s").get<S>()); | |
| 9615 | 9649 | x.set_sbyte(j.at("sbyte").get<Sbyte>()); |
| 9616 | 9650 | x.set_sealed(j.at("sealed").get<Sealed>()); |
| 9617 | 9651 | x.set_sel(j.at("SEL").get<Sel>()); |
| @@ -9681,6 +9715,7 @@ namespace quicktype { | ||
| 9681 | 9715 | j["retain"] = x.get_retain(); |
| 9682 | 9716 | j["rethrows"] = x.get_rethrows(); |
| 9683 | 9717 | j["right"] = x.get_right(); |
| 9718 | + j["s"] = x.get_s(); | |
| 9684 | 9719 | j["sbyte"] = x.get_sbyte(); |
| 9685 | 9720 | j["sealed"] = x.get_sealed(); |
| 9686 | 9721 | j["SEL"] = x.get_sel(); |
Mcrystaldefault / TopLevel.cr+8 −0
| @@ -1755,6 +1755,8 @@ class Obj4 | ||
| 1755 | 1755 | |
| 1756 | 1756 | property right : Right |
| 1757 | 1757 | |
| 1758 | + property s : S | |
| 1759 | + | |
| 1758 | 1760 | property sbyte : Sbyte |
| 1759 | 1761 | |
| 1760 | 1762 | property sealed : Sealed |
| @@ -2020,6 +2022,12 @@ class Right | ||
| 2020 | 2022 | property right : Int64 |
| 2021 | 2023 | end |
| 2022 | 2024 | |
| 2025 | +class S | |
| 2026 | + include JSON::Serializable | |
| 2027 | + | |
| 2028 | + property s : Int64 | |
| 2029 | +end | |
| 2030 | + | |
| 2023 | 2031 | class Sbyte |
| 2024 | 2032 | include JSON::Serializable |
Mcsharp-recordsdefault / QuickType.cs+9 −0
| @@ -1885,6 +1885,9 @@ namespace QuickType | ||
| 1885 | 1885 | [JsonProperty("right", Required = Required.Always)] |
| 1886 | 1886 | public Right Right { get; set; } |
| 1887 | 1887 | |
| 1888 | + [JsonProperty("s", Required = Required.Always)] | |
| 1889 | + public S S { get; set; } | |
| 1890 | + | |
| 1888 | 1891 | [JsonProperty("sbyte", Required = Required.Always)] |
| 1889 | 1892 | public Sbyte Sbyte { get; set; } |
| 1890 | 1893 | |
| @@ -2141,6 +2144,12 @@ namespace QuickType | ||
| 2141 | 2144 | public long RightRight { get; set; } |
| 2142 | 2145 | } |
| 2143 | 2146 | |
| 2147 | + public partial record S | |
| 2148 | + { | |
| 2149 | + [JsonProperty("s", Required = Required.Always)] | |
| 2150 | + public long SS { get; set; } | |
| 2151 | + } | |
| 2152 | + | |
| 2144 | 2153 | public partial record Sbyte |
| 2145 | 2154 | { |
| 2146 | 2155 | [JsonProperty("sbyte", Required = Required.Always)] |
Mcsharp-SystemTextJsondefault / QuickType.cs+11 −0
| @@ -2303,6 +2303,10 @@ namespace QuickType | ||
| 2303 | 2303 | [JsonPropertyName("right")] |
| 2304 | 2304 | public Right Right { get; set; } |
| 2305 | 2305 | |
| 2306 | + [JsonRequired] | |
| 2307 | + [JsonPropertyName("s")] | |
| 2308 | + public S S { get; set; } | |
| 2309 | + | |
| 2306 | 2310 | [JsonRequired] |
| 2307 | 2311 | [JsonPropertyName("sbyte")] |
| 2308 | 2312 | public Sbyte Sbyte { get; set; } |
| @@ -2623,6 +2627,13 @@ namespace QuickType | ||
| 2623 | 2627 | public long RightRight { get; set; } |
| 2624 | 2628 | } |
| 2625 | 2629 | |
| 2630 | + public partial class S | |
| 2631 | + { | |
| 2632 | + [JsonRequired] | |
| 2633 | + [JsonPropertyName("s")] | |
| 2634 | + public long SS { get; set; } | |
| 2635 | + } | |
| 2636 | + | |
| 2626 | 2637 | public partial class Sbyte |
| 2627 | 2638 | { |
| 2628 | 2639 | [JsonRequired] |
Mcsharpdefault / QuickType.cs+9 −0
| @@ -1885,6 +1885,9 @@ namespace QuickType | ||
| 1885 | 1885 | [JsonProperty("right", Required = Required.Always)] |
| 1886 | 1886 | public Right Right { get; set; } |
| 1887 | 1887 | |
| 1888 | + [JsonProperty("s", Required = Required.Always)] | |
| 1889 | + public S S { get; set; } | |
| 1890 | + | |
| 1888 | 1891 | [JsonProperty("sbyte", Required = Required.Always)] |
| 1889 | 1892 | public Sbyte Sbyte { get; set; } |
| 1890 | 1893 | |
| @@ -2141,6 +2144,12 @@ namespace QuickType | ||
| 2141 | 2144 | public long RightRight { get; set; } |
| 2142 | 2145 | } |
| 2143 | 2146 | |
| 2147 | + public partial class S | |
| 2148 | + { | |
| 2149 | + [JsonProperty("s", Required = Required.Always)] | |
| 2150 | + public long SS { get; set; } | |
| 2151 | + } | |
| 2152 | + | |
| 2144 | 2153 | public partial class Sbyte |
| 2145 | 2154 | { |
| 2146 | 2155 | [JsonProperty("sbyte", Required = Required.Always)] |
Mdartdefault / TopLevel.dart+20 −0
| @@ -4024,6 +4024,7 @@ class Obj4 { | ||
| 4024 | 4024 | final Retain retain; |
| 4025 | 4025 | final Rethrows rethrows; |
| 4026 | 4026 | final Right right; |
| 4027 | + final S s; | |
| 4027 | 4028 | final Sbyte sbyte; |
| 4028 | 4029 | final Sealed sealed; |
| 4029 | 4030 | final Sel sel; |
| @@ -4091,6 +4092,7 @@ class Obj4 { | ||
| 4091 | 4092 | required this.retain, |
| 4092 | 4093 | required this.rethrows, |
| 4093 | 4094 | required this.right, |
| 4095 | + required this.s, | |
| 4094 | 4096 | required this.sbyte, |
| 4095 | 4097 | required this.sealed, |
| 4096 | 4098 | required this.sel, |
| @@ -4159,6 +4161,7 @@ class Obj4 { | ||
| 4159 | 4161 | retain: Retain.fromJson(json["retain"]), |
| 4160 | 4162 | rethrows: Rethrows.fromJson(json["rethrows"]), |
| 4161 | 4163 | right: Right.fromJson(json["right"]), |
| 4164 | + s: S.fromJson(json["s"]), | |
| 4162 | 4165 | sbyte: Sbyte.fromJson(json["sbyte"]), |
| 4163 | 4166 | sealed: Sealed.fromJson(json["sealed"]), |
| 4164 | 4167 | sel: Sel.fromJson(json["SEL"]), |
| @@ -4227,6 +4230,7 @@ class Obj4 { | ||
| 4227 | 4230 | "retain": retain.toJson(), |
| 4228 | 4231 | "rethrows": rethrows.toJson(), |
| 4229 | 4232 | "right": right.toJson(), |
| 4233 | + "s": s.toJson(), | |
| 4230 | 4234 | "sbyte": sbyte.toJson(), |
| 4231 | 4235 | "sealed": sealed.toJson(), |
| 4232 | 4236 | "SEL": sel.toJson(), |
| @@ -4744,6 +4748,22 @@ class Right { | ||
| 4744 | 4748 | }; |
| 4745 | 4749 | } |
| 4746 | 4750 | |
| 4751 | +class S { | |
| 4752 | + final int s; | |
| 4753 | + | |
| 4754 | + S({ | |
| 4755 | + required this.s, | |
| 4756 | + }); | |
| 4757 | + | |
| 4758 | + factory S.fromJson(Map<String, dynamic> json) => S( | |
| 4759 | + s: json["s"], | |
| 4760 | + ); | |
| 4761 | + | |
| 4762 | + Map<String, dynamic> toJson() => { | |
| 4763 | + "s": s, | |
| 4764 | + }; | |
| 4765 | +} | |
| 4766 | + | |
| 4747 | 4767 | class Sbyte { |
| 4748 | 4768 | final int sbyte; |
Melixirdefault / QuickType.ex+44 −2
| @@ -9092,6 +9092,45 @@ defmodule Right do | ||
| 9092 | 9092 | end |
| 9093 | 9093 | end |
| 9094 | 9094 | |
| 9095 | +defmodule S do | |
| 9096 | + @enforce_keys [:s] | |
| 9097 | + defstruct [:s] | |
| 9098 | + | |
| 9099 | + @type t :: %__MODULE__{ | |
| 9100 | + s: integer() | |
| 9101 | + } | |
| 9102 | + | |
| 9103 | + def decode_s(value) when is_integer(value), do: value | |
| 9104 | + def decode_s(_), do: {:error, "Unexpected type when decoding S.s"} | |
| 9105 | + | |
| 9106 | + def encode_s(value) when is_integer(value), do: value | |
| 9107 | + def encode_s(_), do: {:error, "Unexpected type when encoding S.s"} | |
| 9108 | + | |
| 9109 | + def from_map(m) do | |
| 9110 | + %S{ | |
| 9111 | + s: decode_s(m["s"]), | |
| 9112 | + } | |
| 9113 | + end | |
| 9114 | + | |
| 9115 | + def from_json(json) do | |
| 9116 | + json | |
| 9117 | + |> Jason.decode!() | |
| 9118 | + |> from_map() | |
| 9119 | + end | |
| 9120 | + | |
| 9121 | + def to_map(struct) do | |
| 9122 | + %{ | |
| 9123 | + "s" => struct.s, | |
| 9124 | + } | |
| 9125 | + end | |
| 9126 | + | |
| 9127 | + def to_json(struct) do | |
| 9128 | + struct | |
| 9129 | + |> to_map() | |
| 9130 | + |> Jason.encode!() | |
| 9131 | + end | |
| 9132 | +end | |
| 9133 | + | |
| 9095 | 9134 | defmodule Sbyte do |
| 9096 | 9135 | @enforce_keys [:sbyte] |
| 9097 | 9136 | defstruct [:sbyte] |
| @@ -10809,8 +10848,8 @@ defmodule Undefined do | ||
| 10809 | 10848 | end |
| 10810 | 10849 | |
| 10811 | 10850 | defmodule Obj4 do |
| 10812 | - @enforce_keys [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :sbyte, :sealed, :sel, :select, :self, :serialize, :set, :short, :signed, :sizeof, :stackalloc, :static, :static_assert, :static_cast, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :to_json, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined] | |
| 10813 | - defstruct [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :sbyte, :sealed, :sel, :select, :self, :serialize, :set, :short, :signed, :sizeof, :stackalloc, :static, :static_assert, :static_cast, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :to_json, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined] | |
| 10851 | + @enforce_keys [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :s, :sbyte, :sealed, :sel, :select, :self, :serialize, :set, :short, :signed, :sizeof, :stackalloc, :static, :static_assert, :static_cast, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :to_json, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined] | |
| 10852 | + defstruct [:dummy, :obj4_self, :obj4_true, :obj4_type, :public, :quicktype, :raise, :range, :readonly, :ref, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :s, :sbyte, :sealed, :sel, :select, :self, :serialize, :set, :short, :signed, :sizeof, :stackalloc, :static, :static_assert, :static_cast, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :to_json, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined] | |
| 10814 | 10853 | |
| 10815 | 10854 | @type t :: %__MODULE__{ |
| 10816 | 10855 | dummy: integer(), |
| @@ -10834,6 +10873,7 @@ defmodule Obj4 do | ||
| 10834 | 10873 | rethrows: Rethrows.t(), |
| 10835 | 10874 | return: Return.t(), |
| 10836 | 10875 | right: Right.t(), |
| 10876 | + s: S.t(), | |
| 10837 | 10877 | sbyte: Sbyte.t(), |
| 10838 | 10878 | sealed: Sealed.t(), |
| 10839 | 10879 | sel: Sel.t(), |
| @@ -10909,6 +10949,7 @@ defmodule Obj4 do | ||
| 10909 | 10949 | rethrows: Rethrows.from_map(m["rethrows"]), |
| 10910 | 10950 | return: Return.from_map(m["return"]), |
| 10911 | 10951 | right: Right.from_map(m["right"]), |
| 10952 | + s: S.from_map(m["s"]), | |
| 10912 | 10953 | sbyte: Sbyte.from_map(m["sbyte"]), |
| 10913 | 10954 | sealed: Sealed.from_map(m["sealed"]), |
| 10914 | 10955 | sel: Sel.from_map(m["SEL"]), |
| @@ -10985,6 +11026,7 @@ defmodule Obj4 do | ||
| 10985 | 11026 | "rethrows" => Rethrows.to_map(struct.rethrows), |
| 10986 | 11027 | "return" => Return.to_map(struct.return), |
| 10987 | 11028 | "right" => Right.to_map(struct.right), |
| 11029 | + "s" => S.to_map(struct.s), | |
| 10988 | 11030 | "sbyte" => Sbyte.to_map(struct.sbyte), |
| 10989 | 11031 | "sealed" => Sealed.to_map(struct.sealed), |
| 10990 | 11032 | "SEL" => Sel.to_map(struct.sel), |
Melmdefault / QuickType.elm+19 −0
| @@ -237,6 +237,7 @@ module QuickType exposing | ||
| 237 | 237 | , Rethrows |
| 238 | 238 | , Return |
| 239 | 239 | , Right |
| 240 | + , S | |
| 240 | 241 | , Sbyte |
| 241 | 242 | , Sealed |
| 242 | 243 | , Sel |
| @@ -1327,6 +1328,7 @@ type alias Obj4 = | ||
| 1327 | 1328 | , rethrows : Rethrows |
| 1328 | 1329 | , return : Return |
| 1329 | 1330 | , right : Right |
| 1331 | + , s : S | |
| 1330 | 1332 | , sbyte : Sbyte |
| 1331 | 1333 | , sealed : Sealed |
| 1332 | 1334 | , sel : Sel |
| @@ -1462,6 +1464,10 @@ type alias Right = | ||
| 1462 | 1464 | { right : Int |
| 1463 | 1465 | } |
| 1464 | 1466 | |
| 1467 | +type alias S = | |
| 1468 | + { s : Int | |
| 1469 | + } | |
| 1470 | + | |
| 1465 | 1471 | type alias Sbyte = |
| 1466 | 1472 | { sbyte : Int |
| 1467 | 1473 | } |
| @@ -4357,6 +4363,7 @@ obj4 = | ||
| 4357 | 4363 | |> Jpipe.required "rethrows" rethrows |
| 4358 | 4364 | |> Jpipe.required "return" return |
| 4359 | 4365 | |> Jpipe.required "right" right |
| 4366 | + |> Jpipe.required "s" s | |
| 4360 | 4367 | |> Jpipe.required "sbyte" sbyte |
| 4361 | 4368 | |> Jpipe.required "sealed" sealed |
| 4362 | 4369 | |> Jpipe.required "SEL" sel |
| @@ -4426,6 +4433,7 @@ encodeObj4 x = | ||
| 4426 | 4433 | , ("rethrows", encodeRethrows x.rethrows) |
| 4427 | 4434 | , ("return", encodeReturn x.return) |
| 4428 | 4435 | , ("right", encodeRight x.right) |
| 4436 | + , ("s", encodeS x.s) | |
| 4429 | 4437 | , ("sbyte", encodeSbyte x.sbyte) |
| 4430 | 4438 | , ("sealed", encodeSealed x.sealed) |
| 4431 | 4439 | , ("SEL", encodeSel x.sel) |
| @@ -4722,6 +4730,17 @@ encodeRight x = | ||
| 4722 | 4730 | [ ("right", Jenc.int x.right) |
| 4723 | 4731 | ] |
| 4724 | 4732 | |
| 4733 | +s : Jdec.Decoder S | |
| 4734 | +s = | |
| 4735 | + Jdec.succeed S | |
| 4736 | + |> Jpipe.required "s" Jdec.int | |
| 4737 | + | |
| 4738 | +encodeS : S -> Jenc.Value | |
| 4739 | +encodeS x = | |
| 4740 | + Jenc.object | |
| 4741 | + [ ("s", Jenc.int x.s) | |
| 4742 | + ] | |
| 4743 | + | |
| 4725 | 4744 | sbyte : Jdec.Decoder Sbyte |
| 4726 | 4745 | sbyte = |
| 4727 | 4746 | Jdec.succeed Sbyte |
Mflowdefault / TopLevel.js+9 −0
| @@ -1028,6 +1028,7 @@ export type Obj4 = { | ||
| 1028 | 1028 | rethrows: Rethrows; |
| 1029 | 1029 | return: Return; |
| 1030 | 1030 | right: Right; |
| 1031 | + s: S; | |
| 1031 | 1032 | sbyte: Sbyte; |
| 1032 | 1033 | sealed: Sealed; |
| 1033 | 1034 | select: Select; |
| @@ -1157,6 +1158,10 @@ export type Right = { | ||
| 1157 | 1158 | right: number; |
| 1158 | 1159 | }; |
| 1159 | 1160 | |
| 1161 | +export type S = { | |
| 1162 | + s: number; | |
| 1163 | +}; | |
| 1164 | + | |
| 1160 | 1165 | export type Sbyte = { |
| 1161 | 1166 | sbyte: number; |
| 1162 | 1167 | }; |
| @@ -2438,6 +2443,7 @@ const typeMap: any = { | ||
| 2438 | 2443 | { json: "rethrows", js: "rethrows", typ: r("Rethrows") }, |
| 2439 | 2444 | { json: "return", js: "return", typ: r("Return") }, |
| 2440 | 2445 | { json: "right", js: "right", typ: r("Right") }, |
| 2446 | + { json: "s", js: "s", typ: r("S") }, | |
| 2441 | 2447 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2442 | 2448 | { json: "sealed", js: "sealed", typ: r("Sealed") }, |
| 2443 | 2449 | { json: "select", js: "select", typ: r("Select") }, |
| @@ -2545,6 +2551,9 @@ const typeMap: any = { | ||
| 2545 | 2551 | "Right": o([ |
| 2546 | 2552 | { json: "right", js: "right", typ: i(0) }, |
| 2547 | 2553 | ], false), |
| 2554 | + "S": o([ | |
| 2555 | + { json: "s", js: "s", typ: i(0) }, | |
| 2556 | + ], false), | |
| 2548 | 2557 | "Sbyte": o([ |
| 2549 | 2558 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2550 | 2559 | ], false), |
Mgolangdefault / quicktype.go+5 −0
| @@ -1036,6 +1036,7 @@ type Obj4 struct { | ||
| 1036 | 1036 | Rethrows Rethrows `json:"rethrows"` |
| 1037 | 1037 | Return Return `json:"return"` |
| 1038 | 1038 | Right Right `json:"right"` |
| 1039 | + S S `json:"s"` | |
| 1039 | 1040 | Sbyte Sbyte `json:"sbyte"` |
| 1040 | 1041 | Sealed Sealed `json:"sealed"` |
| 1041 | 1042 | Sel Sel `json:"SEL"` |
| @@ -1162,6 +1163,10 @@ type Right struct { | ||
| 1162 | 1163 | Right int64 `json:"right"` |
| 1163 | 1164 | } |
| 1164 | 1165 | |
| 1166 | +type S struct { | |
| 1167 | + S int64 `json:"s"` | |
| 1168 | +} | |
| 1169 | + | |
| 1165 | 1170 | type Sbyte struct { |
| 1166 | 1171 | Sbyte int64 `json:"sbyte"` |
| 1167 | 1172 | } |
Mhaskelldefault / QuickType.hs+19 −1
| @@ -224,6 +224,7 @@ module QuickType | ||
| 224 | 224 | , Rethrows (..) |
| 225 | 225 | , Return (..) |
| 226 | 226 | , RightClass (..) |
| 227 | + , S (..) | |
| 227 | 228 | , Sbyte (..) |
| 228 | 229 | , Sealed (..) |
| 229 | 230 | , Sel (..) |
| @@ -1316,6 +1317,7 @@ data Obj4 = Obj4 | ||
| 1316 | 1317 | , rethrowsObj4 :: Rethrows |
| 1317 | 1318 | , returnObj4 :: Return |
| 1318 | 1319 | , rightObj4 :: RightClass |
| 1320 | + , sObj4 :: S | |
| 1319 | 1321 | , sbyteObj4 :: Sbyte |
| 1320 | 1322 | , sealedObj4 :: Sealed |
| 1321 | 1323 | , selObj4 :: Sel |
| @@ -1448,6 +1450,10 @@ data RightClass = RightClass | ||
| 1448 | 1450 | { rightRightClass :: Int |
| 1449 | 1451 | } deriving (Show) |
| 1450 | 1452 | |
| 1453 | +data S = S | |
| 1454 | + { sS :: Int | |
| 1455 | + } deriving (Show) | |
| 1456 | + | |
| 1451 | 1457 | data Sbyte = Sbyte |
| 1452 | 1458 | { sbyteSbyte :: Int |
| 1453 | 1459 | } deriving (Show) |
| @@ -4114,7 +4120,7 @@ instance FromJSON Protocol where | ||
| 4114 | 4120 | <$> v .: "Protocol" |
| 4115 | 4121 | |
| 4116 | 4122 | instance ToJSON Obj4 where |
| 4117 | - toJSON (Obj4 dummyObj4 obj4SelfObj4 obj4ThenObj4 obj4TrueObj4 obj4TypeObj4 publicObj4 purpleTypeObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 sbyteObj4 sealedObj4 selObj4 selectObj4 selfObj4 serializeObj4 setObj4 shortObj4 signedObj4 sizeofObj4 stackallocObj4 staticObj4 staticAssertObj4 staticCastObj4 strictfpObj4 stringObj4 structObj4 subscriptObj4 superObj4 switchObj4 symbolObj4 synchronizedObj4 systemObj4 templateObj4 thisObj4 threadLocalObj4 throwObj4 throwsObj4 toJSONObj4 topLevelObj4 transientObj4 trueObj4 tryObj4 typealiasObj4 typedefObj4 typeidObj4 typenameObj4 typeofObj4 uintObj4 ulongObj4 uncheckedObj4 undefinedObj4) = | |
| 4123 | + toJSON (Obj4 dummyObj4 obj4SelfObj4 obj4ThenObj4 obj4TrueObj4 obj4TypeObj4 publicObj4 purpleTypeObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 sObj4 sbyteObj4 sealedObj4 selObj4 selectObj4 selfObj4 serializeObj4 setObj4 shortObj4 signedObj4 sizeofObj4 stackallocObj4 staticObj4 staticAssertObj4 staticCastObj4 strictfpObj4 stringObj4 structObj4 subscriptObj4 superObj4 switchObj4 symbolObj4 synchronizedObj4 systemObj4 templateObj4 thisObj4 threadLocalObj4 throwObj4 throwsObj4 toJSONObj4 topLevelObj4 transientObj4 trueObj4 tryObj4 typealiasObj4 typedefObj4 typeidObj4 typenameObj4 typeofObj4 uintObj4 ulongObj4 uncheckedObj4 undefinedObj4) = | |
| 4118 | 4124 | object |
| 4119 | 4125 | [ "dummy" .= dummyObj4 |
| 4120 | 4126 | , "self" .= obj4SelfObj4 |
| @@ -4139,6 +4145,7 @@ instance ToJSON Obj4 where | ||
| 4139 | 4145 | , "rethrows" .= rethrowsObj4 |
| 4140 | 4146 | , "return" .= returnObj4 |
| 4141 | 4147 | , "right" .= rightObj4 |
| 4148 | + , "s" .= sObj4 | |
| 4142 | 4149 | , "sbyte" .= sbyteObj4 |
| 4143 | 4150 | , "sealed" .= sealedObj4 |
| 4144 | 4151 | , "SEL" .= selObj4 |
| @@ -4208,6 +4215,7 @@ instance FromJSON Obj4 where | ||
| 4208 | 4215 | <*> v .: "rethrows" |
| 4209 | 4216 | <*> v .: "return" |
| 4210 | 4217 | <*> v .: "right" |
| 4218 | + <*> v .: "s" | |
| 4211 | 4219 | <*> v .: "sbyte" |
| 4212 | 4220 | <*> v .: "sealed" |
| 4213 | 4221 | <*> v .: "SEL" |
| @@ -4471,6 +4479,16 @@ instance FromJSON RightClass where | ||
| 4471 | 4479 | parseJSON (Object v) = RightClass |
| 4472 | 4480 | <$> v .: "right" |
| 4473 | 4481 | |
| 4482 | +instance ToJSON S where | |
| 4483 | + toJSON (S sS) = | |
| 4484 | + object | |
| 4485 | + [ "s" .= sS | |
| 4486 | + ] | |
| 4487 | + | |
| 4488 | +instance FromJSON S where | |
| 4489 | + parseJSON (Object v) = S | |
| 4490 | + <$> v .: "s" | |
| 4491 | + | |
| 4474 | 4492 | instance ToJSON Sbyte where |
| 4475 | 4493 | toJSON (Sbyte sbyteSbyte) = |
| 4476 | 4494 | object |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+6 −0
| @@ -36,6 +36,7 @@ public class Obj4 { | ||
| 36 | 36 | private Retain retain; |
| 37 | 37 | private Rethrows rethrows; |
| 38 | 38 | private Right right; |
| 39 | + private S s; | |
| 39 | 40 | private Sbyte sbyte; |
| 40 | 41 | private Sealed sealed; |
| 41 | 42 | private Sel sel; |
| @@ -234,6 +235,11 @@ public class Obj4 { | ||
| 234 | 235 | @JsonProperty("right") |
| 235 | 236 | public void setRight(Right value) { this.right = value; } |
| 236 | 237 | |
| 238 | + @JsonProperty("s") | |
| 239 | + public S getS() { return s; } | |
| 240 | + @JsonProperty("s") | |
| 241 | + public void setS(S value) { this.s = value; } | |
| 242 | + | |
| 237 | 243 | @JsonProperty("sbyte") |
| 238 | 244 | public Sbyte getSbyte() { return sbyte; } |
| 239 | 245 | @JsonProperty("sbyte") |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / S.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class S { | |
| 6 | + private long s; | |
| 7 | + | |
| 8 | + @JsonProperty("s") | |
| 9 | + public long getS() { return s; } | |
| 10 | + @JsonProperty("s") | |
| 11 | + public void setS(long value) { this.s = value; } | |
| 12 | +} |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+6 −0
| @@ -36,6 +36,7 @@ public class Obj4 { | ||
| 36 | 36 | private Retain retain; |
| 37 | 37 | private Rethrows rethrows; |
| 38 | 38 | private Right right; |
| 39 | + private S s; | |
| 39 | 40 | private Sbyte sbyte; |
| 40 | 41 | private Sealed sealed; |
| 41 | 42 | private Sel sel; |
| @@ -234,6 +235,11 @@ public class Obj4 { | ||
| 234 | 235 | @JsonProperty("right") |
| 235 | 236 | public void setRight(Right value) { this.right = value; } |
| 236 | 237 | |
| 238 | + @JsonProperty("s") | |
| 239 | + public S getS() { return s; } | |
| 240 | + @JsonProperty("s") | |
| 241 | + public void setS(S value) { this.s = value; } | |
| 242 | + | |
| 237 | 243 | @JsonProperty("sbyte") |
| 238 | 244 | public Sbyte getSbyte() { return sbyte; } |
| 239 | 245 | @JsonProperty("sbyte") |
Ajava-lombokdefault / src / main / java / io / quicktype / S.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class S { | |
| 6 | + private long s; | |
| 7 | + | |
| 8 | + @JsonProperty("s") | |
| 9 | + public long getS() { return s; } | |
| 10 | + @JsonProperty("s") | |
| 11 | + public void setS(long value) { this.s = value; } | |
| 12 | +} |
Mjavadefault / src / main / java / io / quicktype / Obj4.java+6 −0
| @@ -36,6 +36,7 @@ public class Obj4 { | ||
| 36 | 36 | private Retain retain; |
| 37 | 37 | private Rethrows rethrows; |
| 38 | 38 | private Right right; |
| 39 | + private S s; | |
| 39 | 40 | private Sbyte sbyte; |
| 40 | 41 | private Sealed sealed; |
| 41 | 42 | private Sel sel; |
| @@ -234,6 +235,11 @@ public class Obj4 { | ||
| 234 | 235 | @JsonProperty("right") |
| 235 | 236 | public void setRight(Right value) { this.right = value; } |
| 236 | 237 | |
| 238 | + @JsonProperty("s") | |
| 239 | + public S getS() { return s; } | |
| 240 | + @JsonProperty("s") | |
| 241 | + public void setS(S value) { this.s = value; } | |
| 242 | + | |
| 237 | 243 | @JsonProperty("sbyte") |
| 238 | 244 | public Sbyte getSbyte() { return sbyte; } |
| 239 | 245 | @JsonProperty("sbyte") |
Ajavadefault / src / main / java / io / quicktype / S.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class S { | |
| 6 | + private long s; | |
| 7 | + | |
| 8 | + @JsonProperty("s") | |
| 9 | + public long getS() { return s; } | |
| 10 | + @JsonProperty("s") | |
| 11 | + public void setS(long value) { this.s = value; } | |
| 12 | +} |
Mjavascript-prop-typesdefault / toplevel.js+5 −0
| @@ -234,6 +234,7 @@ let _Retain; | ||
| 234 | 234 | let _Rethrows; |
| 235 | 235 | let _Return; |
| 236 | 236 | let _Right; |
| 237 | +let _S; | |
| 237 | 238 | let _Sbyte; |
| 238 | 239 | let _Sealed; |
| 239 | 240 | let _Select; |
| @@ -1150,6 +1151,9 @@ _Return = PropTypes.shape({ | ||
| 1150 | 1151 | _Right = PropTypes.shape({ |
| 1151 | 1152 | "right": PropTypes.oneOfType([Integer]).isRequired, |
| 1152 | 1153 | }); |
| 1154 | +_S = PropTypes.shape({ | |
| 1155 | + "s": PropTypes.oneOfType([Integer]).isRequired, | |
| 1156 | +}); | |
| 1153 | 1157 | _Sbyte = PropTypes.shape({ |
| 1154 | 1158 | "sbyte": PropTypes.oneOfType([Integer]).isRequired, |
| 1155 | 1159 | }); |
| @@ -1302,6 +1306,7 @@ _Obj4 = PropTypes.shape({ | ||
| 1302 | 1306 | "rethrows": _Rethrows, |
| 1303 | 1307 | "return": _Return, |
| 1304 | 1308 | "right": _Right, |
| 1309 | + "s": _S, | |
| 1305 | 1310 | "sbyte": _Sbyte, |
| 1306 | 1311 | "sealed": _Sealed, |
| 1307 | 1312 | "select": _Select, |
Mjavascriptdefault / TopLevel.js+4 −0
| @@ -1012,6 +1012,7 @@ const typeMap = { | ||
| 1012 | 1012 | { json: "rethrows", js: "rethrows", typ: r("Rethrows") }, |
| 1013 | 1013 | { json: "return", js: "return", typ: r("Return") }, |
| 1014 | 1014 | { json: "right", js: "right", typ: r("Right") }, |
| 1015 | + { json: "s", js: "s", typ: r("S") }, | |
| 1015 | 1016 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 1016 | 1017 | { json: "sealed", js: "sealed", typ: r("Sealed") }, |
| 1017 | 1018 | { json: "select", js: "select", typ: r("Select") }, |
| @@ -1119,6 +1120,9 @@ const typeMap = { | ||
| 1119 | 1120 | "Right": o([ |
| 1120 | 1121 | { json: "right", js: "right", typ: i(0) }, |
| 1121 | 1122 | ], false), |
| 1123 | + "S": o([ | |
| 1124 | + { json: "s", js: "s", typ: i(0) }, | |
| 1125 | + ], false), | |
| 1122 | 1126 | "Sbyte": o([ |
| 1123 | 1127 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 1124 | 1128 | ], false), |
Mkotlin-jacksondefault / TopLevel.kt+8 −0
| @@ -1705,6 +1705,9 @@ data class Obj4 ( | ||
| 1705 | 1705 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1706 | 1706 | val right: Right, |
| 1707 | 1707 | |
| 1708 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1709 | + val s: S, | |
| 1710 | + | |
| 1708 | 1711 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1709 | 1712 | val sbyte: Sbyte, |
| 1710 | 1713 | |
| @@ -1952,6 +1955,11 @@ data class Right ( | ||
| 1952 | 1955 | val right: Long |
| 1953 | 1956 | ) |
| 1954 | 1957 | |
| 1958 | +data class S ( | |
| 1959 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1960 | + val s: Long | |
| 1961 | +) | |
| 1962 | + | |
| 1955 | 1963 | data class Sbyte ( |
| 1956 | 1964 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1957 | 1965 | val sbyte: Long |
Mkotlindefault / TopLevel.kt+5 −0
| @@ -1247,6 +1247,7 @@ data class Obj4 ( | ||
| 1247 | 1247 | val retain: Retain, |
| 1248 | 1248 | val rethrows: Rethrows, |
| 1249 | 1249 | val right: Right, |
| 1250 | + val s: S, | |
| 1250 | 1251 | val sbyte: Sbyte, |
| 1251 | 1252 | val sealed: Sealed, |
| 1252 | 1253 | |
| @@ -1426,6 +1427,10 @@ data class Right ( | ||
| 1426 | 1427 | val right: Long |
| 1427 | 1428 | ) |
| 1428 | 1429 | |
| 1430 | +data class S ( | |
| 1431 | + val s: Long | |
| 1432 | +) | |
| 1433 | + | |
| 1429 | 1434 | data class Sbyte ( |
| 1430 | 1435 | val sbyte: Long |
| 1431 | 1436 | ) |
Mkotlinxdefault / TopLevel.kt+6 −0
| @@ -1443,6 +1443,7 @@ data class Obj4 ( | ||
| 1443 | 1443 | val retain: Retain, |
| 1444 | 1444 | val rethrows: Rethrows, |
| 1445 | 1445 | val right: Right, |
| 1446 | + val s: S, | |
| 1446 | 1447 | val sbyte: Sbyte, |
| 1447 | 1448 | val sealed: Sealed, |
| 1448 | 1449 | |
| @@ -1649,6 +1650,11 @@ data class Right ( | ||
| 1649 | 1650 | val right: Long |
| 1650 | 1651 | ) |
| 1651 | 1652 | |
| 1653 | +@Serializable | |
| 1654 | +data class S ( | |
| 1655 | + val s: Long | |
| 1656 | +) | |
| 1657 | + | |
| 1652 | 1658 | @Serializable |
| 1653 | 1659 | data class Sbyte ( |
| 1654 | 1660 | val sbyte: Long |
Mobjective-cdefault / QTTopLevel.h+6 −0
| @@ -233,6 +233,7 @@ | ||
| 233 | 233 | @class QTRequires; |
| 234 | 234 | @class QTRethrows; |
| 235 | 235 | @class QTRight; |
| 236 | +@class QTS; | |
| 236 | 237 | @class QTSbyte; |
| 237 | 238 | @class QTSealed; |
| 238 | 239 | @class QTSel; |
| @@ -1333,6 +1334,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1333 | 1334 | @property (nonatomic, strong) QTRequires *requires; |
| 1334 | 1335 | @property (nonatomic, strong) QTRethrows *rethrows; |
| 1335 | 1336 | @property (nonatomic, strong) QTRight *right; |
| 1337 | +@property (nonatomic, strong) QTS *s; | |
| 1336 | 1338 | @property (nonatomic, strong) QTSbyte *sbyte; |
| 1337 | 1339 | @property (nonatomic, strong) QTSealed *sealed; |
| 1338 | 1340 | @property (nonatomic, strong) QTSel *sel; |
| @@ -1483,6 +1485,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1483 | 1485 | @property (nonatomic, assign) NSInteger right; |
| 1484 | 1486 | @end |
| 1485 | 1487 | |
| 1488 | +@interface QTS : NSObject | |
| 1489 | +@property (nonatomic, assign) NSInteger s; | |
| 1490 | +@end | |
| 1491 | + | |
| 1486 | 1492 | @interface QTSbyte : NSObject |
| 1487 | 1493 | @property (nonatomic, assign) NSInteger sbyte; |
| 1488 | 1494 | @end |
Mobjective-cdefault / QTTopLevel.m+52 −0
| @@ -1148,6 +1148,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1148 | 1148 | - (NSDictionary *)JSONDictionary; |
| 1149 | 1149 | @end |
| 1150 | 1150 | |
| 1151 | +@interface QTS (JSONConversion) | |
| 1152 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1153 | +- (NSDictionary *)JSONDictionary; | |
| 1154 | +@end | |
| 1155 | + | |
| 1151 | 1156 | @interface QTSbyte (JSONConversion) |
| 1152 | 1157 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1153 | 1158 | - (NSDictionary *)JSONDictionary; |
| @@ -11565,6 +11570,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11565 | 11570 | @"requires": @"requires", |
| 11566 | 11571 | @"rethrows": @"rethrows", |
| 11567 | 11572 | @"right": @"right", |
| 11573 | + @"s": @"s", | |
| 11568 | 11574 | @"sbyte": @"sbyte", |
| 11569 | 11575 | @"sealed": @"sealed", |
| 11570 | 11576 | @"SEL": @"sel", |
| @@ -11642,6 +11648,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11642 | 11648 | if (![dict[@"requires"] isKindOfClass:NSDictionary.class]) return nil; |
| 11643 | 11649 | if (![dict[@"rethrows"] isKindOfClass:NSDictionary.class]) return nil; |
| 11644 | 11650 | if (![dict[@"right"] isKindOfClass:NSDictionary.class]) return nil; |
| 11651 | + if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil; | |
| 11645 | 11652 | if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil; |
| 11646 | 11653 | if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; |
| 11647 | 11654 | if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -11735,6 +11742,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11735 | 11742 | if (!_rethrows && dict[@"rethrows"] && ![dict[@"rethrows"] isKindOfClass:NSNull.class]) return nil; |
| 11736 | 11743 | _right = [QTRight fromJSONDictionary:(id)_right]; |
| 11737 | 11744 | if (!_right && dict[@"right"] && ![dict[@"right"] isKindOfClass:NSNull.class]) return nil; |
| 11745 | + _s = [QTS fromJSONDictionary:(id)_s]; | |
| 11746 | + if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil; | |
| 11738 | 11747 | _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte]; |
| 11739 | 11748 | if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil; |
| 11740 | 11749 | _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; |
| @@ -11864,6 +11873,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11864 | 11873 | @"requires": [_requires JSONDictionary], |
| 11865 | 11874 | @"rethrows": [_rethrows JSONDictionary], |
| 11866 | 11875 | @"right": [_right JSONDictionary], |
| 11876 | + @"s": [_s JSONDictionary], | |
| 11867 | 11877 | @"sbyte": [_sbyte JSONDictionary], |
| 11868 | 11878 | @"sealed": [_sealed JSONDictionary], |
| 11869 | 11879 | @"SEL": [_sel JSONDictionary], |
| @@ -13222,6 +13232,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13222 | 13232 | } |
| 13223 | 13233 | @end |
| 13224 | 13234 | |
| 13235 | +@implementation QTS | |
| 13236 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13237 | +{ | |
| 13238 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13239 | + return properties = properties ? properties : @{ | |
| 13240 | + @"s": @"s", | |
| 13241 | + }; | |
| 13242 | +} | |
| 13243 | + | |
| 13244 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13245 | +{ | |
| 13246 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTS alloc] initWithJSONDictionary:dict] : nil; | |
| 13247 | +} | |
| 13248 | + | |
| 13249 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13250 | +{ | |
| 13251 | + if (self = [super init]) { | |
| 13252 | + if (![dict[@"s"] isKindOfClass:NSNumber.class]) return nil; | |
| 13253 | + if ([dict[@"s"] doubleValue] != [dict[@"s"] longLongValue]) return nil; | |
| 13254 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13255 | + } | |
| 13256 | + return self; | |
| 13257 | +} | |
| 13258 | + | |
| 13259 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13260 | +{ | |
| 13261 | + id resolved = QTS.properties[key]; | |
| 13262 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13263 | +} | |
| 13264 | + | |
| 13265 | +- (void)setNilValueForKey:(NSString *)key | |
| 13266 | +{ | |
| 13267 | + id resolved = QTS.properties[key]; | |
| 13268 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13269 | +} | |
| 13270 | + | |
| 13271 | +- (NSDictionary *)JSONDictionary | |
| 13272 | +{ | |
| 13273 | + return [self dictionaryWithValuesForKeys:QTS.properties.allValues]; | |
| 13274 | +} | |
| 13275 | +@end | |
| 13276 | + | |
| 13225 | 13277 | @implementation QTSbyte |
| 13226 | 13278 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13227 | 13279 | { |
Mphpdefault / TopLevel.php+203 −44
| @@ -31725,6 +31725,7 @@ class Obj4 { | ||
| 31725 | 31725 | private Rethrows $rethrows; // json:rethrows Required |
| 31726 | 31726 | private ReturnClass $return; // json:return Required |
| 31727 | 31727 | private Right $right; // json:right Required |
| 31728 | + private S $s; // json:s Required | |
| 31728 | 31729 | private Sbyte $sbyte; // json:sbyte Required |
| 31729 | 31730 | private Sealed $sealed; // json:sealed Required |
| 31730 | 31731 | private Sel $sel; // json:SEL Required |
| @@ -31792,6 +31793,7 @@ class Obj4 { | ||
| 31792 | 31793 | * @param Rethrows $rethrows |
| 31793 | 31794 | * @param ReturnClass $return |
| 31794 | 31795 | * @param Right $right |
| 31796 | + * @param S $s | |
| 31795 | 31797 | * @param Sbyte $sbyte |
| 31796 | 31798 | * @param Sealed $sealed |
| 31797 | 31799 | * @param Sel $sel |
| @@ -31836,7 +31838,7 @@ class Obj4 { | ||
| 31836 | 31838 | * @param Unchecked $unchecked |
| 31837 | 31839 | * @param Undefined $undefined |
| 31838 | 31840 | */ |
| 31839 | - public function __construct(int $dummy, Obj4Self $obj4Self, This $obj4This, Obj4True $obj4True, TypeClass $obj4Type, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Serialize $serialize, Set $set, Short $short, Signed $signed, Sizeof $sizeof, Stackalloc $stackalloc, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, ToJSON $toJSON, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined) { | |
| 31841 | + public function __construct(int $dummy, Obj4Self $obj4Self, This $obj4This, Obj4True $obj4True, TypeClass $obj4Type, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Serialize $serialize, Set $set, Short $short, Signed $signed, Sizeof $sizeof, Stackalloc $stackalloc, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, ToJSON $toJSON, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined) { | |
| 31840 | 31842 | $this->dummy = $dummy; |
| 31841 | 31843 | $this->obj4Self = $obj4Self; |
| 31842 | 31844 | $this->obj4This = $obj4This; |
| @@ -31859,6 +31861,7 @@ class Obj4 { | ||
| 31859 | 31861 | $this->rethrows = $rethrows; |
| 31860 | 31862 | $this->return = $return; |
| 31861 | 31863 | $this->right = $right; |
| 31864 | + $this->s = $s; | |
| 31862 | 31865 | $this->sbyte = $sbyte; |
| 31863 | 31866 | $this->sealed = $sealed; |
| 31864 | 31867 | $this->sel = $sel; |
| @@ -32959,6 +32962,54 @@ class Obj4 { | ||
| 32959 | 32962 | return Right::sample(); /*52:right*/ |
| 32960 | 32963 | } |
| 32961 | 32964 | |
| 32965 | + /** | |
| 32966 | + * @param stdClass $value | |
| 32967 | + * @throws Exception | |
| 32968 | + * @return S | |
| 32969 | + */ | |
| 32970 | + public static function fromS(stdClass $value): S { | |
| 32971 | + return S::from($value); /*class*/ | |
| 32972 | + } | |
| 32973 | + | |
| 32974 | + /** | |
| 32975 | + * @throws Exception | |
| 32976 | + * @return stdClass | |
| 32977 | + */ | |
| 32978 | + public function toS(): stdClass { | |
| 32979 | + if (Obj4::validateS($this->s)) { | |
| 32980 | + return $this->s->to(); /*class*/ | |
| 32981 | + } | |
| 32982 | + throw new Exception('never get to this Obj4::s'); | |
| 32983 | + } | |
| 32984 | + | |
| 32985 | + /** | |
| 32986 | + * @param S | |
| 32987 | + * @return bool | |
| 32988 | + * @throws Exception | |
| 32989 | + */ | |
| 32990 | + public static function validateS(S $value): bool { | |
| 32991 | + $value->validate(); | |
| 32992 | + return true; | |
| 32993 | + } | |
| 32994 | + | |
| 32995 | + /** | |
| 32996 | + * @throws Exception | |
| 32997 | + * @return S | |
| 32998 | + */ | |
| 32999 | + public function getS(): S { | |
| 33000 | + if (Obj4::validateS($this->s)) { | |
| 33001 | + return $this->s; | |
| 33002 | + } | |
| 33003 | + throw new Exception('never get to getS Obj4::s'); | |
| 33004 | + } | |
| 33005 | + | |
| 33006 | + /** | |
| 33007 | + * @return S | |
| 33008 | + */ | |
| 33009 | + public static function sampleS(): S { | |
| 33010 | + return S::sample(); /*53:s*/ | |
| 33011 | + } | |
| 33012 | + | |
| 32962 | 33013 | /** |
| 32963 | 33014 | * @param stdClass $value |
| 32964 | 33015 | * @throws Exception |
| @@ -33004,7 +33055,7 @@ class Obj4 { | ||
| 33004 | 33055 | * @return Sbyte |
| 33005 | 33056 | */ |
| 33006 | 33057 | public static function sampleSbyte(): Sbyte { |
| 33007 | - return Sbyte::sample(); /*53:sbyte*/ | |
| 33058 | + return Sbyte::sample(); /*54:sbyte*/ | |
| 33008 | 33059 | } |
| 33009 | 33060 | |
| 33010 | 33061 | /** |
| @@ -33052,7 +33103,7 @@ class Obj4 { | ||
| 33052 | 33103 | * @return Sealed |
| 33053 | 33104 | */ |
| 33054 | 33105 | public static function sampleSealed(): Sealed { |
| 33055 | - return Sealed::sample(); /*54:sealed*/ | |
| 33106 | + return Sealed::sample(); /*55:sealed*/ | |
| 33056 | 33107 | } |
| 33057 | 33108 | |
| 33058 | 33109 | /** |
| @@ -33100,7 +33151,7 @@ class Obj4 { | ||
| 33100 | 33151 | * @return Sel |
| 33101 | 33152 | */ |
| 33102 | 33153 | public static function sampleSel(): Sel { |
| 33103 | - return Sel::sample(); /*55:sel*/ | |
| 33154 | + return Sel::sample(); /*56:sel*/ | |
| 33104 | 33155 | } |
| 33105 | 33156 | |
| 33106 | 33157 | /** |
| @@ -33148,7 +33199,7 @@ class Obj4 { | ||
| 33148 | 33199 | * @return Select |
| 33149 | 33200 | */ |
| 33150 | 33201 | public static function sampleSelect(): Select { |
| 33151 | - return Select::sample(); /*56:select*/ | |
| 33202 | + return Select::sample(); /*57:select*/ | |
| 33152 | 33203 | } |
| 33153 | 33204 | |
| 33154 | 33205 | /** |
| @@ -33196,7 +33247,7 @@ class Obj4 { | ||
| 33196 | 33247 | * @return SelfClass |
| 33197 | 33248 | */ |
| 33198 | 33249 | public static function sampleSelf(): SelfClass { |
| 33199 | - return SelfClass::sample(); /*57:self*/ | |
| 33250 | + return SelfClass::sample(); /*58:self*/ | |
| 33200 | 33251 | } |
| 33201 | 33252 | |
| 33202 | 33253 | /** |
| @@ -33244,7 +33295,7 @@ class Obj4 { | ||
| 33244 | 33295 | * @return Serialize |
| 33245 | 33296 | */ |
| 33246 | 33297 | public static function sampleSerialize(): Serialize { |
| 33247 | - return Serialize::sample(); /*58:serialize*/ | |
| 33298 | + return Serialize::sample(); /*59:serialize*/ | |
| 33248 | 33299 | } |
| 33249 | 33300 | |
| 33250 | 33301 | /** |
| @@ -33292,7 +33343,7 @@ class Obj4 { | ||
| 33292 | 33343 | * @return Set |
| 33293 | 33344 | */ |
| 33294 | 33345 | public static function sampleSet(): Set { |
| 33295 | - return Set::sample(); /*59:set*/ | |
| 33346 | + return Set::sample(); /*60:set*/ | |
| 33296 | 33347 | } |
| 33297 | 33348 | |
| 33298 | 33349 | /** |
| @@ -33340,7 +33391,7 @@ class Obj4 { | ||
| 33340 | 33391 | * @return Short |
| 33341 | 33392 | */ |
| 33342 | 33393 | public static function sampleShort(): Short { |
| 33343 | - return Short::sample(); /*60:short*/ | |
| 33394 | + return Short::sample(); /*61:short*/ | |
| 33344 | 33395 | } |
| 33345 | 33396 | |
| 33346 | 33397 | /** |
| @@ -33388,7 +33439,7 @@ class Obj4 { | ||
| 33388 | 33439 | * @return Signed |
| 33389 | 33440 | */ |
| 33390 | 33441 | public static function sampleSigned(): Signed { |
| 33391 | - return Signed::sample(); /*61:signed*/ | |
| 33442 | + return Signed::sample(); /*62:signed*/ | |
| 33392 | 33443 | } |
| 33393 | 33444 | |
| 33394 | 33445 | /** |
| @@ -33436,7 +33487,7 @@ class Obj4 { | ||
| 33436 | 33487 | * @return Sizeof |
| 33437 | 33488 | */ |
| 33438 | 33489 | public static function sampleSizeof(): Sizeof { |
| 33439 | - return Sizeof::sample(); /*62:sizeof*/ | |
| 33490 | + return Sizeof::sample(); /*63:sizeof*/ | |
| 33440 | 33491 | } |
| 33441 | 33492 | |
| 33442 | 33493 | /** |
| @@ -33484,7 +33535,7 @@ class Obj4 { | ||
| 33484 | 33535 | * @return Stackalloc |
| 33485 | 33536 | */ |
| 33486 | 33537 | public static function sampleStackalloc(): Stackalloc { |
| 33487 | - return Stackalloc::sample(); /*63:stackalloc*/ | |
| 33538 | + return Stackalloc::sample(); /*64:stackalloc*/ | |
| 33488 | 33539 | } |
| 33489 | 33540 | |
| 33490 | 33541 | /** |
| @@ -33532,7 +33583,7 @@ class Obj4 { | ||
| 33532 | 33583 | * @return StaticClass |
| 33533 | 33584 | */ |
| 33534 | 33585 | public static function sampleStatic(): StaticClass { |
| 33535 | - return StaticClass::sample(); /*64:static*/ | |
| 33586 | + return StaticClass::sample(); /*65:static*/ | |
| 33536 | 33587 | } |
| 33537 | 33588 | |
| 33538 | 33589 | /** |
| @@ -33580,7 +33631,7 @@ class Obj4 { | ||
| 33580 | 33631 | * @return StaticAssert |
| 33581 | 33632 | */ |
| 33582 | 33633 | public static function sampleStaticAssert(): StaticAssert { |
| 33583 | - return StaticAssert::sample(); /*65:staticAssert*/ | |
| 33634 | + return StaticAssert::sample(); /*66:staticAssert*/ | |
| 33584 | 33635 | } |
| 33585 | 33636 | |
| 33586 | 33637 | /** |
| @@ -33628,7 +33679,7 @@ class Obj4 { | ||
| 33628 | 33679 | * @return StaticCast |
| 33629 | 33680 | */ |
| 33630 | 33681 | public static function sampleStaticCast(): StaticCast { |
| 33631 | - return StaticCast::sample(); /*66:staticCast*/ | |
| 33682 | + return StaticCast::sample(); /*67:staticCast*/ | |
| 33632 | 33683 | } |
| 33633 | 33684 | |
| 33634 | 33685 | /** |
| @@ -33676,7 +33727,7 @@ class Obj4 { | ||
| 33676 | 33727 | * @return Strictfp |
| 33677 | 33728 | */ |
| 33678 | 33729 | public static function sampleStrictfp(): Strictfp { |
| 33679 | - return Strictfp::sample(); /*67:strictfp*/ | |
| 33730 | + return Strictfp::sample(); /*68:strictfp*/ | |
| 33680 | 33731 | } |
| 33681 | 33732 | |
| 33682 | 33733 | /** |
| @@ -33724,7 +33775,7 @@ class Obj4 { | ||
| 33724 | 33775 | * @return StringClass |
| 33725 | 33776 | */ |
| 33726 | 33777 | public static function sampleString(): StringClass { |
| 33727 | - return StringClass::sample(); /*68:string*/ | |
| 33778 | + return StringClass::sample(); /*69:string*/ | |
| 33728 | 33779 | } |
| 33729 | 33780 | |
| 33730 | 33781 | /** |
| @@ -33772,7 +33823,7 @@ class Obj4 { | ||
| 33772 | 33823 | * @return Struct |
| 33773 | 33824 | */ |
| 33774 | 33825 | public static function sampleStruct(): Struct { |
| 33775 | - return Struct::sample(); /*69:struct*/ | |
| 33826 | + return Struct::sample(); /*70:struct*/ | |
| 33776 | 33827 | } |
| 33777 | 33828 | |
| 33778 | 33829 | /** |
| @@ -33820,7 +33871,7 @@ class Obj4 { | ||
| 33820 | 33871 | * @return Subscript |
| 33821 | 33872 | */ |
| 33822 | 33873 | public static function sampleSubscript(): Subscript { |
| 33823 | - return Subscript::sample(); /*70:subscript*/ | |
| 33874 | + return Subscript::sample(); /*71:subscript*/ | |
| 33824 | 33875 | } |
| 33825 | 33876 | |
| 33826 | 33877 | /** |
| @@ -33868,7 +33919,7 @@ class Obj4 { | ||
| 33868 | 33919 | * @return Super |
| 33869 | 33920 | */ |
| 33870 | 33921 | public static function sampleSuper(): Super { |
| 33871 | - return Super::sample(); /*71:super*/ | |
| 33922 | + return Super::sample(); /*72:super*/ | |
| 33872 | 33923 | } |
| 33873 | 33924 | |
| 33874 | 33925 | /** |
| @@ -33916,7 +33967,7 @@ class Obj4 { | ||
| 33916 | 33967 | * @return SwitchClass |
| 33917 | 33968 | */ |
| 33918 | 33969 | public static function sampleSwitch(): SwitchClass { |
| 33919 | - return SwitchClass::sample(); /*72:switch*/ | |
| 33970 | + return SwitchClass::sample(); /*73:switch*/ | |
| 33920 | 33971 | } |
| 33921 | 33972 | |
| 33922 | 33973 | /** |
| @@ -33964,7 +34015,7 @@ class Obj4 { | ||
| 33964 | 34015 | * @return Symbol |
| 33965 | 34016 | */ |
| 33966 | 34017 | public static function sampleSymbol(): Symbol { |
| 33967 | - return Symbol::sample(); /*73:symbol*/ | |
| 34018 | + return Symbol::sample(); /*74:symbol*/ | |
| 33968 | 34019 | } |
| 33969 | 34020 | |
| 33970 | 34021 | /** |
| @@ -34012,7 +34063,7 @@ class Obj4 { | ||
| 34012 | 34063 | * @return Synchronized |
| 34013 | 34064 | */ |
| 34014 | 34065 | public static function sampleSynchronized(): Synchronized { |
| 34015 | - return Synchronized::sample(); /*74:synchronized*/ | |
| 34066 | + return Synchronized::sample(); /*75:synchronized*/ | |
| 34016 | 34067 | } |
| 34017 | 34068 | |
| 34018 | 34069 | /** |
| @@ -34060,7 +34111,7 @@ class Obj4 { | ||
| 34060 | 34111 | * @return System |
| 34061 | 34112 | */ |
| 34062 | 34113 | public static function sampleSystem(): System { |
| 34063 | - return System::sample(); /*75:system*/ | |
| 34114 | + return System::sample(); /*76:system*/ | |
| 34064 | 34115 | } |
| 34065 | 34116 | |
| 34066 | 34117 | /** |
| @@ -34108,7 +34159,7 @@ class Obj4 { | ||
| 34108 | 34159 | * @return Template |
| 34109 | 34160 | */ |
| 34110 | 34161 | public static function sampleTemplate(): Template { |
| 34111 | - return Template::sample(); /*76:template*/ | |
| 34162 | + return Template::sample(); /*77:template*/ | |
| 34112 | 34163 | } |
| 34113 | 34164 | |
| 34114 | 34165 | /** |
| @@ -34156,7 +34207,7 @@ class Obj4 { | ||
| 34156 | 34207 | * @return Then |
| 34157 | 34208 | */ |
| 34158 | 34209 | public static function sampleThen(): Then { |
| 34159 | - return Then::sample(); /*77:then*/ | |
| 34210 | + return Then::sample(); /*78:then*/ | |
| 34160 | 34211 | } |
| 34161 | 34212 | |
| 34162 | 34213 | /** |
| @@ -34204,7 +34255,7 @@ class Obj4 { | ||
| 34204 | 34255 | * @return ThreadLocal |
| 34205 | 34256 | */ |
| 34206 | 34257 | public static function sampleThreadLocal(): ThreadLocal { |
| 34207 | - return ThreadLocal::sample(); /*78:threadLocal*/ | |
| 34258 | + return ThreadLocal::sample(); /*79:threadLocal*/ | |
| 34208 | 34259 | } |
| 34209 | 34260 | |
| 34210 | 34261 | /** |
| @@ -34252,7 +34303,7 @@ class Obj4 { | ||
| 34252 | 34303 | * @return ThrowClass |
| 34253 | 34304 | */ |
| 34254 | 34305 | public static function sampleThrow(): ThrowClass { |
| 34255 | - return ThrowClass::sample(); /*79:throw*/ | |
| 34306 | + return ThrowClass::sample(); /*80:throw*/ | |
| 34256 | 34307 | } |
| 34257 | 34308 | |
| 34258 | 34309 | /** |
| @@ -34300,7 +34351,7 @@ class Obj4 { | ||
| 34300 | 34351 | * @return Throws |
| 34301 | 34352 | */ |
| 34302 | 34353 | public static function sampleThrows(): Throws { |
| 34303 | - return Throws::sample(); /*80:throws*/ | |
| 34354 | + return Throws::sample(); /*81:throws*/ | |
| 34304 | 34355 | } |
| 34305 | 34356 | |
| 34306 | 34357 | /** |
| @@ -34348,7 +34399,7 @@ class Obj4 { | ||
| 34348 | 34399 | * @return ToJSON |
| 34349 | 34400 | */ |
| 34350 | 34401 | public static function sampleToJSON(): ToJSON { |
| 34351 | - return ToJSON::sample(); /*81:toJSON*/ | |
| 34402 | + return ToJSON::sample(); /*82:toJSON*/ | |
| 34352 | 34403 | } |
| 34353 | 34404 | |
| 34354 | 34405 | /** |
| @@ -34396,7 +34447,7 @@ class Obj4 { | ||
| 34396 | 34447 | * @return TopLevelClass |
| 34397 | 34448 | */ |
| 34398 | 34449 | public static function sampleTopLevel(): TopLevelClass { |
| 34399 | - return TopLevelClass::sample(); /*82:topLevel*/ | |
| 34450 | + return TopLevelClass::sample(); /*83:topLevel*/ | |
| 34400 | 34451 | } |
| 34401 | 34452 | |
| 34402 | 34453 | /** |
| @@ -34444,7 +34495,7 @@ class Obj4 { | ||
| 34444 | 34495 | * @return Transient |
| 34445 | 34496 | */ |
| 34446 | 34497 | public static function sampleTransient(): Transient { |
| 34447 | - return Transient::sample(); /*83:transient*/ | |
| 34498 | + return Transient::sample(); /*84:transient*/ | |
| 34448 | 34499 | } |
| 34449 | 34500 | |
| 34450 | 34501 | /** |
| @@ -34492,7 +34543,7 @@ class Obj4 { | ||
| 34492 | 34543 | * @return TrueClass |
| 34493 | 34544 | */ |
| 34494 | 34545 | public static function sampleTrue(): TrueClass { |
| 34495 | - return TrueClass::sample(); /*84:true*/ | |
| 34546 | + return TrueClass::sample(); /*85:true*/ | |
| 34496 | 34547 | } |
| 34497 | 34548 | |
| 34498 | 34549 | /** |
| @@ -34540,7 +34591,7 @@ class Obj4 { | ||
| 34540 | 34591 | * @return TryClass |
| 34541 | 34592 | */ |
| 34542 | 34593 | public static function sampleTry(): TryClass { |
| 34543 | - return TryClass::sample(); /*85:try*/ | |
| 34594 | + return TryClass::sample(); /*86:try*/ | |
| 34544 | 34595 | } |
| 34545 | 34596 | |
| 34546 | 34597 | /** |
| @@ -34588,7 +34639,7 @@ class Obj4 { | ||
| 34588 | 34639 | * @return Type |
| 34589 | 34640 | */ |
| 34590 | 34641 | public static function sampleType(): Type { |
| 34591 | - return Type::sample(); /*86:type*/ | |
| 34642 | + return Type::sample(); /*87:type*/ | |
| 34592 | 34643 | } |
| 34593 | 34644 | |
| 34594 | 34645 | /** |
| @@ -34636,7 +34687,7 @@ class Obj4 { | ||
| 34636 | 34687 | * @return Typealias |
| 34637 | 34688 | */ |
| 34638 | 34689 | public static function sampleTypealias(): Typealias { |
| 34639 | - return Typealias::sample(); /*87:typealias*/ | |
| 34690 | + return Typealias::sample(); /*88:typealias*/ | |
| 34640 | 34691 | } |
| 34641 | 34692 | |
| 34642 | 34693 | /** |
| @@ -34684,7 +34735,7 @@ class Obj4 { | ||
| 34684 | 34735 | * @return Typedef |
| 34685 | 34736 | */ |
| 34686 | 34737 | public static function sampleTypedef(): Typedef { |
| 34687 | - return Typedef::sample(); /*88:typedef*/ | |
| 34738 | + return Typedef::sample(); /*89:typedef*/ | |
| 34688 | 34739 | } |
| 34689 | 34740 | |
| 34690 | 34741 | /** |
| @@ -34732,7 +34783,7 @@ class Obj4 { | ||
| 34732 | 34783 | * @return Typeid |
| 34733 | 34784 | */ |
| 34734 | 34785 | public static function sampleTypeid(): Typeid { |
| 34735 | - return Typeid::sample(); /*89:typeid*/ | |
| 34786 | + return Typeid::sample(); /*90:typeid*/ | |
| 34736 | 34787 | } |
| 34737 | 34788 | |
| 34738 | 34789 | /** |
| @@ -34780,7 +34831,7 @@ class Obj4 { | ||
| 34780 | 34831 | * @return Typename |
| 34781 | 34832 | */ |
| 34782 | 34833 | public static function sampleTypename(): Typename { |
| 34783 | - return Typename::sample(); /*90:typename*/ | |
| 34834 | + return Typename::sample(); /*91:typename*/ | |
| 34784 | 34835 | } |
| 34785 | 34836 | |
| 34786 | 34837 | /** |
| @@ -34828,7 +34879,7 @@ class Obj4 { | ||
| 34828 | 34879 | * @return Typeof |
| 34829 | 34880 | */ |
| 34830 | 34881 | public static function sampleTypeof(): Typeof { |
| 34831 | - return Typeof::sample(); /*91:typeof*/ | |
| 34882 | + return Typeof::sample(); /*92:typeof*/ | |
| 34832 | 34883 | } |
| 34833 | 34884 | |
| 34834 | 34885 | /** |
| @@ -34876,7 +34927,7 @@ class Obj4 { | ||
| 34876 | 34927 | * @return Uint |
| 34877 | 34928 | */ |
| 34878 | 34929 | public static function sampleUint(): Uint { |
| 34879 | - return Uint::sample(); /*92:uint*/ | |
| 34930 | + return Uint::sample(); /*93:uint*/ | |
| 34880 | 34931 | } |
| 34881 | 34932 | |
| 34882 | 34933 | /** |
| @@ -34924,7 +34975,7 @@ class Obj4 { | ||
| 34924 | 34975 | * @return Ulong |
| 34925 | 34976 | */ |
| 34926 | 34977 | public static function sampleUlong(): Ulong { |
| 34927 | - return Ulong::sample(); /*93:ulong*/ | |
| 34978 | + return Ulong::sample(); /*94:ulong*/ | |
| 34928 | 34979 | } |
| 34929 | 34980 | |
| 34930 | 34981 | /** |
| @@ -34972,7 +35023,7 @@ class Obj4 { | ||
| 34972 | 35023 | * @return Unchecked |
| 34973 | 35024 | */ |
| 34974 | 35025 | public static function sampleUnchecked(): Unchecked { |
| 34975 | - return Unchecked::sample(); /*94:unchecked*/ | |
| 35026 | + return Unchecked::sample(); /*95:unchecked*/ | |
| 34976 | 35027 | } |
| 34977 | 35028 | |
| 34978 | 35029 | /** |
| @@ -35020,7 +35071,7 @@ class Obj4 { | ||
| 35020 | 35071 | * @return Undefined |
| 35021 | 35072 | */ |
| 35022 | 35073 | public static function sampleUndefined(): Undefined { |
| 35023 | - return Undefined::sample(); /*95:undefined*/ | |
| 35074 | + return Undefined::sample(); /*96:undefined*/ | |
| 35024 | 35075 | } |
| 35025 | 35076 | |
| 35026 | 35077 | /** |
| @@ -35050,6 +35101,7 @@ class Obj4 { | ||
| 35050 | 35101 | || Obj4::validateRethrows($this->rethrows) |
| 35051 | 35102 | || Obj4::validateReturn($this->return) |
| 35052 | 35103 | || Obj4::validateRight($this->right) |
| 35104 | + || Obj4::validateS($this->s) | |
| 35053 | 35105 | || Obj4::validateSbyte($this->sbyte) |
| 35054 | 35106 | || Obj4::validateSealed($this->sealed) |
| 35055 | 35107 | || Obj4::validateSel($this->sel) |
| @@ -35123,6 +35175,7 @@ class Obj4 { | ||
| 35123 | 35175 | $out->{'rethrows'} = $this->toRethrows(); |
| 35124 | 35176 | $out->{'return'} = $this->toReturn(); |
| 35125 | 35177 | $out->{'right'} = $this->toRight(); |
| 35178 | + $out->{'s'} = $this->toS(); | |
| 35126 | 35179 | $out->{'sbyte'} = $this->toSbyte(); |
| 35127 | 35180 | $out->{'sealed'} = $this->toSealed(); |
| 35128 | 35181 | $out->{'SEL'} = $this->toSel(); |
| @@ -35241,6 +35294,9 @@ class Obj4 { | ||
| 35241 | 35294 | if (!property_exists($obj, 'right')) { |
| 35242 | 35295 | throw new Exception("Missing required property"); |
| 35243 | 35296 | } |
| 35297 | + if (!property_exists($obj, 's')) { | |
| 35298 | + throw new Exception("Missing required property"); | |
| 35299 | + } | |
| 35244 | 35300 | if (!property_exists($obj, 'sbyte')) { |
| 35245 | 35301 | throw new Exception("Missing required property"); |
| 35246 | 35302 | } |
| @@ -35393,6 +35449,7 @@ class Obj4 { | ||
| 35393 | 35449 | ,Obj4::fromRethrows($obj->{'rethrows'}) |
| 35394 | 35450 | ,Obj4::fromReturn($obj->{'return'}) |
| 35395 | 35451 | ,Obj4::fromRight($obj->{'right'}) |
| 35452 | + ,Obj4::fromS($obj->{'s'}) | |
| 35396 | 35453 | ,Obj4::fromSbyte($obj->{'sbyte'}) |
| 35397 | 35454 | ,Obj4::fromSealed($obj->{'sealed'}) |
| 35398 | 35455 | ,Obj4::fromSel($obj->{'SEL'}) |
| @@ -35466,6 +35523,7 @@ class Obj4 { | ||
| 35466 | 35523 | ,Obj4::sampleRethrows() |
| 35467 | 35524 | ,Obj4::sampleReturn() |
| 35468 | 35525 | ,Obj4::sampleRight() |
| 35526 | + ,Obj4::sampleS() | |
| 35469 | 35527 | ,Obj4::sampleSbyte() |
| 35470 | 35528 | ,Obj4::sampleSealed() |
| 35471 | 35529 | ,Obj4::sampleSel() |
| @@ -37634,6 +37692,107 @@ class Right { | ||
| 37634 | 37692 | } |
| 37635 | 37693 | } |
| 37636 | 37694 | |
| 37695 | +// This is an autogenerated file:S | |
| 37696 | + | |
| 37697 | +class S { | |
| 37698 | + private int $s; // json:s Required | |
| 37699 | + | |
| 37700 | + /** | |
| 37701 | + * @param int $s | |
| 37702 | + */ | |
| 37703 | + public function __construct(int $s) { | |
| 37704 | + $this->s = $s; | |
| 37705 | + } | |
| 37706 | + | |
| 37707 | + /** | |
| 37708 | + * @param int $value | |
| 37709 | + * @throws Exception | |
| 37710 | + * @return int | |
| 37711 | + */ | |
| 37712 | + public static function fromS(int $value): int { | |
| 37713 | + return $value; /*int*/ | |
| 37714 | + } | |
| 37715 | + | |
| 37716 | + /** | |
| 37717 | + * @throws Exception | |
| 37718 | + * @return int | |
| 37719 | + */ | |
| 37720 | + public function toS(): int { | |
| 37721 | + if (S::validateS($this->s)) { | |
| 37722 | + return $this->s; /*int*/ | |
| 37723 | + } | |
| 37724 | + throw new Exception('never get to this S::s'); | |
| 37725 | + } | |
| 37726 | + | |
| 37727 | + /** | |
| 37728 | + * @param int | |
| 37729 | + * @return bool | |
| 37730 | + * @throws Exception | |
| 37731 | + */ | |
| 37732 | + public static function validateS(int $value): bool { | |
| 37733 | + return true; | |
| 37734 | + } | |
| 37735 | + | |
| 37736 | + /** | |
| 37737 | + * @throws Exception | |
| 37738 | + * @return int | |
| 37739 | + */ | |
| 37740 | + public function getS(): int { | |
| 37741 | + if (S::validateS($this->s)) { | |
| 37742 | + return $this->s; | |
| 37743 | + } | |
| 37744 | + throw new Exception('never get to getS S::s'); | |
| 37745 | + } | |
| 37746 | + | |
| 37747 | + /** | |
| 37748 | + * @return int | |
| 37749 | + */ | |
| 37750 | + public static function sampleS(): int { | |
| 37751 | + return 31; /*31:s*/ | |
| 37752 | + } | |
| 37753 | + | |
| 37754 | + /** | |
| 37755 | + * @throws Exception | |
| 37756 | + * @return bool | |
| 37757 | + */ | |
| 37758 | + public function validate(): bool { | |
| 37759 | + return S::validateS($this->s); | |
| 37760 | + } | |
| 37761 | + | |
| 37762 | + /** | |
| 37763 | + * @return stdClass | |
| 37764 | + * @throws Exception | |
| 37765 | + */ | |
| 37766 | + public function to(): stdClass { | |
| 37767 | + $out = new stdClass(); | |
| 37768 | + $out->{'s'} = $this->toS(); | |
| 37769 | + return $out; | |
| 37770 | + } | |
| 37771 | + | |
| 37772 | + /** | |
| 37773 | + * @param stdClass $obj | |
| 37774 | + * @return S | |
| 37775 | + * @throws Exception | |
| 37776 | + */ | |
| 37777 | + public static function from(stdClass $obj): S { | |
| 37778 | + if (!property_exists($obj, 's')) { | |
| 37779 | + throw new Exception("Missing required property"); | |
| 37780 | + } | |
| 37781 | + return new S( | |
| 37782 | + S::fromS($obj->{'s'}) | |
| 37783 | + ); | |
| 37784 | + } | |
| 37785 | + | |
| 37786 | + /** | |
| 37787 | + * @return S | |
| 37788 | + */ | |
| 37789 | + public static function sample(): S { | |
| 37790 | + return new S( | |
| 37791 | + S::sampleS() | |
| 37792 | + ); | |
| 37793 | + } | |
| 37794 | +} | |
| 37795 | + | |
| 37637 | 37796 | // This is an autogenerated file:Sbyte |
| 37638 | 37797 | |
| 37639 | 37798 | class Sbyte { |
Mpikedefault / TopLevel.pmod+24 −0
| @@ -4818,6 +4818,7 @@ class Obj4 { | ||
| 4818 | 4818 | Retain retain; // json: "retain" |
| 4819 | 4819 | Rethrows rethrows; // json: "rethrows" |
| 4820 | 4820 | Right right; // json: "right" |
| 4821 | + S s; // json: "s" | |
| 4821 | 4822 | Sbyte sbyte; // json: "sbyte" |
| 4822 | 4823 | Sealed sealed; // json: "sealed" |
| 4823 | 4824 | Sel sel; // json: "SEL" |
| @@ -4886,6 +4887,7 @@ class Obj4 { | ||
| 4886 | 4887 | "retain" : retain, |
| 4887 | 4888 | "rethrows" : rethrows, |
| 4888 | 4889 | "right" : right, |
| 4890 | + "s" : s, | |
| 4889 | 4891 | "sbyte" : sbyte, |
| 4890 | 4892 | "sealed" : sealed, |
| 4891 | 4893 | "SEL" : sel, |
| @@ -4961,6 +4963,7 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 4961 | 4963 | retval.retain = json["retain"]; |
| 4962 | 4964 | retval.rethrows = json["rethrows"]; |
| 4963 | 4965 | retval.right = json["right"]; |
| 4966 | + retval.s = json["s"]; | |
| 4964 | 4967 | retval.sbyte = json["sbyte"]; |
| 4965 | 4968 | retval.sealed = json["sealed"]; |
| 4966 | 4969 | retval.sel = json["SEL"]; |
| @@ -5529,6 +5532,27 @@ Right Right_from_JSON(mixed json) { | ||
| 5529 | 5532 | return retval; |
| 5530 | 5533 | } |
| 5531 | 5534 | |
| 5535 | +class S { | |
| 5536 | + int s; // json: "s" | |
| 5537 | + | |
| 5538 | + string encode_json() { | |
| 5539 | + mapping(string:mixed) json = ([ | |
| 5540 | + "s" : s, | |
| 5541 | + ]); | |
| 5542 | + | |
| 5543 | + return Standards.JSON.encode(json); | |
| 5544 | + } | |
| 5545 | +} | |
| 5546 | + | |
| 5547 | +S S_from_JSON(mixed json) { | |
| 5548 | + S retval = S(); | |
| 5549 | + | |
| 5550 | + if (!intp(json["s"])) error("Expected integer"); | |
| 5551 | + retval.s = json["s"]; | |
| 5552 | + | |
| 5553 | + return retval; | |
| 5554 | +} | |
| 5555 | + | |
| 5532 | 5556 | class Sbyte { |
| 5533 | 5557 | int sbyte; // json: "sbyte" |
Mpythondefault / quicktype.py+20 −1
| @@ -4120,6 +4120,22 @@ class Right: | ||
| 4120 | 4120 | return result |
| 4121 | 4121 | |
| 4122 | 4122 | |
| 4123 | +@dataclass | |
| 4124 | +class S: | |
| 4125 | + s: int | |
| 4126 | + | |
| 4127 | + @staticmethod | |
| 4128 | + def from_dict(obj: Any) -> 'S': | |
| 4129 | + assert isinstance(obj, dict) | |
| 4130 | + s = from_int(obj.get("s")) | |
| 4131 | + return S(s) | |
| 4132 | + | |
| 4133 | + def to_dict(self) -> dict: | |
| 4134 | + result: dict = {} | |
| 4135 | + result["s"] = from_int(self.s) | |
| 4136 | + return result | |
| 4137 | + | |
| 4138 | + | |
| 4123 | 4139 | @dataclass |
| 4124 | 4140 | class Sbyte: |
| 4125 | 4141 | sbyte: int |
| @@ -4816,6 +4832,7 @@ class Obj4: | ||
| 4816 | 4832 | rethrows: Rethrows |
| 4817 | 4833 | obj4_return: Return |
| 4818 | 4834 | right: Right |
| 4835 | + s: S | |
| 4819 | 4836 | sbyte: Sbyte |
| 4820 | 4837 | sealed: Sealed |
| 4821 | 4838 | select: Select |
| @@ -4885,6 +4902,7 @@ class Obj4: | ||
| 4885 | 4902 | rethrows = Rethrows.from_dict(obj.get("rethrows")) |
| 4886 | 4903 | obj4_return = Return.from_dict(obj.get("return")) |
| 4887 | 4904 | right = Right.from_dict(obj.get("right")) |
| 4905 | + s = S.from_dict(obj.get("s")) | |
| 4888 | 4906 | sbyte = Sbyte.from_dict(obj.get("sbyte")) |
| 4889 | 4907 | sealed = Sealed.from_dict(obj.get("sealed")) |
| 4890 | 4908 | select = Select.from_dict(obj.get("select")) |
| @@ -4928,7 +4946,7 @@ class Obj4: | ||
| 4928 | 4946 | ulong = Ulong.from_dict(obj.get("ulong")) |
| 4929 | 4947 | unchecked = Unchecked.from_dict(obj.get("unchecked")) |
| 4930 | 4948 | undefined = Undefined.from_dict(obj.get("undefined")) |
| 4931 | - return Obj4(sel, obj4_self, true, type, dummy, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, sbyte, sealed, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_json, top_level, transient, obj4_true, obj4_try, obj4_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined) | |
| 4949 | + return Obj4(sel, obj4_self, true, type, dummy, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, s, sbyte, sealed, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_json, top_level, transient, obj4_true, obj4_try, obj4_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined) | |
| 4932 | 4950 | |
| 4933 | 4951 | def to_dict(self) -> dict: |
| 4934 | 4952 | result: dict = {} |
| @@ -4954,6 +4972,7 @@ class Obj4: | ||
| 4954 | 4972 | result["rethrows"] = to_class(Rethrows, self.rethrows) |
| 4955 | 4973 | result["return"] = to_class(Return, self.obj4_return) |
| 4956 | 4974 | result["right"] = to_class(Right, self.right) |
| 4975 | + result["s"] = to_class(S, self.s) | |
| 4957 | 4976 | result["sbyte"] = to_class(Sbyte, self.sbyte) |
| 4958 | 4977 | result["sealed"] = to_class(Sealed, self.sealed) |
| 4959 | 4978 | result["select"] = to_class(Select, self.select) |
Mrubydefault / TopLevel.rb+28 −0
| @@ -6229,6 +6229,31 @@ class Right < Dry::Struct | ||
| 6229 | 6229 | end |
| 6230 | 6230 | end |
| 6231 | 6231 | |
| 6232 | +class S < Dry::Struct | |
| 6233 | + attribute :s, Types::Integer | |
| 6234 | + | |
| 6235 | + def self.from_dynamic!(d) | |
| 6236 | + d = Types::Hash[d] | |
| 6237 | + new( | |
| 6238 | + s: d.fetch("s"), | |
| 6239 | + ) | |
| 6240 | + end | |
| 6241 | + | |
| 6242 | + def self.from_json!(json) | |
| 6243 | + from_dynamic!(JSON.parse(json)) | |
| 6244 | + end | |
| 6245 | + | |
| 6246 | + def to_dynamic | |
| 6247 | + { | |
| 6248 | + "s" => s, | |
| 6249 | + } | |
| 6250 | + end | |
| 6251 | + | |
| 6252 | + def to_json(options = nil) | |
| 6253 | + JSON.generate(to_dynamic, options) | |
| 6254 | + end | |
| 6255 | +end | |
| 6256 | + | |
| 6232 | 6257 | class Sbyte < Dry::Struct |
| 6233 | 6258 | attribute :sbyte, Types::Integer |
| 6234 | 6259 | |
| @@ -7183,6 +7208,7 @@ class Obj4 < Dry::Struct | ||
| 7183 | 7208 | attribute :retain, Retain |
| 7184 | 7209 | attribute :rethrows, Rethrows |
| 7185 | 7210 | attribute :right, Right |
| 7211 | + attribute :s, S | |
| 7186 | 7212 | attribute :sbyte, Sbyte |
| 7187 | 7213 | attribute :sealed, Sealed |
| 7188 | 7214 | attribute :sel, Sel |
| @@ -7252,6 +7278,7 @@ class Obj4 < Dry::Struct | ||
| 7252 | 7278 | retain: Retain.from_dynamic!(d.fetch("retain")), |
| 7253 | 7279 | rethrows: Rethrows.from_dynamic!(d.fetch("rethrows")), |
| 7254 | 7280 | right: Right.from_dynamic!(d.fetch("right")), |
| 7281 | + s: S.from_dynamic!(d.fetch("s")), | |
| 7255 | 7282 | sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")), |
| 7256 | 7283 | sealed: Sealed.from_dynamic!(d.fetch("sealed")), |
| 7257 | 7284 | sel: Sel.from_dynamic!(d.fetch("SEL")), |
| @@ -7326,6 +7353,7 @@ class Obj4 < Dry::Struct | ||
| 7326 | 7353 | "retain" => retain.to_dynamic, |
| 7327 | 7354 | "rethrows" => rethrows.to_dynamic, |
| 7328 | 7355 | "right" => right.to_dynamic, |
| 7356 | + "s" => s.to_dynamic, | |
| 7329 | 7357 | "sbyte" => sbyte.to_dynamic, |
| 7330 | 7358 | "sealed" => sealed.to_dynamic, |
| 7331 | 7359 | "SEL" => sel.to_dynamic, |
Mrustdefault / module_under_test.rs+7 −0
| @@ -1565,6 +1565,8 @@ pub struct Obj4 { | ||
| 1565 | 1565 | |
| 1566 | 1566 | pub right: Right, |
| 1567 | 1567 | |
| 1568 | + pub s: S, | |
| 1569 | + | |
| 1568 | 1570 | pub sbyte: Sbyte, |
| 1569 | 1571 | |
| 1570 | 1572 | pub sealed: Sealed, |
| @@ -1795,6 +1797,11 @@ pub struct Right { | ||
| 1795 | 1797 | pub right: i64, |
| 1796 | 1798 | } |
| 1797 | 1799 | |
| 1800 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1801 | +pub struct S { | |
| 1802 | + pub s: i64, | |
| 1803 | +} | |
| 1804 | + | |
| 1798 | 1805 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1799 | 1806 | pub struct Sbyte { |
| 1800 | 1807 | pub sbyte: i64, |
Mscala3-upickledefault / TopLevel.scala+5 −0
| @@ -1097,6 +1097,7 @@ case class Obj4 ( | ||
| 1097 | 1097 | val retain : Retain, |
| 1098 | 1098 | val rethrows : Rethrows, |
| 1099 | 1099 | val right : Right, |
| 1100 | + val s : S, | |
| 1100 | 1101 | val sbyte : Sbyte, |
| 1101 | 1102 | val SEL : Sel, |
| 1102 | 1103 | val select : Select, |
| @@ -1248,6 +1249,10 @@ case class Right ( | ||
| 1248 | 1249 | val right : Long |
| 1249 | 1250 | ) derives OptionPickler.ReadWriter |
| 1250 | 1251 | |
| 1252 | +case class S ( | |
| 1253 | + val s : Long | |
| 1254 | +) derives OptionPickler.ReadWriter | |
| 1255 | + | |
| 1251 | 1256 | case class Sbyte ( |
| 1252 | 1257 | val sbyte : Long |
| 1253 | 1258 | ) derives OptionPickler.ReadWriter |
Mscala3default / TopLevel.scala+5 −0
| @@ -1061,6 +1061,7 @@ case class Obj4 ( | ||
| 1061 | 1061 | val retain : Retain, |
| 1062 | 1062 | val rethrows : Rethrows, |
| 1063 | 1063 | val right : Right, |
| 1064 | + val s : S, | |
| 1064 | 1065 | val sbyte : Sbyte, |
| 1065 | 1066 | val SEL : Sel, |
| 1066 | 1067 | val select : Select, |
| @@ -1220,6 +1221,10 @@ case class Right ( | ||
| 1220 | 1221 | val right : Long |
| 1221 | 1222 | ) derives Encoder.AsObject, Decoder |
| 1222 | 1223 | |
| 1224 | +case class S ( | |
| 1225 | + val s : Long | |
| 1226 | +) derives Encoder.AsObject, Decoder | |
| 1227 | + | |
| 1223 | 1228 | case class Sbyte ( |
| 1224 | 1229 | val sbyte : Long |
| 1225 | 1230 | ) derives Encoder.AsObject, Decoder |
Mswiftdefault / quicktype.swift+48 −0
| @@ -9596,6 +9596,7 @@ struct Obj4: Codable { | ||
| 9596 | 9596 | let requires: Requires |
| 9597 | 9597 | let restrict: Restrict |
| 9598 | 9598 | let retain: Retain |
| 9599 | + let s: S | |
| 9599 | 9600 | let sbyte: Sbyte |
| 9600 | 9601 | let sealed: Sealed |
| 9601 | 9602 | let sel: Sel |
| @@ -9663,6 +9664,7 @@ struct Obj4: Codable { | ||
| 9663 | 9664 | case requires = "requires" |
| 9664 | 9665 | case restrict = "restrict" |
| 9665 | 9666 | case retain = "retain" |
| 9667 | + case s = "s" | |
| 9666 | 9668 | case sbyte = "sbyte" |
| 9667 | 9669 | case sealed = "sealed" |
| 9668 | 9670 | case sel = "SEL" |
| @@ -9750,6 +9752,7 @@ extension Obj4 { | ||
| 9750 | 9752 | requires: Requires? = nil, |
| 9751 | 9753 | restrict: Restrict? = nil, |
| 9752 | 9754 | retain: Retain? = nil, |
| 9755 | + s: S? = nil, | |
| 9753 | 9756 | sbyte: Sbyte? = nil, |
| 9754 | 9757 | sealed: Sealed? = nil, |
| 9755 | 9758 | sel: Sel? = nil, |
| @@ -9817,6 +9820,7 @@ extension Obj4 { | ||
| 9817 | 9820 | requires: requires ?? self.requires, |
| 9818 | 9821 | restrict: restrict ?? self.restrict, |
| 9819 | 9822 | retain: retain ?? self.retain, |
| 9823 | + s: s ?? self.s, | |
| 9820 | 9824 | sbyte: sbyte ?? self.sbyte, |
| 9821 | 9825 | sealed: sealed ?? self.sealed, |
| 9822 | 9826 | sel: sel ?? self.sel, |
| @@ -11269,6 +11273,50 @@ extension Retain { | ||
| 11269 | 11273 | } |
| 11270 | 11274 | } |
| 11271 | 11275 | |
| 11276 | +// MARK: - S | |
| 11277 | +struct S: Codable { | |
| 11278 | + let s: Int | |
| 11279 | + | |
| 11280 | + enum CodingKeys: String, CodingKey { | |
| 11281 | + case s = "s" | |
| 11282 | + } | |
| 11283 | +} | |
| 11284 | + | |
| 11285 | +// MARK: S convenience initializers and mutators | |
| 11286 | + | |
| 11287 | +extension S { | |
| 11288 | + init(data: Data) throws { | |
| 11289 | + self = try newJSONDecoder().decode(S.self, from: data) | |
| 11290 | + } | |
| 11291 | + | |
| 11292 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11293 | + guard let data = json.data(using: encoding) else { | |
| 11294 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11295 | + } | |
| 11296 | + try self.init(data: data) | |
| 11297 | + } | |
| 11298 | + | |
| 11299 | + init(fromURL url: URL) throws { | |
| 11300 | + try self.init(data: try Data(contentsOf: url)) | |
| 11301 | + } | |
| 11302 | + | |
| 11303 | + func with( | |
| 11304 | + s: Int? = nil | |
| 11305 | + ) -> S { | |
| 11306 | + return S( | |
| 11307 | + s: s ?? self.s | |
| 11308 | + ) | |
| 11309 | + } | |
| 11310 | + | |
| 11311 | + func jsonData() throws -> Data { | |
| 11312 | + return try newJSONEncoder().encode(self) | |
| 11313 | + } | |
| 11314 | + | |
| 11315 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11316 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11317 | + } | |
| 11318 | +} | |
| 11319 | + | |
| 11272 | 11320 | // MARK: - Sbyte |
| 11273 | 11321 | struct Sbyte: Codable { |
| 11274 | 11322 | let sbyte: Int |
Mtypescript-effect-schemadefault / TopLevel.ts+5 −0
| @@ -281,6 +281,10 @@ export class Sbyte extends S.Class<Sbyte>("Sbyte")({ | ||
| 281 | 281 | "sbyte": S.Int, |
| 282 | 282 | }) {} |
| 283 | 283 | |
| 284 | +export class SClass extends S.Class<SClass>("SClass")({ | |
| 285 | + "s": S.Int, | |
| 286 | +}) {} | |
| 287 | + | |
| 284 | 288 | export class Right extends S.Class<Right>("Right")({ |
| 285 | 289 | "right": S.Int, |
| 286 | 290 | }) {} |
| @@ -383,6 +387,7 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 383 | 387 | "rethrows": Rethrows, |
| 384 | 388 | "return": Return, |
| 385 | 389 | "right": Right, |
| 390 | + "s": SClass, | |
| 386 | 391 | "sbyte": Sbyte, |
| 387 | 392 | "sealed": Sealed, |
| 388 | 393 | "SEL": Sel, |
Mtypescript-zoddefault / TopLevel.ts+6 −0
| @@ -1076,6 +1076,11 @@ export const RightSchema = z.object({ | ||
| 1076 | 1076 | }); |
| 1077 | 1077 | export type Right = z.infer<typeof RightSchema>; |
| 1078 | 1078 | |
| 1079 | +export const SSchema = z.object({ | |
| 1080 | + "s": z.number().int(), | |
| 1081 | +}); | |
| 1082 | +export type S = z.infer<typeof SSchema>; | |
| 1083 | + | |
| 1079 | 1084 | export const SbyteSchema = z.object({ |
| 1080 | 1085 | "sbyte": z.number().int(), |
| 1081 | 1086 | }); |
| @@ -1628,6 +1633,7 @@ export const Obj4Schema = z.object({ | ||
| 1628 | 1633 | "rethrows": RethrowsSchema, |
| 1629 | 1634 | "return": ReturnSchema, |
| 1630 | 1635 | "right": RightSchema, |
| 1636 | + "s": SSchema, | |
| 1631 | 1637 | "sbyte": SbyteSchema, |
| 1632 | 1638 | "sealed": SealedSchema, |
| 1633 | 1639 | "SEL": SelSchema, |
Mtypescriptdefault / TopLevel.ts+13 −4
| @@ -73,7 +73,7 @@ export interface Obj1 { | ||
| 73 | 73 | constructor: Constructor; |
| 74 | 74 | continue: Continue; |
| 75 | 75 | convenience: Convenience; |
| 76 | - convert: Convert; | |
| 76 | + convert: ConvertClass; | |
| 77 | 77 | converter: Converter; |
| 78 | 78 | date: DateClass; |
| 79 | 79 | date_parse_handling: DateParseHandling; |
| @@ -309,7 +309,7 @@ export interface Convenience { | ||
| 309 | 309 | convenience: number; |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | -export interface Convert { | |
| 312 | +export interface ConvertClass { | |
| 313 | 313 | convert: number; |
| 314 | 314 | } |
| 315 | 315 | |
| @@ -1026,6 +1026,7 @@ export interface Obj4 { | ||
| 1026 | 1026 | rethrows: Rethrows; |
| 1027 | 1027 | return: Return; |
| 1028 | 1028 | right: Right; |
| 1029 | + s: S; | |
| 1029 | 1030 | sbyte: Sbyte; |
| 1030 | 1031 | sealed: Sealed; |
| 1031 | 1032 | select: Select; |
| @@ -1155,6 +1156,10 @@ export interface Right { | ||
| 1155 | 1156 | right: number; |
| 1156 | 1157 | } |
| 1157 | 1158 | |
| 1159 | +export interface S { | |
| 1160 | + s: number; | |
| 1161 | +} | |
| 1162 | + | |
| 1158 | 1163 | export interface Sbyte { |
| 1159 | 1164 | sbyte: number; |
| 1160 | 1165 | } |
| @@ -1683,7 +1688,7 @@ const typeMap: any = { | ||
| 1683 | 1688 | { json: "constructor", js: "constructor", typ: r("Constructor") }, |
| 1684 | 1689 | { json: "continue", js: "continue", typ: r("Continue") }, |
| 1685 | 1690 | { json: "convenience", js: "convenience", typ: r("Convenience") }, |
| 1686 | - { json: "convert", js: "convert", typ: r("Convert") }, | |
| 1691 | + { json: "convert", js: "convert", typ: r("ConvertClass") }, | |
| 1687 | 1692 | { json: "converter", js: "converter", typ: r("Converter") }, |
| 1688 | 1693 | { json: "date", js: "date", typ: r("DateClass") }, |
| 1689 | 1694 | { json: "date_parse_handling", js: "date_parse_handling", typ: r("DateParseHandling") }, |
| @@ -1862,7 +1867,7 @@ const typeMap: any = { | ||
| 1862 | 1867 | "Convenience": o([ |
| 1863 | 1868 | { json: "convenience", js: "convenience", typ: i(0) }, |
| 1864 | 1869 | ], false), |
| 1865 | - "Convert": o([ | |
| 1870 | + "ConvertClass": o([ | |
| 1866 | 1871 | { json: "convert", js: "convert", typ: i(0) }, |
| 1867 | 1872 | ], false), |
| 1868 | 1873 | "Converter": o([ |
| @@ -2438,6 +2443,7 @@ const typeMap: any = { | ||
| 2438 | 2443 | { json: "rethrows", js: "rethrows", typ: r("Rethrows") }, |
| 2439 | 2444 | { json: "return", js: "return", typ: r("Return") }, |
| 2440 | 2445 | { json: "right", js: "right", typ: r("Right") }, |
| 2446 | + { json: "s", js: "s", typ: r("S") }, | |
| 2441 | 2447 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2442 | 2448 | { json: "sealed", js: "sealed", typ: r("Sealed") }, |
| 2443 | 2449 | { json: "select", js: "select", typ: r("Select") }, |
| @@ -2545,6 +2551,9 @@ const typeMap: any = { | ||
| 2545 | 2551 | "Right": o([ |
| 2546 | 2552 | { json: "right", js: "right", typ: i(0) }, |
| 2547 | 2553 | ], false), |
| 2554 | + "S": o([ | |
| 2555 | + { json: "s", js: "s", typ: i(0) }, | |
| 2556 | + ], false), | |
| 2548 | 2557 | "Sbyte": o([ |
| 2549 | 2558 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2550 | 2559 | ], false), |
Atypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+2,769 −0
| @@ -0,0 +1,2769 @@ | ||
| 1 | +// To parse this data: | |
| 2 | +// | |
| 3 | +// import { Convert, TopLevel } from "./TopLevel"; | |
| 4 | +// | |
| 5 | +// const topLevel = Convert.toTopLevel(json); | |
| 6 | +// | |
| 7 | +// These functions will throw an error if the JSON doesn't | |
| 8 | +// match the expected interface, even if the JSON is valid. | |
| 9 | + | |
| 10 | +export type TopLevel = { | |
| 11 | + dummy: number; | |
| 12 | + obj1: Obj1; | |
| 13 | + obj2: Obj2; | |
| 14 | + obj3: Obj3; | |
| 15 | + obj4: Obj4; | |
| 16 | + obj5: Obj5; | |
| 17 | +} | |
| 18 | + | |
| 19 | +export type Obj1 = { | |
| 20 | + Any: Any; | |
| 21 | + BOOL: Bool; | |
| 22 | + Class: Class; | |
| 23 | + _: Empty; | |
| 24 | + _Bool: BoolClass; | |
| 25 | + _Complex: Complex; | |
| 26 | + _Imaginery: Imaginery; | |
| 27 | + abstract: Abstract; | |
| 28 | + alignas: Alignas; | |
| 29 | + alignof: Alignof; | |
| 30 | + and: And; | |
| 31 | + and_eq: AndEq; | |
| 32 | + any: AnyClass; | |
| 33 | + array: ArrayClass; | |
| 34 | + as: As; | |
| 35 | + asm: ASM; | |
| 36 | + assert: Assert; | |
| 37 | + associatedtype: Associatedtype; | |
| 38 | + associativity: Associativity; | |
| 39 | + async: Async; | |
| 40 | + atomic: Atomic; | |
| 41 | + atomic_cancel: AtomicCancel; | |
| 42 | + atomic_commit: AtomicCommit; | |
| 43 | + atomic_noexcept: AtomicNoexcept; | |
| 44 | + auto: Auto; | |
| 45 | + await: Await; | |
| 46 | + base: Base; | |
| 47 | + bitand: Bitand; | |
| 48 | + bitor: Bitor; | |
| 49 | + bool: Obj1Bool; | |
| 50 | + boolean: Boolean; | |
| 51 | + break: Break; | |
| 52 | + bycopy: Bycopy; | |
| 53 | + byref: Byref; | |
| 54 | + byte: Byte; | |
| 55 | + case: Case; | |
| 56 | + catch: Catch; | |
| 57 | + chan: Chan; | |
| 58 | + char: Char; | |
| 59 | + char16_t: Char16T; | |
| 60 | + char32_t: Char32T; | |
| 61 | + checked: Checked; | |
| 62 | + class: ClassClass; | |
| 63 | + clone: Clone; | |
| 64 | + co_await: CoAwait; | |
| 65 | + co_return: CoReturn; | |
| 66 | + co_yield: CoYield; | |
| 67 | + compl: Compl; | |
| 68 | + concept: Concept; | |
| 69 | + console: Console; | |
| 70 | + const: Const; | |
| 71 | + const_cast: ConstCast; | |
| 72 | + constexpr: Constexpr; | |
| 73 | + constructor: Constructor; | |
| 74 | + continue: Continue; | |
| 75 | + convenience: Convenience; | |
| 76 | + convert: ConvertClass; | |
| 77 | + converter: Converter; | |
| 78 | + date: DateClass; | |
| 79 | + date_parse_handling: DateParseHandling; | |
| 80 | + debugger: Debugger; | |
| 81 | + decimal: Decimal; | |
| 82 | + declare: Declare; | |
| 83 | + decltype: Decltype; | |
| 84 | + decode_string: DecodeString; | |
| 85 | + dummy: number; | |
| 86 | +} | |
| 87 | + | |
| 88 | +export type Any = { | |
| 89 | + Any: number; | |
| 90 | +} | |
| 91 | + | |
| 92 | +export type Bool = { | |
| 93 | + BOOL: number; | |
| 94 | +} | |
| 95 | + | |
| 96 | +export type Class = { | |
| 97 | + Class: number; | |
| 98 | +} | |
| 99 | + | |
| 100 | +export type Empty = { | |
| 101 | + _: number; | |
| 102 | +} | |
| 103 | + | |
| 104 | +export type BoolClass = { | |
| 105 | + _Bool: number; | |
| 106 | +} | |
| 107 | + | |
| 108 | +export type Complex = { | |
| 109 | + _Complex: number; | |
| 110 | +} | |
| 111 | + | |
| 112 | +export type Imaginery = { | |
| 113 | + _Imaginery: number; | |
| 114 | +} | |
| 115 | + | |
| 116 | +export type Abstract = { | |
| 117 | + abstract: number; | |
| 118 | +} | |
| 119 | + | |
| 120 | +export type Alignas = { | |
| 121 | + alignas: number; | |
| 122 | +} | |
| 123 | + | |
| 124 | +export type Alignof = { | |
| 125 | + alignof: number; | |
| 126 | +} | |
| 127 | + | |
| 128 | +export type And = { | |
| 129 | + and: number; | |
| 130 | +} | |
| 131 | + | |
| 132 | +export type AndEq = { | |
| 133 | + and_eq: number; | |
| 134 | +} | |
| 135 | + | |
| 136 | +export type AnyClass = { | |
| 137 | + any: number; | |
| 138 | +} | |
| 139 | + | |
| 140 | +export type ArrayClass = { | |
| 141 | + array: number; | |
| 142 | +} | |
| 143 | + | |
| 144 | +export type As = { | |
| 145 | + as: number; | |
| 146 | +} | |
| 147 | + | |
| 148 | +export type ASM = { | |
| 149 | + asm: number; | |
| 150 | +} | |
| 151 | + | |
| 152 | +export type Assert = { | |
| 153 | + assert: number; | |
| 154 | +} | |
| 155 | + | |
| 156 | +export type Associatedtype = { | |
| 157 | + associatedtype: number; | |
| 158 | +} | |
| 159 | + | |
| 160 | +export type Associativity = { | |
| 161 | + associativity: number; | |
| 162 | +} | |
| 163 | + | |
| 164 | +export type Async = { | |
| 165 | + async: number; | |
| 166 | +} | |
| 167 | + | |
| 168 | +export type Atomic = { | |
| 169 | + atomic: number; | |
| 170 | +} | |
| 171 | + | |
| 172 | +export type AtomicCancel = { | |
| 173 | + atomic_cancel: number; | |
| 174 | +} | |
| 175 | + | |
| 176 | +export type AtomicCommit = { | |
| 177 | + atomic_commit: number; | |
| 178 | +} | |
| 179 | + | |
| 180 | +export type AtomicNoexcept = { | |
| 181 | + atomic_noexcept: number; | |
| 182 | +} | |
| 183 | + | |
| 184 | +export type Auto = { | |
| 185 | + auto: number; | |
| 186 | +} | |
| 187 | + | |
| 188 | +export type Await = { | |
| 189 | + await: number; | |
| 190 | +} | |
| 191 | + | |
| 192 | +export type Base = { | |
| 193 | + base: number; | |
| 194 | +} | |
| 195 | + | |
| 196 | +export type Bitand = { | |
| 197 | + bitand: number; | |
| 198 | +} | |
| 199 | + | |
| 200 | +export type Bitor = { | |
| 201 | + bitor: number; | |
| 202 | +} | |
| 203 | + | |
| 204 | +export type Obj1Bool = { | |
| 205 | + bool: number; | |
| 206 | +} | |
| 207 | + | |
| 208 | +export type Boolean = { | |
| 209 | + boolean: number; | |
| 210 | +} | |
| 211 | + | |
| 212 | +export type Break = { | |
| 213 | + break: number; | |
| 214 | +} | |
| 215 | + | |
| 216 | +export type Bycopy = { | |
| 217 | + bycopy: number; | |
| 218 | +} | |
| 219 | + | |
| 220 | +export type Byref = { | |
| 221 | + byref: number; | |
| 222 | +} | |
| 223 | + | |
| 224 | +export type Byte = { | |
| 225 | + byte: number; | |
| 226 | +} | |
| 227 | + | |
| 228 | +export type Case = { | |
| 229 | + case: number; | |
| 230 | +} | |
| 231 | + | |
| 232 | +export type Catch = { | |
| 233 | + catch: number; | |
| 234 | +} | |
| 235 | + | |
| 236 | +export type Chan = { | |
| 237 | + chan: number; | |
| 238 | +} | |
| 239 | + | |
| 240 | +export type Char = { | |
| 241 | + char: number; | |
| 242 | +} | |
| 243 | + | |
| 244 | +export type Char16T = { | |
| 245 | + char16_t: number; | |
| 246 | +} | |
| 247 | + | |
| 248 | +export type Char32T = { | |
| 249 | + char32_t: number; | |
| 250 | +} | |
| 251 | + | |
| 252 | +export type Checked = { | |
| 253 | + checked: number; | |
| 254 | +} | |
| 255 | + | |
| 256 | +export type ClassClass = { | |
| 257 | + class: number; | |
| 258 | +} | |
| 259 | + | |
| 260 | +export type Clone = { | |
| 261 | + clone: number; | |
| 262 | +} | |
| 263 | + | |
| 264 | +export type CoAwait = { | |
| 265 | + co_await: number; | |
| 266 | +} | |
| 267 | + | |
| 268 | +export type CoReturn = { | |
| 269 | + co_return: number; | |
| 270 | +} | |
| 271 | + | |
| 272 | +export type CoYield = { | |
| 273 | + co_yield: number; | |
| 274 | +} | |
| 275 | + | |
| 276 | +export type Compl = { | |
| 277 | + compl: number; | |
| 278 | +} | |
| 279 | + | |
| 280 | +export type Concept = { | |
| 281 | + concept: number; | |
| 282 | +} | |
| 283 | + | |
| 284 | +export type Console = { | |
| 285 | + console: number; | |
| 286 | +} | |
| 287 | + | |
| 288 | +export type Const = { | |
| 289 | + const: number; | |
| 290 | +} | |
| 291 | + | |
| 292 | +export type ConstCast = { | |
| 293 | + const_cast: number; | |
| 294 | +} | |
| 295 | + | |
| 296 | +export type Constexpr = { | |
| 297 | + constexpr: number; | |
| 298 | +} | |
| 299 | + | |
| 300 | +export type Constructor = { | |
| 301 | + constructor: number; | |
| 302 | +} | |
| 303 | + | |
| 304 | +export type Continue = { | |
| 305 | + continue: number; | |
| 306 | +} | |
| 307 | + | |
| 308 | +export type Convenience = { | |
| 309 | + convenience: number; | |
| 310 | +} | |
| 311 | + | |
| 312 | +export type ConvertClass = { | |
| 313 | + convert: number; | |
| 314 | +} | |
| 315 | + | |
| 316 | +export type Converter = { | |
| 317 | + converter: number; | |
| 318 | +} | |
| 319 | + | |
| 320 | +export type DateClass = { | |
| 321 | + date: number; | |
| 322 | +} | |
| 323 | + | |
| 324 | +export type DateParseHandling = { | |
| 325 | + date_parse_handling: number; | |
| 326 | +} | |
| 327 | + | |
| 328 | +export type Debugger = { | |
| 329 | + debugger: number; | |
| 330 | +} | |
| 331 | + | |
| 332 | +export type Decimal = { | |
| 333 | + decimal: number; | |
| 334 | +} | |
| 335 | + | |
| 336 | +export type Declare = { | |
| 337 | + declare: number; | |
| 338 | +} | |
| 339 | + | |
| 340 | +export type Decltype = { | |
| 341 | + decltype: number; | |
| 342 | +} | |
| 343 | + | |
| 344 | +export type DecodeString = { | |
| 345 | + decode_string: number; | |
| 346 | +} | |
| 347 | + | |
| 348 | +export type Obj2 = { | |
| 349 | + False: False; | |
| 350 | + IMP: Imp; | |
| 351 | + def: Def; | |
| 352 | + default: Default; | |
| 353 | + defer: Defer; | |
| 354 | + deinit: Deinit; | |
| 355 | + del: Del; | |
| 356 | + delegate: Delegate; | |
| 357 | + delete: Delete; | |
| 358 | + dict: Dict; | |
| 359 | + dictionary: Dictionary; | |
| 360 | + didSet: DidSet; | |
| 361 | + do: Do; | |
| 362 | + double: Double; | |
| 363 | + dummy: number; | |
| 364 | + dynamic: Dynamic; | |
| 365 | + dynamic_cast: DynamicCast; | |
| 366 | + elif: Elif; | |
| 367 | + else: Else; | |
| 368 | + encode_quick_type: EncodeQuickType; | |
| 369 | + enum: Enum; | |
| 370 | + equalityContract: EqualityContract; | |
| 371 | + event: Event; | |
| 372 | + except: Except; | |
| 373 | + exception: Exception; | |
| 374 | + explicit: Explicit; | |
| 375 | + export: Export; | |
| 376 | + exposing: Exposing; | |
| 377 | + extends: Extends; | |
| 378 | + extension: Extension; | |
| 379 | + extern: Extern; | |
| 380 | + fallthrough: Fallthrough; | |
| 381 | + false: FalseClass; | |
| 382 | + fileprivate: Fileprivate; | |
| 383 | + final: Final; | |
| 384 | + finally: Finally; | |
| 385 | + fixed: Fixed; | |
| 386 | + float: Float; | |
| 387 | + for: For; | |
| 388 | + foreach: Foreach; | |
| 389 | + friend: Friend; | |
| 390 | + from: From; | |
| 391 | + from_json: FromJSON; | |
| 392 | + func: Func; | |
| 393 | + function: Function; | |
| 394 | + get: Get; | |
| 395 | + global: Global; | |
| 396 | + go: Go; | |
| 397 | + goto: Goto; | |
| 398 | + guard: Guard; | |
| 399 | + hasOwnProperty: HasOwnProperty; | |
| 400 | + id: ID; | |
| 401 | + if: If; | |
| 402 | + implements: Implements; | |
| 403 | + implicit: Implicit; | |
| 404 | + import: Import; | |
| 405 | + in: In; | |
| 406 | + indirect: Indirect; | |
| 407 | + infix: Infix; | |
| 408 | + init: Init; | |
| 409 | + inline: Inline; | |
| 410 | + inout: Inout; | |
| 411 | + instanceof: Instanceof; | |
| 412 | + int: Int; | |
| 413 | + interface: Interface; | |
| 414 | + internal: Internal; | |
| 415 | +} | |
| 416 | + | |
| 417 | +export type False = { | |
| 418 | + False: number; | |
| 419 | +} | |
| 420 | + | |
| 421 | +export type Imp = { | |
| 422 | + IMP: number; | |
| 423 | +} | |
| 424 | + | |
| 425 | +export type Def = { | |
| 426 | + def: number; | |
| 427 | +} | |
| 428 | + | |
| 429 | +export type Default = { | |
| 430 | + default: number; | |
| 431 | +} | |
| 432 | + | |
| 433 | +export type Defer = { | |
| 434 | + defer: number; | |
| 435 | +} | |
| 436 | + | |
| 437 | +export type Deinit = { | |
| 438 | + deinit: number; | |
| 439 | +} | |
| 440 | + | |
| 441 | +export type Del = { | |
| 442 | + del: number; | |
| 443 | +} | |
| 444 | + | |
| 445 | +export type Delegate = { | |
| 446 | + delegate: number; | |
| 447 | +} | |
| 448 | + | |
| 449 | +export type Delete = { | |
| 450 | + delete: number; | |
| 451 | +} | |
| 452 | + | |
| 453 | +export type Dict = { | |
| 454 | + dict: number; | |
| 455 | +} | |
| 456 | + | |
| 457 | +export type Dictionary = { | |
| 458 | + dictionary: number; | |
| 459 | +} | |
| 460 | + | |
| 461 | +export type DidSet = { | |
| 462 | + didSet: number; | |
| 463 | +} | |
| 464 | + | |
| 465 | +export type Do = { | |
| 466 | + do: number; | |
| 467 | +} | |
| 468 | + | |
| 469 | +export type Double = { | |
| 470 | + double: number; | |
| 471 | +} | |
| 472 | + | |
| 473 | +export type Dynamic = { | |
| 474 | + dynamic: number; | |
| 475 | +} | |
| 476 | + | |
| 477 | +export type DynamicCast = { | |
| 478 | + dynamic_cast: number; | |
| 479 | +} | |
| 480 | + | |
| 481 | +export type Elif = { | |
| 482 | + elif: number; | |
| 483 | +} | |
| 484 | + | |
| 485 | +export type Else = { | |
| 486 | + else: number; | |
| 487 | +} | |
| 488 | + | |
| 489 | +export type EncodeQuickType = { | |
| 490 | + encode_quick_type: number; | |
| 491 | +} | |
| 492 | + | |
| 493 | +export type Enum = { | |
| 494 | + enum: number; | |
| 495 | +} | |
| 496 | + | |
| 497 | +export type EqualityContract = { | |
| 498 | + equalityContract: number; | |
| 499 | +} | |
| 500 | + | |
| 501 | +export type Event = { | |
| 502 | + event: number; | |
| 503 | +} | |
| 504 | + | |
| 505 | +export type Except = { | |
| 506 | + except: number; | |
| 507 | +} | |
| 508 | + | |
| 509 | +export type Exception = { | |
| 510 | + exception: number; | |
| 511 | +} | |
| 512 | + | |
| 513 | +export type Explicit = { | |
| 514 | + explicit: number; | |
| 515 | +} | |
| 516 | + | |
| 517 | +export type Export = { | |
| 518 | + export: number; | |
| 519 | +} | |
| 520 | + | |
| 521 | +export type Exposing = { | |
| 522 | + exposing: number; | |
| 523 | +} | |
| 524 | + | |
| 525 | +export type Extends = { | |
| 526 | + extends: number; | |
| 527 | +} | |
| 528 | + | |
| 529 | +export type Extension = { | |
| 530 | + extension: number; | |
| 531 | +} | |
| 532 | + | |
| 533 | +export type Extern = { | |
| 534 | + extern: number; | |
| 535 | +} | |
| 536 | + | |
| 537 | +export type Fallthrough = { | |
| 538 | + fallthrough: number; | |
| 539 | +} | |
| 540 | + | |
| 541 | +export type FalseClass = { | |
| 542 | + false: number; | |
| 543 | +} | |
| 544 | + | |
| 545 | +export type Fileprivate = { | |
| 546 | + fileprivate: number; | |
| 547 | +} | |
| 548 | + | |
| 549 | +export type Final = { | |
| 550 | + final: number; | |
| 551 | +} | |
| 552 | + | |
| 553 | +export type Finally = { | |
| 554 | + finally: number; | |
| 555 | +} | |
| 556 | + | |
| 557 | +export type Fixed = { | |
| 558 | + fixed: number; | |
| 559 | +} | |
| 560 | + | |
| 561 | +export type Float = { | |
| 562 | + float: number; | |
| 563 | +} | |
| 564 | + | |
| 565 | +export type For = { | |
| 566 | + for: number; | |
| 567 | +} | |
| 568 | + | |
| 569 | +export type Foreach = { | |
| 570 | + foreach: number; | |
| 571 | +} | |
| 572 | + | |
| 573 | +export type Friend = { | |
| 574 | + friend: number; | |
| 575 | +} | |
| 576 | + | |
| 577 | +export type From = { | |
| 578 | + from: number; | |
| 579 | +} | |
| 580 | + | |
| 581 | +export type FromJSON = { | |
| 582 | + from_json: number; | |
| 583 | +} | |
| 584 | + | |
| 585 | +export type Func = { | |
| 586 | + func: number; | |
| 587 | +} | |
| 588 | + | |
| 589 | +export type Function = { | |
| 590 | + function: number; | |
| 591 | +} | |
| 592 | + | |
| 593 | +export type Get = { | |
| 594 | + get: number; | |
| 595 | +} | |
| 596 | + | |
| 597 | +export type Global = { | |
| 598 | + global: number; | |
| 599 | +} | |
| 600 | + | |
| 601 | +export type Go = { | |
| 602 | + go: number; | |
| 603 | +} | |
| 604 | + | |
| 605 | +export type Goto = { | |
| 606 | + goto: number; | |
| 607 | +} | |
| 608 | + | |
| 609 | +export type Guard = { | |
| 610 | + guard: number; | |
| 611 | +} | |
| 612 | + | |
| 613 | +export type HasOwnProperty = { | |
| 614 | + hasOwnProperty: number; | |
| 615 | +} | |
| 616 | + | |
| 617 | +export type ID = { | |
| 618 | + id: number; | |
| 619 | +} | |
| 620 | + | |
| 621 | +export type If = { | |
| 622 | + if: number; | |
| 623 | +} | |
| 624 | + | |
| 625 | +export type Implements = { | |
| 626 | + implements: number; | |
| 627 | +} | |
| 628 | + | |
| 629 | +export type Implicit = { | |
| 630 | + implicit: number; | |
| 631 | +} | |
| 632 | + | |
| 633 | +export type Import = { | |
| 634 | + import: number; | |
| 635 | +} | |
| 636 | + | |
| 637 | +export type In = { | |
| 638 | + in: number; | |
| 639 | +} | |
| 640 | + | |
| 641 | +export type Indirect = { | |
| 642 | + indirect: number; | |
| 643 | +} | |
| 644 | + | |
| 645 | +export type Infix = { | |
| 646 | + infix: number; | |
| 647 | +} | |
| 648 | + | |
| 649 | +export type Init = { | |
| 650 | + init: number; | |
| 651 | +} | |
| 652 | + | |
| 653 | +export type Inline = { | |
| 654 | + inline: number; | |
| 655 | +} | |
| 656 | + | |
| 657 | +export type Inout = { | |
| 658 | + inout: number; | |
| 659 | +} | |
| 660 | + | |
| 661 | +export type Instanceof = { | |
| 662 | + instanceof: number; | |
| 663 | +} | |
| 664 | + | |
| 665 | +export type Int = { | |
| 666 | + int: number; | |
| 667 | +} | |
| 668 | + | |
| 669 | +export type Interface = { | |
| 670 | + interface: number; | |
| 671 | +} | |
| 672 | + | |
| 673 | +export type Internal = { | |
| 674 | + internal: number; | |
| 675 | +} | |
| 676 | + | |
| 677 | +export type Obj3 = { | |
| 678 | + NO: No; | |
| 679 | + NSString: NSString; | |
| 680 | + NULL: Null; | |
| 681 | + None: None; | |
| 682 | + Protocol: Protocol; | |
| 683 | + dummy: number; | |
| 684 | + is: Is; | |
| 685 | + iterable: Iterable; | |
| 686 | + jdec: Jdec; | |
| 687 | + jenc: Jenc; | |
| 688 | + jpipe: Jpipe; | |
| 689 | + json: JSON; | |
| 690 | + json_converter: JSONConverter; | |
| 691 | + json_serializer: JSONSerializer; | |
| 692 | + json_token: JSONToken; | |
| 693 | + json_writer: JSONWriter; | |
| 694 | + lambda: Lambda; | |
| 695 | + lazy: Lazy; | |
| 696 | + left: Left; | |
| 697 | + let: Let; | |
| 698 | + list: List; | |
| 699 | + lock: Lock; | |
| 700 | + long: Long; | |
| 701 | + map: Map; | |
| 702 | + metadata_property_handling: MetadataPropertyHandling; | |
| 703 | + module: Module; | |
| 704 | + mutable: Mutable; | |
| 705 | + mutating: Mutating; | |
| 706 | + namespace: Namespace; | |
| 707 | + native: Native; | |
| 708 | + new: New; | |
| 709 | + newtonsoft: Newtonsoft; | |
| 710 | + nil: Nil; | |
| 711 | + noexcept: Noexcept; | |
| 712 | + nonatomic: Nonatomic; | |
| 713 | + none: NoneClass; | |
| 714 | + nonlocal: Nonlocal; | |
| 715 | + nonmutating: Nonmutating; | |
| 716 | + not: Not; | |
| 717 | + not_eq: NotEq; | |
| 718 | + null: NullClass; | |
| 719 | + nullptr: Nullptr; | |
| 720 | + number: Number; | |
| 721 | + object: Object; | |
| 722 | + of: Of; | |
| 723 | + oneway: Oneway; | |
| 724 | + open: Open; | |
| 725 | + operator: Operator; | |
| 726 | + optional: Optional; | |
| 727 | + or: Or; | |
| 728 | + or_eq: OrEq; | |
| 729 | + out: Out; | |
| 730 | + override: Override; | |
| 731 | + package: Package; | |
| 732 | + params: Params; | |
| 733 | + pass: Pass; | |
| 734 | + port: Port; | |
| 735 | + postfix: Postfix; | |
| 736 | + precedence: Precedence; | |
| 737 | + prefix: Prefix; | |
| 738 | + print: Print; | |
| 739 | + printMembers: PrintMembers; | |
| 740 | + printf: Printf; | |
| 741 | + private: Private; | |
| 742 | + protected: Protected; | |
| 743 | + protocol: ProtocolClass; | |
| 744 | +} | |
| 745 | + | |
| 746 | +export type No = { | |
| 747 | + NO: number; | |
| 748 | +} | |
| 749 | + | |
| 750 | +export type NSString = { | |
| 751 | + NSString: number; | |
| 752 | +} | |
| 753 | + | |
| 754 | +export type Null = { | |
| 755 | + NULL: number; | |
| 756 | +} | |
| 757 | + | |
| 758 | +export type None = { | |
| 759 | + None: number; | |
| 760 | +} | |
| 761 | + | |
| 762 | +export type Protocol = { | |
| 763 | + Protocol: number; | |
| 764 | +} | |
| 765 | + | |
| 766 | +export type Is = { | |
| 767 | + is: number; | |
| 768 | +} | |
| 769 | + | |
| 770 | +export type Iterable = { | |
| 771 | + iterable: number; | |
| 772 | +} | |
| 773 | + | |
| 774 | +export type Jdec = { | |
| 775 | + jdec: number; | |
| 776 | +} | |
| 777 | + | |
| 778 | +export type Jenc = { | |
| 779 | + jenc: number; | |
| 780 | +} | |
| 781 | + | |
| 782 | +export type Jpipe = { | |
| 783 | + jpipe: number; | |
| 784 | +} | |
| 785 | + | |
| 786 | +export type JSON = { | |
| 787 | + json: number; | |
| 788 | +} | |
| 789 | + | |
| 790 | +export type JSONConverter = { | |
| 791 | + json_converter: number; | |
| 792 | +} | |
| 793 | + | |
| 794 | +export type JSONSerializer = { | |
| 795 | + json_serializer: number; | |
| 796 | +} | |
| 797 | + | |
| 798 | +export type JSONToken = { | |
| 799 | + json_token: number; | |
| 800 | +} | |
| 801 | + | |
| 802 | +export type JSONWriter = { | |
| 803 | + json_writer: number; | |
| 804 | +} | |
| 805 | + | |
| 806 | +export type Lambda = { | |
| 807 | + lambda: number; | |
| 808 | +} | |
| 809 | + | |
| 810 | +export type Lazy = { | |
| 811 | + lazy: number; | |
| 812 | +} | |
| 813 | + | |
| 814 | +export type Left = { | |
| 815 | + left: number; | |
| 816 | +} | |
| 817 | + | |
| 818 | +export type Let = { | |
| 819 | + let: number; | |
| 820 | +} | |
| 821 | + | |
| 822 | +export type List = { | |
| 823 | + list: number; | |
| 824 | +} | |
| 825 | + | |
| 826 | +export type Lock = { | |
| 827 | + lock: number; | |
| 828 | +} | |
| 829 | + | |
| 830 | +export type Long = { | |
| 831 | + long: number; | |
| 832 | +} | |
| 833 | + | |
| 834 | +export type Map = { | |
| 835 | + map: number; | |
| 836 | +} | |
| 837 | + | |
| 838 | +export type MetadataPropertyHandling = { | |
| 839 | + metadata_property_handling: number; | |
| 840 | +} | |
| 841 | + | |
| 842 | +export type Module = { | |
| 843 | + module: number; | |
| 844 | +} | |
| 845 | + | |
| 846 | +export type Mutable = { | |
| 847 | + mutable: number; | |
| 848 | +} | |
| 849 | + | |
| 850 | +export type Mutating = { | |
| 851 | + mutating: number; | |
| 852 | +} | |
| 853 | + | |
| 854 | +export type Namespace = { | |
| 855 | + namespace: number; | |
| 856 | +} | |
| 857 | + | |
| 858 | +export type Native = { | |
| 859 | + native: number; | |
| 860 | +} | |
| 861 | + | |
| 862 | +export type New = { | |
| 863 | + new: number; | |
| 864 | +} | |
| 865 | + | |
| 866 | +export type Newtonsoft = { | |
| 867 | + newtonsoft: number; | |
| 868 | +} | |
| 869 | + | |
| 870 | +export type Nil = { | |
| 871 | + nil: number; | |
| 872 | +} | |
| 873 | + | |
| 874 | +export type Noexcept = { | |
| 875 | + noexcept: number; | |
| 876 | +} | |
| 877 | + | |
| 878 | +export type Nonatomic = { | |
| 879 | + nonatomic: number; | |
| 880 | +} | |
| 881 | + | |
| 882 | +export type NoneClass = { | |
| 883 | + none: number; | |
| 884 | +} | |
| 885 | + | |
| 886 | +export type Nonlocal = { | |
| 887 | + nonlocal: number; | |
| 888 | +} | |
| 889 | + | |
| 890 | +export type Nonmutating = { | |
| 891 | + nonmutating: number; | |
| 892 | +} | |
| 893 | + | |
| 894 | +export type Not = { | |
| 895 | + not: number; | |
| 896 | +} | |
| 897 | + | |
| 898 | +export type NotEq = { | |
| 899 | + not_eq: number; | |
| 900 | +} | |
| 901 | + | |
| 902 | +export type NullClass = { | |
| 903 | + null: number; | |
| 904 | +} | |
| 905 | + | |
| 906 | +export type Nullptr = { | |
| 907 | + nullptr: number; | |
| 908 | +} | |
| 909 | + | |
| 910 | +export type Number = { | |
| 911 | + number: number; | |
| 912 | +} | |
| 913 | + | |
| 914 | +export type Object = { | |
| 915 | + object: number; | |
| 916 | +} | |
| 917 | + | |
| 918 | +export type Of = { | |
| 919 | + of: number; | |
| 920 | +} | |
| 921 | + | |
| 922 | +export type Oneway = { | |
| 923 | + oneway: number; | |
| 924 | +} | |
| 925 | + | |
| 926 | +export type Open = { | |
| 927 | + open: number; | |
| 928 | +} | |
| 929 | + | |
| 930 | +export type Operator = { | |
| 931 | + operator: number; | |
| 932 | +} | |
| 933 | + | |
| 934 | +export type Optional = { | |
| 935 | + optional: number; | |
| 936 | +} | |
| 937 | + | |
| 938 | +export type Or = { | |
| 939 | + or: number; | |
| 940 | +} | |
| 941 | + | |
| 942 | +export type OrEq = { | |
| 943 | + or_eq: number; | |
| 944 | +} | |
| 945 | + | |
| 946 | +export type Out = { | |
| 947 | + out: number; | |
| 948 | +} | |
| 949 | + | |
| 950 | +export type Override = { | |
| 951 | + override: number; | |
| 952 | +} | |
| 953 | + | |
| 954 | +export type Package = { | |
| 955 | + package: number; | |
| 956 | +} | |
| 957 | + | |
| 958 | +export type Params = { | |
| 959 | + params: number; | |
| 960 | +} | |
| 961 | + | |
| 962 | +export type Pass = { | |
| 963 | + pass: number; | |
| 964 | +} | |
| 965 | + | |
| 966 | +export type Port = { | |
| 967 | + port: number; | |
| 968 | +} | |
| 969 | + | |
| 970 | +export type Postfix = { | |
| 971 | + postfix: number; | |
| 972 | +} | |
| 973 | + | |
| 974 | +export type Precedence = { | |
| 975 | + precedence: number; | |
| 976 | +} | |
| 977 | + | |
| 978 | +export type Prefix = { | |
| 979 | + prefix: number; | |
| 980 | +} | |
| 981 | + | |
| 982 | +export type Print = { | |
| 983 | + print: number; | |
| 984 | +} | |
| 985 | + | |
| 986 | +export type PrintMembers = { | |
| 987 | + printMembers: number; | |
| 988 | +} | |
| 989 | + | |
| 990 | +export type Printf = { | |
| 991 | + printf: number; | |
| 992 | +} | |
| 993 | + | |
| 994 | +export type Private = { | |
| 995 | + private: number; | |
| 996 | +} | |
| 997 | + | |
| 998 | +export type Protected = { | |
| 999 | + protected: number; | |
| 1000 | +} | |
| 1001 | + | |
| 1002 | +export type ProtocolClass = { | |
| 1003 | + protocol: number; | |
| 1004 | +} | |
| 1005 | + | |
| 1006 | +export type Obj4 = { | |
| 1007 | + SEL: Sel; | |
| 1008 | + Self: Self; | |
| 1009 | + True: True; | |
| 1010 | + Type: Type; | |
| 1011 | + dummy: number; | |
| 1012 | + public: Public; | |
| 1013 | + quicktype: Quicktype; | |
| 1014 | + raise: Raise; | |
| 1015 | + range: Range; | |
| 1016 | + readonly: Readonly; | |
| 1017 | + ref: Ref; | |
| 1018 | + register: Register; | |
| 1019 | + reinterpret_cast: ReinterpretCast; | |
| 1020 | + repeat: Repeat; | |
| 1021 | + require: Require; | |
| 1022 | + required: Required; | |
| 1023 | + requires: Requires; | |
| 1024 | + restrict: Restrict; | |
| 1025 | + retain: Retain; | |
| 1026 | + rethrows: Rethrows; | |
| 1027 | + return: Return; | |
| 1028 | + right: Right; | |
| 1029 | + s: S; | |
| 1030 | + sbyte: Sbyte; | |
| 1031 | + sealed: Sealed; | |
| 1032 | + select: Select; | |
| 1033 | + self: SelfClass; | |
| 1034 | + serialize: Serialize; | |
| 1035 | + set: Set; | |
| 1036 | + short: Short; | |
| 1037 | + signed: Signed; | |
| 1038 | + sizeof: Sizeof; | |
| 1039 | + stackalloc: Stackalloc; | |
| 1040 | + static: Static; | |
| 1041 | + static_assert: StaticAssert; | |
| 1042 | + static_cast: StaticCast; | |
| 1043 | + strictfp: Strictfp; | |
| 1044 | + string: String; | |
| 1045 | + struct: Struct; | |
| 1046 | + subscript: Subscript; | |
| 1047 | + super: Super; | |
| 1048 | + switch: Switch; | |
| 1049 | + symbol: Symbol; | |
| 1050 | + synchronized: Synchronized; | |
| 1051 | + system: System; | |
| 1052 | + template: Template; | |
| 1053 | + then: Then; | |
| 1054 | + this: This; | |
| 1055 | + thread_local: ThreadLocal; | |
| 1056 | + throw: Throw; | |
| 1057 | + throws: Throws; | |
| 1058 | + to_json: ToJSON; | |
| 1059 | + top_level: TopLevelClass; | |
| 1060 | + transient: Transient; | |
| 1061 | + true: TrueClass; | |
| 1062 | + try: Try; | |
| 1063 | + type: TypeClass; | |
| 1064 | + typealias: Typealias; | |
| 1065 | + typedef: Typedef; | |
| 1066 | + typeid: Typeid; | |
| 1067 | + typename: Typename; | |
| 1068 | + typeof: Typeof; | |
| 1069 | + uint: Uint; | |
| 1070 | + ulong: Ulong; | |
| 1071 | + unchecked: Unchecked; | |
| 1072 | + undefined: Undefined; | |
| 1073 | +} | |
| 1074 | + | |
| 1075 | +export type Sel = { | |
| 1076 | + SEL: number; | |
| 1077 | +} | |
| 1078 | + | |
| 1079 | +export type Self = { | |
| 1080 | + Self: number; | |
| 1081 | +} | |
| 1082 | + | |
| 1083 | +export type True = { | |
| 1084 | + True: number; | |
| 1085 | +} | |
| 1086 | + | |
| 1087 | +export type Type = { | |
| 1088 | + Type: number; | |
| 1089 | +} | |
| 1090 | + | |
| 1091 | +export type Public = { | |
| 1092 | + public: number; | |
| 1093 | +} | |
| 1094 | + | |
| 1095 | +export type Quicktype = { | |
| 1096 | + quicktype: number; | |
| 1097 | +} | |
| 1098 | + | |
| 1099 | +export type Raise = { | |
| 1100 | + raise: number; | |
| 1101 | +} | |
| 1102 | + | |
| 1103 | +export type Range = { | |
| 1104 | + range: number; | |
| 1105 | +} | |
| 1106 | + | |
| 1107 | +export type Readonly = { | |
| 1108 | + readonly: number; | |
| 1109 | +} | |
| 1110 | + | |
| 1111 | +export type Ref = { | |
| 1112 | + ref: number; | |
| 1113 | +} | |
| 1114 | + | |
| 1115 | +export type Register = { | |
| 1116 | + register: number; | |
| 1117 | +} | |
| 1118 | + | |
| 1119 | +export type ReinterpretCast = { | |
| 1120 | + reinterpret_cast: number; | |
| 1121 | +} | |
| 1122 | + | |
| 1123 | +export type Repeat = { | |
| 1124 | + repeat: number; | |
| 1125 | +} | |
| 1126 | + | |
| 1127 | +export type Require = { | |
| 1128 | + require: number; | |
| 1129 | +} | |
| 1130 | + | |
| 1131 | +export type Required = { | |
| 1132 | + required: number; | |
| 1133 | +} | |
| 1134 | + | |
| 1135 | +export type Requires = { | |
| 1136 | + requires: number; | |
| 1137 | +} | |
| 1138 | + | |
| 1139 | +export type Restrict = { | |
| 1140 | + restrict: number; | |
| 1141 | +} | |
| 1142 | + | |
| 1143 | +export type Retain = { | |
| 1144 | + retain: number; | |
| 1145 | +} | |
| 1146 | + | |
| 1147 | +export type Rethrows = { | |
| 1148 | + rethrows: number; | |
| 1149 | +} | |
| 1150 | + | |
| 1151 | +export type Return = { | |
| 1152 | + return: number; | |
| 1153 | +} | |
| 1154 | + | |
| 1155 | +export type Right = { | |
| 1156 | + right: number; | |
| 1157 | +} | |
| 1158 | + | |
| 1159 | +export type S = { | |
| 1160 | + s: number; | |
| 1161 | +} | |
| 1162 | + | |
| 1163 | +export type Sbyte = { | |
| 1164 | + sbyte: number; | |
| 1165 | +} | |
| 1166 | + | |
| 1167 | +export type Sealed = { | |
| 1168 | + sealed: number; | |
| 1169 | +} | |
| 1170 | + | |
| 1171 | +export type Select = { | |
| 1172 | + select: number; | |
| 1173 | +} | |
| 1174 | + | |
| 1175 | +export type SelfClass = { | |
| 1176 | + self: number; | |
| 1177 | +} | |
| 1178 | + | |
| 1179 | +export type Serialize = { | |
| 1180 | + serialize: number; | |
| 1181 | +} | |
| 1182 | + | |
| 1183 | +export type Set = { | |
| 1184 | + set: number; | |
| 1185 | +} | |
| 1186 | + | |
| 1187 | +export type Short = { | |
| 1188 | + short: number; | |
| 1189 | +} | |
| 1190 | + | |
| 1191 | +export type Signed = { | |
| 1192 | + signed: number; | |
| 1193 | +} | |
| 1194 | + | |
| 1195 | +export type Sizeof = { | |
| 1196 | + sizeof: number; | |
| 1197 | +} | |
| 1198 | + | |
| 1199 | +export type Stackalloc = { | |
| 1200 | + stackalloc: number; | |
| 1201 | +} | |
| 1202 | + | |
| 1203 | +export type Static = { | |
| 1204 | + static: number; | |
| 1205 | +} | |
| 1206 | + | |
| 1207 | +export type StaticAssert = { | |
| 1208 | + static_assert: number; | |
| 1209 | +} | |
| 1210 | + | |
| 1211 | +export type StaticCast = { | |
| 1212 | + static_cast: number; | |
| 1213 | +} | |
| 1214 | + | |
| 1215 | +export type Strictfp = { | |
| 1216 | + strictfp: number; | |
| 1217 | +} | |
| 1218 | + | |
| 1219 | +export type String = { | |
| 1220 | + string: number; | |
| 1221 | +} | |
| 1222 | + | |
| 1223 | +export type Struct = { | |
| 1224 | + struct: number; | |
| 1225 | +} | |
| 1226 | + | |
| 1227 | +export type Subscript = { | |
| 1228 | + subscript: number; | |
| 1229 | +} | |
| 1230 | + | |
| 1231 | +export type Super = { | |
| 1232 | + super: number; | |
| 1233 | +} | |
| 1234 | + | |
| 1235 | +export type Switch = { | |
| 1236 | + switch: number; | |
| 1237 | +} | |
| 1238 | + | |
| 1239 | +export type Symbol = { | |
| 1240 | + symbol: number; | |
| 1241 | +} | |
| 1242 | + | |
| 1243 | +export type Synchronized = { | |
| 1244 | + synchronized: number; | |
| 1245 | +} | |
| 1246 | + | |
| 1247 | +export type System = { | |
| 1248 | + system: number; | |
| 1249 | +} | |
| 1250 | + | |
| 1251 | +export type Template = { | |
| 1252 | + template: number; | |
| 1253 | +} | |
| 1254 | + | |
| 1255 | +export type Then = { | |
| 1256 | + then: number; | |
| 1257 | +} | |
| 1258 | + | |
| 1259 | +export type This = { | |
| 1260 | + this: number; | |
| 1261 | +} | |
| 1262 | + | |
| 1263 | +export type ThreadLocal = { | |
| 1264 | + thread_local: number; | |
| 1265 | +} | |
| 1266 | + | |
| 1267 | +export type Throw = { | |
| 1268 | + throw: number; | |
| 1269 | +} | |
| 1270 | + | |
| 1271 | +export type Throws = { | |
| 1272 | + throws: number; | |
| 1273 | +} | |
| 1274 | + | |
| 1275 | +export type ToJSON = { | |
| 1276 | + to_json: number; | |
| 1277 | +} | |
| 1278 | + | |
| 1279 | +export type TopLevelClass = { | |
| 1280 | + top_level: number; | |
| 1281 | +} | |
| 1282 | + | |
| 1283 | +export type Transient = { | |
| 1284 | + transient: number; | |
| 1285 | +} | |
| 1286 | + | |
| 1287 | +export type TrueClass = { | |
| 1288 | + true: number; | |
| 1289 | +} | |
| 1290 | + | |
| 1291 | +export type Try = { | |
| 1292 | + try: number; | |
| 1293 | +} | |
| 1294 | + | |
| 1295 | +export type TypeClass = { | |
| 1296 | + type: number; | |
| 1297 | +} | |
| 1298 | + | |
| 1299 | +export type Typealias = { | |
| 1300 | + typealias: number; | |
| 1301 | +} | |
| 1302 | + | |
| 1303 | +export type Typedef = { | |
| 1304 | + typedef: number; | |
| 1305 | +} | |
| 1306 | + | |
| 1307 | +export type Typeid = { | |
| 1308 | + typeid: number; | |
| 1309 | +} | |
| 1310 | + | |
| 1311 | +export type Typename = { | |
| 1312 | + typename: number; | |
| 1313 | +} | |
| 1314 | + | |
| 1315 | +export type Typeof = { | |
| 1316 | + typeof: number; | |
| 1317 | +} | |
| 1318 | + | |
| 1319 | +export type Uint = { | |
| 1320 | + uint: number; | |
| 1321 | +} | |
| 1322 | + | |
| 1323 | +export type Ulong = { | |
| 1324 | + ulong: number; | |
| 1325 | +} | |
| 1326 | + | |
| 1327 | +export type Unchecked = { | |
| 1328 | + unchecked: number; | |
| 1329 | +} | |
| 1330 | + | |
| 1331 | +export type Undefined = { | |
| 1332 | + undefined: number; | |
| 1333 | +} | |
| 1334 | + | |
| 1335 | +export type Obj5 = { | |
| 1336 | + YES: Yes; | |
| 1337 | + dummy: number; | |
| 1338 | + union: Union; | |
| 1339 | + unowned: Unowned; | |
| 1340 | + unsafe: Unsafe; | |
| 1341 | + unsigned: Unsigned; | |
| 1342 | + ushort: Ushort; | |
| 1343 | + using: Using; | |
| 1344 | + var: Var; | |
| 1345 | + virtual: Virtual; | |
| 1346 | + void: Void; | |
| 1347 | + volatile: Volatile; | |
| 1348 | + wchar_t: WcharT; | |
| 1349 | + weak: Weak; | |
| 1350 | + where: Where; | |
| 1351 | + while: While; | |
| 1352 | + willSet: WillSet; | |
| 1353 | + with: With; | |
| 1354 | + xor: Xor; | |
| 1355 | + xor_eq: XorEq; | |
| 1356 | + yield: Yield; | |
| 1357 | +} | |
| 1358 | + | |
| 1359 | +export type Yes = { | |
| 1360 | + YES: number; | |
| 1361 | +} | |
| 1362 | + | |
| 1363 | +export type Union = { | |
| 1364 | + union: number; | |
| 1365 | +} | |
| 1366 | + | |
| 1367 | +export type Unowned = { | |
| 1368 | + unowned: number; | |
| 1369 | +} | |
| 1370 | + | |
| 1371 | +export type Unsafe = { | |
| 1372 | + unsafe: number; | |
| 1373 | +} | |
| 1374 | + | |
| 1375 | +export type Unsigned = { | |
| 1376 | + unsigned: number; | |
| 1377 | +} | |
| 1378 | + | |
| 1379 | +export type Ushort = { | |
| 1380 | + ushort: number; | |
| 1381 | +} | |
| 1382 | + | |
| 1383 | +export type Using = { | |
| 1384 | + using: number; | |
| 1385 | +} | |
| 1386 | + | |
| 1387 | +export type Var = { | |
| 1388 | + var: number; | |
| 1389 | +} | |
| 1390 | + | |
| 1391 | +export type Virtual = { | |
| 1392 | + virtual: number; | |
| 1393 | +} | |
| 1394 | + | |
| 1395 | +export type Void = { | |
| 1396 | + void: number; | |
| 1397 | +} | |
| 1398 | + | |
| 1399 | +export type Volatile = { | |
| 1400 | + volatile: number; | |
| 1401 | +} | |
| 1402 | + | |
| 1403 | +export type WcharT = { | |
| 1404 | + wchar_t: number; | |
| 1405 | +} | |
| 1406 | + | |
| 1407 | +export type Weak = { | |
| 1408 | + weak: number; | |
| 1409 | +} | |
| 1410 | + | |
| 1411 | +export type Where = { | |
| 1412 | + where: number; | |
| 1413 | +} | |
| 1414 | + | |
| 1415 | +export type While = { | |
| 1416 | + while: number; | |
| 1417 | +} | |
| 1418 | + | |
| 1419 | +export type WillSet = { | |
| 1420 | + willSet: number; | |
| 1421 | +} | |
| 1422 | + | |
| 1423 | +export type With = { | |
| 1424 | + with: number; | |
| 1425 | +} | |
| 1426 | + | |
| 1427 | +export type Xor = { | |
| 1428 | + xor: number; | |
| 1429 | +} | |
| 1430 | + | |
| 1431 | +export type XorEq = { | |
| 1432 | + xor_eq: number; | |
| 1433 | +} | |
| 1434 | + | |
| 1435 | +export type Yield = { | |
| 1436 | + yield: number; | |
| 1437 | +} | |
| 1438 | + | |
| 1439 | +// Converts JSON strings to/from your types | |
| 1440 | +// and asserts the results of JSON.parse at runtime | |
| 1441 | +export class Convert { | |
| 1442 | + public static toTopLevel(json: string): TopLevel { | |
| 1443 | + return cast(JSON.parse(json), r("TopLevel")); | |
| 1444 | + } | |
| 1445 | + | |
| 1446 | + public static topLevelToJson(value: TopLevel): string { | |
| 1447 | + return JSON.stringify(uncast(value, r("TopLevel")), null, 2); | |
| 1448 | + } | |
| 1449 | +} | |
| 1450 | + | |
| 1451 | +function invalidValue(typ: any, val: any, key: any, parent: any = ''): never { | |
| 1452 | + const prettyTyp = prettyTypeName(typ); | |
| 1453 | + const parentText = parent ? ` on ${parent}` : ''; | |
| 1454 | + const keyText = key ? ` for key "${key}"` : ''; | |
| 1455 | + throw Error(`Invalid value${keyText}${parentText}. Expected ${prettyTyp} but got ${JSON.stringify(val)}`); | |
| 1456 | +} | |
| 1457 | + | |
| 1458 | +function prettyTypeName(typ: any): string { | |
| 1459 | + if (Array.isArray(typ)) { | |
| 1460 | + if (typ.length === 2 && typ[0] === undefined) { | |
| 1461 | + return `an optional ${prettyTypeName(typ[1])}`; | |
| 1462 | + } else { | |
| 1463 | + return `one of [${typ.map(a => { return prettyTypeName(a); }).join(", ")}]`; | |
| 1464 | + } | |
| 1465 | + } else if (typeof typ === "object" && typ.literal !== undefined) { | |
| 1466 | + return typ.literal; | |
| 1467 | + } else { | |
| 1468 | + return typeof typ; | |
| 1469 | + } | |
| 1470 | +} | |
| 1471 | + | |
| 1472 | +function jsonToJSProps(typ: any): any { | |
| 1473 | + if (typ.jsonToJS === undefined) { | |
| 1474 | + const map: any = {}; | |
| 1475 | + typ.props.forEach((p: any) => map[p.json] = { key: p.js, typ: p.typ }); | |
| 1476 | + typ.jsonToJS = map; | |
| 1477 | + } | |
| 1478 | + return typ.jsonToJS; | |
| 1479 | +} | |
| 1480 | + | |
| 1481 | +function jsToJSONProps(typ: any): any { | |
| 1482 | + if (typ.jsToJSON === undefined) { | |
| 1483 | + const map: any = {}; | |
| 1484 | + typ.props.forEach((p: any) => map[p.js] = { key: p.json, typ: p.typ }); | |
| 1485 | + typ.jsToJSON = map; | |
| 1486 | + } | |
| 1487 | + return typ.jsToJSON; | |
| 1488 | +} | |
| 1489 | + | |
| 1490 | +function transform(val: any, typ: any, getProps: any, key: any = '', parent: any = ''): any { | |
| 1491 | + function transformPrimitive(typ: string, val: any): any { | |
| 1492 | + if (typeof typ === typeof val) return val; | |
| 1493 | + return invalidValue(typ, val, key, parent); | |
| 1494 | + } | |
| 1495 | + | |
| 1496 | + function transformUnion(typs: any[], val: any): any { | |
| 1497 | + // val must validate against one typ in typs | |
| 1498 | + const l = typs.length; | |
| 1499 | + for (let i = 0; i < l; i++) { | |
| 1500 | + const typ = typs[i]; | |
| 1501 | + try { | |
| 1502 | + return transform(val, typ, getProps); | |
| 1503 | + } catch (_) {} | |
| 1504 | + } | |
| 1505 | + return invalidValue(typs, val, key, parent); | |
| 1506 | + } | |
| 1507 | + | |
| 1508 | + function transformEnum(cases: string[], val: any): any { | |
| 1509 | + if (cases.indexOf(val) !== -1) return val; | |
| 1510 | + return invalidValue(cases.map(a => { return l(a); }), val, key, parent); | |
| 1511 | + } | |
| 1512 | + | |
| 1513 | + function transformArray(typ: any, val: any): any { | |
| 1514 | + // val must be an array with no invalid elements | |
| 1515 | + if (!Array.isArray(val)) return invalidValue(l("array"), val, key, parent); | |
| 1516 | + | |
| 1517 | + return val.map(el => transform(el, typ, getProps)); | |
| 1518 | + } | |
| 1519 | + | |
| 1520 | + function transformDate(val: any): any { | |
| 1521 | + if (val === null) { | |
| 1522 | + return null; | |
| 1523 | + } | |
| 1524 | + const d = new Date(val); | |
| 1525 | + if (isNaN(d.valueOf())) { | |
| 1526 | + return invalidValue(l("Date"), val, key, parent); | |
| 1527 | + } | |
| 1528 | + return d; | |
| 1529 | + } | |
| 1530 | + | |
| 1531 | + function transformObject(props: { [k: string]: any }, additional: any, val: any): any { | |
| 1532 | + if (val === null || typeof val !== "object" || Array.isArray(val)) { | |
| 1533 | + return invalidValue(l(ref || "object"), val, key, parent); | |
| 1534 | + } | |
| 1535 | + const result: any = {}; | |
| 1536 | + Object.getOwnPropertyNames(props).forEach(key => { | |
| 1537 | + const prop = props[key]; | |
| 1538 | + const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined; | |
| 1539 | + result[prop.key] = transform(v, prop.typ, getProps, key, ref); | |
| 1540 | + }); | |
| 1541 | + Object.getOwnPropertyNames(val).forEach(key => { | |
| 1542 | + if (!Object.prototype.hasOwnProperty.call(props, key)) { | |
| 1543 | + result[key] = transform(val[key], additional, getProps, key, ref); | |
| 1544 | + } | |
| 1545 | + }); | |
| 1546 | + return result; | |
| 1547 | + } | |
| 1548 | + | |
| 1549 | + if (typ === "any") return val; | |
| 1550 | + if (typ === null) { | |
| 1551 | + if (val === null) return val; | |
| 1552 | + return invalidValue(typ, val, key, parent); | |
| 1553 | + } | |
| 1554 | + if (typ === false) return invalidValue(typ, val, key, parent); | |
| 1555 | + let ref: any = undefined; | |
| 1556 | + while (typeof typ === "object" && typ.ref !== undefined) { | |
| 1557 | + ref = typ.ref; | |
| 1558 | + typ = typeMap[typ.ref]; | |
| 1559 | + } | |
| 1560 | + if (Array.isArray(typ)) return transformEnum(typ, val); | |
| 1561 | + if (typeof typ === "object") { | |
| 1562 | + return typ.hasOwnProperty("pattern") ? typeof val === "string" && new RegExp(typ.pattern).test(val) ? val : invalidValue(typ, val, key, parent) | |
| 1563 | + : typ.hasOwnProperty("string") ? typeof val === "string" && (typ.min === undefined || val.length >= typ.min) && (typ.max === undefined || val.length <= typ.max) ? transform(val, typ.string, getProps, key, parent) : invalidValue(typ, val, key, parent) | |
| 1564 | + : typ.hasOwnProperty("number") ? typeof val === "number" && (typ.min === undefined || val >= typ.min) && (typ.max === undefined || val <= typ.max) ? transform(val, typ.number, getProps, key, parent) : invalidValue(typ, val, key, parent) | |
| 1565 | + : typ.hasOwnProperty("integer") ? typeof val === "number" && val % 1 === 0 ? val : invalidValue(l("integer"), val, key, parent) | |
| 1566 | + : typ.hasOwnProperty("unionMembers") ? transformUnion(typ.unionMembers, val) | |
| 1567 | + : typ.hasOwnProperty("arrayItems") ? transformArray(typ.arrayItems, val) | |
| 1568 | + : typ.hasOwnProperty("props") ? transformObject(getProps(typ), typ.additional, val) | |
| 1569 | + : invalidValue(typ, val, key, parent); | |
| 1570 | + } | |
| 1571 | + // Numbers can be parsed by Date but shouldn't be. | |
| 1572 | + if (typ === Date && typeof val !== "number") return transformDate(val); | |
| 1573 | + return transformPrimitive(typ, val); | |
| 1574 | +} | |
| 1575 | + | |
| 1576 | +function cast<T>(val: any, typ: any): T { | |
| 1577 | + return transform(val, typ, jsonToJSProps); | |
| 1578 | +} | |
| 1579 | + | |
| 1580 | +function uncast<T>(val: T, typ: any): any { | |
| 1581 | + return transform(val, typ, jsToJSONProps); | |
| 1582 | +} | |
| 1583 | + | |
| 1584 | +function l(typ: any) { | |
| 1585 | + return { literal: typ }; | |
| 1586 | +} | |
| 1587 | + | |
| 1588 | +function a(typ: any) { | |
| 1589 | + return { arrayItems: typ }; | |
| 1590 | +} | |
| 1591 | + | |
| 1592 | +function i(typ: any) { | |
| 1593 | + return { integer: typ }; | |
| 1594 | +} | |
| 1595 | + | |
| 1596 | +function p(pattern: any) { | |
| 1597 | + return { pattern }; | |
| 1598 | +} | |
| 1599 | + | |
| 1600 | +function s(typ: any, min: any, max: any) { | |
| 1601 | + return { string: typ, min, max }; | |
| 1602 | +} | |
| 1603 | + | |
| 1604 | +function n(typ: any, min: any, max: any) { | |
| 1605 | + return { number: typ, min, max }; | |
| 1606 | +} | |
| 1607 | + | |
| 1608 | +function u(...typs: any[]) { | |
| 1609 | + return { unionMembers: typs }; | |
| 1610 | +} | |
| 1611 | + | |
| 1612 | +function o(props: any[], additional: any) { | |
| 1613 | + return { props, additional }; | |
| 1614 | +} | |
| 1615 | + | |
| 1616 | +function m(additional: any) { | |
| 1617 | + const props: any[] = []; | |
| 1618 | + return { props, additional }; | |
| 1619 | +} | |
| 1620 | + | |
| 1621 | +function r(name: string) { | |
| 1622 | + return { ref: name }; | |
| 1623 | +} | |
| 1624 | + | |
| 1625 | +const typeMap: any = { | |
| 1626 | + "TopLevel": o([ | |
| 1627 | + { json: "dummy", js: "dummy", typ: i(0) }, | |
| 1628 | + { json: "obj1", js: "obj1", typ: r("Obj1") }, | |
| 1629 | + { json: "obj2", js: "obj2", typ: r("Obj2") }, | |
| 1630 | + { json: "obj3", js: "obj3", typ: r("Obj3") }, | |
| 1631 | + { json: "obj4", js: "obj4", typ: r("Obj4") }, | |
| 1632 | + { json: "obj5", js: "obj5", typ: r("Obj5") }, | |
| 1633 | + ], false), | |
| 1634 | + "Obj1": o([ | |
| 1635 | + { json: "Any", js: "Any", typ: r("Any") }, | |
| 1636 | + { json: "BOOL", js: "BOOL", typ: r("Bool") }, | |
| 1637 | + { json: "Class", js: "Class", typ: r("Class") }, | |
| 1638 | + { json: "_", js: "_", typ: r("Empty") }, | |
| 1639 | + { json: "_Bool", js: "_Bool", typ: r("BoolClass") }, | |
| 1640 | + { json: "_Complex", js: "_Complex", typ: r("Complex") }, | |
| 1641 | + { json: "_Imaginery", js: "_Imaginery", typ: r("Imaginery") }, | |
| 1642 | + { json: "abstract", js: "abstract", typ: r("Abstract") }, | |
| 1643 | + { json: "alignas", js: "alignas", typ: r("Alignas") }, | |
| 1644 | + { json: "alignof", js: "alignof", typ: r("Alignof") }, | |
| 1645 | + { json: "and", js: "and", typ: r("And") }, | |
| 1646 | + { json: "and_eq", js: "and_eq", typ: r("AndEq") }, | |
| 1647 | + { json: "any", js: "any", typ: r("AnyClass") }, | |
| 1648 | + { json: "array", js: "array", typ: r("ArrayClass") }, | |
| 1649 | + { json: "as", js: "as", typ: r("As") }, | |
| 1650 | + { json: "asm", js: "asm", typ: r("ASM") }, | |
| 1651 | + { json: "assert", js: "assert", typ: r("Assert") }, | |
| 1652 | + { json: "associatedtype", js: "associatedtype", typ: r("Associatedtype") }, | |
| 1653 | + { json: "associativity", js: "associativity", typ: r("Associativity") }, | |
| 1654 | + { json: "async", js: "async", typ: r("Async") }, | |
| 1655 | + { json: "atomic", js: "atomic", typ: r("Atomic") }, | |
| 1656 | + { json: "atomic_cancel", js: "atomic_cancel", typ: r("AtomicCancel") }, | |
| 1657 | + { json: "atomic_commit", js: "atomic_commit", typ: r("AtomicCommit") }, | |
| 1658 | + { json: "atomic_noexcept", js: "atomic_noexcept", typ: r("AtomicNoexcept") }, | |
| 1659 | + { json: "auto", js: "auto", typ: r("Auto") }, | |
| 1660 | + { json: "await", js: "await", typ: r("Await") }, | |
| 1661 | + { json: "base", js: "base", typ: r("Base") }, | |
| 1662 | + { json: "bitand", js: "bitand", typ: r("Bitand") }, | |
| 1663 | + { json: "bitor", js: "bitor", typ: r("Bitor") }, | |
| 1664 | + { json: "bool", js: "bool", typ: r("Obj1Bool") }, | |
| 1665 | + { json: "boolean", js: "boolean", typ: r("Boolean") }, | |
| 1666 | + { json: "break", js: "break", typ: r("Break") }, | |
| 1667 | + { json: "bycopy", js: "bycopy", typ: r("Bycopy") }, | |
| 1668 | + { json: "byref", js: "byref", typ: r("Byref") }, | |
| 1669 | + { json: "byte", js: "byte", typ: r("Byte") }, | |
| 1670 | + { json: "case", js: "case", typ: r("Case") }, | |
| 1671 | + { json: "catch", js: "catch", typ: r("Catch") }, | |
| 1672 | + { json: "chan", js: "chan", typ: r("Chan") }, | |
| 1673 | + { json: "char", js: "char", typ: r("Char") }, | |
| 1674 | + { json: "char16_t", js: "char16_t", typ: r("Char16T") }, | |
| 1675 | + { json: "char32_t", js: "char32_t", typ: r("Char32T") }, | |
| 1676 | + { json: "checked", js: "checked", typ: r("Checked") }, | |
| 1677 | + { json: "class", js: "class", typ: r("ClassClass") }, | |
| 1678 | + { json: "clone", js: "clone", typ: r("Clone") }, | |
| 1679 | + { json: "co_await", js: "co_await", typ: r("CoAwait") }, | |
| 1680 | + { json: "co_return", js: "co_return", typ: r("CoReturn") }, | |
| 1681 | + { json: "co_yield", js: "co_yield", typ: r("CoYield") }, | |
| 1682 | + { json: "compl", js: "compl", typ: r("Compl") }, | |
| 1683 | + { json: "concept", js: "concept", typ: r("Concept") }, | |
| 1684 | + { json: "console", js: "console", typ: r("Console") }, | |
| 1685 | + { json: "const", js: "const", typ: r("Const") }, | |
| 1686 | + { json: "const_cast", js: "const_cast", typ: r("ConstCast") }, | |
| 1687 | + { json: "constexpr", js: "constexpr", typ: r("Constexpr") }, | |
| 1688 | + { json: "constructor", js: "constructor", typ: r("Constructor") }, | |
| 1689 | + { json: "continue", js: "continue", typ: r("Continue") }, | |
| 1690 | + { json: "convenience", js: "convenience", typ: r("Convenience") }, | |
| 1691 | + { json: "convert", js: "convert", typ: r("ConvertClass") }, | |
| 1692 | + { json: "converter", js: "converter", typ: r("Converter") }, | |
| 1693 | + { json: "date", js: "date", typ: r("DateClass") }, | |
| 1694 | + { json: "date_parse_handling", js: "date_parse_handling", typ: r("DateParseHandling") }, | |
| 1695 | + { json: "debugger", js: "debugger", typ: r("Debugger") }, | |
| 1696 | + { json: "decimal", js: "decimal", typ: r("Decimal") }, | |
| 1697 | + { json: "declare", js: "declare", typ: r("Declare") }, | |
| 1698 | + { json: "decltype", js: "decltype", typ: r("Decltype") }, | |
| 1699 | + { json: "decode_string", js: "decode_string", typ: r("DecodeString") }, | |
| 1700 | + { json: "dummy", js: "dummy", typ: i(0) }, | |
| 1701 | + ], false), | |
| 1702 | + "Any": o([ | |
| 1703 | + { json: "Any", js: "Any", typ: i(0) }, | |
| 1704 | + ], false), | |
| 1705 | + "Bool": o([ | |
| 1706 | + { json: "BOOL", js: "BOOL", typ: i(0) }, | |
| 1707 | + ], false), | |
| 1708 | + "Class": o([ | |
| 1709 | + { json: "Class", js: "Class", typ: i(0) }, | |
| 1710 | + ], false), | |
| 1711 | + "Empty": o([ | |
| 1712 | + { json: "_", js: "_", typ: i(0) }, | |
| 1713 | + ], false), | |
| 1714 | + "BoolClass": o([ | |
| 1715 | + { json: "_Bool", js: "_Bool", typ: i(0) }, | |
| 1716 | + ], false), | |
| 1717 | + "Complex": o([ | |
| 1718 | + { json: "_Complex", js: "_Complex", typ: i(0) }, | |
| 1719 | + ], false), | |
| 1720 | + "Imaginery": o([ | |
| 1721 | + { json: "_Imaginery", js: "_Imaginery", typ: i(0) }, | |
| 1722 | + ], false), | |
| 1723 | + "Abstract": o([ | |
| 1724 | + { json: "abstract", js: "abstract", typ: i(0) }, | |
| 1725 | + ], false), | |
| 1726 | + "Alignas": o([ | |
| 1727 | + { json: "alignas", js: "alignas", typ: i(0) }, | |
| 1728 | + ], false), | |
| 1729 | + "Alignof": o([ | |
| 1730 | + { json: "alignof", js: "alignof", typ: i(0) }, | |
| 1731 | + ], false), | |
| 1732 | + "And": o([ | |
| 1733 | + { json: "and", js: "and", typ: i(0) }, | |
| 1734 | + ], false), | |
| 1735 | + "AndEq": o([ | |
| 1736 | + { json: "and_eq", js: "and_eq", typ: i(0) }, | |
| 1737 | + ], false), | |
| 1738 | + "AnyClass": o([ | |
| 1739 | + { json: "any", js: "any", typ: i(0) }, | |
| 1740 | + ], false), | |
| 1741 | + "ArrayClass": o([ | |
| 1742 | + { json: "array", js: "array", typ: i(0) }, | |
| 1743 | + ], false), | |
| 1744 | + "As": o([ | |
| 1745 | + { json: "as", js: "as", typ: i(0) }, | |
| 1746 | + ], false), | |
| 1747 | + "ASM": o([ | |
| 1748 | + { json: "asm", js: "asm", typ: i(0) }, | |
| 1749 | + ], false), | |
| 1750 | + "Assert": o([ | |
| 1751 | + { json: "assert", js: "assert", typ: i(0) }, | |
| 1752 | + ], false), | |
| 1753 | + "Associatedtype": o([ | |
| 1754 | + { json: "associatedtype", js: "associatedtype", typ: i(0) }, | |
| 1755 | + ], false), | |
| 1756 | + "Associativity": o([ | |
| 1757 | + { json: "associativity", js: "associativity", typ: i(0) }, | |
| 1758 | + ], false), | |
| 1759 | + "Async": o([ | |
| 1760 | + { json: "async", js: "async", typ: i(0) }, | |
| 1761 | + ], false), | |
| 1762 | + "Atomic": o([ | |
| 1763 | + { json: "atomic", js: "atomic", typ: i(0) }, | |
| 1764 | + ], false), | |
| 1765 | + "AtomicCancel": o([ | |
| 1766 | + { json: "atomic_cancel", js: "atomic_cancel", typ: i(0) }, | |
| 1767 | + ], false), | |
| 1768 | + "AtomicCommit": o([ | |
| 1769 | + { json: "atomic_commit", js: "atomic_commit", typ: i(0) }, | |
| 1770 | + ], false), | |
| 1771 | + "AtomicNoexcept": o([ | |
| 1772 | + { json: "atomic_noexcept", js: "atomic_noexcept", typ: i(0) }, | |
| 1773 | + ], false), | |
| 1774 | + "Auto": o([ | |
| 1775 | + { json: "auto", js: "auto", typ: i(0) }, | |
| 1776 | + ], false), | |
| 1777 | + "Await": o([ | |
| 1778 | + { json: "await", js: "await", typ: i(0) }, | |
| 1779 | + ], false), | |
| 1780 | + "Base": o([ | |
| 1781 | + { json: "base", js: "base", typ: i(0) }, | |
| 1782 | + ], false), | |
| 1783 | + "Bitand": o([ | |
| 1784 | + { json: "bitand", js: "bitand", typ: i(0) }, | |
| 1785 | + ], false), | |
| 1786 | + "Bitor": o([ | |
| 1787 | + { json: "bitor", js: "bitor", typ: i(0) }, | |
| 1788 | + ], false), | |
| 1789 | + "Obj1Bool": o([ | |
| 1790 | + { json: "bool", js: "bool", typ: i(0) }, | |
| 1791 | + ], false), | |
| 1792 | + "Boolean": o([ | |
| 1793 | + { json: "boolean", js: "boolean", typ: i(0) }, | |
| 1794 | + ], false), | |
| 1795 | + "Break": o([ | |
| 1796 | + { json: "break", js: "break", typ: i(0) }, | |
| 1797 | + ], false), | |
| 1798 | + "Bycopy": o([ | |
| 1799 | + { json: "bycopy", js: "bycopy", typ: i(0) }, | |
| 1800 | + ], false), | |
| 1801 | + "Byref": o([ | |
| 1802 | + { json: "byref", js: "byref", typ: i(0) }, | |
| 1803 | + ], false), | |
| 1804 | + "Byte": o([ | |
| 1805 | + { json: "byte", js: "byte", typ: i(0) }, | |
| 1806 | + ], false), | |
| 1807 | + "Case": o([ | |
| 1808 | + { json: "case", js: "case", typ: i(0) }, | |
| 1809 | + ], false), | |
| 1810 | + "Catch": o([ | |
| 1811 | + { json: "catch", js: "catch", typ: i(0) }, | |
| 1812 | + ], false), | |
| 1813 | + "Chan": o([ | |
| 1814 | + { json: "chan", js: "chan", typ: i(0) }, | |
| 1815 | + ], false), | |
| 1816 | + "Char": o([ | |
| 1817 | + { json: "char", js: "char", typ: i(0) }, | |
| 1818 | + ], false), | |
| 1819 | + "Char16T": o([ | |
| 1820 | + { json: "char16_t", js: "char16_t", typ: i(0) }, | |
| 1821 | + ], false), | |
| 1822 | + "Char32T": o([ | |
| 1823 | + { json: "char32_t", js: "char32_t", typ: i(0) }, | |
| 1824 | + ], false), | |
| 1825 | + "Checked": o([ | |
| 1826 | + { json: "checked", js: "checked", typ: i(0) }, | |
| 1827 | + ], false), | |
| 1828 | + "ClassClass": o([ | |
| 1829 | + { json: "class", js: "class", typ: i(0) }, | |
| 1830 | + ], false), | |
| 1831 | + "Clone": o([ | |
| 1832 | + { json: "clone", js: "clone", typ: i(0) }, | |
| 1833 | + ], false), | |
| 1834 | + "CoAwait": o([ | |
| 1835 | + { json: "co_await", js: "co_await", typ: i(0) }, | |
| 1836 | + ], false), | |
| 1837 | + "CoReturn": o([ | |
| 1838 | + { json: "co_return", js: "co_return", typ: i(0) }, | |
| 1839 | + ], false), | |
| 1840 | + "CoYield": o([ | |
| 1841 | + { json: "co_yield", js: "co_yield", typ: i(0) }, | |
| 1842 | + ], false), | |
| 1843 | + "Compl": o([ | |
| 1844 | + { json: "compl", js: "compl", typ: i(0) }, | |
| 1845 | + ], false), | |
| 1846 | + "Concept": o([ | |
| 1847 | + { json: "concept", js: "concept", typ: i(0) }, | |
| 1848 | + ], false), | |
| 1849 | + "Console": o([ | |
| 1850 | + { json: "console", js: "console", typ: i(0) }, | |
| 1851 | + ], false), | |
| 1852 | + "Const": o([ | |
| 1853 | + { json: "const", js: "const", typ: i(0) }, | |
| 1854 | + ], false), | |
| 1855 | + "ConstCast": o([ | |
| 1856 | + { json: "const_cast", js: "const_cast", typ: i(0) }, | |
| 1857 | + ], false), | |
| 1858 | + "Constexpr": o([ | |
| 1859 | + { json: "constexpr", js: "constexpr", typ: i(0) }, | |
| 1860 | + ], false), | |
| 1861 | + "Constructor": o([ | |
| 1862 | + { json: "constructor", js: "constructor", typ: i(0) }, | |
| 1863 | + ], false), | |
| 1864 | + "Continue": o([ | |
| 1865 | + { json: "continue", js: "continue", typ: i(0) }, | |
| 1866 | + ], false), | |
| 1867 | + "Convenience": o([ | |
| 1868 | + { json: "convenience", js: "convenience", typ: i(0) }, | |
| 1869 | + ], false), | |
| 1870 | + "ConvertClass": o([ | |
| 1871 | + { json: "convert", js: "convert", typ: i(0) }, | |
| 1872 | + ], false), | |
| 1873 | + "Converter": o([ | |
| 1874 | + { json: "converter", js: "converter", typ: i(0) }, | |
| 1875 | + ], false), | |
| 1876 | + "DateClass": o([ | |
| 1877 | + { json: "date", js: "date", typ: i(0) }, | |
| 1878 | + ], false), | |
| 1879 | + "DateParseHandling": o([ | |
| 1880 | + { json: "date_parse_handling", js: "date_parse_handling", typ: i(0) }, | |
| 1881 | + ], false), | |
| 1882 | + "Debugger": o([ | |
| 1883 | + { json: "debugger", js: "debugger", typ: i(0) }, | |
| 1884 | + ], false), | |
| 1885 | + "Decimal": o([ | |
| 1886 | + { json: "decimal", js: "decimal", typ: i(0) }, | |
| 1887 | + ], false), | |
| 1888 | + "Declare": o([ | |
| 1889 | + { json: "declare", js: "declare", typ: i(0) }, | |
| 1890 | + ], false), | |
| 1891 | + "Decltype": o([ | |
| 1892 | + { json: "decltype", js: "decltype", typ: i(0) }, | |
| 1893 | + ], false), | |
| 1894 | + "DecodeString": o([ | |
| 1895 | + { json: "decode_string", js: "decode_string", typ: i(0) }, | |
| 1896 | + ], false), | |
| 1897 | + "Obj2": o([ | |
| 1898 | + { json: "False", js: "False", typ: r("False") }, | |
| 1899 | + { json: "IMP", js: "IMP", typ: r("Imp") }, | |
| 1900 | + { json: "def", js: "def", typ: r("Def") }, | |
| 1901 | + { json: "default", js: "default", typ: r("Default") }, | |
| 1902 | + { json: "defer", js: "defer", typ: r("Defer") }, | |
| 1903 | + { json: "deinit", js: "deinit", typ: r("Deinit") }, | |
| 1904 | + { json: "del", js: "del", typ: r("Del") }, | |
| 1905 | + { json: "delegate", js: "delegate", typ: r("Delegate") }, | |
| 1906 | + { json: "delete", js: "delete", typ: r("Delete") }, | |
| 1907 | + { json: "dict", js: "dict", typ: r("Dict") }, | |
| 1908 | + { json: "dictionary", js: "dictionary", typ: r("Dictionary") }, | |
| 1909 | + { json: "didSet", js: "didSet", typ: r("DidSet") }, | |
| 1910 | + { json: "do", js: "do", typ: r("Do") }, | |
| 1911 | + { json: "double", js: "double", typ: r("Double") }, | |
| 1912 | + { json: "dummy", js: "dummy", typ: i(0) }, | |
| 1913 | + { json: "dynamic", js: "dynamic", typ: r("Dynamic") }, | |
| 1914 | + { json: "dynamic_cast", js: "dynamic_cast", typ: r("DynamicCast") }, | |
| 1915 | + { json: "elif", js: "elif", typ: r("Elif") }, | |
| 1916 | + { json: "else", js: "else", typ: r("Else") }, | |
| 1917 | + { json: "encode_quick_type", js: "encode_quick_type", typ: r("EncodeQuickType") }, | |
| 1918 | + { json: "enum", js: "enum", typ: r("Enum") }, | |
| 1919 | + { json: "equalityContract", js: "equalityContract", typ: r("EqualityContract") }, | |
| 1920 | + { json: "event", js: "event", typ: r("Event") }, | |
| 1921 | + { json: "except", js: "except", typ: r("Except") }, | |
| 1922 | + { json: "exception", js: "exception", typ: r("Exception") }, | |
| 1923 | + { json: "explicit", js: "explicit", typ: r("Explicit") }, | |
| 1924 | + { json: "export", js: "export", typ: r("Export") }, | |
| 1925 | + { json: "exposing", js: "exposing", typ: r("Exposing") }, | |
| 1926 | + { json: "extends", js: "extends", typ: r("Extends") }, | |
| 1927 | + { json: "extension", js: "extension", typ: r("Extension") }, | |
| 1928 | + { json: "extern", js: "extern", typ: r("Extern") }, | |
| 1929 | + { json: "fallthrough", js: "fallthrough", typ: r("Fallthrough") }, | |
| 1930 | + { json: "false", js: "false", typ: r("FalseClass") }, | |
| 1931 | + { json: "fileprivate", js: "fileprivate", typ: r("Fileprivate") }, | |
| 1932 | + { json: "final", js: "final", typ: r("Final") }, | |
| 1933 | + { json: "finally", js: "finally", typ: r("Finally") }, | |
| 1934 | + { json: "fixed", js: "fixed", typ: r("Fixed") }, | |
| 1935 | + { json: "float", js: "float", typ: r("Float") }, | |
| 1936 | + { json: "for", js: "for", typ: r("For") }, | |
| 1937 | + { json: "foreach", js: "foreach", typ: r("Foreach") }, | |
| 1938 | + { json: "friend", js: "friend", typ: r("Friend") }, | |
| 1939 | + { json: "from", js: "from", typ: r("From") }, | |
| 1940 | + { json: "from_json", js: "from_json", typ: r("FromJSON") }, | |
| 1941 | + { json: "func", js: "func", typ: r("Func") }, | |
| 1942 | + { json: "function", js: "function", typ: r("Function") }, | |
| 1943 | + { json: "get", js: "get", typ: r("Get") }, | |
| 1944 | + { json: "global", js: "global", typ: r("Global") }, | |
| 1945 | + { json: "go", js: "go", typ: r("Go") }, | |
| 1946 | + { json: "goto", js: "goto", typ: r("Goto") }, | |
| 1947 | + { json: "guard", js: "guard", typ: r("Guard") }, | |
| 1948 | + { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") }, | |
| 1949 | + { json: "id", js: "id", typ: r("ID") }, | |
| 1950 | + { json: "if", js: "if", typ: r("If") }, | |
| 1951 | + { json: "implements", js: "implements", typ: r("Implements") }, | |
| 1952 | + { json: "implicit", js: "implicit", typ: r("Implicit") }, | |
| 1953 | + { json: "import", js: "import", typ: r("Import") }, | |
| 1954 | + { json: "in", js: "in", typ: r("In") }, | |
| 1955 | + { json: "indirect", js: "indirect", typ: r("Indirect") }, | |
| 1956 | + { json: "infix", js: "infix", typ: r("Infix") }, | |
| 1957 | + { json: "init", js: "init", typ: r("Init") }, | |
| 1958 | + { json: "inline", js: "inline", typ: r("Inline") }, | |
| 1959 | + { json: "inout", js: "inout", typ: r("Inout") }, | |
| 1960 | + { json: "instanceof", js: "instanceof", typ: r("Instanceof") }, | |
| 1961 | + { json: "int", js: "int", typ: r("Int") }, | |
| 1962 | + { json: "interface", js: "interface", typ: r("Interface") }, | |
| 1963 | + { json: "internal", js: "internal", typ: r("Internal") }, | |
| 1964 | + ], false), | |
| 1965 | + "False": o([ | |
| 1966 | + { json: "False", js: "False", typ: i(0) }, | |
| 1967 | + ], false), | |
| 1968 | + "Imp": o([ | |
| 1969 | + { json: "IMP", js: "IMP", typ: i(0) }, | |
| 1970 | + ], false), | |
| 1971 | + "Def": o([ | |
| 1972 | + { json: "def", js: "def", typ: i(0) }, | |
| 1973 | + ], false), | |
| 1974 | + "Default": o([ | |
| 1975 | + { json: "default", js: "default", typ: i(0) }, | |
| 1976 | + ], false), | |
| 1977 | + "Defer": o([ | |
| 1978 | + { json: "defer", js: "defer", typ: i(0) }, | |
| 1979 | + ], false), | |
| 1980 | + "Deinit": o([ | |
| 1981 | + { json: "deinit", js: "deinit", typ: i(0) }, | |
| 1982 | + ], false), | |
| 1983 | + "Del": o([ | |
| 1984 | + { json: "del", js: "del", typ: i(0) }, | |
| 1985 | + ], false), | |
| 1986 | + "Delegate": o([ | |
| 1987 | + { json: "delegate", js: "delegate", typ: i(0) }, | |
| 1988 | + ], false), | |
| 1989 | + "Delete": o([ | |
| 1990 | + { json: "delete", js: "delete", typ: i(0) }, | |
| 1991 | + ], false), | |
| 1992 | + "Dict": o([ | |
| 1993 | + { json: "dict", js: "dict", typ: i(0) }, | |
| 1994 | + ], false), | |
| 1995 | + "Dictionary": o([ | |
| 1996 | + { json: "dictionary", js: "dictionary", typ: i(0) }, | |
| 1997 | + ], false), | |
| 1998 | + "DidSet": o([ | |
| 1999 | + { json: "didSet", js: "didSet", typ: i(0) }, | |
| 2000 | + ], false), | |
| 2001 | + "Do": o([ | |
| 2002 | + { json: "do", js: "do", typ: i(0) }, | |
| 2003 | + ], false), | |
| 2004 | + "Double": o([ | |
| 2005 | + { json: "double", js: "double", typ: i(0) }, | |
| 2006 | + ], false), | |
| 2007 | + "Dynamic": o([ | |
| 2008 | + { json: "dynamic", js: "dynamic", typ: i(0) }, | |
| 2009 | + ], false), | |
| 2010 | + "DynamicCast": o([ | |
| 2011 | + { json: "dynamic_cast", js: "dynamic_cast", typ: i(0) }, | |
| 2012 | + ], false), | |
| 2013 | + "Elif": o([ | |
| 2014 | + { json: "elif", js: "elif", typ: i(0) }, | |
| 2015 | + ], false), | |
| 2016 | + "Else": o([ | |
| 2017 | + { json: "else", js: "else", typ: i(0) }, | |
| 2018 | + ], false), | |
| 2019 | + "EncodeQuickType": o([ | |
| 2020 | + { json: "encode_quick_type", js: "encode_quick_type", typ: i(0) }, | |
| 2021 | + ], false), | |
| 2022 | + "Enum": o([ | |
| 2023 | + { json: "enum", js: "enum", typ: i(0) }, | |
| 2024 | + ], false), | |
| 2025 | + "EqualityContract": o([ | |
| 2026 | + { json: "equalityContract", js: "equalityContract", typ: i(0) }, | |
| 2027 | + ], false), | |
| 2028 | + "Event": o([ | |
| 2029 | + { json: "event", js: "event", typ: i(0) }, | |
| 2030 | + ], false), | |
| 2031 | + "Except": o([ | |
| 2032 | + { json: "except", js: "except", typ: i(0) }, | |
| 2033 | + ], false), | |
| 2034 | + "Exception": o([ | |
| 2035 | + { json: "exception", js: "exception", typ: i(0) }, | |
| 2036 | + ], false), | |
| 2037 | + "Explicit": o([ | |
| 2038 | + { json: "explicit", js: "explicit", typ: i(0) }, | |
| 2039 | + ], false), | |
| 2040 | + "Export": o([ | |
| 2041 | + { json: "export", js: "export", typ: i(0) }, | |
| 2042 | + ], false), | |
| 2043 | + "Exposing": o([ | |
| 2044 | + { json: "exposing", js: "exposing", typ: i(0) }, | |
| 2045 | + ], false), | |
| 2046 | + "Extends": o([ | |
| 2047 | + { json: "extends", js: "extends", typ: i(0) }, | |
| 2048 | + ], false), | |
| 2049 | + "Extension": o([ | |
| 2050 | + { json: "extension", js: "extension", typ: i(0) }, | |
| 2051 | + ], false), | |
| 2052 | + "Extern": o([ | |
| 2053 | + { json: "extern", js: "extern", typ: i(0) }, | |
| 2054 | + ], false), | |
| 2055 | + "Fallthrough": o([ | |
| 2056 | + { json: "fallthrough", js: "fallthrough", typ: i(0) }, | |
| 2057 | + ], false), | |
| 2058 | + "FalseClass": o([ | |
| 2059 | + { json: "false", js: "false", typ: i(0) }, | |
| 2060 | + ], false), | |
| 2061 | + "Fileprivate": o([ | |
| 2062 | + { json: "fileprivate", js: "fileprivate", typ: i(0) }, | |
| 2063 | + ], false), | |
| 2064 | + "Final": o([ | |
| 2065 | + { json: "final", js: "final", typ: i(0) }, | |
| 2066 | + ], false), | |
| 2067 | + "Finally": o([ | |
| 2068 | + { json: "finally", js: "finally", typ: i(0) }, | |
| 2069 | + ], false), | |
| 2070 | + "Fixed": o([ | |
| 2071 | + { json: "fixed", js: "fixed", typ: i(0) }, | |
| 2072 | + ], false), | |
| 2073 | + "Float": o([ | |
| 2074 | + { json: "float", js: "float", typ: i(0) }, | |
| 2075 | + ], false), | |
| 2076 | + "For": o([ | |
| 2077 | + { json: "for", js: "for", typ: i(0) }, | |
| 2078 | + ], false), | |
| 2079 | + "Foreach": o([ | |
| 2080 | + { json: "foreach", js: "foreach", typ: i(0) }, | |
| 2081 | + ], false), | |
| 2082 | + "Friend": o([ | |
| 2083 | + { json: "friend", js: "friend", typ: i(0) }, | |
| 2084 | + ], false), | |
| 2085 | + "From": o([ | |
| 2086 | + { json: "from", js: "from", typ: i(0) }, | |
| 2087 | + ], false), | |
| 2088 | + "FromJSON": o([ | |
| 2089 | + { json: "from_json", js: "from_json", typ: i(0) }, | |
| 2090 | + ], false), | |
| 2091 | + "Func": o([ | |
| 2092 | + { json: "func", js: "func", typ: i(0) }, | |
| 2093 | + ], false), | |
| 2094 | + "Function": o([ | |
| 2095 | + { json: "function", js: "function", typ: i(0) }, | |
| 2096 | + ], false), | |
| 2097 | + "Get": o([ | |
| 2098 | + { json: "get", js: "get", typ: i(0) }, | |
| 2099 | + ], false), | |
| 2100 | + "Global": o([ | |
| 2101 | + { json: "global", js: "global", typ: i(0) }, | |
| 2102 | + ], false), | |
| 2103 | + "Go": o([ | |
| 2104 | + { json: "go", js: "go", typ: i(0) }, | |
| 2105 | + ], false), | |
| 2106 | + "Goto": o([ | |
| 2107 | + { json: "goto", js: "goto", typ: i(0) }, | |
| 2108 | + ], false), | |
| 2109 | + "Guard": o([ | |
| 2110 | + { json: "guard", js: "guard", typ: i(0) }, | |
| 2111 | + ], false), | |
| 2112 | + "HasOwnProperty": o([ | |
| 2113 | + { json: "hasOwnProperty", js: "hasOwnProperty", typ: i(0) }, | |
| 2114 | + ], false), | |
| 2115 | + "ID": o([ | |
| 2116 | + { json: "id", js: "id", typ: i(0) }, | |
| 2117 | + ], false), | |
| 2118 | + "If": o([ | |
| 2119 | + { json: "if", js: "if", typ: i(0) }, | |
| 2120 | + ], false), | |
| 2121 | + "Implements": o([ | |
| 2122 | + { json: "implements", js: "implements", typ: i(0) }, | |
| 2123 | + ], false), | |
| 2124 | + "Implicit": o([ | |
| 2125 | + { json: "implicit", js: "implicit", typ: i(0) }, | |
| 2126 | + ], false), | |
| 2127 | + "Import": o([ | |
| 2128 | + { json: "import", js: "import", typ: i(0) }, | |
| 2129 | + ], false), | |
| 2130 | + "In": o([ | |
| 2131 | + { json: "in", js: "in", typ: i(0) }, | |
| 2132 | + ], false), | |
| 2133 | + "Indirect": o([ | |
| 2134 | + { json: "indirect", js: "indirect", typ: i(0) }, | |
| 2135 | + ], false), | |
| 2136 | + "Infix": o([ | |
| 2137 | + { json: "infix", js: "infix", typ: i(0) }, | |
| 2138 | + ], false), | |
| 2139 | + "Init": o([ | |
| 2140 | + { json: "init", js: "init", typ: i(0) }, | |
| 2141 | + ], false), | |
| 2142 | + "Inline": o([ | |
| 2143 | + { json: "inline", js: "inline", typ: i(0) }, | |
| 2144 | + ], false), | |
| 2145 | + "Inout": o([ | |
| 2146 | + { json: "inout", js: "inout", typ: i(0) }, | |
| 2147 | + ], false), | |
| 2148 | + "Instanceof": o([ | |
| 2149 | + { json: "instanceof", js: "instanceof", typ: i(0) }, | |
| 2150 | + ], false), | |
| 2151 | + "Int": o([ | |
| 2152 | + { json: "int", js: "int", typ: i(0) }, | |
| 2153 | + ], false), | |
| 2154 | + "Interface": o([ | |
| 2155 | + { json: "interface", js: "interface", typ: i(0) }, | |
| 2156 | + ], false), | |
| 2157 | + "Internal": o([ | |
| 2158 | + { json: "internal", js: "internal", typ: i(0) }, | |
| 2159 | + ], false), | |
| 2160 | + "Obj3": o([ | |
| 2161 | + { json: "NO", js: "NO", typ: r("No") }, | |
| 2162 | + { json: "NSString", js: "NSString", typ: r("NSString") }, | |
| 2163 | + { json: "NULL", js: "NULL", typ: r("Null") }, | |
| 2164 | + { json: "None", js: "None", typ: r("None") }, | |
| 2165 | + { json: "Protocol", js: "Protocol", typ: r("Protocol") }, | |
| 2166 | + { json: "dummy", js: "dummy", typ: i(0) }, | |
| 2167 | + { json: "is", js: "is", typ: r("Is") }, | |
| 2168 | + { json: "iterable", js: "iterable", typ: r("Iterable") }, | |
| 2169 | + { json: "jdec", js: "jdec", typ: r("Jdec") }, | |
| 2170 | + { json: "jenc", js: "jenc", typ: r("Jenc") }, | |
| 2171 | + { json: "jpipe", js: "jpipe", typ: r("Jpipe") }, | |
| 2172 | + { json: "json", js: "json", typ: r("JSON") }, | |
| 2173 | + { json: "json_converter", js: "json_converter", typ: r("JSONConverter") }, | |
| 2174 | + { json: "json_serializer", js: "json_serializer", typ: r("JSONSerializer") }, | |
| 2175 | + { json: "json_token", js: "json_token", typ: r("JSONToken") }, | |
| 2176 | + { json: "json_writer", js: "json_writer", typ: r("JSONWriter") }, | |
| 2177 | + { json: "lambda", js: "lambda", typ: r("Lambda") }, | |
| 2178 | + { json: "lazy", js: "lazy", typ: r("Lazy") }, | |
| 2179 | + { json: "left", js: "left", typ: r("Left") }, | |
| 2180 | + { json: "let", js: "let", typ: r("Let") }, | |
| 2181 | + { json: "list", js: "list", typ: r("List") }, | |
| 2182 | + { json: "lock", js: "lock", typ: r("Lock") }, | |
| 2183 | + { json: "long", js: "long", typ: r("Long") }, | |
| 2184 | + { json: "map", js: "map", typ: r("Map") }, | |
| 2185 | + { json: "metadata_property_handling", js: "metadata_property_handling", typ: r("MetadataPropertyHandling") }, | |
| 2186 | + { json: "module", js: "module", typ: r("Module") }, | |
| 2187 | + { json: "mutable", js: "mutable", typ: r("Mutable") }, | |
| 2188 | + { json: "mutating", js: "mutating", typ: r("Mutating") }, | |
| 2189 | + { json: "namespace", js: "namespace", typ: r("Namespace") }, | |
| 2190 | + { json: "native", js: "native", typ: r("Native") }, | |
| 2191 | + { json: "new", js: "new", typ: r("New") }, | |
| 2192 | + { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, | |
| 2193 | + { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2194 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2195 | + { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, | |
| 2196 | + { json: "none", js: "none", typ: r("NoneClass") }, | |
| 2197 | + { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, | |
| 2198 | + { json: "nonmutating", js: "nonmutating", typ: r("Nonmutating") }, | |
| 2199 | + { json: "not", js: "not", typ: r("Not") }, | |
| 2200 | + { json: "not_eq", js: "not_eq", typ: r("NotEq") }, | |
| 2201 | + { json: "null", js: "null", typ: r("NullClass") }, | |
| 2202 | + { json: "nullptr", js: "nullptr", typ: r("Nullptr") }, | |
| 2203 | + { json: "number", js: "number", typ: r("Number") }, | |
| 2204 | + { json: "object", js: "object", typ: r("Object") }, | |
| 2205 | + { json: "of", js: "of", typ: r("Of") }, | |
| 2206 | + { json: "oneway", js: "oneway", typ: r("Oneway") }, | |
| 2207 | + { json: "open", js: "open", typ: r("Open") }, | |
| 2208 | + { json: "operator", js: "operator", typ: r("Operator") }, | |
| 2209 | + { json: "optional", js: "optional", typ: r("Optional") }, | |
| 2210 | + { json: "or", js: "or", typ: r("Or") }, | |
| 2211 | + { json: "or_eq", js: "or_eq", typ: r("OrEq") }, | |
| 2212 | + { json: "out", js: "out", typ: r("Out") }, | |
| 2213 | + { json: "override", js: "override", typ: r("Override") }, | |
| 2214 | + { json: "package", js: "package", typ: r("Package") }, | |
| 2215 | + { json: "params", js: "params", typ: r("Params") }, | |
| 2216 | + { json: "pass", js: "pass", typ: r("Pass") }, | |
| 2217 | + { json: "port", js: "port", typ: r("Port") }, | |
| 2218 | + { json: "postfix", js: "postfix", typ: r("Postfix") }, | |
| 2219 | + { json: "precedence", js: "precedence", typ: r("Precedence") }, | |
| 2220 | + { json: "prefix", js: "prefix", typ: r("Prefix") }, | |
| 2221 | + { json: "print", js: "print", typ: r("Print") }, | |
| 2222 | + { json: "printMembers", js: "printMembers", typ: r("PrintMembers") }, | |
| 2223 | + { json: "printf", js: "printf", typ: r("Printf") }, | |
| 2224 | + { json: "private", js: "private", typ: r("Private") }, | |
| 2225 | + { json: "protected", js: "protected", typ: r("Protected") }, | |
| 2226 | + { json: "protocol", js: "protocol", typ: r("ProtocolClass") }, | |
| 2227 | + ], false), | |
| 2228 | + "No": o([ | |
| 2229 | + { json: "NO", js: "NO", typ: i(0) }, | |
| 2230 | + ], false), | |
| 2231 | + "NSString": o([ | |
| 2232 | + { json: "NSString", js: "NSString", typ: i(0) }, | |
| 2233 | + ], false), | |
| 2234 | + "Null": o([ | |
| 2235 | + { json: "NULL", js: "NULL", typ: i(0) }, | |
| 2236 | + ], false), | |
| 2237 | + "None": o([ | |
| 2238 | + { json: "None", js: "None", typ: i(0) }, | |
| 2239 | + ], false), | |
| 2240 | + "Protocol": o([ | |
| 2241 | + { json: "Protocol", js: "Protocol", typ: i(0) }, | |
| 2242 | + ], false), | |
| 2243 | + "Is": o([ | |
| 2244 | + { json: "is", js: "is", typ: i(0) }, | |
| 2245 | + ], false), | |
| 2246 | + "Iterable": o([ | |
| 2247 | + { json: "iterable", js: "iterable", typ: i(0) }, | |
| 2248 | + ], false), | |
| 2249 | + "Jdec": o([ | |
| 2250 | + { json: "jdec", js: "jdec", typ: i(0) }, | |
| 2251 | + ], false), | |
| 2252 | + "Jenc": o([ | |
| 2253 | + { json: "jenc", js: "jenc", typ: i(0) }, | |
| 2254 | + ], false), | |
| 2255 | + "Jpipe": o([ | |
| 2256 | + { json: "jpipe", js: "jpipe", typ: i(0) }, | |
| 2257 | + ], false), | |
| 2258 | + "JSON": o([ | |
| 2259 | + { json: "json", js: "json", typ: i(0) }, | |
| 2260 | + ], false), | |
| 2261 | + "JSONConverter": o([ | |
| 2262 | + { json: "json_converter", js: "json_converter", typ: i(0) }, | |
| 2263 | + ], false), | |
| 2264 | + "JSONSerializer": o([ | |
| 2265 | + { json: "json_serializer", js: "json_serializer", typ: i(0) }, | |
| 2266 | + ], false), | |
| 2267 | + "JSONToken": o([ | |
| 2268 | + { json: "json_token", js: "json_token", typ: i(0) }, | |
| 2269 | + ], false), | |
| 2270 | + "JSONWriter": o([ | |
| 2271 | + { json: "json_writer", js: "json_writer", typ: i(0) }, | |
| 2272 | + ], false), | |
| 2273 | + "Lambda": o([ | |
| 2274 | + { json: "lambda", js: "lambda", typ: i(0) }, | |
| 2275 | + ], false), | |
| 2276 | + "Lazy": o([ | |
| 2277 | + { json: "lazy", js: "lazy", typ: i(0) }, | |
| 2278 | + ], false), | |
| 2279 | + "Left": o([ | |
| 2280 | + { json: "left", js: "left", typ: i(0) }, | |
| 2281 | + ], false), | |
| 2282 | + "Let": o([ | |
| 2283 | + { json: "let", js: "let", typ: i(0) }, | |
| 2284 | + ], false), | |
| 2285 | + "List": o([ | |
| 2286 | + { json: "list", js: "list", typ: i(0) }, | |
| 2287 | + ], false), | |
| 2288 | + "Lock": o([ | |
| 2289 | + { json: "lock", js: "lock", typ: i(0) }, | |
| 2290 | + ], false), | |
| 2291 | + "Long": o([ | |
| 2292 | + { json: "long", js: "long", typ: i(0) }, | |
| 2293 | + ], false), | |
| 2294 | + "Map": o([ | |
| 2295 | + { json: "map", js: "map", typ: i(0) }, | |
| 2296 | + ], false), | |
| 2297 | + "MetadataPropertyHandling": o([ | |
| 2298 | + { json: "metadata_property_handling", js: "metadata_property_handling", typ: i(0) }, | |
| 2299 | + ], false), | |
| 2300 | + "Module": o([ | |
| 2301 | + { json: "module", js: "module", typ: i(0) }, | |
| 2302 | + ], false), | |
| 2303 | + "Mutable": o([ | |
| 2304 | + { json: "mutable", js: "mutable", typ: i(0) }, | |
| 2305 | + ], false), | |
| 2306 | + "Mutating": o([ | |
| 2307 | + { json: "mutating", js: "mutating", typ: i(0) }, | |
| 2308 | + ], false), | |
| 2309 | + "Namespace": o([ | |
| 2310 | + { json: "namespace", js: "namespace", typ: i(0) }, | |
| 2311 | + ], false), | |
| 2312 | + "Native": o([ | |
| 2313 | + { json: "native", js: "native", typ: i(0) }, | |
| 2314 | + ], false), | |
| 2315 | + "New": o([ | |
| 2316 | + { json: "new", js: "new", typ: i(0) }, | |
| 2317 | + ], false), | |
| 2318 | + "Newtonsoft": o([ | |
| 2319 | + { json: "newtonsoft", js: "newtonsoft", typ: i(0) }, | |
| 2320 | + ], false), | |
| 2321 | + "Nil": o([ | |
| 2322 | + { json: "nil", js: "nil", typ: i(0) }, | |
| 2323 | + ], false), | |
| 2324 | + "Noexcept": o([ | |
| 2325 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2326 | + ], false), | |
| 2327 | + "Nonatomic": o([ | |
| 2328 | + { json: "nonatomic", js: "nonatomic", typ: i(0) }, | |
| 2329 | + ], false), | |
| 2330 | + "NoneClass": o([ | |
| 2331 | + { json: "none", js: "none", typ: i(0) }, | |
| 2332 | + ], false), | |
| 2333 | + "Nonlocal": o([ | |
| 2334 | + { json: "nonlocal", js: "nonlocal", typ: i(0) }, | |
| 2335 | + ], false), | |
| 2336 | + "Nonmutating": o([ | |
| 2337 | + { json: "nonmutating", js: "nonmutating", typ: i(0) }, | |
| 2338 | + ], false), | |
| 2339 | + "Not": o([ | |
| 2340 | + { json: "not", js: "not", typ: i(0) }, | |
| 2341 | + ], false), | |
| 2342 | + "NotEq": o([ | |
| 2343 | + { json: "not_eq", js: "not_eq", typ: i(0) }, | |
| 2344 | + ], false), | |
| 2345 | + "NullClass": o([ | |
| 2346 | + { json: "null", js: "null", typ: i(0) }, | |
| 2347 | + ], false), | |
| 2348 | + "Nullptr": o([ | |
| 2349 | + { json: "nullptr", js: "nullptr", typ: i(0) }, | |
| 2350 | + ], false), | |
| 2351 | + "Number": o([ | |
| 2352 | + { json: "number", js: "number", typ: i(0) }, | |
| 2353 | + ], false), | |
| 2354 | + "Object": o([ | |
| 2355 | + { json: "object", js: "object", typ: i(0) }, | |
| 2356 | + ], false), | |
| 2357 | + "Of": o([ | |
| 2358 | + { json: "of", js: "of", typ: i(0) }, | |
| 2359 | + ], false), | |
| 2360 | + "Oneway": o([ | |
| 2361 | + { json: "oneway", js: "oneway", typ: i(0) }, | |
| 2362 | + ], false), | |
| 2363 | + "Open": o([ | |
| 2364 | + { json: "open", js: "open", typ: i(0) }, | |
| 2365 | + ], false), | |
| 2366 | + "Operator": o([ | |
| 2367 | + { json: "operator", js: "operator", typ: i(0) }, | |
| 2368 | + ], false), | |
| 2369 | + "Optional": o([ | |
| 2370 | + { json: "optional", js: "optional", typ: i(0) }, | |
| 2371 | + ], false), | |
| 2372 | + "Or": o([ | |
| 2373 | + { json: "or", js: "or", typ: i(0) }, | |
| 2374 | + ], false), | |
| 2375 | + "OrEq": o([ | |
| 2376 | + { json: "or_eq", js: "or_eq", typ: i(0) }, | |
| 2377 | + ], false), | |
| 2378 | + "Out": o([ | |
| 2379 | + { json: "out", js: "out", typ: i(0) }, | |
| 2380 | + ], false), | |
| 2381 | + "Override": o([ | |
| 2382 | + { json: "override", js: "override", typ: i(0) }, | |
| 2383 | + ], false), | |
| 2384 | + "Package": o([ | |
| 2385 | + { json: "package", js: "package", typ: i(0) }, | |
| 2386 | + ], false), | |
| 2387 | + "Params": o([ | |
| 2388 | + { json: "params", js: "params", typ: i(0) }, | |
| 2389 | + ], false), | |
| 2390 | + "Pass": o([ | |
| 2391 | + { json: "pass", js: "pass", typ: i(0) }, | |
| 2392 | + ], false), | |
| 2393 | + "Port": o([ | |
| 2394 | + { json: "port", js: "port", typ: i(0) }, | |
| 2395 | + ], false), | |
| 2396 | + "Postfix": o([ | |
| 2397 | + { json: "postfix", js: "postfix", typ: i(0) }, | |
| 2398 | + ], false), | |
| 2399 | + "Precedence": o([ | |
| 2400 | + { json: "precedence", js: "precedence", typ: i(0) }, | |
| 2401 | + ], false), | |
| 2402 | + "Prefix": o([ | |
| 2403 | + { json: "prefix", js: "prefix", typ: i(0) }, | |
| 2404 | + ], false), | |
| 2405 | + "Print": o([ | |
| 2406 | + { json: "print", js: "print", typ: i(0) }, | |
| 2407 | + ], false), | |
| 2408 | + "PrintMembers": o([ | |
| 2409 | + { json: "printMembers", js: "printMembers", typ: i(0) }, | |
| 2410 | + ], false), | |
| 2411 | + "Printf": o([ | |
| 2412 | + { json: "printf", js: "printf", typ: i(0) }, | |
| 2413 | + ], false), | |
| 2414 | + "Private": o([ | |
| 2415 | + { json: "private", js: "private", typ: i(0) }, | |
| 2416 | + ], false), | |
| 2417 | + "Protected": o([ | |
| 2418 | + { json: "protected", js: "protected", typ: i(0) }, | |
| 2419 | + ], false), | |
| 2420 | + "ProtocolClass": o([ | |
| 2421 | + { json: "protocol", js: "protocol", typ: i(0) }, | |
| 2422 | + ], false), | |
| 2423 | + "Obj4": o([ | |
| 2424 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2425 | + { json: "Self", js: "Self", typ: r("Self") }, | |
| 2426 | + { json: "True", js: "True", typ: r("True") }, | |
| 2427 | + { json: "Type", js: "Type", typ: r("Type") }, | |
| 2428 | + { json: "dummy", js: "dummy", typ: i(0) }, | |
| 2429 | + { json: "public", js: "public", typ: r("Public") }, | |
| 2430 | + { json: "quicktype", js: "quicktype", typ: r("Quicktype") }, | |
| 2431 | + { json: "raise", js: "raise", typ: r("Raise") }, | |
| 2432 | + { json: "range", js: "range", typ: r("Range") }, | |
| 2433 | + { json: "readonly", js: "readonly", typ: r("Readonly") }, | |
| 2434 | + { json: "ref", js: "ref", typ: r("Ref") }, | |
| 2435 | + { json: "register", js: "register", typ: r("Register") }, | |
| 2436 | + { json: "reinterpret_cast", js: "reinterpret_cast", typ: r("ReinterpretCast") }, | |
| 2437 | + { json: "repeat", js: "repeat", typ: r("Repeat") }, | |
| 2438 | + { json: "require", js: "require", typ: r("Require") }, | |
| 2439 | + { json: "required", js: "required", typ: r("Required") }, | |
| 2440 | + { json: "requires", js: "requires", typ: r("Requires") }, | |
| 2441 | + { json: "restrict", js: "restrict", typ: r("Restrict") }, | |
| 2442 | + { json: "retain", js: "retain", typ: r("Retain") }, | |
| 2443 | + { json: "rethrows", js: "rethrows", typ: r("Rethrows") }, | |
| 2444 | + { json: "return", js: "return", typ: r("Return") }, | |
| 2445 | + { json: "right", js: "right", typ: r("Right") }, | |
| 2446 | + { json: "s", js: "s", typ: r("S") }, | |
| 2447 | + { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 2448 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2449 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2450 | + { json: "self", js: "self", typ: r("SelfClass") }, | |
| 2451 | + { json: "serialize", js: "serialize", typ: r("Serialize") }, | |
| 2452 | + { json: "set", js: "set", typ: r("Set") }, | |
| 2453 | + { json: "short", js: "short", typ: r("Short") }, | |
| 2454 | + { json: "signed", js: "signed", typ: r("Signed") }, | |
| 2455 | + { json: "sizeof", js: "sizeof", typ: r("Sizeof") }, | |
| 2456 | + { json: "stackalloc", js: "stackalloc", typ: r("Stackalloc") }, | |
| 2457 | + { json: "static", js: "static", typ: r("Static") }, | |
| 2458 | + { json: "static_assert", js: "static_assert", typ: r("StaticAssert") }, | |
| 2459 | + { json: "static_cast", js: "static_cast", typ: r("StaticCast") }, | |
| 2460 | + { json: "strictfp", js: "strictfp", typ: r("Strictfp") }, | |
| 2461 | + { json: "string", js: "string", typ: r("String") }, | |
| 2462 | + { json: "struct", js: "struct", typ: r("Struct") }, | |
| 2463 | + { json: "subscript", js: "subscript", typ: r("Subscript") }, | |
| 2464 | + { json: "super", js: "super", typ: r("Super") }, | |
| 2465 | + { json: "switch", js: "switch", typ: r("Switch") }, | |
| 2466 | + { json: "symbol", js: "symbol", typ: r("Symbol") }, | |
| 2467 | + { json: "synchronized", js: "synchronized", typ: r("Synchronized") }, | |
| 2468 | + { json: "system", js: "system", typ: r("System") }, | |
| 2469 | + { json: "template", js: "template", typ: r("Template") }, | |
| 2470 | + { json: "then", js: "then", typ: r("Then") }, | |
| 2471 | + { json: "this", js: "this", typ: r("This") }, | |
| 2472 | + { json: "thread_local", js: "thread_local", typ: r("ThreadLocal") }, | |
| 2473 | + { json: "throw", js: "throw", typ: r("Throw") }, | |
| 2474 | + { json: "throws", js: "throws", typ: r("Throws") }, | |
| 2475 | + { json: "to_json", js: "to_json", typ: r("ToJSON") }, | |
| 2476 | + { json: "top_level", js: "top_level", typ: r("TopLevelClass") }, | |
| 2477 | + { json: "transient", js: "transient", typ: r("Transient") }, | |
| 2478 | + { json: "true", js: "true", typ: r("TrueClass") }, | |
| 2479 | + { json: "try", js: "try", typ: r("Try") }, | |
| 2480 | + { json: "type", js: "type", typ: r("TypeClass") }, | |
| 2481 | + { json: "typealias", js: "typealias", typ: r("Typealias") }, | |
| 2482 | + { json: "typedef", js: "typedef", typ: r("Typedef") }, | |
| 2483 | + { json: "typeid", js: "typeid", typ: r("Typeid") }, | |
| 2484 | + { json: "typename", js: "typename", typ: r("Typename") }, | |
| 2485 | + { json: "typeof", js: "typeof", typ: r("Typeof") }, | |
| 2486 | + { json: "uint", js: "uint", typ: r("Uint") }, | |
| 2487 | + { json: "ulong", js: "ulong", typ: r("Ulong") }, | |
| 2488 | + { json: "unchecked", js: "unchecked", typ: r("Unchecked") }, | |
| 2489 | + { json: "undefined", js: "undefined", typ: r("Undefined") }, | |
| 2490 | + ], false), | |
| 2491 | + "Sel": o([ | |
| 2492 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2493 | + ], false), | |
| 2494 | + "Self": o([ | |
| 2495 | + { json: "Self", js: "Self", typ: i(0) }, | |
| 2496 | + ], false), | |
| 2497 | + "True": o([ | |
| 2498 | + { json: "True", js: "True", typ: i(0) }, | |
| 2499 | + ], false), | |
| 2500 | + "Type": o([ | |
| 2501 | + { json: "Type", js: "Type", typ: i(0) }, | |
| 2502 | + ], false), | |
| 2503 | + "Public": o([ | |
| 2504 | + { json: "public", js: "public", typ: i(0) }, | |
| 2505 | + ], false), | |
| 2506 | + "Quicktype": o([ | |
| 2507 | + { json: "quicktype", js: "quicktype", typ: i(0) }, | |
| 2508 | + ], false), | |
| 2509 | + "Raise": o([ | |
| 2510 | + { json: "raise", js: "raise", typ: i(0) }, | |
| 2511 | + ], false), | |
| 2512 | + "Range": o([ | |
| 2513 | + { json: "range", js: "range", typ: i(0) }, | |
| 2514 | + ], false), | |
| 2515 | + "Readonly": o([ | |
| 2516 | + { json: "readonly", js: "readonly", typ: i(0) }, | |
| 2517 | + ], false), | |
| 2518 | + "Ref": o([ | |
| 2519 | + { json: "ref", js: "ref", typ: i(0) }, | |
| 2520 | + ], false), | |
| 2521 | + "Register": o([ | |
| 2522 | + { json: "register", js: "register", typ: i(0) }, | |
| 2523 | + ], false), | |
| 2524 | + "ReinterpretCast": o([ | |
| 2525 | + { json: "reinterpret_cast", js: "reinterpret_cast", typ: i(0) }, | |
| 2526 | + ], false), | |
| 2527 | + "Repeat": o([ | |
| 2528 | + { json: "repeat", js: "repeat", typ: i(0) }, | |
| 2529 | + ], false), | |
| 2530 | + "Require": o([ | |
| 2531 | + { json: "require", js: "require", typ: i(0) }, | |
| 2532 | + ], false), | |
| 2533 | + "Required": o([ | |
| 2534 | + { json: "required", js: "required", typ: i(0) }, | |
| 2535 | + ], false), | |
| 2536 | + "Requires": o([ | |
| 2537 | + { json: "requires", js: "requires", typ: i(0) }, | |
| 2538 | + ], false), | |
| 2539 | + "Restrict": o([ | |
| 2540 | + { json: "restrict", js: "restrict", typ: i(0) }, | |
| 2541 | + ], false), | |
| 2542 | + "Retain": o([ | |
| 2543 | + { json: "retain", js: "retain", typ: i(0) }, | |
| 2544 | + ], false), | |
| 2545 | + "Rethrows": o([ | |
| 2546 | + { json: "rethrows", js: "rethrows", typ: i(0) }, | |
| 2547 | + ], false), | |
| 2548 | + "Return": o([ | |
| 2549 | + { json: "return", js: "return", typ: i(0) }, | |
| 2550 | + ], false), | |
| 2551 | + "Right": o([ | |
| 2552 | + { json: "right", js: "right", typ: i(0) }, | |
| 2553 | + ], false), | |
| 2554 | + "S": o([ | |
| 2555 | + { json: "s", js: "s", typ: i(0) }, | |
| 2556 | + ], false), | |
| 2557 | + "Sbyte": o([ | |
| 2558 | + { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 2559 | + ], false), | |
| 2560 | + "Sealed": o([ | |
| 2561 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2562 | + ], false), | |
| 2563 | + "Select": o([ | |
| 2564 | + { json: "select", js: "select", typ: i(0) }, | |
| 2565 | + ], false), | |
| 2566 | + "SelfClass": o([ | |
| 2567 | + { json: "self", js: "self", typ: i(0) }, | |
| 2568 | + ], false), | |
| 2569 | + "Serialize": o([ | |
| 2570 | + { json: "serialize", js: "serialize", typ: i(0) }, | |
| 2571 | + ], false), | |
| 2572 | + "Set": o([ | |
| 2573 | + { json: "set", js: "set", typ: i(0) }, | |
| 2574 | + ], false), | |
| 2575 | + "Short": o([ | |
| 2576 | + { json: "short", js: "short", typ: i(0) }, | |
| 2577 | + ], false), | |
| 2578 | + "Signed": o([ | |
| 2579 | + { json: "signed", js: "signed", typ: i(0) }, | |
| 2580 | + ], false), | |
| 2581 | + "Sizeof": o([ | |
| 2582 | + { json: "sizeof", js: "sizeof", typ: i(0) }, | |
| 2583 | + ], false), | |
| 2584 | + "Stackalloc": o([ | |
| 2585 | + { json: "stackalloc", js: "stackalloc", typ: i(0) }, | |
| 2586 | + ], false), | |
| 2587 | + "Static": o([ | |
| 2588 | + { json: "static", js: "static", typ: i(0) }, | |
| 2589 | + ], false), | |
| 2590 | + "StaticAssert": o([ | |
| 2591 | + { json: "static_assert", js: "static_assert", typ: i(0) }, | |
| 2592 | + ], false), | |
| 2593 | + "StaticCast": o([ | |
| 2594 | + { json: "static_cast", js: "static_cast", typ: i(0) }, | |
| 2595 | + ], false), | |
| 2596 | + "Strictfp": o([ | |
| 2597 | + { json: "strictfp", js: "strictfp", typ: i(0) }, | |
| 2598 | + ], false), | |
| 2599 | + "String": o([ | |
| 2600 | + { json: "string", js: "string", typ: i(0) }, | |
| 2601 | + ], false), | |
| 2602 | + "Struct": o([ | |
| 2603 | + { json: "struct", js: "struct", typ: i(0) }, | |
| 2604 | + ], false), | |
| 2605 | + "Subscript": o([ | |
| 2606 | + { json: "subscript", js: "subscript", typ: i(0) }, | |
| 2607 | + ], false), | |
| 2608 | + "Super": o([ | |
| 2609 | + { json: "super", js: "super", typ: i(0) }, | |
| 2610 | + ], false), | |
| 2611 | + "Switch": o([ | |
| 2612 | + { json: "switch", js: "switch", typ: i(0) }, | |
| 2613 | + ], false), | |
| 2614 | + "Symbol": o([ | |
| 2615 | + { json: "symbol", js: "symbol", typ: i(0) }, | |
| 2616 | + ], false), | |
| 2617 | + "Synchronized": o([ | |
| 2618 | + { json: "synchronized", js: "synchronized", typ: i(0) }, | |
| 2619 | + ], false), | |
| 2620 | + "System": o([ | |
| 2621 | + { json: "system", js: "system", typ: i(0) }, | |
| 2622 | + ], false), | |
| 2623 | + "Template": o([ | |
| 2624 | + { json: "template", js: "template", typ: i(0) }, | |
| 2625 | + ], false), | |
| 2626 | + "Then": o([ | |
| 2627 | + { json: "then", js: "then", typ: i(0) }, | |
| 2628 | + ], false), | |
| 2629 | + "This": o([ | |
| 2630 | + { json: "this", js: "this", typ: i(0) }, | |
| 2631 | + ], false), | |
| 2632 | + "ThreadLocal": o([ | |
| 2633 | + { json: "thread_local", js: "thread_local", typ: i(0) }, | |
| 2634 | + ], false), | |
| 2635 | + "Throw": o([ | |
| 2636 | + { json: "throw", js: "throw", typ: i(0) }, | |
| 2637 | + ], false), | |
| 2638 | + "Throws": o([ | |
| 2639 | + { json: "throws", js: "throws", typ: i(0) }, | |
| 2640 | + ], false), | |
| 2641 | + "ToJSON": o([ | |
| 2642 | + { json: "to_json", js: "to_json", typ: i(0) }, | |
| 2643 | + ], false), | |
| 2644 | + "TopLevelClass": o([ | |
| 2645 | + { json: "top_level", js: "top_level", typ: i(0) }, | |
| 2646 | + ], false), | |
| 2647 | + "Transient": o([ | |
| 2648 | + { json: "transient", js: "transient", typ: i(0) }, | |
| 2649 | + ], false), | |
| 2650 | + "TrueClass": o([ | |
| 2651 | + { json: "true", js: "true", typ: i(0) }, | |
| 2652 | + ], false), | |
| 2653 | + "Try": o([ | |
| 2654 | + { json: "try", js: "try", typ: i(0) }, | |
| 2655 | + ], false), | |
| 2656 | + "TypeClass": o([ | |
| 2657 | + { json: "type", js: "type", typ: i(0) }, | |
| 2658 | + ], false), | |
| 2659 | + "Typealias": o([ | |
| 2660 | + { json: "typealias", js: "typealias", typ: i(0) }, | |
| 2661 | + ], false), | |
| 2662 | + "Typedef": o([ | |
| 2663 | + { json: "typedef", js: "typedef", typ: i(0) }, | |
| 2664 | + ], false), | |
| 2665 | + "Typeid": o([ | |
| 2666 | + { json: "typeid", js: "typeid", typ: i(0) }, | |
| 2667 | + ], false), | |
| 2668 | + "Typename": o([ | |
| 2669 | + { json: "typename", js: "typename", typ: i(0) }, | |
| 2670 | + ], false), | |
| 2671 | + "Typeof": o([ | |
| 2672 | + { json: "typeof", js: "typeof", typ: i(0) }, | |
| 2673 | + ], false), | |
| 2674 | + "Uint": o([ | |
| 2675 | + { json: "uint", js: "uint", typ: i(0) }, | |
| 2676 | + ], false), | |
| 2677 | + "Ulong": o([ | |
| 2678 | + { json: "ulong", js: "ulong", typ: i(0) }, | |
| 2679 | + ], false), | |
| 2680 | + "Unchecked": o([ | |
| 2681 | + { json: "unchecked", js: "unchecked", typ: i(0) }, | |
| 2682 | + ], false), | |
| 2683 | + "Undefined": o([ | |
| 2684 | + { json: "undefined", js: "undefined", typ: i(0) }, | |
| 2685 | + ], false), | |
| 2686 | + "Obj5": o([ | |
| 2687 | + { json: "YES", js: "YES", typ: r("Yes") }, | |
| 2688 | + { json: "dummy", js: "dummy", typ: i(0) }, | |
| 2689 | + { json: "union", js: "union", typ: r("Union") }, | |
| 2690 | + { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 2691 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 2692 | + { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 2693 | + { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 2694 | + { json: "using", js: "using", typ: r("Using") }, | |
| 2695 | + { json: "var", js: "var", typ: r("Var") }, | |
| 2696 | + { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 2697 | + { json: "void", js: "void", typ: r("Void") }, | |
| 2698 | + { json: "volatile", js: "volatile", typ: r("Volatile") }, | |
| 2699 | + { json: "wchar_t", js: "wchar_t", typ: r("WcharT") }, | |
| 2700 | + { json: "weak", js: "weak", typ: r("Weak") }, | |
| 2701 | + { json: "where", js: "where", typ: r("Where") }, | |
| 2702 | + { json: "while", js: "while", typ: r("While") }, | |
| 2703 | + { json: "willSet", js: "willSet", typ: r("WillSet") }, | |
| 2704 | + { json: "with", js: "with", typ: r("With") }, | |
| 2705 | + { json: "xor", js: "xor", typ: r("Xor") }, | |
| 2706 | + { json: "xor_eq", js: "xor_eq", typ: r("XorEq") }, | |
| 2707 | + { json: "yield", js: "yield", typ: r("Yield") }, | |
| 2708 | + ], false), | |
| 2709 | + "Yes": o([ | |
| 2710 | + { json: "YES", js: "YES", typ: i(0) }, | |
| 2711 | + ], false), | |
| 2712 | + "Union": o([ | |
| 2713 | + { json: "union", js: "union", typ: i(0) }, | |
| 2714 | + ], false), | |
| 2715 | + "Unowned": o([ | |
| 2716 | + { json: "unowned", js: "unowned", typ: i(0) }, | |
| 2717 | + ], false), | |
| 2718 | + "Unsafe": o([ | |
| 2719 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 2720 | + ], false), | |
| 2721 | + "Unsigned": o([ | |
| 2722 | + { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 2723 | + ], false), | |
| 2724 | + "Ushort": o([ | |
| 2725 | + { json: "ushort", js: "ushort", typ: i(0) }, | |
| 2726 | + ], false), | |
| 2727 | + "Using": o([ | |
| 2728 | + { json: "using", js: "using", typ: i(0) }, | |
| 2729 | + ], false), | |
| 2730 | + "Var": o([ | |
| 2731 | + { json: "var", js: "var", typ: i(0) }, | |
| 2732 | + ], false), | |
| 2733 | + "Virtual": o([ | |
| 2734 | + { json: "virtual", js: "virtual", typ: i(0) }, | |
| 2735 | + ], false), | |
| 2736 | + "Void": o([ | |
| 2737 | + { json: "void", js: "void", typ: i(0) }, | |
| 2738 | + ], false), | |
| 2739 | + "Volatile": o([ | |
| 2740 | + { json: "volatile", js: "volatile", typ: i(0) }, | |
| 2741 | + ], false), | |
| 2742 | + "WcharT": o([ | |
| 2743 | + { json: "wchar_t", js: "wchar_t", typ: i(0) }, | |
| 2744 | + ], false), | |
| 2745 | + "Weak": o([ | |
| 2746 | + { json: "weak", js: "weak", typ: i(0) }, | |
| 2747 | + ], false), | |
| 2748 | + "Where": o([ | |
| 2749 | + { json: "where", js: "where", typ: i(0) }, | |
| 2750 | + ], false), | |
| 2751 | + "While": o([ | |
| 2752 | + { json: "while", js: "while", typ: i(0) }, | |
| 2753 | + ], false), | |
| 2754 | + "WillSet": o([ | |
| 2755 | + { json: "willSet", js: "willSet", typ: i(0) }, | |
| 2756 | + ], false), | |
| 2757 | + "With": o([ | |
| 2758 | + { json: "with", js: "with", typ: i(0) }, | |
| 2759 | + ], false), | |
| 2760 | + "Xor": o([ | |
| 2761 | + { json: "xor", js: "xor", typ: i(0) }, | |
| 2762 | + ], false), | |
| 2763 | + "XorEq": o([ | |
| 2764 | + { json: "xor_eq", js: "xor_eq", typ: i(0) }, | |
| 2765 | + ], false), | |
| 2766 | + "Yield": o([ | |
| 2767 | + { json: "yield", js: "yield", typ: i(0) }, | |
| 2768 | + ], false), | |
| 2769 | +}; |
Test case
1 generated file · +21 −3test/inputs/json/priority/nbl-stats.json
Melixirdefault / QuickType.ex+21 −3
| @@ -816,6 +816,12 @@ defmodule Scorer do | ||
| 816 | 816 | def encode_name(value) when is_binary(value), do: value |
| 817 | 817 | def encode_name(_), do: {:error, "Unexpected type when encoding Scorer.name"} |
| 818 | 818 | |
| 819 | + def decode_per(value) when is_integer(value), do: value | |
| 820 | + def decode_per(_), do: {:error, "Unexpected type when decoding Scorer.per"} | |
| 821 | + | |
| 822 | + def encode_per(value) when is_integer(value), do: value | |
| 823 | + def encode_per(_), do: {:error, "Unexpected type when encoding Scorer.per"} | |
| 824 | + | |
| 819 | 825 | def decode_player(value) when is_binary(value), do: value |
| 820 | 826 | def decode_player(_), do: {:error, "Unexpected type when decoding Scorer.player"} |
| 821 | 827 | |
| @@ -846,6 +852,12 @@ defmodule Scorer do | ||
| 846 | 852 | def encode_tno(value) when is_integer(value), do: value |
| 847 | 853 | def encode_tno(_), do: {:error, "Unexpected type when encoding Scorer.tno"} |
| 848 | 854 | |
| 855 | + def decode_tot(value) when is_integer(value), do: value | |
| 856 | + def decode_tot(_), do: {:error, "Unexpected type when decoding Scorer.tot"} | |
| 857 | + | |
| 858 | + def encode_tot(value) when is_integer(value), do: value | |
| 859 | + def encode_tot(_), do: {:error, "Unexpected type when encoding Scorer.tot"} | |
| 860 | + | |
| 849 | 861 | def from_map(m) do |
| 850 | 862 | %Scorer{ |
| 851 | 863 | family_name: m["familyName"] && decode_family_name(m["familyName"]), |
| @@ -858,7 +870,7 @@ defmodule Scorer do | ||
| 858 | 870 | international_first_name: m["internationalFirstName"] && decode_international_first_name(m["internationalFirstName"]), |
| 859 | 871 | international_first_name_initial: m["internationalFirstNameInitial"] && FirstNameInitial.decode(m["internationalFirstNameInitial"]), |
| 860 | 872 | name: m["name"] && decode_name(m["name"]), |
| 861 | - per: m["per"], | |
| 873 | + per: m["per"] && decode_per(m["per"]), | |
| 862 | 874 | per_type: m["perType"] && PerType.decode(m["perType"]), |
| 863 | 875 | player: m["player"] && decode_player(m["player"]), |
| 864 | 876 | pno: decode_pno(m["pno"]), |
| @@ -867,7 +879,7 @@ defmodule Scorer do | ||
| 867 | 879 | summary: m["summary"] && decode_summary(m["summary"]), |
| 868 | 880 | times: m["times"] && Enum.map(m["times"], &TimeElement.from_map/1), |
| 869 | 881 | tno: decode_tno(m["tno"]), |
| 870 | - tot: m["tot"], | |
| 882 | + tot: m["tot"] && decode_tot(m["tot"]), | |
| 871 | 883 | } |
| 872 | 884 | end |
| 873 | 885 | |
| @@ -1130,6 +1142,12 @@ defmodule Pl do | ||
| 1130 | 1142 | def encode_active(value) when is_integer(value), do: value |
| 1131 | 1143 | def encode_active(_), do: {:error, "Unexpected type when encoding Pl.active"} |
| 1132 | 1144 | |
| 1145 | + def decode_captain(value) when is_integer(value), do: value | |
| 1146 | + def decode_captain(_), do: {:error, "Unexpected type when decoding Pl.captain"} | |
| 1147 | + | |
| 1148 | + def encode_captain(value) when is_integer(value), do: value | |
| 1149 | + def encode_captain(_), do: {:error, "Unexpected type when encoding Pl.captain"} | |
| 1150 | + | |
| 1133 | 1151 | def decode_eff_1(value) when is_integer(value), do: value |
| 1134 | 1152 | def decode_eff_1(_), do: {:error, "Unexpected type when decoding Pl.eff_1"} |
| 1135 | 1153 | |
| @@ -1389,7 +1407,7 @@ defmodule Pl do | ||
| 1389 | 1407 | def from_map(m) do |
| 1390 | 1408 | %Pl{ |
| 1391 | 1409 | active: decode_active(m["active"]), |
| 1392 | - captain: m["captain"], | |
| 1410 | + captain: m["captain"] && decode_captain(m["captain"]), | |
| 1393 | 1411 | comp: m["comp"] && Comp.from_map(m["comp"]), |
| 1394 | 1412 | eff_1: decode_eff_1(m["eff_1"]), |
| 1395 | 1413 | eff_2: decode_eff_2(m["eff_2"]), |
Test case
1 generated file · +28 −4test/inputs/json/samples/github-events.json
Melixirdefault / QuickType.ex+28 −4
| @@ -2233,6 +2233,12 @@ defmodule Payload do | ||
| 2233 | 2233 | def encode_description(value) when is_binary(value), do: value |
| 2234 | 2234 | def encode_description(_), do: {:error, "Unexpected type when encoding Payload.description"} |
| 2235 | 2235 | |
| 2236 | + def decode_distinct_size(value) when is_integer(value), do: value | |
| 2237 | + def decode_distinct_size(_), do: {:error, "Unexpected type when decoding Payload.distinct_size"} | |
| 2238 | + | |
| 2239 | + def encode_distinct_size(value) when is_integer(value), do: value | |
| 2240 | + def encode_distinct_size(_), do: {:error, "Unexpected type when encoding Payload.distinct_size"} | |
| 2241 | + | |
| 2236 | 2242 | def decode_head(value) when is_binary(value), do: value |
| 2237 | 2243 | def decode_head(_), do: {:error, "Unexpected type when decoding Payload.head"} |
| 2238 | 2244 | |
| @@ -2245,6 +2251,18 @@ defmodule Payload do | ||
| 2245 | 2251 | def encode_master_branch(value) when is_binary(value), do: value |
| 2246 | 2252 | def encode_master_branch(_), do: {:error, "Unexpected type when encoding Payload.master_branch"} |
| 2247 | 2253 | |
| 2254 | + def decode_number(value) when is_integer(value), do: value | |
| 2255 | + def decode_number(_), do: {:error, "Unexpected type when decoding Payload.number"} | |
| 2256 | + | |
| 2257 | + def encode_number(value) when is_integer(value), do: value | |
| 2258 | + def encode_number(_), do: {:error, "Unexpected type when encoding Payload.number"} | |
| 2259 | + | |
| 2260 | + def decode_push_id(value) when is_integer(value), do: value | |
| 2261 | + def decode_push_id(_), do: {:error, "Unexpected type when decoding Payload.push_id"} | |
| 2262 | + | |
| 2263 | + def encode_push_id(value) when is_integer(value), do: value | |
| 2264 | + def encode_push_id(_), do: {:error, "Unexpected type when encoding Payload.push_id"} | |
| 2265 | + | |
| 2248 | 2266 | def decode_pusher_type(value) when is_binary(value), do: value |
| 2249 | 2267 | def decode_pusher_type(_), do: {:error, "Unexpected type when decoding Payload.pusher_type"} |
| 2250 | 2268 | |
| @@ -2263,6 +2281,12 @@ defmodule Payload do | ||
| 2263 | 2281 | def encode_ref_type(value) when is_binary(value), do: value |
| 2264 | 2282 | def encode_ref_type(_), do: {:error, "Unexpected type when encoding Payload.ref_type"} |
| 2265 | 2283 | |
| 2284 | + def decode_size(value) when is_integer(value), do: value | |
| 2285 | + def decode_size(_), do: {:error, "Unexpected type when decoding Payload.size"} | |
| 2286 | + | |
| 2287 | + def encode_size(value) when is_integer(value), do: value | |
| 2288 | + def encode_size(_), do: {:error, "Unexpected type when encoding Payload.size"} | |
| 2289 | + | |
| 2266 | 2290 | def from_map(m) do |
| 2267 | 2291 | %Payload{ |
| 2268 | 2292 | action: m["action"] && decode_action(m["action"]), |
| @@ -2270,17 +2294,17 @@ defmodule Payload do | ||
| 2270 | 2294 | comment: m["comment"] && Comment.from_map(m["comment"]), |
| 2271 | 2295 | commits: m["commits"] && Enum.map(m["commits"], &Commit.from_map/1), |
| 2272 | 2296 | description: m["description"] && decode_description(m["description"]), |
| 2273 | - distinct_size: m["distinct_size"], | |
| 2297 | + distinct_size: m["distinct_size"] && decode_distinct_size(m["distinct_size"]), | |
| 2274 | 2298 | head: m["head"] && decode_head(m["head"]), |
| 2275 | 2299 | issue: m["issue"] && Issue.from_map(m["issue"]), |
| 2276 | 2300 | master_branch: m["master_branch"] && decode_master_branch(m["master_branch"]), |
| 2277 | - number: m["number"], | |
| 2301 | + number: m["number"] && decode_number(m["number"]), | |
| 2278 | 2302 | pull_request: m["pull_request"] && PayloadPullRequest.from_map(m["pull_request"]), |
| 2279 | - push_id: m["push_id"], | |
| 2303 | + push_id: m["push_id"] && decode_push_id(m["push_id"]), | |
| 2280 | 2304 | pusher_type: m["pusher_type"] && decode_pusher_type(m["pusher_type"]), |
| 2281 | 2305 | ref: m["ref"] && decode_ref(m["ref"]), |
| 2282 | 2306 | ref_type: m["ref_type"] && decode_ref_type(m["ref_type"]), |
| 2283 | - size: m["size"], | |
| 2307 | + size: m["size"] && decode_size(m["size"]), | |
| 2284 | 2308 | } |
| 2285 | 2309 | end |
Test case
37 generated files · +2,844 −0test/inputs/json/samples/objc-control-characters.json
Acjsondefault / TopLevel.c+131 −0
| @@ -0,0 +1,131 @@ | ||
| 1 | +/** | |
| 2 | + * TopLevel.c | |
| 3 | + * This file has been autogenerated using quicktype https://github.com/quicktype/quicktype - DO NOT EDIT | |
| 4 | + */ | |
| 5 | + | |
| 6 | +#include "TopLevel.h" | |
| 7 | + | |
| 8 | +struct TopLevel * cJSON_ParseTopLevel(const char * s) { | |
| 9 | + struct TopLevel * x = NULL; | |
| 10 | + if (NULL != s) { | |
| 11 | + cJSON * j = cJSON_Parse(s); | |
| 12 | + if (NULL != j) { | |
| 13 | + x = cJSON_GetTopLevelValue(j); | |
| 14 | + cJSON_Delete(j); | |
| 15 | + } | |
| 16 | + } | |
| 17 | + return x; | |
| 18 | +} | |
| 19 | + | |
| 20 | +struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | |
| 21 | + struct TopLevel * x = NULL; | |
| 22 | + if (NULL != j) { | |
| 23 | + if (NULL != (x = cJSON_malloc(sizeof(struct TopLevel)))) { | |
| 24 | + memset(x, 0, sizeof(struct TopLevel)); | |
| 25 | + if (!cJSON_HasObjectItem(j, "\000\001\033\037")) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 26 | + if (cJSON_HasObjectItem(j, "\000\001\033\037")) { | |
| 27 | + if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "\000\001\033\037"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 28 | + x->empty = strdup(cJSON_GetStringValue(cJSON_GetObjectItemCaseSensitive(j, "\000\001\033\037"))); | |
| 29 | + } | |
| 30 | + else { | |
| 31 | + if (NULL != (x->empty = cJSON_malloc(sizeof(char)))) { | |
| 32 | + x->empty[0] = '\0'; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + if (!cJSON_HasObjectItem(j, "\U0001f600")) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 36 | + if (cJSON_HasObjectItem(j, "\U0001f600")) { | |
| 37 | + if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "\U0001f600"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 38 | + x->purple = strdup(cJSON_GetStringValue(cJSON_GetObjectItemCaseSensitive(j, "\U0001f600"))); | |
| 39 | + } | |
| 40 | + else { | |
| 41 | + if (NULL != (x->purple = cJSON_malloc(sizeof(char)))) { | |
| 42 | + x->purple[0] = '\0'; | |
| 43 | + } | |
| 44 | + } | |
| 45 | + if (!cJSON_HasObjectItem(j, "\177\302\200\302\205\302\237")) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 46 | + if (cJSON_HasObjectItem(j, "\177\302\200\302\205\302\237")) { | |
| 47 | + if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "\177\302\200\302\205\302\237"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 48 | + x->top_level = strdup(cJSON_GetStringValue(cJSON_GetObjectItemCaseSensitive(j, "\177\302\200\302\205\302\237"))); | |
| 49 | + } | |
| 50 | + else { | |
| 51 | + if (NULL != (x->top_level = cJSON_malloc(sizeof(char)))) { | |
| 52 | + x->top_level[0] = '\0'; | |
| 53 | + } | |
| 54 | + } | |
| 55 | + if (!cJSON_HasObjectItem(j, "\\033")) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 56 | + if (cJSON_HasObjectItem(j, "\\033")) { | |
| 57 | + if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "\\033"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 58 | + x->u001_b = strdup(cJSON_GetStringValue(cJSON_GetObjectItemCaseSensitive(j, "\\033"))); | |
| 59 | + } | |
| 60 | + else { | |
| 61 | + if (NULL != (x->u001_b = cJSON_malloc(sizeof(char)))) { | |
| 62 | + x->u001_b[0] = '\0'; | |
| 63 | + } | |
| 64 | + } | |
| 65 | + } | |
| 66 | + } | |
| 67 | + return x; | |
| 68 | +} | |
| 69 | + | |
| 70 | +cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | |
| 71 | + cJSON * j = NULL; | |
| 72 | + if (NULL != x) { | |
| 73 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 74 | + if (NULL != x->empty) { | |
| 75 | + cJSON_AddStringToObject(j, "\000\001\033\037", x->empty); | |
| 76 | + } | |
| 77 | + else { | |
| 78 | + cJSON_AddStringToObject(j, "\000\001\033\037", ""); | |
| 79 | + } | |
| 80 | + if (NULL != x->purple) { | |
| 81 | + cJSON_AddStringToObject(j, "\U0001f600", x->purple); | |
| 82 | + } | |
| 83 | + else { | |
| 84 | + cJSON_AddStringToObject(j, "\U0001f600", ""); | |
| 85 | + } | |
| 86 | + if (NULL != x->top_level) { | |
| 87 | + cJSON_AddStringToObject(j, "\177\302\200\302\205\302\237", x->top_level); | |
| 88 | + } | |
| 89 | + else { | |
| 90 | + cJSON_AddStringToObject(j, "\177\302\200\302\205\302\237", ""); | |
| 91 | + } | |
| 92 | + if (NULL != x->u001_b) { | |
| 93 | + cJSON_AddStringToObject(j, "\\033", x->u001_b); | |
| 94 | + } | |
| 95 | + else { | |
| 96 | + cJSON_AddStringToObject(j, "\\033", ""); | |
| 97 | + } | |
| 98 | + } | |
| 99 | + } | |
| 100 | + return j; | |
| 101 | +} | |
| 102 | + | |
| 103 | +char * cJSON_PrintTopLevel(const struct TopLevel * x) { | |
| 104 | + char * s = NULL; | |
| 105 | + if (NULL != x) { | |
| 106 | + cJSON * j = cJSON_CreateTopLevel(x); | |
| 107 | + if (NULL != j) { | |
| 108 | + s = cJSON_Print(j); | |
| 109 | + cJSON_Delete(j); | |
| 110 | + } | |
| 111 | + } | |
| 112 | + return s; | |
| 113 | +} | |
| 114 | + | |
| 115 | +void cJSON_DeleteTopLevel(struct TopLevel * x) { | |
| 116 | + if (NULL != x) { | |
| 117 | + if (NULL != x->empty) { | |
| 118 | + cJSON_free(x->empty); | |
| 119 | + } | |
| 120 | + if (NULL != x->purple) { | |
| 121 | + cJSON_free(x->purple); | |
| 122 | + } | |
| 123 | + if (NULL != x->top_level) { | |
| 124 | + cJSON_free(x->top_level); | |
| 125 | + } | |
| 126 | + if (NULL != x->u001_b) { | |
| 127 | + cJSON_free(x->u001_b); | |
| 128 | + } | |
| 129 | + cJSON_free(x); | |
| 130 | + } | |
| 131 | +} |
Acjsondefault / TopLevel.h+58 −0
| @@ -0,0 +1,58 @@ | ||
| 1 | +/** | |
| 2 | + * TopLevel.h | |
| 3 | + * This file has been autogenerated using quicktype https://github.com/quicktype/quicktype - DO NOT EDIT | |
| 4 | + * This file depends of https://github.com/DaveGamble/cJSON, https://github.com/joelguittet/c-list and https://github.com/joelguittet/c-hashtable | |
| 5 | + * To parse json data from json string use the following: struct <type> * data = cJSON_Parse<type>(<string>); | |
| 6 | + * To get json data from cJSON object use the following: struct <type> * data = cJSON_Get<type>Value(<cjson>); | |
| 7 | + * To get cJSON object from json data use the following: cJSON * cjson = cJSON_Create<type>(<data>); | |
| 8 | + * To print json string from json data use the following: char * string = cJSON_Print<type>(<data>); | |
| 9 | + * To delete json data use the following: cJSON_Delete<type>(<data>); | |
| 10 | + */ | |
| 11 | + | |
| 12 | +#ifndef __TOPLEVEL_H__ | |
| 13 | +#define __TOPLEVEL_H__ | |
| 14 | + | |
| 15 | +#ifdef __cplusplus | |
| 16 | +extern "C" { | |
| 17 | +#endif | |
| 18 | + | |
| 19 | +#include <stdint.h> | |
| 20 | +#include <stdbool.h> | |
| 21 | +#include <stdlib.h> | |
| 22 | +#include <string.h> | |
| 23 | +#include <regex.h> | |
| 24 | +#include <cJSON.h> | |
| 25 | +#include <hashtable.h> | |
| 26 | +#include <list.h> | |
| 27 | + | |
| 28 | +#define quicktype_cJSON_Duplicate(j) cJSON_Duplicate(j, true) | |
| 29 | +#define cJSON_Integer (1 << 18) | |
| 30 | +#define quicktype_cJSON_IsInteger(j) (cJSON_IsNumber(j) && (j)->valuedouble == (int64_t)(j)->valuedouble) | |
| 31 | +#ifndef cJSON_Bool | |
| 32 | +#define cJSON_Bool (cJSON_True | cJSON_False) | |
| 33 | +#endif | |
| 34 | +#ifndef cJSON_Map | |
| 35 | +#define cJSON_Map (1 << 16) | |
| 36 | +#endif | |
| 37 | +#ifndef cJSON_Enum | |
| 38 | +#define cJSON_Enum (1 << 17) | |
| 39 | +#endif | |
| 40 | + | |
| 41 | +struct TopLevel { | |
| 42 | + char * empty; | |
| 43 | + char * purple; | |
| 44 | + char * top_level; | |
| 45 | + char * u001_b; | |
| 46 | +}; | |
| 47 | + | |
| 48 | +struct TopLevel * cJSON_ParseTopLevel(const char * s); | |
| 49 | +struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j); | |
| 50 | +cJSON * cJSON_CreateTopLevel(const struct TopLevel * x); | |
| 51 | +char * cJSON_PrintTopLevel(const struct TopLevel * x); | |
| 52 | +void cJSON_DeleteTopLevel(struct TopLevel * x); | |
| 53 | + | |
| 54 | +#ifdef __cplusplus | |
| 55 | +} | |
| 56 | +#endif | |
| 57 | + | |
| 58 | +#endif /* __TOPLEVEL_H__ */ |
Acplusplusdefault / quicktype.hpp+83 −0
| @@ -0,0 +1,83 @@ | ||
| 1 | +// To parse this JSON data, first install | |
| 2 | +// | |
| 3 | +// json.hpp https://github.com/nlohmann/json | |
| 4 | +// | |
| 5 | +// Then include this file, and then do | |
| 6 | +// | |
| 7 | +// TopLevel data = nlohmann::json::parse(jsonString); | |
| 8 | + | |
| 9 | +#pragma once | |
| 10 | + | |
| 11 | +#include "json.hpp" | |
| 12 | + | |
| 13 | +#include <optional> | |
| 14 | +#include <stdexcept> | |
| 15 | +#include <regex> | |
| 16 | + | |
| 17 | +namespace quicktype { | |
| 18 | + using nlohmann::json; | |
| 19 | + | |
| 20 | + #ifndef NLOHMANN_UNTYPED_quicktype_HELPER | |
| 21 | + #define NLOHMANN_UNTYPED_quicktype_HELPER | |
| 22 | + inline json get_untyped(const json & j, const char * property) { | |
| 23 | + if (j.find(property) != j.end()) { | |
| 24 | + return j.at(property).get<json>(); | |
| 25 | + } | |
| 26 | + return json(); | |
| 27 | + } | |
| 28 | + | |
| 29 | + inline json get_untyped(const json & j, std::string property) { | |
| 30 | + return get_untyped(j, property.data()); | |
| 31 | + } | |
| 32 | + #endif | |
| 33 | + | |
| 34 | + class TopLevel { | |
| 35 | + public: | |
| 36 | + TopLevel() = default; | |
| 37 | + virtual ~TopLevel() = default; | |
| 38 | + | |
| 39 | + private: | |
| 40 | + std::string empty; | |
| 41 | + std::string purple; | |
| 42 | + std::string top_level; | |
| 43 | + std::string u001_b; | |
| 44 | + | |
| 45 | + public: | |
| 46 | + const std::string & get_empty() const { return empty; } | |
| 47 | + std::string & get_mutable_empty() { return empty; } | |
| 48 | + void set_empty(const std::string & value) { this->empty = value; } | |
| 49 | + | |
| 50 | + const std::string & get_purple() const { return purple; } | |
| 51 | + std::string & get_mutable_purple() { return purple; } | |
| 52 | + void set_purple(const std::string & value) { this->purple = value; } | |
| 53 | + | |
| 54 | + const std::string & get_top_level() const { return top_level; } | |
| 55 | + std::string & get_mutable_top_level() { return top_level; } | |
| 56 | + void set_top_level(const std::string & value) { this->top_level = value; } | |
| 57 | + | |
| 58 | + const std::string & get_u001_b() const { return u001_b; } | |
| 59 | + std::string & get_mutable_u001_b() { return u001_b; } | |
| 60 | + void set_u001_b(const std::string & value) { this->u001_b = value; } | |
| 61 | + }; | |
| 62 | +} | |
| 63 | + | |
| 64 | +namespace quicktype { | |
| 65 | + void from_json(const json & j, TopLevel & x); | |
| 66 | + void to_json(json & j, const TopLevel & x); | |
| 67 | + | |
| 68 | + inline void from_json(const json & j, TopLevel& x) { | |
| 69 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 70 | + x.set_empty(j.at(([] { constexpr auto &s = "\u0000\u0001\u001b\u001f"; return std::string(s, sizeof(s) / sizeof(s[0]) - 1); }())).get<std::string>()); | |
| 71 | + x.set_purple(j.at("\U0001f600").get<std::string>()); | |
| 72 | + x.set_top_level(j.at("\u007f\u0080\u0085\u009f").get<std::string>()); | |
| 73 | + x.set_u001_b(j.at("\\u001b").get<std::string>()); | |
| 74 | + } | |
| 75 | + | |
| 76 | + inline void to_json(json & j, const TopLevel & x) { | |
| 77 | + j = json::object(); | |
| 78 | + j[([] { constexpr auto &s = "\u0000\u0001\u001b\u001f"; return std::string(s, sizeof(s) / sizeof(s[0]) - 1); }())] = x.get_empty(); | |
| 79 | + j["\U0001f600"] = x.get_purple(); | |
| 80 | + j["\u007f\u0080\u0085\u009f"] = x.get_top_level(); | |
| 81 | + j["\\u001b"] = x.get_u001_b(); | |
| 82 | + } | |
| 83 | +} |
Acrystaldefault / TopLevel.cr+17 −0
| @@ -0,0 +1,17 @@ | ||
| 1 | +require "json" | |
| 2 | + | |
| 3 | +class TopLevel | |
| 4 | + include JSON::Serializable | |
| 5 | + | |
| 6 | + @[JSON::Field(key: "\u{0000}\u{0001}\u{001b}\u{001f}")] | |
| 7 | + property empty : String | |
| 8 | + | |
| 9 | + @[JSON::Field(key: "\u{01f600}")] | |
| 10 | + property purple : String | |
| 11 | + | |
| 12 | + @[JSON::Field(key: "\u{007f}\u{0080}\u{0085}\u{009f}")] | |
| 13 | + property top_level : String | |
| 14 | + | |
| 15 | + @[JSON::Field(key: "\\u001b")] | |
| 16 | + property u001_b : String | |
| 17 | +end |
Acsharp-recordsdefault / QuickType.cs+70 −0
| @@ -0,0 +1,70 @@ | ||
| 1 | +// <auto-generated /> | |
| 2 | +// | |
| 3 | +// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do: | |
| 4 | +// | |
| 5 | +// using QuickType; | |
| 6 | +// | |
| 7 | +// var topLevel = TopLevel.FromJson(jsonString); | |
| 8 | +#nullable enable | |
| 9 | +#pragma warning disable CS8618 | |
| 10 | +#pragma warning disable CS8601 | |
| 11 | +#pragma warning disable CS8602 | |
| 12 | +#pragma warning disable CS8603 | |
| 13 | +#pragma warning disable CS8604 | |
| 14 | +#pragma warning disable CS8625 | |
| 15 | +#pragma warning disable CS8765 | |
| 16 | + | |
| 17 | +namespace QuickType | |
| 18 | +{ | |
| 19 | + using System; | |
| 20 | + using System.Collections.Generic; | |
| 21 | + | |
| 22 | + using System.Globalization; | |
| 23 | + using Newtonsoft.Json; | |
| 24 | + using Newtonsoft.Json.Converters; | |
| 25 | + | |
| 26 | + public partial record TopLevel | |
| 27 | + { | |
| 28 | + [JsonProperty("\u0000\u0001\u001b\u001f", Required = Required.Always)] | |
| 29 | + public string Empty { get; set; } | |
| 30 | + | |
| 31 | + [JsonProperty("\ud83d\ude00", Required = Required.Always)] | |
| 32 | + public string Fluffy { get; set; } | |
| 33 | + | |
| 34 | + [JsonProperty("\u007f\u0080\u0085\u009f", Required = Required.Always)] | |
| 35 | + public string Purple { get; set; } | |
| 36 | + | |
| 37 | + [JsonProperty("\\u001b", Required = Required.Always)] | |
| 38 | + public string U001B { get; set; } | |
| 39 | + } | |
| 40 | + | |
| 41 | + public partial record TopLevel | |
| 42 | + { | |
| 43 | + public static TopLevel FromJson(string json) => JsonConvert.DeserializeObject<TopLevel>(json, QuickType.Converter.Settings); | |
| 44 | + } | |
| 45 | + | |
| 46 | + public static partial class Serialize | |
| 47 | + { | |
| 48 | + public static string ToJson(this TopLevel self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings); | |
| 49 | + } | |
| 50 | + | |
| 51 | + internal static partial class Converter | |
| 52 | + { | |
| 53 | + public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings | |
| 54 | + { | |
| 55 | + MetadataPropertyHandling = MetadataPropertyHandling.Ignore, | |
| 56 | + DateParseHandling = DateParseHandling.None, | |
| 57 | + Converters = | |
| 58 | + { | |
| 59 | + new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal } | |
| 60 | + }, | |
| 61 | + }; | |
| 62 | + } | |
| 63 | +} | |
| 64 | +#pragma warning restore CS8618 | |
| 65 | +#pragma warning restore CS8601 | |
| 66 | +#pragma warning restore CS8602 | |
| 67 | +#pragma warning restore CS8603 | |
| 68 | +#pragma warning restore CS8604 | |
| 69 | +#pragma warning restore CS8625 | |
| 70 | +#pragma warning restore CS8765 |
Acsharp-SystemTextJsondefault / QuickType.cs+178 −0
| @@ -0,0 +1,178 @@ | ||
| 1 | +// <auto-generated /> | |
| 2 | +// | |
| 3 | +// To parse this JSON data, add NuGet 'System.Text.Json' then do: | |
| 4 | +// | |
| 5 | +// using QuickType; | |
| 6 | +// | |
| 7 | +// var topLevel = TopLevel.FromJson(jsonString); | |
| 8 | +#nullable enable | |
| 9 | +#pragma warning disable CS8618 | |
| 10 | +#pragma warning disable CS8601 | |
| 11 | +#pragma warning disable CS8602 | |
| 12 | +#pragma warning disable CS8603 | |
| 13 | + | |
| 14 | +namespace QuickType | |
| 15 | +{ | |
| 16 | + using System; | |
| 17 | + using System.Collections.Generic; | |
| 18 | + | |
| 19 | + using System.Text.Json; | |
| 20 | + using System.Text.Json.Serialization; | |
| 21 | + using System.Globalization; | |
| 22 | + | |
| 23 | + public partial class TopLevel | |
| 24 | + { | |
| 25 | + [JsonRequired] | |
| 26 | + [JsonPropertyName("\u0000\u0001\u001b\u001f")] | |
| 27 | + public string Empty { get; set; } | |
| 28 | + | |
| 29 | + [JsonRequired] | |
| 30 | + [JsonPropertyName("\ud83d\ude00")] | |
| 31 | + public string Fluffy { get; set; } | |
| 32 | + | |
| 33 | + [JsonRequired] | |
| 34 | + [JsonPropertyName("\u007f\u0080\u0085\u009f")] | |
| 35 | + public string Purple { get; set; } | |
| 36 | + | |
| 37 | + [JsonRequired] | |
| 38 | + [JsonPropertyName("\\u001b")] | |
| 39 | + public string U001B { get; set; } | |
| 40 | + } | |
| 41 | + | |
| 42 | + public partial class TopLevel | |
| 43 | + { | |
| 44 | + public static TopLevel FromJson(string json) => global::System.Text.Json.JsonSerializer.Deserialize<TopLevel>(json, QuickType.Converter.Settings); | |
| 45 | + } | |
| 46 | + | |
| 47 | + public static partial class Serialize | |
| 48 | + { | |
| 49 | + public static string ToJson(this TopLevel self) => JsonSerializer.Serialize(self, QuickType.Converter.Settings); | |
| 50 | + } | |
| 51 | + | |
| 52 | + internal static partial class Converter | |
| 53 | + { | |
| 54 | + public static readonly JsonSerializerOptions Settings = new(JsonSerializerDefaults.General) | |
| 55 | + { | |
| 56 | + Converters = | |
| 57 | + { | |
| 58 | + new DateOnlyConverter(), | |
| 59 | + new TimeOnlyConverter(), | |
| 60 | + IsoDateTimeOffsetConverter.Singleton | |
| 61 | + }, | |
| 62 | + }; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public class DateOnlyConverter : JsonConverter<DateOnly> | |
| 66 | + { | |
| 67 | + private readonly string serializationFormat; | |
| 68 | + public DateOnlyConverter() : this(null) { } | |
| 69 | + | |
| 70 | + public DateOnlyConverter(string? serializationFormat) | |
| 71 | + { | |
| 72 | + this.serializationFormat = serializationFormat ?? "yyyy-MM-dd"; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 76 | + { | |
| 77 | + var value = reader.GetString(); | |
| 78 | + return DateOnly.Parse(value!); | |
| 79 | + } | |
| 80 | + | |
| 81 | + public override void Write(Utf8JsonWriter writer, DateOnly value, JsonSerializerOptions options) | |
| 82 | + => writer.WriteStringValue(value.ToString(serializationFormat)); | |
| 83 | + } | |
| 84 | + | |
| 85 | + public class TimeOnlyConverter : JsonConverter<TimeOnly> | |
| 86 | + { | |
| 87 | + private readonly string serializationFormat; | |
| 88 | + | |
| 89 | + public TimeOnlyConverter() : this(null) { } | |
| 90 | + | |
| 91 | + public TimeOnlyConverter(string? serializationFormat) | |
| 92 | + { | |
| 93 | + this.serializationFormat = serializationFormat ?? "HH:mm:ss.fff"; | |
| 94 | + } | |
| 95 | + | |
| 96 | + public override TimeOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 97 | + { | |
| 98 | + var value = reader.GetString(); | |
| 99 | + return TimeOnly.Parse(value!); | |
| 100 | + } | |
| 101 | + | |
| 102 | + public override void Write(Utf8JsonWriter writer, TimeOnly value, JsonSerializerOptions options) | |
| 103 | + => writer.WriteStringValue(value.ToString(serializationFormat)); | |
| 104 | + } | |
| 105 | + | |
| 106 | + internal class IsoDateTimeOffsetConverter : JsonConverter<DateTimeOffset> | |
| 107 | + { | |
| 108 | + public override bool CanConvert(Type t) => t == typeof(DateTimeOffset); | |
| 109 | + | |
| 110 | + private const string DefaultDateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"; | |
| 111 | + | |
| 112 | + private DateTimeStyles _dateTimeStyles = DateTimeStyles.RoundtripKind; | |
| 113 | + private string? _dateTimeFormat; | |
| 114 | + private CultureInfo? _culture; | |
| 115 | + | |
| 116 | + public DateTimeStyles DateTimeStyles | |
| 117 | + { | |
| 118 | + get => _dateTimeStyles; | |
| 119 | + set => _dateTimeStyles = value; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public string? DateTimeFormat | |
| 123 | + { | |
| 124 | + get => _dateTimeFormat ?? string.Empty; | |
| 125 | + set => _dateTimeFormat = (string.IsNullOrEmpty(value)) ? null : value; | |
| 126 | + } | |
| 127 | + | |
| 128 | + public CultureInfo Culture | |
| 129 | + { | |
| 130 | + get => _culture ?? CultureInfo.CurrentCulture; | |
| 131 | + set => _culture = value; | |
| 132 | + } | |
| 133 | + | |
| 134 | + public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options) | |
| 135 | + { | |
| 136 | + string text; | |
| 137 | + | |
| 138 | + | |
| 139 | + if ((_dateTimeStyles & DateTimeStyles.AdjustToUniversal) == DateTimeStyles.AdjustToUniversal | |
| 140 | + || (_dateTimeStyles & DateTimeStyles.AssumeUniversal) == DateTimeStyles.AssumeUniversal) | |
| 141 | + { | |
| 142 | + value = value.ToUniversalTime(); | |
| 143 | + } | |
| 144 | + | |
| 145 | + text = value.ToString(_dateTimeFormat ?? DefaultDateTimeFormat, Culture); | |
| 146 | + | |
| 147 | + writer.WriteStringValue(text); | |
| 148 | + } | |
| 149 | + | |
| 150 | + public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 151 | + { | |
| 152 | + string? dateText = reader.GetString(); | |
| 153 | + | |
| 154 | + if (string.IsNullOrEmpty(dateText) == false) | |
| 155 | + { | |
| 156 | + if (!string.IsNullOrEmpty(_dateTimeFormat)) | |
| 157 | + { | |
| 158 | + return DateTimeOffset.ParseExact(dateText, _dateTimeFormat, Culture, _dateTimeStyles); | |
| 159 | + } | |
| 160 | + else | |
| 161 | + { | |
| 162 | + return DateTimeOffset.Parse(dateText, Culture, _dateTimeStyles); | |
| 163 | + } | |
| 164 | + } | |
| 165 | + else | |
| 166 | + { | |
| 167 | + return default(DateTimeOffset); | |
| 168 | + } | |
| 169 | + } | |
| 170 | + | |
| 171 | + | |
| 172 | + public static readonly IsoDateTimeOffsetConverter Singleton = new IsoDateTimeOffsetConverter(); | |
| 173 | + } | |
| 174 | +} | |
| 175 | +#pragma warning restore CS8618 | |
| 176 | +#pragma warning restore CS8601 | |
| 177 | +#pragma warning restore CS8602 | |
| 178 | +#pragma warning restore CS8603 |
Acsharpdefault / QuickType.cs+70 −0
| @@ -0,0 +1,70 @@ | ||
| 1 | +// <auto-generated /> | |
| 2 | +// | |
| 3 | +// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do: | |
| 4 | +// | |
| 5 | +// using QuickType; | |
| 6 | +// | |
| 7 | +// var topLevel = TopLevel.FromJson(jsonString); | |
| 8 | +#nullable enable | |
| 9 | +#pragma warning disable CS8618 | |
| 10 | +#pragma warning disable CS8601 | |
| 11 | +#pragma warning disable CS8602 | |
| 12 | +#pragma warning disable CS8603 | |
| 13 | +#pragma warning disable CS8604 | |
| 14 | +#pragma warning disable CS8625 | |
| 15 | +#pragma warning disable CS8765 | |
| 16 | + | |
| 17 | +namespace QuickType | |
| 18 | +{ | |
| 19 | + using System; | |
| 20 | + using System.Collections.Generic; | |
| 21 | + | |
| 22 | + using System.Globalization; | |
| 23 | + using Newtonsoft.Json; | |
| 24 | + using Newtonsoft.Json.Converters; | |
| 25 | + | |
| 26 | + public partial class TopLevel | |
| 27 | + { | |
| 28 | + [JsonProperty("\u0000\u0001\u001b\u001f", Required = Required.Always)] | |
| 29 | + public string Empty { get; set; } | |
| 30 | + | |
| 31 | + [JsonProperty("\ud83d\ude00", Required = Required.Always)] | |
| 32 | + public string Fluffy { get; set; } | |
| 33 | + | |
| 34 | + [JsonProperty("\u007f\u0080\u0085\u009f", Required = Required.Always)] | |
| 35 | + public string Purple { get; set; } | |
| 36 | + | |
| 37 | + [JsonProperty("\\u001b", Required = Required.Always)] | |
| 38 | + public string U001B { get; set; } | |
| 39 | + } | |
| 40 | + | |
| 41 | + public partial class TopLevel | |
| 42 | + { | |
| 43 | + public static TopLevel FromJson(string json) => JsonConvert.DeserializeObject<TopLevel>(json, QuickType.Converter.Settings); | |
| 44 | + } | |
| 45 | + | |
| 46 | + public static partial class Serialize | |
| 47 | + { | |
| 48 | + public static string ToJson(this TopLevel self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings); | |
| 49 | + } | |
| 50 | + | |
| 51 | + internal static partial class Converter | |
| 52 | + { | |
| 53 | + public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings | |
| 54 | + { | |
| 55 | + MetadataPropertyHandling = MetadataPropertyHandling.Ignore, | |
| 56 | + DateParseHandling = DateParseHandling.None, | |
| 57 | + Converters = | |
| 58 | + { | |
| 59 | + new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal } | |
| 60 | + }, | |
| 61 | + }; | |
| 62 | + } | |
| 63 | +} | |
| 64 | +#pragma warning restore CS8618 | |
| 65 | +#pragma warning restore CS8601 | |
| 66 | +#pragma warning restore CS8602 | |
| 67 | +#pragma warning restore CS8603 | |
| 68 | +#pragma warning restore CS8604 | |
| 69 | +#pragma warning restore CS8625 | |
| 70 | +#pragma warning restore CS8765 |
Adartdefault / TopLevel.dart+37 −0
| @@ -0,0 +1,37 @@ | ||
| 1 | +// To parse this JSON data, do | |
| 2 | +// | |
| 3 | +// final topLevel = topLevelFromJson(jsonString); | |
| 4 | + | |
| 5 | +import 'dart:convert'; | |
| 6 | + | |
| 7 | +TopLevel topLevelFromJson(String str) => TopLevel.fromJson(json.decode(str)); | |
| 8 | + | |
| 9 | +String topLevelToJson(TopLevel data) => json.encode(data.toJson()); | |
| 10 | + | |
| 11 | +class TopLevel { | |
| 12 | + final String empty; | |
| 13 | + final String purple; | |
| 14 | + final String topLevel; | |
| 15 | + final String u001B; | |
| 16 | + | |
| 17 | + TopLevel({ | |
| 18 | + required this.empty, | |
| 19 | + required this.purple, | |
| 20 | + required this.topLevel, | |
| 21 | + required this.u001B, | |
| 22 | + }); | |
| 23 | + | |
| 24 | + factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( | |
| 25 | + empty: json["\u0000\u0001\u001b\u001f"], | |
| 26 | + purple: json["\ud83d\ude00"], | |
| 27 | + topLevel: json["\u007f\u0080\u0085\u009f"], | |
| 28 | + u001B: json["\\u001b"], | |
| 29 | + ); | |
| 30 | + | |
| 31 | + Map<String, dynamic> toJson() => { | |
| 32 | + "\u0000\u0001\u001b\u001f": empty, | |
| 33 | + "\ud83d\ude00": purple, | |
| 34 | + "\u007f\u0080\u0085\u009f": topLevel, | |
| 35 | + "\\u001b": u001B, | |
| 36 | + }; | |
| 37 | +} |
Aelixirdefault / QuickType.ex+72 −0
| @@ -0,0 +1,72 @@ | ||
| 1 | +# This file was autogenerated using quicktype https://github.com/quicktype/quicktype | |
| 2 | +# | |
| 3 | +# Add Jason to your mix.exs | |
| 4 | +# | |
| 5 | +# Decode a JSON string: TopLevel.from_json(data) | |
| 6 | +# Encode into a JSON string: TopLevel.to_json(struct) | |
| 7 | + | |
| 8 | +defmodule TopLevel do | |
| 9 | + @enforce_keys [:empty, :the_1, :top_level, :u001_b] | |
| 10 | + defstruct [:empty, :the_1, :top_level, :u001_b] | |
| 11 | + | |
| 12 | + @type t :: %__MODULE__{ | |
| 13 | + empty: String.t(), | |
| 14 | + the_1: String.t(), | |
| 15 | + top_level: String.t(), | |
| 16 | + u001_b: String.t() | |
| 17 | + } | |
| 18 | + | |
| 19 | + def decode_empty(value) when is_binary(value), do: value | |
| 20 | + def decode_empty(_), do: {:error, "Unexpected type when decoding TopLevel.empty"} | |
| 21 | + | |
| 22 | + def encode_empty(value) when is_binary(value), do: value | |
| 23 | + def encode_empty(_), do: {:error, "Unexpected type when encoding TopLevel.empty"} | |
| 24 | + | |
| 25 | + def decode_the_1(value) when is_binary(value), do: value | |
| 26 | + def decode_the_1(_), do: {:error, "Unexpected type when decoding TopLevel.the_1"} | |
| 27 | + | |
| 28 | + def encode_the_1(value) when is_binary(value), do: value | |
| 29 | + def encode_the_1(_), do: {:error, "Unexpected type when encoding TopLevel.the_1"} | |
| 30 | + | |
| 31 | + def decode_top_level(value) when is_binary(value), do: value | |
| 32 | + def decode_top_level(_), do: {:error, "Unexpected type when decoding TopLevel.top_level"} | |
| 33 | + | |
| 34 | + def encode_top_level(value) when is_binary(value), do: value | |
| 35 | + def encode_top_level(_), do: {:error, "Unexpected type when encoding TopLevel.top_level"} | |
| 36 | + | |
| 37 | + def decode_u001_b(value) when is_binary(value), do: value | |
| 38 | + def decode_u001_b(_), do: {:error, "Unexpected type when decoding TopLevel.u001_b"} | |
| 39 | + | |
| 40 | + def encode_u001_b(value) when is_binary(value), do: value | |
| 41 | + def encode_u001_b(_), do: {:error, "Unexpected type when encoding TopLevel.u001_b"} | |
| 42 | + | |
| 43 | + def from_map(m) do | |
| 44 | + %TopLevel{ | |
| 45 | + empty: decode_empty(m[" |