Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
4test cases
184files differ
148modified
36new
0deleted
25,678changed lines
+16,941 −8,737insertions / deletions
Base 9da66d1807ca164f2cb8275d1c2a731388e90989 · PR merge f63efdf45e9fc6b4399ba74b7edc5e3f12ceb7ab · Head c9750fdee424d01b99c3599c5840b8e06faecb7d · raw patch
Test case

test/inputs/json/priority/keywords.json

56 generated files · +11,199 −8,493
Mcjsondefault / TopLevel.c+817 −622
@@ -11196,6 +11196,61 @@ void cJSON_DeleteList(struct List * x) {
1119611196 }
1119711197 }
1119811198
11199+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
11200+ struct LocalDate * x = NULL;
11201+ if (NULL != s) {
11202+ cJSON * j = cJSON_Parse(s);
11203+ if (NULL != j) {
11204+ x = cJSON_GetLocalDateValue(j);
11205+ cJSON_Delete(j);
11206+ }
11207+ }
11208+ return x;
11209+}
11210+
11211+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
11212+ struct LocalDate * x = NULL;
11213+ if (NULL != j) {
11214+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
11215+ memset(x, 0, sizeof(struct LocalDate));
11216+ if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteLocalDate(x); return NULL; }
11217+ if (cJSON_HasObjectItem(j, "LocalDate")) {
11218+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteLocalDate(x); return NULL; }
11219+ x->local_date = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
11220+ }
11221+ }
11222+ }
11223+ return x;
11224+}
11225+
11226+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
11227+ cJSON * j = NULL;
11228+ if (NULL != x) {
11229+ if (NULL != (j = cJSON_CreateObject())) {
11230+ cJSON_AddNumberToObject(j, "LocalDate", x->local_date);
11231+ }
11232+ }
11233+ return j;
11234+}
11235+
11236+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
11237+ char * s = NULL;
11238+ if (NULL != x) {
11239+ cJSON * j = cJSON_CreateLocalDate(x);
11240+ if (NULL != j) {
11241+ s = cJSON_Print(j);
11242+ cJSON_Delete(j);
11243+ }
11244+ }
11245+ return s;
11246+}
11247+
11248+void cJSON_DeleteLocalDate(struct LocalDate * x) {
11249+ if (NULL != x) {
11250+ cJSON_free(x);
11251+ }
11252+}
11253+
1119911254 struct Locale * cJSON_ParseLocale(const char * s) {
1120011255 struct Locale * x = NULL;
1120111256 if (NULL != s) {
@@ -11581,61 +11636,6 @@ void cJSON_DeleteMetadataPropertyHandling(struct MetadataPropertyHandling * x) {
1158111636 }
1158211637 }
1158311638
11584-struct Mutating * cJSON_ParseMutating(const char * s) {
11585- struct Mutating * x = NULL;
11586- if (NULL != s) {
11587- cJSON * j = cJSON_Parse(s);
11588- if (NULL != j) {
11589- x = cJSON_GetMutatingValue(j);
11590- cJSON_Delete(j);
11591- }
11592- }
11593- return x;
11594-}
11595-
11596-struct Mutating * cJSON_GetMutatingValue(const cJSON * j) {
11597- struct Mutating * x = NULL;
11598- if (NULL != j) {
11599- if (NULL != (x = cJSON_malloc(sizeof(struct Mutating)))) {
11600- memset(x, 0, sizeof(struct Mutating));
11601- if (!cJSON_HasObjectItem(j, "mutating")) { cJSON_DeleteMutating(x); return NULL; }
11602- if (cJSON_HasObjectItem(j, "mutating")) {
11603- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "mutating"))) { cJSON_DeleteMutating(x); return NULL; }
11604- x->mutating = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "mutating"));
11605- }
11606- }
11607- }
11608- return x;
11609-}
11610-
11611-cJSON * cJSON_CreateMutating(const struct Mutating * x) {
11612- cJSON * j = NULL;
11613- if (NULL != x) {
11614- if (NULL != (j = cJSON_CreateObject())) {
11615- cJSON_AddNumberToObject(j, "mutating", x->mutating);
11616- }
11617- }
11618- return j;
11619-}
11620-
11621-char * cJSON_PrintMutating(const struct Mutating * x) {
11622- char * s = NULL;
11623- if (NULL != x) {
11624- cJSON * j = cJSON_CreateMutating(x);
11625- if (NULL != j) {
11626- s = cJSON_Print(j);
11627- cJSON_Delete(j);
11628- }
11629- }
11630- return s;
11631-}
11632-
11633-void cJSON_DeleteMutating(struct Mutating * x) {
11634- if (NULL != x) {
11635- cJSON_free(x);
11636- }
11637-}
11638-
1163911639 struct Goto * cJSON_ParseGoto(const char * s) {
1164011640 struct Goto * x = NULL;
1164111641 if (NULL != s) {
@@ -12021,61 +12021,6 @@ void cJSON_DeleteModule(struct Module * x) {
1202112021 }
1202212022 }
1202312023
12024-struct Mutable * cJSON_ParseMutable(const char * s) {
12025- struct Mutable * x = NULL;
12026- if (NULL != s) {
12027- cJSON * j = cJSON_Parse(s);
12028- if (NULL != j) {
12029- x = cJSON_GetMutableValue(j);
12030- cJSON_Delete(j);
12031- }
12032- }
12033- return x;
12034-}
12035-
12036-struct Mutable * cJSON_GetMutableValue(const cJSON * j) {
12037- struct Mutable * x = NULL;
12038- if (NULL != j) {
12039- if (NULL != (x = cJSON_malloc(sizeof(struct Mutable)))) {
12040- memset(x, 0, sizeof(struct Mutable));
12041- if (!cJSON_HasObjectItem(j, "mutable")) { cJSON_DeleteMutable(x); return NULL; }
12042- if (cJSON_HasObjectItem(j, "mutable")) {
12043- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "mutable"))) { cJSON_DeleteMutable(x); return NULL; }
12044- x->mutable_mutable = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "mutable"));
12045- }
12046- }
12047- }
12048- return x;
12049-}
12050-
12051-cJSON * cJSON_CreateMutable(const struct Mutable * x) {
12052- cJSON * j = NULL;
12053- if (NULL != x) {
12054- if (NULL != (j = cJSON_CreateObject())) {
12055- cJSON_AddNumberToObject(j, "mutable", x->mutable_mutable);
12056- }
12057- }
12058- return j;
12059-}
12060-
12061-char * cJSON_PrintMutable(const struct Mutable * x) {
12062- char * s = NULL;
12063- if (NULL != x) {
12064- cJSON * j = cJSON_CreateMutable(x);
12065- if (NULL != j) {
12066- s = cJSON_Print(j);
12067- cJSON_Delete(j);
12068- }
12069- }
12070- return s;
12071-}
12072-
12073-void cJSON_DeleteMutable(struct Mutable * x) {
12074- if (NULL != x) {
12075- cJSON_free(x);
12076- }
12077-}
12078-
1207912024 struct Obj3 * cJSON_ParseObj3(const char * s) {
1208012025 struct Obj3 * x = NULL;
1208112026 if (NULL != s) {
@@ -12392,6 +12337,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1239212337 x->list = cJSON_GetListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
1239312338 if (NULL == x->list) { cJSON_DeleteObj3(x); return NULL; }
1239412339 }
12340+ if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteObj3(x); return NULL; }
12341+ if (cJSON_HasObjectItem(j, "LocalDate")) {
12342+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteObj3(x); return NULL; }
12343+ x->local_date = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
12344+ if (NULL == x->local_date) { cJSON_DeleteObj3(x); return NULL; }
12345+ }
1239512346 if (!cJSON_HasObjectItem(j, "Locale")) { cJSON_DeleteObj3(x); return NULL; }
1239612347 if (cJSON_HasObjectItem(j, "Locale")) {
1239712348 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12434,12 +12385,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1243412385 x->metadata_property_handling = cJSON_GetMetadataPropertyHandlingValue(cJSON_GetObjectItemCaseSensitive(j, "metadata_property_handling"));
1243512386 if (NULL == x->metadata_property_handling) { cJSON_DeleteObj3(x); return NULL; }
1243612387 }
12437- if (!cJSON_HasObjectItem(j, "mutating")) { cJSON_DeleteObj3(x); return NULL; }
12438- if (cJSON_HasObjectItem(j, "mutating")) {
12439- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "mutating"))) { cJSON_DeleteObj3(x); return NULL; }
12440- x->mutating = cJSON_GetMutatingValue(cJSON_GetObjectItemCaseSensitive(j, "mutating"));
12441- if (NULL == x->mutating) { cJSON_DeleteObj3(x); return NULL; }
12442- }
1244312388 if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj3(x); return NULL; }
1244412389 if (cJSON_HasObjectItem(j, "goto")) {
1244512390 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12482,12 +12427,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1248212427 x->obj3_module = cJSON_GetModuleValue(cJSON_GetObjectItemCaseSensitive(j, "module"));
1248312428 if (NULL == x->obj3_module) { cJSON_DeleteObj3(x); return NULL; }
1248412429 }
12485- if (!cJSON_HasObjectItem(j, "mutable")) { cJSON_DeleteObj3(x); return NULL; }
12486- if (cJSON_HasObjectItem(j, "mutable")) {
12487- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "mutable"))) { cJSON_DeleteObj3(x); return NULL; }
12488- x->obj3_mutable = cJSON_GetMutableValue(cJSON_GetObjectItemCaseSensitive(j, "mutable"));
12489- if (NULL == x->obj3_mutable) { cJSON_DeleteObj3(x); return NULL; }
12490- }
1249112430 }
1249212431 }
1249312432 return x;
@@ -12547,6 +12486,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1254712486 cJSON_AddItemToObject(j, "left", cJSON_CreateLeft(x->left));
1254812487 cJSON_AddItemToObject(j, "let", cJSON_CreateLet(x->let));
1254912488 cJSON_AddItemToObject(j, "list", cJSON_CreateList(x->list));
12489+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateLocalDate(x->local_date));
1255012490 cJSON_AddItemToObject(j, "Locale", cJSON_CreateLocale(x->locale));
1255112491 cJSON_AddItemToObject(j, "lock", cJSON_CreateLock(x->lock));
1255212492 cJSON_AddItemToObject(j, "LongNode", cJSON_CreateLongNode(x->long_node));
@@ -12554,7 +12494,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1255412494 cJSON_AddItemToObject(j, "MapEntry", cJSON_CreateMapEntry(x->map_entry));
1255512495 cJSON_AddItemToObject(j, "MarshalJSON", cJSON_CreateMarshalJson(x->marshal_json));
1255612496 cJSON_AddItemToObject(j, "metadata_property_handling", cJSON_CreateMetadataPropertyHandling(x->metadata_property_handling));
12557- cJSON_AddItemToObject(j, "mutating", cJSON_CreateMutating(x->mutating));
1255812497 cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj3_goto));
1255912498 cJSON_AddItemToObject(j, "if", cJSON_CreateIf(x->obj3_if));
1256012499 cJSON_AddItemToObject(j, "import", cJSON_CreateImport(x->obj3_import));
@@ -12562,7 +12501,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1256212501 cJSON_AddItemToObject(j, "int", cJSON_CreateInt(x->obj3_int));
1256312502 cJSON_AddItemToObject(j, "long", cJSON_CreateLong(x->obj3_long));
1256412503 cJSON_AddItemToObject(j, "module", cJSON_CreateModule(x->obj3_module));
12565- cJSON_AddItemToObject(j, "mutable", cJSON_CreateMutable(x->obj3_mutable));
1256612504 }
1256712505 }
1256812506 return j;
@@ -12729,6 +12667,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1272912667 if (NULL != x->list) {
1273012668 cJSON_DeleteList(x->list);
1273112669 }
12670+ if (NULL != x->local_date) {
12671+ cJSON_DeleteLocalDate(x->local_date);
12672+ }
1273212673 if (NULL != x->locale) {
1273312674 cJSON_DeleteLocale(x->locale);
1273412675 }
@@ -12750,9 +12691,6 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1275012691 if (NULL != x->metadata_property_handling) {
1275112692 cJSON_DeleteMetadataPropertyHandling(x->metadata_property_handling);
1275212693 }
12753- if (NULL != x->mutating) {
12754- cJSON_DeleteMutating(x->mutating);
12755- }
1275612694 if (NULL != x->obj3_goto) {
1275712695 cJSON_DeleteGoto(x->obj3_goto);
1275812696 }
@@ -12774,9 +12712,61 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1277412712 if (NULL != x->obj3_module) {
1277512713 cJSON_DeleteModule(x->obj3_module);
1277612714 }
12777- if (NULL != x->obj3_mutable) {
12778- cJSON_DeleteMutable(x->obj3_mutable);
12715+ cJSON_free(x);
12716+ }
12717+}
12718+
12719+struct Mutating * cJSON_ParseMutating(const char * s) {
12720+ struct Mutating * x = NULL;
12721+ if (NULL != s) {
12722+ cJSON * j = cJSON_Parse(s);
12723+ if (NULL != j) {
12724+ x = cJSON_GetMutatingValue(j);
12725+ cJSON_Delete(j);
12726+ }
12727+ }
12728+ return x;
12729+}
12730+
12731+struct Mutating * cJSON_GetMutatingValue(const cJSON * j) {
12732+ struct Mutating * x = NULL;
12733+ if (NULL != j) {
12734+ if (NULL != (x = cJSON_malloc(sizeof(struct Mutating)))) {
12735+ memset(x, 0, sizeof(struct Mutating));
12736+ if (!cJSON_HasObjectItem(j, "mutating")) { cJSON_DeleteMutating(x); return NULL; }
12737+ if (cJSON_HasObjectItem(j, "mutating")) {
12738+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "mutating"))) { cJSON_DeleteMutating(x); return NULL; }
12739+ x->mutating = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "mutating"));
12740+ }
12741+ }
12742+ }
12743+ return x;
12744+}
12745+
12746+cJSON * cJSON_CreateMutating(const struct Mutating * x) {
12747+ cJSON * j = NULL;
12748+ if (NULL != x) {
12749+ if (NULL != (j = cJSON_CreateObject())) {
12750+ cJSON_AddNumberToObject(j, "mutating", x->mutating);
12751+ }
12752+ }
12753+ return j;
12754+}
12755+
12756+char * cJSON_PrintMutating(const struct Mutating * x) {
12757+ char * s = NULL;
12758+ if (NULL != x) {
12759+ cJSON * j = cJSON_CreateMutating(x);
12760+ if (NULL != j) {
12761+ s = cJSON_Print(j);
12762+ cJSON_Delete(j);
1277912763 }
12764+ }
12765+ return s;
12766+}
12767+
12768+void cJSON_DeleteMutating(struct Mutating * x) {
12769+ if (NULL != x) {
1278012770 cJSON_free(x);
1278112771 }
1278212772 }
@@ -13606,47 +13596,47 @@ void cJSON_DeleteNumberClass(struct NumberClass * x) {
1360613596 }
1360713597 }
1360813598
13609-struct Namespace * cJSON_ParseNamespace(const char * s) {
13610- struct Namespace * x = NULL;
13599+struct Mutable * cJSON_ParseMutable(const char * s) {
13600+ struct Mutable * x = NULL;
1361113601 if (NULL != s) {
1361213602 cJSON * j = cJSON_Parse(s);
1361313603 if (NULL != j) {
13614- x = cJSON_GetNamespaceValue(j);
13604+ x = cJSON_GetMutableValue(j);
1361513605 cJSON_Delete(j);
1361613606 }
1361713607 }
1361813608 return x;
1361913609 }
1362013610
13621-struct Namespace * cJSON_GetNamespaceValue(const cJSON * j) {
13622- struct Namespace * x = NULL;
13611+struct Mutable * cJSON_GetMutableValue(const cJSON * j) {
13612+ struct Mutable * x = NULL;
1362313613 if (NULL != j) {
13624- if (NULL != (x = cJSON_malloc(sizeof(struct Namespace)))) {
13625- memset(x, 0, sizeof(struct Namespace));
13626- if (!cJSON_HasObjectItem(j, "namespace")) { cJSON_DeleteNamespace(x); return NULL; }
13627- if (cJSON_HasObjectItem(j, "namespace")) {
13628- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "namespace"))) { cJSON_DeleteNamespace(x); return NULL; }
13629- x->namespace_namespace = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "namespace"));
13614+ if (NULL != (x = cJSON_malloc(sizeof(struct Mutable)))) {
13615+ memset(x, 0, sizeof(struct Mutable));
13616+ if (!cJSON_HasObjectItem(j, "mutable")) { cJSON_DeleteMutable(x); return NULL; }
13617+ if (cJSON_HasObjectItem(j, "mutable")) {
13618+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "mutable"))) { cJSON_DeleteMutable(x); return NULL; }
13619+ x->mutable_mutable = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "mutable"));
1363013620 }
1363113621 }
1363213622 }
1363313623 return x;
1363413624 }
1363513625
13636-cJSON * cJSON_CreateNamespace(const struct Namespace * x) {
13626+cJSON * cJSON_CreateMutable(const struct Mutable * x) {
1363713627 cJSON * j = NULL;
1363813628 if (NULL != x) {
1363913629 if (NULL != (j = cJSON_CreateObject())) {
13640- cJSON_AddNumberToObject(j, "namespace", x->namespace_namespace);
13630+ cJSON_AddNumberToObject(j, "mutable", x->mutable_mutable);
1364113631 }
1364213632 }
1364313633 return j;
1364413634 }
1364513635
13646-char * cJSON_PrintNamespace(const struct Namespace * x) {
13636+char * cJSON_PrintMutable(const struct Mutable * x) {
1364713637 char * s = NULL;
1364813638 if (NULL != x) {
13649- cJSON * j = cJSON_CreateNamespace(x);
13639+ cJSON * j = cJSON_CreateMutable(x);
1365013640 if (NULL != j) {
1365113641 s = cJSON_Print(j);
1365213642 cJSON_Delete(j);
@@ -13655,26 +13645,81 @@ char * cJSON_PrintNamespace(const struct Namespace * x) {
1365513645 return s;
1365613646 }
1365713647
13658-void cJSON_DeleteNamespace(struct Namespace * x) {
13648+void cJSON_DeleteMutable(struct Mutable * x) {
1365913649 if (NULL != x) {
1366013650 cJSON_free(x);
1366113651 }
1366213652 }
1366313653
13664-struct New * cJSON_ParseNew(const char * s) {
13665- struct New * x = NULL;
13654+struct Namespace * cJSON_ParseNamespace(const char * s) {
13655+ struct Namespace * x = NULL;
1366613656 if (NULL != s) {
1366713657 cJSON * j = cJSON_Parse(s);
1366813658 if (NULL != j) {
13669- x = cJSON_GetNewValue(j);
13659+ x = cJSON_GetNamespaceValue(j);
1367013660 cJSON_Delete(j);
1367113661 }
1367213662 }
1367313663 return x;
1367413664 }
1367513665
13676-struct New * cJSON_GetNewValue(const cJSON * j) {
13677- struct New * x = NULL;
13666+struct Namespace * cJSON_GetNamespaceValue(const cJSON * j) {
13667+ struct Namespace * x = NULL;
13668+ if (NULL != j) {
13669+ if (NULL != (x = cJSON_malloc(sizeof(struct Namespace)))) {
13670+ memset(x, 0, sizeof(struct Namespace));
13671+ if (!cJSON_HasObjectItem(j, "namespace")) { cJSON_DeleteNamespace(x); return NULL; }
13672+ if (cJSON_HasObjectItem(j, "namespace")) {
13673+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "namespace"))) { cJSON_DeleteNamespace(x); return NULL; }
13674+ x->namespace_namespace = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "namespace"));
13675+ }
13676+ }
13677+ }
13678+ return x;
13679+}
13680+
13681+cJSON * cJSON_CreateNamespace(const struct Namespace * x) {
13682+ cJSON * j = NULL;
13683+ if (NULL != x) {
13684+ if (NULL != (j = cJSON_CreateObject())) {
13685+ cJSON_AddNumberToObject(j, "namespace", x->namespace_namespace);
13686+ }
13687+ }
13688+ return j;
13689+}
13690+
13691+char * cJSON_PrintNamespace(const struct Namespace * x) {
13692+ char * s = NULL;
13693+ if (NULL != x) {
13694+ cJSON * j = cJSON_CreateNamespace(x);
13695+ if (NULL != j) {
13696+ s = cJSON_Print(j);
13697+ cJSON_Delete(j);
13698+ }
13699+ }
13700+ return s;
13701+}
13702+
13703+void cJSON_DeleteNamespace(struct Namespace * x) {
13704+ if (NULL != x) {
13705+ cJSON_free(x);
13706+ }
13707+}
13708+
13709+struct New * cJSON_ParseNew(const char * s) {
13710+ struct New * x = NULL;
13711+ if (NULL != s) {
13712+ cJSON * j = cJSON_Parse(s);
13713+ if (NULL != j) {
13714+ x = cJSON_GetNewValue(j);
13715+ cJSON_Delete(j);
13716+ }
13717+ }
13718+ return x;
13719+}
13720+
13721+struct New * cJSON_GetNewValue(const cJSON * j) {
13722+ struct New * x = NULL;
1367813723 if (NULL != j) {
1367913724 if (NULL != (x = cJSON_malloc(sizeof(struct New)))) {
1368013725 memset(x, 0, sizeof(struct New));
@@ -14596,61 +14641,6 @@ void cJSON_DeleteReinterpretCast(struct ReinterpretCast * x) {
1459614641 }
1459714642 }
1459814643
14599-struct Requires * cJSON_ParseRequires(const char * s) {
14600- struct Requires * x = NULL;
14601- if (NULL != s) {
14602- cJSON * j = cJSON_Parse(s);
14603- if (NULL != j) {
14604- x = cJSON_GetRequiresValue(j);
14605- cJSON_Delete(j);
14606- }
14607- }
14608- return x;
14609-}
14610-
14611-struct Requires * cJSON_GetRequiresValue(const cJSON * j) {
14612- struct Requires * x = NULL;
14613- if (NULL != j) {
14614- if (NULL != (x = cJSON_malloc(sizeof(struct Requires)))) {
14615- memset(x, 0, sizeof(struct Requires));
14616- if (!cJSON_HasObjectItem(j, "requires")) { cJSON_DeleteRequires(x); return NULL; }
14617- if (cJSON_HasObjectItem(j, "requires")) {
14618- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "requires"))) { cJSON_DeleteRequires(x); return NULL; }
14619- x->requires_requires = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "requires"));
14620- }
14621- }
14622- }
14623- return x;
14624-}
14625-
14626-cJSON * cJSON_CreateRequires(const struct Requires * x) {
14627- cJSON * j = NULL;
14628- if (NULL != x) {
14629- if (NULL != (j = cJSON_CreateObject())) {
14630- cJSON_AddNumberToObject(j, "requires", x->requires_requires);
14631- }
14632- }
14633- return j;
14634-}
14635-
14636-char * cJSON_PrintRequires(const struct Requires * x) {
14637- char * s = NULL;
14638- if (NULL != x) {
14639- cJSON * j = cJSON_CreateRequires(x);
14640- if (NULL != j) {
14641- s = cJSON_Print(j);
14642- cJSON_Delete(j);
14643- }
14644- }
14645- return s;
14646-}
14647-
14648-void cJSON_DeleteRequires(struct Requires * x) {
14649- if (NULL != x) {
14650- cJSON_free(x);
14651- }
14652-}
14653-
1465414644 struct ObjectClass * cJSON_ParseObjectClass(const char * s) {
1465514645 struct ObjectClass * x = NULL;
1465614646 if (NULL != s) {
@@ -14981,6 +14971,116 @@ void cJSON_DeleteOf(struct Of * x) {
1498114971 }
1498214972 }
1498314973
14974+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
14975+ struct OffsetDateTime * x = NULL;
14976+ if (NULL != s) {
14977+ cJSON * j = cJSON_Parse(s);
14978+ if (NULL != j) {
14979+ x = cJSON_GetOffsetDateTimeValue(j);
14980+ cJSON_Delete(j);
14981+ }
14982+ }
14983+ return x;
14984+}
14985+
14986+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
14987+ struct OffsetDateTime * x = NULL;
14988+ if (NULL != j) {
14989+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
14990+ memset(x, 0, sizeof(struct OffsetDateTime));
14991+ if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteOffsetDateTime(x); return NULL; }
14992+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
14993+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteOffsetDateTime(x); return NULL; }
14994+ x->offset_date_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
14995+ }
14996+ }
14997+ }
14998+ return x;
14999+}
15000+
15001+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
15002+ cJSON * j = NULL;
15003+ if (NULL != x) {
15004+ if (NULL != (j = cJSON_CreateObject())) {
15005+ cJSON_AddNumberToObject(j, "OffsetDateTime", x->offset_date_time);
15006+ }
15007+ }
15008+ return j;
15009+}
15010+
15011+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
15012+ char * s = NULL;
15013+ if (NULL != x) {
15014+ cJSON * j = cJSON_CreateOffsetDateTime(x);
15015+ if (NULL != j) {
15016+ s = cJSON_Print(j);
15017+ cJSON_Delete(j);
15018+ }
15019+ }
15020+ return s;
15021+}
15022+
15023+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
15024+ if (NULL != x) {
15025+ cJSON_free(x);
15026+ }
15027+}
15028+
15029+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
15030+ struct OffsetTime * x = NULL;
15031+ if (NULL != s) {
15032+ cJSON * j = cJSON_Parse(s);
15033+ if (NULL != j) {
15034+ x = cJSON_GetOffsetTimeValue(j);
15035+ cJSON_Delete(j);
15036+ }
15037+ }
15038+ return x;
15039+}
15040+
15041+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
15042+ struct OffsetTime * x = NULL;
15043+ if (NULL != j) {
15044+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
15045+ memset(x, 0, sizeof(struct OffsetTime));
15046+ if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteOffsetTime(x); return NULL; }
15047+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
15048+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteOffsetTime(x); return NULL; }
15049+ x->offset_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
15050+ }
15051+ }
15052+ }
15053+ return x;
15054+}
15055+
15056+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
15057+ cJSON * j = NULL;
15058+ if (NULL != x) {
15059+ if (NULL != (j = cJSON_CreateObject())) {
15060+ cJSON_AddNumberToObject(j, "OffsetTime", x->offset_time);
15061+ }
15062+ }
15063+ return j;
15064+}
15065+
15066+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
15067+ char * s = NULL;
15068+ if (NULL != x) {
15069+ cJSON * j = cJSON_CreateOffsetTime(x);
15070+ if (NULL != j) {
15071+ s = cJSON_Print(j);
15072+ cJSON_Delete(j);
15073+ }
15074+ }
15075+ return s;
15076+}
15077+
15078+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
15079+ if (NULL != x) {
15080+ cJSON_free(x);
15081+ }
15082+}
15083+
1498415084 struct Oneway * cJSON_ParseOneway(const char * s) {
1498515085 struct Oneway * x = NULL;
1498615086 if (NULL != s) {
@@ -16149,171 +16249,6 @@ void cJSON_DeleteRegExp(struct RegExp * x) {
1614916249 }
1615016250 }
1615116251
16152-struct Repeat * cJSON_ParseRepeat(const char * s) {
16153- struct Repeat * x = NULL;
16154- if (NULL != s) {
16155- cJSON * j = cJSON_Parse(s);
16156- if (NULL != j) {
16157- x = cJSON_GetRepeatValue(j);
16158- cJSON_Delete(j);
16159- }
16160- }
16161- return x;
16162-}
16163-
16164-struct Repeat * cJSON_GetRepeatValue(const cJSON * j) {
16165- struct Repeat * x = NULL;
16166- if (NULL != j) {
16167- if (NULL != (x = cJSON_malloc(sizeof(struct Repeat)))) {
16168- memset(x, 0, sizeof(struct Repeat));
16169- if (!cJSON_HasObjectItem(j, "repeat")) { cJSON_DeleteRepeat(x); return NULL; }
16170- if (cJSON_HasObjectItem(j, "repeat")) {
16171- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "repeat"))) { cJSON_DeleteRepeat(x); return NULL; }
16172- x->repeat = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "repeat"));
16173- }
16174- }
16175- }
16176- return x;
16177-}
16178-
16179-cJSON * cJSON_CreateRepeat(const struct Repeat * x) {
16180- cJSON * j = NULL;
16181- if (NULL != x) {
16182- if (NULL != (j = cJSON_CreateObject())) {
16183- cJSON_AddNumberToObject(j, "repeat", x->repeat);
16184- }
16185- }
16186- return j;
16187-}
16188-
16189-char * cJSON_PrintRepeat(const struct Repeat * x) {
16190- char * s = NULL;
16191- if (NULL != x) {
16192- cJSON * j = cJSON_CreateRepeat(x);
16193- if (NULL != j) {
16194- s = cJSON_Print(j);
16195- cJSON_Delete(j);
16196- }
16197- }
16198- return s;
16199-}
16200-
16201-void cJSON_DeleteRepeat(struct Repeat * x) {
16202- if (NULL != x) {
16203- cJSON_free(x);
16204- }
16205-}
16206-
16207-struct Require * cJSON_ParseRequire(const char * s) {
16208- struct Require * x = NULL;
16209- if (NULL != s) {
16210- cJSON * j = cJSON_Parse(s);
16211- if (NULL != j) {
16212- x = cJSON_GetRequireValue(j);
16213- cJSON_Delete(j);
16214- }
16215- }
16216- return x;
16217-}
16218-
16219-struct Require * cJSON_GetRequireValue(const cJSON * j) {
16220- struct Require * x = NULL;
16221- if (NULL != j) {
16222- if (NULL != (x = cJSON_malloc(sizeof(struct Require)))) {
16223- memset(x, 0, sizeof(struct Require));
16224- if (!cJSON_HasObjectItem(j, "require")) { cJSON_DeleteRequire(x); return NULL; }
16225- if (cJSON_HasObjectItem(j, "require")) {
16226- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "require"))) { cJSON_DeleteRequire(x); return NULL; }
16227- x->require = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "require"));
16228- }
16229- }
16230- }
16231- return x;
16232-}
16233-
16234-cJSON * cJSON_CreateRequire(const struct Require * x) {
16235- cJSON * j = NULL;
16236- if (NULL != x) {
16237- if (NULL != (j = cJSON_CreateObject())) {
16238- cJSON_AddNumberToObject(j, "require", x->require);
16239- }
16240- }
16241- return j;
16242-}
16243-
16244-char * cJSON_PrintRequire(const struct Require * x) {
16245- char * s = NULL;
16246- if (NULL != x) {
16247- cJSON * j = cJSON_CreateRequire(x);
16248- if (NULL != j) {
16249- s = cJSON_Print(j);
16250- cJSON_Delete(j);
16251- }
16252- }
16253- return s;
16254-}
16255-
16256-void cJSON_DeleteRequire(struct Require * x) {
16257- if (NULL != x) {
16258- cJSON_free(x);
16259- }
16260-}
16261-
16262-struct Required * cJSON_ParseRequired(const char * s) {
16263- struct Required * x = NULL;
16264- if (NULL != s) {
16265- cJSON * j = cJSON_Parse(s);
16266- if (NULL != j) {
16267- x = cJSON_GetRequiredValue(j);
16268- cJSON_Delete(j);
16269- }
16270- }
16271- return x;
16272-}
16273-
16274-struct Required * cJSON_GetRequiredValue(const cJSON * j) {
16275- struct Required * x = NULL;
16276- if (NULL != j) {
16277- if (NULL != (x = cJSON_malloc(sizeof(struct Required)))) {
16278- memset(x, 0, sizeof(struct Required));
16279- if (!cJSON_HasObjectItem(j, "required")) { cJSON_DeleteRequired(x); return NULL; }
16280- if (cJSON_HasObjectItem(j, "required")) {
16281- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "required"))) { cJSON_DeleteRequired(x); return NULL; }
16282- x->required = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "required"));
16283- }
16284- }
16285- }
16286- return x;
16287-}
16288-
16289-cJSON * cJSON_CreateRequired(const struct Required * x) {
16290- cJSON * j = NULL;
16291- if (NULL != x) {
16292- if (NULL != (j = cJSON_CreateObject())) {
16293- cJSON_AddNumberToObject(j, "required", x->required);
16294- }
16295- }
16296- return j;
16297-}
16298-
16299-char * cJSON_PrintRequired(const struct Required * x) {
16300- char * s = NULL;
16301- if (NULL != x) {
16302- cJSON * j = cJSON_CreateRequired(x);
16303- if (NULL != j) {
16304- s = cJSON_Print(j);
16305- cJSON_Delete(j);
16306- }
16307- }
16308- return s;
16309-}
16310-
16311-void cJSON_DeleteRequired(struct Required * x) {
16312- if (NULL != x) {
16313- cJSON_free(x);
16314- }
16315-}
16316-
1631716252 struct Obj4 * cJSON_ParseObj4(const char * s) {
1631816253 struct Obj4 * x = NULL;
1631916254 if (NULL != s) {
@@ -16336,6 +16271,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1633616271 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; }
1633716272 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
1633816273 }
16274+ if (!cJSON_HasObjectItem(j, "mutating")) { cJSON_DeleteObj4(x); return NULL; }
16275+ if (cJSON_HasObjectItem(j, "mutating")) {
16276+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "mutating"))) { cJSON_DeleteObj4(x); return NULL; }
16277+ x->mutating = cJSON_GetMutatingValue(cJSON_GetObjectItemCaseSensitive(j, "mutating"));
16278+ if (NULL == x->mutating) { cJSON_DeleteObj4(x); return NULL; }
16279+ }
1633916280 if (!cJSON_HasObjectItem(j, "native")) { cJSON_DeleteObj4(x); return NULL; }
1634016281 if (cJSON_HasObjectItem(j, "native")) {
1634116282 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "native"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16426,6 +16367,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1642616367 x->number = cJSON_GetNumberClassValue(cJSON_GetObjectItemCaseSensitive(j, "number"));
1642716368 if (NULL == x->number) { cJSON_DeleteObj4(x); return NULL; }
1642816369 }
16370+ if (!cJSON_HasObjectItem(j, "mutable")) { cJSON_DeleteObj4(x); return NULL; }
16371+ if (cJSON_HasObjectItem(j, "mutable")) {
16372+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "mutable"))) { cJSON_DeleteObj4(x); return NULL; }
16373+ x->obj4_mutable = cJSON_GetMutableValue(cJSON_GetObjectItemCaseSensitive(j, "mutable"));
16374+ if (NULL == x->obj4_mutable) { cJSON_DeleteObj4(x); return NULL; }
16375+ }
1642916376 if (!cJSON_HasObjectItem(j, "namespace")) { cJSON_DeleteObj4(x); return NULL; }
1643016377 if (cJSON_HasObjectItem(j, "namespace")) {
1643116378 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "namespace"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16534,12 +16481,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1653416481 x->obj4_reinterpret_cast = cJSON_GetReinterpretCastValue(cJSON_GetObjectItemCaseSensitive(j, "reinterpret_cast"));
1653516482 if (NULL == x->obj4_reinterpret_cast) { cJSON_DeleteObj4(x); return NULL; }
1653616483 }
16537- if (!cJSON_HasObjectItem(j, "requires")) { cJSON_DeleteObj4(x); return NULL; }
16538- if (cJSON_HasObjectItem(j, "requires")) {
16539- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "requires"))) { cJSON_DeleteObj4(x); return NULL; }
16540- x->obj4_requires = cJSON_GetRequiresValue(cJSON_GetObjectItemCaseSensitive(j, "requires"));
16541- if (NULL == x->obj4_requires) { cJSON_DeleteObj4(x); return NULL; }
16542- }
1654316484 if (!cJSON_HasObjectItem(j, "object")) { cJSON_DeleteObj4(x); return NULL; }
1654416485 if (cJSON_HasObjectItem(j, "object")) {
1654516486 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "object"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16576,6 +16517,18 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1657616517 x->of = cJSON_GetOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
1657716518 if (NULL == x->of) { cJSON_DeleteObj4(x); return NULL; }
1657816519 }
16520+ if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteObj4(x); return NULL; }
16521+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
16522+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteObj4(x); return NULL; }
16523+ x->offset_date_time = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
16524+ if (NULL == x->offset_date_time) { cJSON_DeleteObj4(x); return NULL; }
16525+ }
16526+ if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteObj4(x); return NULL; }
16527+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
16528+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteObj4(x); return NULL; }
16529+ x->offset_time = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
16530+ if (NULL == x->offset_time) { cJSON_DeleteObj4(x); return NULL; }
16531+ }
1657916532 if (!cJSON_HasObjectItem(j, "oneway")) { cJSON_DeleteObj4(x); return NULL; }
1658016533 if (cJSON_HasObjectItem(j, "oneway")) {
1658116534 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16702,24 +16655,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1670216655 x->reg_exp = cJSON_GetRegExpValue(cJSON_GetObjectItemCaseSensitive(j, "RegExp"));
1670316656 if (NULL == x->reg_exp) { cJSON_DeleteObj4(x); return NULL; }
1670416657 }
16705- if (!cJSON_HasObjectItem(j, "repeat")) { cJSON_DeleteObj4(x); return NULL; }
16706- if (cJSON_HasObjectItem(j, "repeat")) {
16707- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "repeat"))) { cJSON_DeleteObj4(x); return NULL; }
16708- x->repeat = cJSON_GetRepeatValue(cJSON_GetObjectItemCaseSensitive(j, "repeat"));
16709- if (NULL == x->repeat) { cJSON_DeleteObj4(x); return NULL; }
16710- }
16711- if (!cJSON_HasObjectItem(j, "require")) { cJSON_DeleteObj4(x); return NULL; }
16712- if (cJSON_HasObjectItem(j, "require")) {
16713- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "require"))) { cJSON_DeleteObj4(x); return NULL; }
16714- x->require = cJSON_GetRequireValue(cJSON_GetObjectItemCaseSensitive(j, "require"));
16715- if (NULL == x->require) { cJSON_DeleteObj4(x); return NULL; }
16716- }
16717- if (!cJSON_HasObjectItem(j, "required")) { cJSON_DeleteObj4(x); return NULL; }
16718- if (cJSON_HasObjectItem(j, "required")) {
16719- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "required"))) { cJSON_DeleteObj4(x); return NULL; }
16720- x->required = cJSON_GetRequiredValue(cJSON_GetObjectItemCaseSensitive(j, "required"));
16721- if (NULL == x->required) { cJSON_DeleteObj4(x); return NULL; }
16722- }
1672316658 }
1672416659 }
1672516660 return x;
@@ -16730,6 +16665,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1673016665 if (NULL != x) {
1673116666 if (NULL != (j = cJSON_CreateObject())) {
1673216667 cJSON_AddNumberToObject(j, "dummy", x->dummy);
16668+ cJSON_AddItemToObject(j, "mutating", cJSON_CreateMutating(x->mutating));
1673316669 cJSON_AddItemToObject(j, "native", cJSON_CreateNative(x->native));
1673416670 cJSON_AddItemToObject(j, "newtonsoft", cJSON_CreateNewtonsoft(x->newtonsoft));
1673516671 cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil));
@@ -16745,6 +16681,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1674516681 cJSON_AddItemToObject(j, "NULL", cJSON_CreateNullClass(x->null));
1674616682 cJSON_AddItemToObject(j, "NullNode", cJSON_CreateNullNode(x->null_node));
1674716683 cJSON_AddItemToObject(j, "number", cJSON_CreateNumberClass(x->number));
16684+ cJSON_AddItemToObject(j, "mutable", cJSON_CreateMutable(x->obj4_mutable));
1674816685 cJSON_AddItemToObject(j, "namespace", cJSON_CreateNamespace(x->obj4_namespace));
1674916686 cJSON_AddItemToObject(j, "new", cJSON_CreateNew(x->obj4_new));
1675016687 cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj4_noexcept));
@@ -16763,13 +16700,14 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1676316700 cJSON_AddItemToObject(j, "public", cJSON_CreatePublic(x->obj4_public));
1676416701 cJSON_AddItemToObject(j, "register", cJSON_CreateRegister(x->obj4_register));
1676516702 cJSON_AddItemToObject(j, "reinterpret_cast", cJSON_CreateReinterpretCast(x->obj4_reinterpret_cast));
16766- cJSON_AddItemToObject(j, "requires", cJSON_CreateRequires(x->obj4_requires));
1676716703 cJSON_AddItemToObject(j, "object", cJSON_CreateObjectClass(x->object));
1676816704 cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateObjectMapper(x->object_mapper));
1676916705 cJSON_AddItemToObject(j, "ObjectNode", cJSON_CreateObjectNode(x->object_node));
1677016706 cJSON_AddItemToObject(j, "ObjectReader", cJSON_CreateObjectReader(x->object_reader));
1677116707 cJSON_AddItemToObject(j, "ObjectWriter", cJSON_CreateObjectWriter(x->object_writer));
1677216708 cJSON_AddItemToObject(j, "of", cJSON_CreateOf(x->of));
16709+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateOffsetDateTime(x->offset_date_time));
16710+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateOffsetTime(x->offset_time));
1677316711 cJSON_AddItemToObject(j, "oneway", cJSON_CreateOneway(x->oneway));
1677416712 cJSON_AddItemToObject(j, "open", cJSON_CreateOpen(x->open));
1677516713 cJSON_AddItemToObject(j, "optional", cJSON_CreateOptional(x->optional));
@@ -16791,9 +16729,6 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1679116729 cJSON_AddItemToObject(j, "readonly", cJSON_CreateReadonly(x->readonly));
1679216730 cJSON_AddItemToObject(j, "ref", cJSON_CreateRef(x->ref));
1679316731 cJSON_AddItemToObject(j, "RegExp", cJSON_CreateRegExp(x->reg_exp));
16794- cJSON_AddItemToObject(j, "repeat", cJSON_CreateRepeat(x->repeat));
16795- cJSON_AddItemToObject(j, "require", cJSON_CreateRequire(x->require));
16796- cJSON_AddItemToObject(j, "required", cJSON_CreateRequired(x->required));
1679716732 }
1679816733 }
1679916734 return j;
@@ -16813,6 +16748,9 @@ char * cJSON_PrintObj4(const struct Obj4 * x) {
1681316748
1681416749 void cJSON_DeleteObj4(struct Obj4 * x) {
1681516750 if (NULL != x) {
16751+ if (NULL != x->mutating) {
16752+ cJSON_DeleteMutating(x->mutating);
16753+ }
1681616754 if (NULL != x->native) {
1681716755 cJSON_DeleteNative(x->native);
1681816756 }
@@ -16858,6 +16796,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1685816796 if (NULL != x->number) {
1685916797 cJSON_DeleteNumberClass(x->number);
1686016798 }
16799+ if (NULL != x->obj4_mutable) {
16800+ cJSON_DeleteMutable(x->obj4_mutable);
16801+ }
1686116802 if (NULL != x->obj4_namespace) {
1686216803 cJSON_DeleteNamespace(x->obj4_namespace);
1686316804 }
@@ -16912,9 +16853,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1691216853 if (NULL != x->obj4_reinterpret_cast) {
1691316854 cJSON_DeleteReinterpretCast(x->obj4_reinterpret_cast);
1691416855 }
16915- if (NULL != x->obj4_requires) {
16916- cJSON_DeleteRequires(x->obj4_requires);
16917- }
1691816856 if (NULL != x->object) {
1691916857 cJSON_DeleteObjectClass(x->object);
1692016858 }
@@ -16933,6 +16871,12 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1693316871 if (NULL != x->of) {
1693416872 cJSON_DeleteOf(x->of);
1693516873 }
16874+ if (NULL != x->offset_date_time) {
16875+ cJSON_DeleteOffsetDateTime(x->offset_date_time);
16876+ }
16877+ if (NULL != x->offset_time) {
16878+ cJSON_DeleteOffsetTime(x->offset_time);
16879+ }
1693616880 if (NULL != x->oneway) {
1693716881 cJSON_DeleteOneway(x->oneway);
1693816882 }
@@ -16996,15 +16940,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1699616940 if (NULL != x->reg_exp) {
1699716941 cJSON_DeleteRegExp(x->reg_exp);
1699816942 }
16999- if (NULL != x->repeat) {
17000- cJSON_DeleteRepeat(x->repeat);
17001- }
17002- if (NULL != x->require) {
17003- cJSON_DeleteRequire(x->require);
17004- }
17005- if (NULL != x->required) {
17006- cJSON_DeleteRequired(x->required);
17007- }
1700816943 cJSON_free(x);
1700916944 }
1701016945 }
@@ -17064,6 +16999,61 @@ void cJSON_DeleteKSerializer(struct KSerializer * x) {
1706416999 }
1706517000 }
1706617001
17002+struct Requires * cJSON_ParseRequires(const char * s) {
17003+ struct Requires * x = NULL;
17004+ if (NULL != s) {
17005+ cJSON * j = cJSON_Parse(s);
17006+ if (NULL != j) {
17007+ x = cJSON_GetRequiresValue(j);
17008+ cJSON_Delete(j);
17009+ }
17010+ }
17011+ return x;
17012+}
17013+
17014+struct Requires * cJSON_GetRequiresValue(const cJSON * j) {
17015+ struct Requires * x = NULL;
17016+ if (NULL != j) {
17017+ if (NULL != (x = cJSON_malloc(sizeof(struct Requires)))) {
17018+ memset(x, 0, sizeof(struct Requires));
17019+ if (!cJSON_HasObjectItem(j, "requires")) { cJSON_DeleteRequires(x); return NULL; }
17020+ if (cJSON_HasObjectItem(j, "requires")) {
17021+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "requires"))) { cJSON_DeleteRequires(x); return NULL; }
17022+ x->requires_requires = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "requires"));
17023+ }
17024+ }
17025+ }
17026+ return x;
17027+}
17028+
17029+cJSON * cJSON_CreateRequires(const struct Requires * x) {
17030+ cJSON * j = NULL;
17031+ if (NULL != x) {
17032+ if (NULL != (j = cJSON_CreateObject())) {
17033+ cJSON_AddNumberToObject(j, "requires", x->requires_requires);
17034+ }
17035+ }
17036+ return j;
17037+}
17038+
17039+char * cJSON_PrintRequires(const struct Requires * x) {
17040+ char * s = NULL;
17041+ if (NULL != x) {
17042+ cJSON * j = cJSON_CreateRequires(x);
17043+ if (NULL != j) {
17044+ s = cJSON_Print(j);
17045+ cJSON_Delete(j);
17046+ }
17047+ }
17048+ return s;
17049+}
17050+
17051+void cJSON_DeleteRequires(struct Requires * x) {
17052+ if (NULL != x) {
17053+ cJSON_free(x);
17054+ }
17055+}
17056+
1706717057 struct Restrict * cJSON_ParseRestrict(const char * s) {
1706817058 struct Restrict * x = NULL;
1706917059 if (NULL != s) {
@@ -17999,47 +17989,102 @@ void cJSON_DeleteTrueClass(struct TrueClass * x) {
1799917989 }
1800017990 }
1800117991
18002-struct Try * cJSON_ParseTry(const char * s) {
18003- struct Try * x = NULL;
17992+struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
17993+ struct PrimitiveKind * x = NULL;
1800417994 if (NULL != s) {
1800517995 cJSON * j = cJSON_Parse(s);
1800617996 if (NULL != j) {
18007- x = cJSON_GetTryValue(j);
17997+ x = cJSON_GetPrimitiveKindValue(j);
17998+ cJSON_Delete(j);
17999+ }
18000+ }
18001+ return x;
18002+}
18003+
18004+struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18005+ struct PrimitiveKind * x = NULL;
18006+ if (NULL != j) {
18007+ if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
18008+ memset(x, 0, sizeof(struct PrimitiveKind));
18009+ if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18010+ if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18011+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18012+ x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
18013+ }
18014+ }
18015+ }
18016+ return x;
18017+}
18018+
18019+cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
18020+ cJSON * j = NULL;
18021+ if (NULL != x) {
18022+ if (NULL != (j = cJSON_CreateObject())) {
18023+ cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind);
18024+ }
18025+ }
18026+ return j;
18027+}
18028+
18029+char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
18030+ char * s = NULL;
18031+ if (NULL != x) {
18032+ cJSON * j = cJSON_CreatePrimitiveKind(x);
18033+ if (NULL != j) {
18034+ s = cJSON_Print(j);
18035+ cJSON_Delete(j);
18036+ }
18037+ }
18038+ return s;
18039+}
18040+
18041+void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
18042+ if (NULL != x) {
18043+ cJSON_free(x);
18044+ }
18045+}
18046+
18047+struct Obj5True * cJSON_ParseObj5True(const char * s) {
18048+ struct Obj5True * x = NULL;
18049+ if (NULL != s) {
18050+ cJSON * j = cJSON_Parse(s);
18051+ if (NULL != j) {
18052+ x = cJSON_GetObj5TrueValue(j);
1800818053 cJSON_Delete(j);
1800918054 }
1801018055 }
1801118056 return x;
1801218057 }
1801318058
18014-struct Try * cJSON_GetTryValue(const cJSON * j) {
18015- struct Try * x = NULL;
18059+struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18060+ struct Obj5True * x = NULL;
1801618061 if (NULL != j) {
18017- if (NULL != (x = cJSON_malloc(sizeof(struct Try)))) {
18018- memset(x, 0, sizeof(struct Try));
18019- if (!cJSON_HasObjectItem(j, "try")) { cJSON_DeleteTry(x); return NULL; }
18020- if (cJSON_HasObjectItem(j, "try")) {
18021- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "try"))) { cJSON_DeleteTry(x); return NULL; }
18022- x->try_try = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "try"));
18062+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18063+ memset(x, 0, sizeof(struct Obj5True));
18064+ if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18065+ if (cJSON_HasObjectItem(j, "true")) {
18066+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18067+ x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
1802318068 }
1802418069 }
1802518070 }
1802618071 return x;
1802718072 }
1802818073
18029-cJSON * cJSON_CreateTry(const struct Try * x) {
18074+cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
1803018075 cJSON * j = NULL;
1803118076 if (NULL != x) {
1803218077 if (NULL != (j = cJSON_CreateObject())) {
18033- cJSON_AddNumberToObject(j, "try", x->try_try);
18078+ cJSON_AddNumberToObject(j, "true", x->true_true);
1803418079 }
1803518080 }
1803618081 return j;
1803718082 }
1803818083
18039-char * cJSON_PrintTry(const struct Try * x) {
18084+char * cJSON_PrintObj5True(const struct Obj5True * x) {
1804018085 char * s = NULL;
1804118086 if (NULL != x) {
18042- cJSON * j = cJSON_CreateTry(x);
18087+ cJSON * j = cJSON_CreateObj5True(x);
1804318088 if (NULL != j) {
1804418089 s = cJSON_Print(j);
1804518090 cJSON_Delete(j);
@@ -18048,53 +18093,53 @@ char * cJSON_PrintTry(const struct Try * x) {
1804818093 return s;
1804918094 }
1805018095
18051-void cJSON_DeleteTry(struct Try * x) {
18096+void cJSON_DeleteObj5True(struct Obj5True * x) {
1805218097 if (NULL != x) {
1805318098 cJSON_free(x);
1805418099 }
1805518100 }
1805618101
18057-struct TypeClass * cJSON_ParseTypeClass(const char * s) {
18058- struct TypeClass * x = NULL;
18102+struct Repeat * cJSON_ParseRepeat(const char * s) {
18103+ struct Repeat * x = NULL;
1805918104 if (NULL != s) {
1806018105 cJSON * j = cJSON_Parse(s);
1806118106 if (NULL != j) {
18062- x = cJSON_GetTypeClassValue(j);
18107+ x = cJSON_GetRepeatValue(j);
1806318108 cJSON_Delete(j);
1806418109 }
1806518110 }
1806618111 return x;
1806718112 }
1806818113
18069-struct TypeClass * cJSON_GetTypeClassValue(const cJSON * j) {
18070- struct TypeClass * x = NULL;
18114+struct Repeat * cJSON_GetRepeatValue(const cJSON * j) {
18115+ struct Repeat * x = NULL;
1807118116 if (NULL != j) {
18072- if (NULL != (x = cJSON_malloc(sizeof(struct TypeClass)))) {
18073- memset(x, 0, sizeof(struct TypeClass));
18074- if (!cJSON_HasObjectItem(j, "type")) { cJSON_DeleteTypeClass(x); return NULL; }
18075- if (cJSON_HasObjectItem(j, "type")) {
18076- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "type"))) { cJSON_DeleteTypeClass(x); return NULL; }
18077- x->type = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "type"));
18117+ if (NULL != (x = cJSON_malloc(sizeof(struct Repeat)))) {
18118+ memset(x, 0, sizeof(struct Repeat));
18119+ if (!cJSON_HasObjectItem(j, "repeat")) { cJSON_DeleteRepeat(x); return NULL; }
18120+ if (cJSON_HasObjectItem(j, "repeat")) {
18121+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "repeat"))) { cJSON_DeleteRepeat(x); return NULL; }
18122+ x->repeat = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "repeat"));
1807818123 }
1807918124 }
1808018125 }
1808118126 return x;
1808218127 }
1808318128
18084-cJSON * cJSON_CreateTypeClass(const struct TypeClass * x) {
18129+cJSON * cJSON_CreateRepeat(const struct Repeat * x) {
1808518130 cJSON * j = NULL;
1808618131 if (NULL != x) {
1808718132 if (NULL != (j = cJSON_CreateObject())) {
18088- cJSON_AddNumberToObject(j, "type", x->type);
18133+ cJSON_AddNumberToObject(j, "repeat", x->repeat);
1808918134 }
1809018135 }
1809118136 return j;
1809218137 }
1809318138
18094-char * cJSON_PrintTypeClass(const struct TypeClass * x) {
18139+char * cJSON_PrintRepeat(const struct Repeat * x) {
1809518140 char * s = NULL;
1809618141 if (NULL != x) {
18097- cJSON * j = cJSON_CreateTypeClass(x);
18142+ cJSON * j = cJSON_CreateRepeat(x);
1809818143 if (NULL != j) {
1809918144 s = cJSON_Print(j);
1810018145 cJSON_Delete(j);
@@ -18103,53 +18148,53 @@ char * cJSON_PrintTypeClass(const struct TypeClass * x) {
1810318148 return s;
1810418149 }
1810518150
18106-void cJSON_DeleteTypeClass(struct TypeClass * x) {
18151+void cJSON_DeleteRepeat(struct Repeat * x) {
1810718152 if (NULL != x) {
1810818153 cJSON_free(x);
1810918154 }
1811018155 }
1811118156
18112-struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
18113- struct PrimitiveKind * x = NULL;
18157+struct Require * cJSON_ParseRequire(const char * s) {
18158+ struct Require * x = NULL;
1811418159 if (NULL != s) {
1811518160 cJSON * j = cJSON_Parse(s);
1811618161 if (NULL != j) {
18117- x = cJSON_GetPrimitiveKindValue(j);
18162+ x = cJSON_GetRequireValue(j);
1811818163 cJSON_Delete(j);
1811918164 }
1812018165 }
1812118166 return x;
1812218167 }
1812318168
18124-struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) {
18125- struct PrimitiveKind * x = NULL;
18169+struct Require * cJSON_GetRequireValue(const cJSON * j) {
18170+ struct Require * x = NULL;
1812618171 if (NULL != j) {
18127- if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) {
18128- memset(x, 0, sizeof(struct PrimitiveKind));
18129- if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; }
18130- if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
18131- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; }
18132- x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"));
18172+ if (NULL != (x = cJSON_malloc(sizeof(struct Require)))) {
18173+ memset(x, 0, sizeof(struct Require));
18174+ if (!cJSON_HasObjectItem(j, "require")) { cJSON_DeleteRequire(x); return NULL; }
18175+ if (cJSON_HasObjectItem(j, "require")) {
18176+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "require"))) { cJSON_DeleteRequire(x); return NULL; }
18177+ x->require = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "require"));
1813318178 }
1813418179 }
1813518180 }
1813618181 return x;
1813718182 }
1813818183
18139-cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) {
18184+cJSON * cJSON_CreateRequire(const struct Require * x) {
1814018185 cJSON * j = NULL;
1814118186 if (NULL != x) {
1814218187 if (NULL != (j = cJSON_CreateObject())) {
18143- cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind);
18188+ cJSON_AddNumberToObject(j, "require", x->require);
1814418189 }
1814518190 }
1814618191 return j;
1814718192 }
1814818193
18149-char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
18194+char * cJSON_PrintRequire(const struct Require * x) {
1815018195 char * s = NULL;
1815118196 if (NULL != x) {
18152- cJSON * j = cJSON_CreatePrimitiveKind(x);
18197+ cJSON * j = cJSON_CreateRequire(x);
1815318198 if (NULL != j) {
1815418199 s = cJSON_Print(j);
1815518200 cJSON_Delete(j);
@@ -18158,53 +18203,53 @@ char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) {
1815818203 return s;
1815918204 }
1816018205
18161-void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) {
18206+void cJSON_DeleteRequire(struct Require * x) {
1816218207 if (NULL != x) {
1816318208 cJSON_free(x);
1816418209 }
1816518210 }
1816618211
18167-struct Obj5True * cJSON_ParseObj5True(const char * s) {
18168- struct Obj5True * x = NULL;
18212+struct Required * cJSON_ParseRequired(const char * s) {
18213+ struct Required * x = NULL;
1816918214 if (NULL != s) {
1817018215 cJSON * j = cJSON_Parse(s);
1817118216 if (NULL != j) {
18172- x = cJSON_GetObj5TrueValue(j);
18217+ x = cJSON_GetRequiredValue(j);
1817318218 cJSON_Delete(j);
1817418219 }
1817518220 }
1817618221 return x;
1817718222 }
1817818223
18179-struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18180- struct Obj5True * x = NULL;
18224+struct Required * cJSON_GetRequiredValue(const cJSON * j) {
18225+ struct Required * x = NULL;
1818118226 if (NULL != j) {
18182- if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18183- memset(x, 0, sizeof(struct Obj5True));
18184- if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18185- if (cJSON_HasObjectItem(j, "true")) {
18186- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18187- x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
18227+ if (NULL != (x = cJSON_malloc(sizeof(struct Required)))) {
18228+ memset(x, 0, sizeof(struct Required));
18229+ if (!cJSON_HasObjectItem(j, "required")) { cJSON_DeleteRequired(x); return NULL; }
18230+ if (cJSON_HasObjectItem(j, "required")) {
18231+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "required"))) { cJSON_DeleteRequired(x); return NULL; }
18232+ x->required = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "required"));
1818818233 }
1818918234 }
1819018235 }
1819118236 return x;
1819218237 }
1819318238
18194-cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
18239+cJSON * cJSON_CreateRequired(const struct Required * x) {
1819518240 cJSON * j = NULL;
1819618241 if (NULL != x) {
1819718242 if (NULL != (j = cJSON_CreateObject())) {
18198- cJSON_AddNumberToObject(j, "true", x->true_true);
18243+ cJSON_AddNumberToObject(j, "required", x->required);
1819918244 }
1820018245 }
1820118246 return j;
1820218247 }
1820318248
18204-char * cJSON_PrintObj5True(const struct Obj5True * x) {
18249+char * cJSON_PrintRequired(const struct Required * x) {
1820518250 char * s = NULL;
1820618251 if (NULL != x) {
18207- cJSON * j = cJSON_CreateObj5True(x);
18252+ cJSON * j = cJSON_CreateRequired(x);
1820818253 if (NULL != j) {
1820918254 s = cJSON_Print(j);
1821018255 cJSON_Delete(j);
@@ -18213,7 +18258,7 @@ char * cJSON_PrintObj5True(const struct Obj5True * x) {
1821318258 return s;
1821418259 }
1821518260
18216-void cJSON_DeleteObj5True(struct Obj5True * x) {
18261+void cJSON_DeleteRequired(struct Required * x) {
1821718262 if (NULL != x) {
1821818263 cJSON_free(x);
1821918264 }
@@ -20419,116 +20464,6 @@ void cJSON_DeleteTransient(struct Transient * x) {
2041920464 }
2042020465 }
2042120466
20422-struct Type * cJSON_ParseType(const char * s) {
20423- struct Type * x = NULL;
20424- if (NULL != s) {
20425- cJSON * j = cJSON_Parse(s);
20426- if (NULL != j) {
20427- x = cJSON_GetTypeValue(j);
20428- cJSON_Delete(j);
20429- }
20430- }
20431- return x;
20432-}
20433-
20434-struct Type * cJSON_GetTypeValue(const cJSON * j) {
20435- struct Type * x = NULL;
20436- if (NULL != j) {
20437- if (NULL != (x = cJSON_malloc(sizeof(struct Type)))) {
20438- memset(x, 0, sizeof(struct Type));
20439- if (!cJSON_HasObjectItem(j, "Type")) { cJSON_DeleteType(x); return NULL; }
20440- if (cJSON_HasObjectItem(j, "Type")) {
20441- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Type"))) { cJSON_DeleteType(x); return NULL; }
20442- x->type = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Type"));
20443- }
20444- }
20445- }
20446- return x;
20447-}
20448-
20449-cJSON * cJSON_CreateType(const struct Type * x) {
20450- cJSON * j = NULL;
20451- if (NULL != x) {
20452- if (NULL != (j = cJSON_CreateObject())) {
20453- cJSON_AddNumberToObject(j, "Type", x->type);
20454- }
20455- }
20456- return j;
20457-}
20458-
20459-char * cJSON_PrintType(const struct Type * x) {
20460- char * s = NULL;
20461- if (NULL != x) {
20462- cJSON * j = cJSON_CreateType(x);
20463- if (NULL != j) {
20464- s = cJSON_Print(j);
20465- cJSON_Delete(j);
20466- }
20467- }
20468- return s;
20469-}
20470-
20471-void cJSON_DeleteType(struct Type * x) {
20472- if (NULL != x) {
20473- cJSON_free(x);
20474- }
20475-}
20476-
20477-struct Typealias * cJSON_ParseTypealias(const char * s) {
20478- struct Typealias * x = NULL;
20479- if (NULL != s) {
20480- cJSON * j = cJSON_Parse(s);
20481- if (NULL != j) {
20482- x = cJSON_GetTypealiasValue(j);
20483- cJSON_Delete(j);
20484- }
20485- }
20486- return x;
20487-}
20488-
20489-struct Typealias * cJSON_GetTypealiasValue(const cJSON * j) {
20490- struct Typealias * x = NULL;
20491- if (NULL != j) {
20492- if (NULL != (x = cJSON_malloc(sizeof(struct Typealias)))) {
20493- memset(x, 0, sizeof(struct Typealias));
20494- if (!cJSON_HasObjectItem(j, "typealias")) { cJSON_DeleteTypealias(x); return NULL; }
20495- if (cJSON_HasObjectItem(j, "typealias")) {
20496- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "typealias"))) { cJSON_DeleteTypealias(x); return NULL; }
20497- x->typealias = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "typealias"));
20498- }
20499- }
20500- }
20501- return x;
20502-}
20503-
20504-cJSON * cJSON_CreateTypealias(const struct Typealias * x) {
20505- cJSON * j = NULL;
20506- if (NULL != x) {
20507- if (NULL != (j = cJSON_CreateObject())) {
20508- cJSON_AddNumberToObject(j, "typealias", x->typealias);
20509- }
20510- }
20511- return j;
20512-}
20513-
20514-char * cJSON_PrintTypealias(const struct Typealias * x) {
20515- char * s = NULL;
20516- if (NULL != x) {
20517- cJSON * j = cJSON_CreateTypealias(x);
20518- if (NULL != j) {
20519- s = cJSON_Print(j);
20520- cJSON_Delete(j);
20521- }
20522- }
20523- return s;
20524-}
20525-
20526-void cJSON_DeleteTypealias(struct Typealias * x) {
20527- if (NULL != x) {
20528- cJSON_free(x);
20529- }
20530-}
20531-
2053220467 struct Obj5 * cJSON_ParseObj5(const char * s) {
2053320468 struct Obj5 * x = NULL;
2053420469 if (NULL != s) {
@@ -20557,6 +20492,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2055720492 x->k_serializer = cJSON_GetKSerializerValue(cJSON_GetObjectItemCaseSensitive(j, "KSerializer"));
2055820493 if (NULL == x->k_serializer) { cJSON_DeleteObj5(x); return NULL; }
2055920494 }
20495+ if (!cJSON_HasObjectItem(j, "requires")) { cJSON_DeleteObj5(x); return NULL; }
20496+ if (cJSON_HasObjectItem(j, "requires")) {
20497+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "requires"))) { cJSON_DeleteObj5(x); return NULL; }
20498+ x->obj5_requires = cJSON_GetRequiresValue(cJSON_GetObjectItemCaseSensitive(j, "requires"));
20499+ if (NULL == x->obj5_requires) { cJSON_DeleteObj5(x); return NULL; }
20500+ }
2056020501 if (!cJSON_HasObjectItem(j, "restrict")) { cJSON_DeleteObj5(x); return NULL; }
2056120502 if (cJSON_HasObjectItem(j, "restrict")) {
2056220503 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "restrict"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20659,18 +20600,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2065920600 x->obj5_true = cJSON_GetTrueClassValue(cJSON_GetObjectItemCaseSensitive(j, "True"));
2066020601 if (NULL == x->obj5_true) { cJSON_DeleteObj5(x); return NULL; }
2066120602 }
20662- if (!cJSON_HasObjectItem(j, "try")) { cJSON_DeleteObj5(x); return NULL; }
20663- if (cJSON_HasObjectItem(j, "try")) {
20664- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "try"))) { cJSON_DeleteObj5(x); return NULL; }
20665- x->obj5_try = cJSON_GetTryValue(cJSON_GetObjectItemCaseSensitive(j, "try"));
20666- if (NULL == x->obj5_try) { cJSON_DeleteObj5(x); return NULL; }
20667- }
20668- if (!cJSON_HasObjectItem(j, "type")) { cJSON_DeleteObj5(x); return NULL; }
20669- if (cJSON_HasObjectItem(j, "type")) {
20670- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "type"))) { cJSON_DeleteObj5(x); return NULL; }
20671- x->obj5_type = cJSON_GetTypeClassValue(cJSON_GetObjectItemCaseSensitive(j, "type"));
20672- if (NULL == x->obj5_type) { cJSON_DeleteObj5(x); return NULL; }
20673- }
2067420603 if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; }
2067520604 if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
2067620605 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20683,6 +20612,24 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2068320612 x->purple_true = cJSON_GetObj5TrueValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
2068420613 if (NULL == x->purple_true) { cJSON_DeleteObj5(x); return NULL; }
2068520614 }
20615+ if (!cJSON_HasObjectItem(j, "repeat")) { cJSON_DeleteObj5(x); return NULL; }
20616+ if (cJSON_HasObjectItem(j, "repeat")) {
20617+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "repeat"))) { cJSON_DeleteObj5(x); return NULL; }
20618+ x->repeat = cJSON_GetRepeatValue(cJSON_GetObjectItemCaseSensitive(j, "repeat"));
20619+ if (NULL == x->repeat) { cJSON_DeleteObj5(x); return NULL; }
20620+ }
20621+ if (!cJSON_HasObjectItem(j, "require")) { cJSON_DeleteObj5(x); return NULL; }
20622+ if (cJSON_HasObjectItem(j, "require")) {
20623+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "require"))) { cJSON_DeleteObj5(x); return NULL; }
20624+ x->require = cJSON_GetRequireValue(cJSON_GetObjectItemCaseSensitive(j, "require"));
20625+ if (NULL == x->require) { cJSON_DeleteObj5(x); return NULL; }
20626+ }
20627+ if (!cJSON_HasObjectItem(j, "required")) { cJSON_DeleteObj5(x); return NULL; }
20628+ if (cJSON_HasObjectItem(j, "required")) {
20629+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "required"))) { cJSON_DeleteObj5(x); return NULL; }
20630+ x->required = cJSON_GetRequiredValue(cJSON_GetObjectItemCaseSensitive(j, "required"));
20631+ if (NULL == x->required) { cJSON_DeleteObj5(x); return NULL; }
20632+ }
2068620633 if (!cJSON_HasObjectItem(j, "retain")) { cJSON_DeleteObj5(x); return NULL; }
2068720634 if (cJSON_HasObjectItem(j, "retain")) {
2068820635 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "retain"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20923,18 +20870,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2092320870 x->transient = cJSON_GetTransientValue(cJSON_GetObjectItemCaseSensitive(j, "transient"));
2092420871 if (NULL == x->transient) { cJSON_DeleteObj5(x); return NULL; }
2092520872 }
20926- if (!cJSON_HasObjectItem(j, "Type")) { cJSON_DeleteObj5(x); return NULL; }
20927- if (cJSON_HasObjectItem(j, "Type")) {
20928- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Type"))) { cJSON_DeleteObj5(x); return NULL; }
20929- x->type = cJSON_GetTypeValue(cJSON_GetObjectItemCaseSensitive(j, "Type"));
20930- if (NULL == x->type) { cJSON_DeleteObj5(x); return NULL; }
20931- }
20932- if (!cJSON_HasObjectItem(j, "typealias")) { cJSON_DeleteObj5(x); return NULL; }
20933- if (cJSON_HasObjectItem(j, "typealias")) {
20934- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "typealias"))) { cJSON_DeleteObj5(x); return NULL; }
20935- x->typealias = cJSON_GetTypealiasValue(cJSON_GetObjectItemCaseSensitive(j, "typealias"));
20936- if (NULL == x->typealias) { cJSON_DeleteObj5(x); return NULL; }
20937- }
2093820873 }
2093920874 }
2094020875 return x;
@@ -20946,6 +20881,7 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2094620881 if (NULL != (j = cJSON_CreateObject())) {
2094720882 cJSON_AddNumberToObject(j, "dummy", x->dummy);
2094820883 cJSON_AddItemToObject(j, "KSerializer", cJSON_CreateKSerializer(x->k_serializer));
20884+ cJSON_AddItemToObject(j, "requires", cJSON_CreateRequires(x->obj5_requires));
2094920885 cJSON_AddItemToObject(j, "restrict", cJSON_CreateRestrict(x->obj5_restrict));
2095020886 cJSON_AddItemToObject(j, "return", cJSON_CreateReturn(x->obj5_return));
2095120887 cJSON_AddItemToObject(j, "self", cJSON_CreateSelfClass(x->obj5_self));
@@ -20963,10 +20899,11 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2096320899 cJSON_AddItemToObject(j, "thread_local", cJSON_CreateThreadLocal(x->obj5_thread_local));
2096420900 cJSON_AddItemToObject(j, "throw", cJSON_CreateThrow(x->obj5_throw));
2096520901 cJSON_AddItemToObject(j, "True", cJSON_CreateTrueClass(x->obj5_true));
20966- cJSON_AddItemToObject(j, "try", cJSON_CreateTry(x->obj5_try));
20967- cJSON_AddItemToObject(j, "type", cJSON_CreateTypeClass(x->obj5_type));
2096820902 cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind));
2096920903 cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true));
20904+ cJSON_AddItemToObject(j, "repeat", cJSON_CreateRepeat(x->repeat));
20905+ cJSON_AddItemToObject(j, "require", cJSON_CreateRequire(x->require));
20906+ cJSON_AddItemToObject(j, "required", cJSON_CreateRequired(x->required));
2097020907 cJSON_AddItemToObject(j, "retain", cJSON_CreateRetain(x->retain));
2097120908 cJSON_AddItemToObject(j, "rethrows", cJSON_CreateRethrows(x->rethrows));
2097220909 cJSON_AddItemToObject(j, "right", cJSON_CreateRight(x->right));
@@ -21007,8 +20944,6 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2100720944 cJSON_AddItemToObject(j, "toString", cJSON_CreateToString(x->to_string));
2100820945 cJSON_AddItemToObject(j, "top_level", cJSON_CreateTopLevelClass(x->top_level));
2100920946 cJSON_AddItemToObject(j, "transient", cJSON_CreateTransient(x->transient));
21010- cJSON_AddItemToObject(j, "Type", cJSON_CreateType(x->type));
21011- cJSON_AddItemToObject(j, "typealias", cJSON_CreateTypealias(x->typealias));
2101220947 }
2101320948 }
2101420949 return j;
@@ -21031,6 +20966,9 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2103120966 if (NULL != x->k_serializer) {
2103220967 cJSON_DeleteKSerializer(x->k_serializer);
2103320968 }
20969+ if (NULL != x->obj5_requires) {
20970+ cJSON_DeleteRequires(x->obj5_requires);
20971+ }
2103420972 if (NULL != x->obj5_restrict) {
2103520973 cJSON_DeleteRestrict(x->obj5_restrict);
2103620974 }
@@ -21082,18 +21020,21 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2108221020 if (NULL != x->obj5_true) {
2108321021 cJSON_DeleteTrueClass(x->obj5_true);
2108421022 }
21085- if (NULL != x->obj5_try) {
21086- cJSON_DeleteTry(x->obj5_try);
21087- }
21088- if (NULL != x->obj5_type) {
21089- cJSON_DeleteTypeClass(x->obj5_type);
21090- }
2109121023 if (NULL != x->primitive_kind) {
2109221024 cJSON_DeletePrimitiveKind(x->primitive_kind);
2109321025 }
2109421026 if (NULL != x->purple_true) {
2109521027 cJSON_DeleteObj5True(x->purple_true);
2109621028 }
21029+ if (NULL != x->repeat) {
21030+ cJSON_DeleteRepeat(x->repeat);
21031+ }
21032+ if (NULL != x->require) {
21033+ cJSON_DeleteRequire(x->require);
21034+ }
21035+ if (NULL != x->required) {
21036+ cJSON_DeleteRequired(x->required);
21037+ }
2109721038 if (NULL != x->retain) {
2109821039 cJSON_DeleteRetain(x->retain);
2109921040 }
@@ -21214,12 +21155,116 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2121421155 if (NULL != x->transient) {
2121521156 cJSON_DeleteTransient(x->transient);
2121621157 }
21217- if (NULL != x->type) {
21218- cJSON_DeleteType(x->type);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Try * cJSON_ParseTry(const char * s) {
21163+ struct Try * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetTryValue(j);
21168+ cJSON_Delete(j);
2121921169 }
21220- if (NULL != x->typealias) {
21221- cJSON_DeleteTypealias(x->typealias);
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Try * cJSON_GetTryValue(const cJSON * j) {
21175+ struct Try * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Try)))) {
21178+ memset(x, 0, sizeof(struct Try));
21179+ if (!cJSON_HasObjectItem(j, "try")) { cJSON_DeleteTry(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "try")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "try"))) { cJSON_DeleteTry(x); return NULL; }
21182+ x->try_try = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "try"));
21183+ }
21184+ }
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateTry(const struct Try * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "try", x->try_try);
21194+ }
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintTry(const struct Try * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateTry(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
21206+ }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteTry(struct Try * x) {
21212+ if (NULL != x) {
21213+ cJSON_free(x);
21214+ }
21215+}
21216+
21217+struct TypeClass * cJSON_ParseTypeClass(const char * s) {
21218+ struct TypeClass * x = NULL;
21219+ if (NULL != s) {
21220+ cJSON * j = cJSON_Parse(s);
21221+ if (NULL != j) {
21222+ x = cJSON_GetTypeClassValue(j);
21223+ cJSON_Delete(j);
21224+ }
21225+ }
21226+ return x;
21227+}
21228+
21229+struct TypeClass * cJSON_GetTypeClassValue(const cJSON * j) {
21230+ struct TypeClass * x = NULL;
21231+ if (NULL != j) {
21232+ if (NULL != (x = cJSON_malloc(sizeof(struct TypeClass)))) {
21233+ memset(x, 0, sizeof(struct TypeClass));
21234+ if (!cJSON_HasObjectItem(j, "type")) { cJSON_DeleteTypeClass(x); return NULL; }
21235+ if (cJSON_HasObjectItem(j, "type")) {
21236+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "type"))) { cJSON_DeleteTypeClass(x); return NULL; }
21237+ x->type = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "type"));
21238+ }
21239+ }
21240+ }
21241+ return x;
21242+}
21243+
21244+cJSON * cJSON_CreateTypeClass(const struct TypeClass * x) {
21245+ cJSON * j = NULL;
21246+ if (NULL != x) {
21247+ if (NULL != (j = cJSON_CreateObject())) {
21248+ cJSON_AddNumberToObject(j, "type", x->type);
21249+ }
21250+ }
21251+ return j;
21252+}
21253+
21254+char * cJSON_PrintTypeClass(const struct TypeClass * x) {
21255+ char * s = NULL;
21256+ if (NULL != x) {
21257+ cJSON * j = cJSON_CreateTypeClass(x);
21258+ if (NULL != j) {
21259+ s = cJSON_Print(j);
21260+ cJSON_Delete(j);
2122221261 }
21262+ }
21263+ return s;
21264+}
21265+
21266+void cJSON_DeleteTypeClass(struct TypeClass * x) {
21267+ if (NULL != x) {
2122321268 cJSON_free(x);
2122421269 }
2122521270 }
@@ -21994,6 +22039,116 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2199422039 }
2199522040 }
2199622041
22042+struct Type * cJSON_ParseType(const char * s) {
22043+ struct Type * x = NULL;
22044+ if (NULL != s) {
22045+ cJSON * j = cJSON_Parse(s);
22046+ if (NULL != j) {
22047+ x = cJSON_GetTypeValue(j);
22048+ cJSON_Delete(j);
22049+ }
22050+ }
22051+ return x;
22052+}
22053+
22054+struct Type * cJSON_GetTypeValue(const cJSON * j) {
22055+ struct Type * x = NULL;
22056+ if (NULL != j) {
22057+ if (NULL != (x = cJSON_malloc(sizeof(struct Type)))) {
22058+ memset(x, 0, sizeof(struct Type));
22059+ if (!cJSON_HasObjectItem(j, "Type")) { cJSON_DeleteType(x); return NULL; }
22060+ if (cJSON_HasObjectItem(j, "Type")) {
22061+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Type"))) { cJSON_DeleteType(x); return NULL; }
22062+ x->type = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Type"));
22063+ }
22064+ }
22065+ }
22066+ return x;
22067+}
22068+
22069+cJSON * cJSON_CreateType(const struct Type * x) {
22070+ cJSON * j = NULL;
22071+ if (NULL != x) {
22072+ if (NULL != (j = cJSON_CreateObject())) {
22073+ cJSON_AddNumberToObject(j, "Type", x->type);
22074+ }
22075+ }
22076+ return j;
22077+}
22078+
22079+char * cJSON_PrintType(const struct Type * x) {
22080+ char * s = NULL;
22081+ if (NULL != x) {
22082+ cJSON * j = cJSON_CreateType(x);
22083+ if (NULL != j) {
22084+ s = cJSON_Print(j);
22085+ cJSON_Delete(j);
22086+ }
22087+ }
22088+ return s;
22089+}
22090+
22091+void cJSON_DeleteType(struct Type * x) {
22092+ if (NULL != x) {
22093+ cJSON_free(x);
22094+ }
22095+}
22096+
22097+struct Typealias * cJSON_ParseTypealias(const char * s) {
22098+ struct Typealias * x = NULL;
22099+ if (NULL != s) {
22100+ cJSON * j = cJSON_Parse(s);
22101+ if (NULL != j) {
22102+ x = cJSON_GetTypealiasValue(j);
22103+ cJSON_Delete(j);
22104+ }
22105+ }
22106+ return x;
22107+}
22108+
22109+struct Typealias * cJSON_GetTypealiasValue(const cJSON * j) {
22110+ struct Typealias * x = NULL;
22111+ if (NULL != j) {
22112+ if (NULL != (x = cJSON_malloc(sizeof(struct Typealias)))) {
22113+ memset(x, 0, sizeof(struct Typealias));
22114+ if (!cJSON_HasObjectItem(j, "typealias")) { cJSON_DeleteTypealias(x); return NULL; }
22115+ if (cJSON_HasObjectItem(j, "typealias")) {
22116+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "typealias"))) { cJSON_DeleteTypealias(x); return NULL; }
22117+ x->typealias = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "typealias"));
22118+ }
22119+ }
22120+ }
22121+ return x;
22122+}
22123+
22124+cJSON * cJSON_CreateTypealias(const struct Typealias * x) {
22125+ cJSON * j = NULL;
22126+ if (NULL != x) {
22127+ if (NULL != (j = cJSON_CreateObject())) {
22128+ cJSON_AddNumberToObject(j, "typealias", x->typealias);
22129+ }
22130+ }
22131+ return j;
22132+}
22133+
22134+char * cJSON_PrintTypealias(const struct Typealias * x) {
22135+ char * s = NULL;
22136+ if (NULL != x) {
22137+ cJSON * j = cJSON_CreateTypealias(x);
22138+ if (NULL != j) {
22139+ s = cJSON_Print(j);
22140+ cJSON_Delete(j);
22141+ }
22142+ }
22143+ return s;
22144+}
22145+
22146+void cJSON_DeleteTypealias(struct Typealias * x) {
22147+ if (NULL != x) {
22148+ cJSON_free(x);
22149+ }
22150+}
22151+
2199722152 struct Uint * cJSON_ParseUint(const char * s) {
2199822153 struct Uint * x = NULL;
2199922154 if (NULL != s) {
@@ -23061,6 +23216,18 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2306123216 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2306223217 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2306323218 }
23219+ if (!cJSON_HasObjectItem(j, "try")) { cJSON_DeleteObj6(x); return NULL; }
23220+ if (cJSON_HasObjectItem(j, "try")) {
23221+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "try"))) { cJSON_DeleteObj6(x); return NULL; }
23222+ x->obj6_try = cJSON_GetTryValue(cJSON_GetObjectItemCaseSensitive(j, "try"));
23223+ if (NULL == x->obj6_try) { cJSON_DeleteObj6(x); return NULL; }
23224+ }
23225+ if (!cJSON_HasObjectItem(j, "type")) { cJSON_DeleteObj6(x); return NULL; }
23226+ if (cJSON_HasObjectItem(j, "type")) {
23227+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "type"))) { cJSON_DeleteObj6(x); return NULL; }
23228+ x->obj6_type = cJSON_GetTypeClassValue(cJSON_GetObjectItemCaseSensitive(j, "type"));
23229+ if (NULL == x->obj6_type) { cJSON_DeleteObj6(x); return NULL; }
23230+ }
2306423231 if (!cJSON_HasObjectItem(j, "typedef")) { cJSON_DeleteObj6(x); return NULL; }
2306523232 if (cJSON_HasObjectItem(j, "typedef")) {
2306623233 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "typedef"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -23145,6 +23312,18 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2314523312 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2314623313 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2314723314 }
23315+ if (!cJSON_HasObjectItem(j, "Type")) { cJSON_DeleteObj6(x); return NULL; }
23316+ if (cJSON_HasObjectItem(j, "Type")) {
23317+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Type"))) { cJSON_DeleteObj6(x); return NULL; }
23318+ x->type = cJSON_GetTypeValue(cJSON_GetObjectItemCaseSensitive(j, "Type"));
23319+ if (NULL == x->type) { cJSON_DeleteObj6(x); return NULL; }
23320+ }
23321+ if (!cJSON_HasObjectItem(j, "typealias")) { cJSON_DeleteObj6(x); return NULL; }
23322+ if (cJSON_HasObjectItem(j, "typealias")) {
23323+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "typealias"))) { cJSON_DeleteObj6(x); return NULL; }
23324+ x->typealias = cJSON_GetTypealiasValue(cJSON_GetObjectItemCaseSensitive(j, "typealias"));
23325+ if (NULL == x->typealias) { cJSON_DeleteObj6(x); return NULL; }
23326+ }
2314823327 if (!cJSON_HasObjectItem(j, "uint")) { cJSON_DeleteObj6(x); return NULL; }
2314923328 if (cJSON_HasObjectItem(j, "uint")) {
2315023329 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "uint"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -23269,6 +23448,8 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2326923448 if (NULL != x) {
2327023449 if (NULL != (j = cJSON_CreateObject())) {
2327123450 cJSON_AddNumberToObject(j, "dummy", x->dummy);
23451+ cJSON_AddItemToObject(j, "try", cJSON_CreateTry(x->obj6_try));
23452+ cJSON_AddItemToObject(j, "type", cJSON_CreateTypeClass(x->obj6_type));
2327223453 cJSON_AddItemToObject(j, "typedef", cJSON_CreateTypedef(x->obj6_typedef));
2327323454 cJSON_AddItemToObject(j, "typeid", cJSON_CreateTypeid(x->obj6_typeid));
2327423455 cJSON_AddItemToObject(j, "typename", cJSON_CreateTypename(x->obj6_typename));
@@ -23283,6 +23464,8 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2328323464 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2328423465 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2328523466 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
23467+ cJSON_AddItemToObject(j, "Type", cJSON_CreateType(x->type));
23468+ cJSON_AddItemToObject(j, "typealias", cJSON_CreateTypealias(x->typealias));
2328623469 cJSON_AddItemToObject(j, "uint", cJSON_CreateUint(x->uint));
2328723470 cJSON_AddItemToObject(j, "ulong", cJSON_CreateUlong(x->ulong));
2328823471 cJSON_AddItemToObject(j, "unchecked", cJSON_CreateUnchecked(x->unchecked));
@@ -23321,6 +23504,12 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2332123504
2332223505 void cJSON_DeleteObj6(struct Obj6 * x) {
2332323506 if (NULL != x) {
23507+ if (NULL != x->obj6_try) {
23508+ cJSON_DeleteTry(x->obj6_try);
23509+ }
23510+ if (NULL != x->obj6_type) {
23511+ cJSON_DeleteTypeClass(x->obj6_type);
23512+ }
2332423513 if (NULL != x->obj6_typedef) {
2332523514 cJSON_DeleteTypedef(x->obj6_typedef);
2332623515 }
@@ -23363,6 +23552,12 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2336323552 if (NULL != x->obj6_xor_eq) {
2336423553 cJSON_DeleteXorEq(x->obj6_xor_eq);
2336523554 }
23555+ if (NULL != x->type) {
23556+ cJSON_DeleteType(x->type);
23557+ }
23558+ if (NULL != x->typealias) {
23559+ cJSON_DeleteTypealias(x->typealias);
23560+ }
2336623561 if (NULL != x->uint) {
2336723562 cJSON_DeleteUint(x->uint);
2336823563 }
Mcjsondefault / TopLevel.h+143 −110
@@ -897,6 +897,10 @@ struct List {
897897 int64_t list;
898898 };
899899
900+struct LocalDate {
901+ int64_t local_date;
902+};
903+
900904 struct Locale {
901905 int64_t locale;
902906 };
@@ -925,10 +929,6 @@ struct MetadataPropertyHandling {
925929 int64_t metadata_property_handling;
926930 };
927931
928-struct Mutating {
929- int64_t mutating;
930-};
931-
932932 struct Goto {
933933 int64_t goto_goto;
934934 };
@@ -957,10 +957,6 @@ struct Module {
957957 int64_t module_module;
958958 };
959959
960-struct Mutable {
961- int64_t mutable_mutable;
962-};
963-
964960 struct Obj3 {
965961 int64_t dummy;
966962 struct Function * function;
@@ -1012,6 +1008,7 @@ struct Obj3 {
10121008 struct Left * left;
10131009 struct Let * let;
10141010 struct List * list;
1011+ struct LocalDate * local_date;
10151012 struct Locale * locale;
10161013 struct Lock * lock;
10171014 struct LongNode * long_node;
@@ -1019,7 +1016,6 @@ struct Obj3 {
10191016 struct MapEntry * map_entry;
10201017 struct MarshalJson * marshal_json;
10211018 struct MetadataPropertyHandling * metadata_property_handling;
1022- struct Mutating * mutating;
10231019 struct Goto * obj3_goto;
10241020 struct If * obj3_if;
10251021 struct Import * obj3_import;
@@ -1027,7 +1023,10 @@ struct Obj3 {
10271023 struct Int * obj3_int;
10281024 struct Long * obj3_long;
10291025 struct Module * obj3_module;
1030- struct Mutable * obj3_mutable;
1026+};
1027+
1028+struct Mutating {
1029+ int64_t mutating;
10311030 };
10321031
10331032 struct Native {
@@ -1090,6 +1089,10 @@ struct NumberClass {
10901089 int64_t number;
10911090 };
10921091
1092+struct Mutable {
1093+ int64_t mutable_mutable;
1094+};
1095+
10931096 struct Namespace {
10941097 int64_t namespace_namespace;
10951098 };
@@ -1162,10 +1165,6 @@ struct ReinterpretCast {
11621165 int64_t reinterpret_cast_reinterpret_cast;
11631166 };
11641167
1165-struct Requires {
1166- int64_t requires_requires;
1167-};
1168-
11691168 struct ObjectClass {
11701169 int64_t object;
11711170 };
@@ -1190,6 +1189,14 @@ struct Of {
11901189 int64_t of;
11911190 };
11921191
1192+struct OffsetDateTime {
1193+ int64_t offset_date_time;
1194+};
1195+
1196+struct OffsetTime {
1197+ int64_t offset_time;
1198+};
1199+
11931200 struct Oneway {
11941201 int64_t oneway;
11951202 };
@@ -1274,20 +1281,9 @@ struct RegExp {
12741281 char * reg_exp;
12751282 };
12761283
1277-struct Repeat {
1278- int64_t repeat;
1279-};
1280-
1281-struct Require {
1282- int64_t require;
1283-};
1284-
1285-struct Required {
1286- int64_t required;
1287-};
1288-
12891284 struct Obj4 {
12901285 int64_t dummy;
1286+ struct Mutating * mutating;
12911287 struct Native * native;
12921288 struct Newtonsoft * newtonsoft;
12931289 struct Nil * nil;
@@ -1303,6 +1299,7 @@ struct Obj4 {
13031299 struct NullClass * null;
13041300 struct NullNode * null_node;
13051301 struct NumberClass * number;
1302+ struct Mutable * obj4_mutable;
13061303 struct Namespace * obj4_namespace;
13071304 struct New * obj4_new;
13081305 struct Noexcept * obj4_noexcept;
@@ -1321,13 +1318,14 @@ struct Obj4 {
13211318 struct Public * obj4_public;
13221319 struct Register * obj4_register;
13231320 struct ReinterpretCast * obj4_reinterpret_cast;
1324- struct Requires * obj4_requires;
13251321 struct ObjectClass * object;
13261322 struct ObjectMapper * object_mapper;
13271323 struct ObjectNode * object_node;
13281324 struct ObjectReader * object_reader;
13291325 struct ObjectWriter * object_writer;
13301326 struct Of * of;
1327+ struct OffsetDateTime * offset_date_time;
1328+ struct OffsetTime * offset_time;
13311329 struct Oneway * oneway;
13321330 struct Open * open;
13331331 struct Optional * optional;
@@ -1349,15 +1347,16 @@ struct Obj4 {
13491347 struct Readonly * readonly;
13501348 struct Ref * ref;
13511349 struct RegExp * reg_exp;
1352- struct Repeat * repeat;
1353- struct Require * require;
1354- struct Required * required;
13551350 };
13561351
13571352 struct KSerializer {
13581353 int64_t k_serializer;
13591354 };
13601355
1356+struct Requires {
1357+ int64_t requires_requires;
1358+};
1359+
13611360 struct Restrict {
13621361 int64_t restrict_restrict;
13631362 };
@@ -1426,14 +1425,6 @@ struct TrueClass {
14261425 int64_t true_true;
14271426 };
14281427
1429-struct Try {
1430- int64_t try_try;
1431-};
1432-
1433-struct TypeClass {
1434- int64_t type;
1435-};
1436-
14371428 struct PrimitiveKind {
14381429 int64_t primitive_kind;
14391430 };
@@ -1442,6 +1433,18 @@ struct Obj5True {
14421433 int64_t true_true;
14431434 };
14441435
1436+struct Repeat {
1437+ int64_t repeat;
1438+};
1439+
1440+struct Require {
1441+ int64_t require;
1442+};
1443+
1444+struct Required {
1445+ int64_t required;
1446+};
1447+
14451448 struct Retain {
14461449 int64_t retain;
14471450 };
@@ -1602,17 +1605,10 @@ struct Transient {
16021605 int64_t transient;
16031606 };
16041607
1605-struct Type {
1606- int64_t type;
1607-};
1608-
1609-struct Typealias {
1610- int64_t typealias;
1611-};
1612-
16131608 struct Obj5 {
16141609 int64_t dummy;
16151610 struct KSerializer * k_serializer;
1611+ struct Requires * obj5_requires;
16161612 struct Restrict * obj5_restrict;
16171613 struct Return * obj5_return;
16181614 struct SelfClass * obj5_self;
@@ -1630,10 +1626,11 @@ struct Obj5 {
16301626 struct ThreadLocal * obj5_thread_local;
16311627 struct Throw * obj5_throw;
16321628 struct TrueClass * obj5_true;
1633- struct Try * obj5_try;
1634- struct TypeClass * obj5_type;
16351629 struct PrimitiveKind * primitive_kind;
16361630 struct Obj5True * purple_true;
1631+ struct Repeat * repeat;
1632+ struct Require * require;
1633+ struct Required * required;
16371634 struct Retain * retain;
16381635 struct Rethrows * rethrows;
16391636 struct Right * right;
@@ -1674,8 +1671,14 @@ struct Obj5 {
16741671 struct ToString * to_string;
16751672 struct TopLevelClass * top_level;
16761673 struct Transient * transient;
1677- struct Type * type;
1678- struct Typealias * typealias;
1674+};
1675+
1676+struct Try {
1677+ int64_t try_try;
1678+};
1679+
1680+struct TypeClass {
1681+ int64_t type;
16791682 };
16801683
16811684 struct Typedef {
@@ -1734,6 +1737,14 @@ struct XorEq {
17341737 int64_t xor_eq_xor_eq;
17351738 };
17361739
1740+struct Type {
1741+ int64_t type;
1742+};
1743+
1744+struct Typealias {
1745+ int64_t typealias;
1746+};
1747+
17371748 struct Uint {
17381749 int64_t uint;
17391750 };
@@ -1812,6 +1823,8 @@ struct Yield {
18121823
18131824 struct Obj6 {
18141825 int64_t dummy;
1826+ struct Try * obj6_try;
1827+ struct TypeClass * obj6_type;
18151828 struct Typedef * obj6_typedef;
18161829 struct Typeid * obj6_typeid;
18171830 struct Typename * obj6_typename;
@@ -1826,6 +1839,8 @@ struct Obj6 {
18261839 struct While * obj6_while;
18271840 struct Xor * obj6_xor;
18281841 struct XorEq * obj6_xor_eq;
1842+ struct Type * type;
1843+ struct Typealias * typealias;
18291844 struct Uint * uint;
18301845 struct Ulong * ulong;
18311846 struct Unchecked * unchecked;
@@ -2934,6 +2949,12 @@ cJSON * cJSON_CreateList(const struct List * x);
29342949 char * cJSON_PrintList(const struct List * x);
29352950 void cJSON_DeleteList(struct List * x);
29362951
2952+struct LocalDate * cJSON_ParseLocalDate(const char * s);
2953+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
2954+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
2955+char * cJSON_PrintLocalDate(const struct LocalDate * x);
2956+void cJSON_DeleteLocalDate(struct LocalDate * x);
2957+
29372958 struct Locale * cJSON_ParseLocale(const char * s);
29382959 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
29392960 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -2976,12 +2997,6 @@ cJSON * cJSON_CreateMetadataPropertyHandling(const struct MetadataPropertyHandli
29762997 char * cJSON_PrintMetadataPropertyHandling(const struct MetadataPropertyHandling * x);
29772998 void cJSON_DeleteMetadataPropertyHandling(struct MetadataPropertyHandling * x);
29782999
2979-struct Mutating * cJSON_ParseMutating(const char * s);
2980-struct Mutating * cJSON_GetMutatingValue(const cJSON * j);
2981-cJSON * cJSON_CreateMutating(const struct Mutating * x);
2982-char * cJSON_PrintMutating(const struct Mutating * x);
2983-void cJSON_DeleteMutating(struct Mutating * x);
2984-
29853000 struct Goto * cJSON_ParseGoto(const char * s);
29863001 struct Goto * cJSON_GetGotoValue(const cJSON * j);
29873002 cJSON * cJSON_CreateGoto(const struct Goto * x);
@@ -3024,18 +3039,18 @@ cJSON * cJSON_CreateModule(const struct Module * x);
30243039 char * cJSON_PrintModule(const struct Module * x);
30253040 void cJSON_DeleteModule(struct Module * x);
30263041
3027-struct Mutable * cJSON_ParseMutable(const char * s);
3028-struct Mutable * cJSON_GetMutableValue(const cJSON * j);
3029-cJSON * cJSON_CreateMutable(const struct Mutable * x);
3030-char * cJSON_PrintMutable(const struct Mutable * x);
3031-void cJSON_DeleteMutable(struct Mutable * x);
3032-
30333042 struct Obj3 * cJSON_ParseObj3(const char * s);
30343043 struct Obj3 * cJSON_GetObj3Value(const cJSON * j);
30353044 cJSON * cJSON_CreateObj3(const struct Obj3 * x);
30363045 char * cJSON_PrintObj3(const struct Obj3 * x);
30373046 void cJSON_DeleteObj3(struct Obj3 * x);
30383047
3048+struct Mutating * cJSON_ParseMutating(const char * s);
3049+struct Mutating * cJSON_GetMutatingValue(const cJSON * j);
3050+cJSON * cJSON_CreateMutating(const struct Mutating * x);
3051+char * cJSON_PrintMutating(const struct Mutating * x);
3052+void cJSON_DeleteMutating(struct Mutating * x);
3053+
30393054 struct Native * cJSON_ParseNative(const char * s);
30403055 struct Native * cJSON_GetNativeValue(const cJSON * j);
30413056 cJSON * cJSON_CreateNative(const struct Native * x);
@@ -3126,6 +3141,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x);
31263141 char * cJSON_PrintNumberClass(const struct NumberClass * x);
31273142 void cJSON_DeleteNumberClass(struct NumberClass * x);
31283143
3144+struct Mutable * cJSON_ParseMutable(const char * s);
3145+struct Mutable * cJSON_GetMutableValue(const cJSON * j);
3146+cJSON * cJSON_CreateMutable(const struct Mutable * x);
3147+char * cJSON_PrintMutable(const struct Mutable * x);
3148+void cJSON_DeleteMutable(struct Mutable * x);
3149+
31293150 struct Namespace * cJSON_ParseNamespace(const char * s);
31303151 struct Namespace * cJSON_GetNamespaceValue(const cJSON * j);
31313152 cJSON * cJSON_CreateNamespace(const struct Namespace * x);
@@ -3234,12 +3255,6 @@ cJSON * cJSON_CreateReinterpretCast(const struct ReinterpretCast * x);
32343255 char * cJSON_PrintReinterpretCast(const struct ReinterpretCast * x);
32353256 void cJSON_DeleteReinterpretCast(struct ReinterpretCast * x);
32363257
3237-struct Requires * cJSON_ParseRequires(const char * s);
3238-struct Requires * cJSON_GetRequiresValue(const cJSON * j);
3239-cJSON * cJSON_CreateRequires(const struct Requires * x);
3240-char * cJSON_PrintRequires(const struct Requires * x);
3241-void cJSON_DeleteRequires(struct Requires * x);
3242-
32433258 struct ObjectClass * cJSON_ParseObjectClass(const char * s);
32443259 struct ObjectClass * cJSON_GetObjectClassValue(const cJSON * j);
32453260 cJSON * cJSON_CreateObjectClass(const struct ObjectClass * x);
@@ -3276,6 +3291,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
32763291 char * cJSON_PrintOf(const struct Of * x);
32773292 void cJSON_DeleteOf(struct Of * x);
32783293
3294+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
3295+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
3296+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
3297+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
3298+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
3299+
3300+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
3301+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
3302+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
3303+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
3304+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
3305+
32793306 struct Oneway * cJSON_ParseOneway(const char * s);
32803307 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
32813308 cJSON * cJSON_CreateOneway(const struct Oneway * x);
@@ -3402,24 +3429,6 @@ cJSON * cJSON_CreateRegExp(const struct RegExp * x);
34023429 char * cJSON_PrintRegExp(const struct RegExp * x);
34033430 void cJSON_DeleteRegExp(struct RegExp * x);
34043431
3405-struct Repeat * cJSON_ParseRepeat(const char * s);
3406-struct Repeat * cJSON_GetRepeatValue(const cJSON * j);
3407-cJSON * cJSON_CreateRepeat(const struct Repeat * x);
3408-char * cJSON_PrintRepeat(const struct Repeat * x);
3409-void cJSON_DeleteRepeat(struct Repeat * x);
3410-
3411-struct Require * cJSON_ParseRequire(const char * s);
3412-struct Require * cJSON_GetRequireValue(const cJSON * j);
3413-cJSON * cJSON_CreateRequire(const struct Require * x);
3414-char * cJSON_PrintRequire(const struct Require * x);
3415-void cJSON_DeleteRequire(struct Require * x);
3416-
3417-struct Required * cJSON_ParseRequired(const char * s);
3418-struct Required * cJSON_GetRequiredValue(const cJSON * j);
3419-cJSON * cJSON_CreateRequired(const struct Required * x);
3420-char * cJSON_PrintRequired(const struct Required * x);
3421-void cJSON_DeleteRequired(struct Required * x);
3422-
34233432 struct Obj4 * cJSON_ParseObj4(const char * s);
34243433 struct Obj4 * cJSON_GetObj4Value(const cJSON * j);
34253434 cJSON * cJSON_CreateObj4(const struct Obj4 * x);
@@ -3432,6 +3441,12 @@ cJSON * cJSON_CreateKSerializer(const struct KSerializer * x);
34323441 char * cJSON_PrintKSerializer(const struct KSerializer * x);
34333442 void cJSON_DeleteKSerializer(struct KSerializer * x);
34343443
3444+struct Requires * cJSON_ParseRequires(const char * s);
3445+struct Requires * cJSON_GetRequiresValue(const cJSON * j);
3446+cJSON * cJSON_CreateRequires(const struct Requires * x);
3447+char * cJSON_PrintRequires(const struct Requires * x);
3448+void cJSON_DeleteRequires(struct Requires * x);
3449+
34353450 struct Restrict * cJSON_ParseRestrict(const char * s);
34363451 struct Restrict * cJSON_GetRestrictValue(const cJSON * j);
34373452 cJSON * cJSON_CreateRestrict(const struct Restrict * x);
@@ -3534,18 +3549,6 @@ cJSON * cJSON_CreateTrueClass(const struct TrueClass * x);
35343549 char * cJSON_PrintTrueClass(const struct TrueClass * x);
35353550 void cJSON_DeleteTrueClass(struct TrueClass * x);
35363551
3537-struct Try * cJSON_ParseTry(const char * s);
3538-struct Try * cJSON_GetTryValue(const cJSON * j);
3539-cJSON * cJSON_CreateTry(const struct Try * x);
3540-char * cJSON_PrintTry(const struct Try * x);
3541-void cJSON_DeleteTry(struct Try * x);
3542-
3543-struct TypeClass * cJSON_ParseTypeClass(const char * s);
3544-struct TypeClass * cJSON_GetTypeClassValue(const cJSON * j);
3545-cJSON * cJSON_CreateTypeClass(const struct TypeClass * x);
3546-char * cJSON_PrintTypeClass(const struct TypeClass * x);
3547-void cJSON_DeleteTypeClass(struct TypeClass * x);
3548-
35493552 struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s);
35503553 struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j);
35513554 cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x);
@@ -3558,6 +3561,24 @@ cJSON * cJSON_CreateObj5True(const struct Obj5True * x);
35583561 char * cJSON_PrintObj5True(const struct Obj5True * x);
35593562 void cJSON_DeleteObj5True(struct Obj5True * x);
35603563
3564+struct Repeat * cJSON_ParseRepeat(const char * s);
3565+struct Repeat * cJSON_GetRepeatValue(const cJSON * j);
3566+cJSON * cJSON_CreateRepeat(const struct Repeat * x);
3567+char * cJSON_PrintRepeat(const struct Repeat * x);
3568+void cJSON_DeleteRepeat(struct Repeat * x);
3569+
3570+struct Require * cJSON_ParseRequire(const char * s);
3571+struct Require * cJSON_GetRequireValue(const cJSON * j);
3572+cJSON * cJSON_CreateRequire(const struct Require * x);
3573+char * cJSON_PrintRequire(const struct Require * x);
3574+void cJSON_DeleteRequire(struct Require * x);
3575+
3576+struct Required * cJSON_ParseRequired(const char * s);
3577+struct Required * cJSON_GetRequiredValue(const cJSON * j);
3578+cJSON * cJSON_CreateRequired(const struct Required * x);
3579+char * cJSON_PrintRequired(const struct Required * x);
3580+void cJSON_DeleteRequired(struct Required * x);
3581+
35613582 struct Retain * cJSON_ParseRetain(const char * s);
35623583 struct Retain * cJSON_GetRetainValue(const cJSON * j);
35633584 cJSON * cJSON_CreateRetain(const struct Retain * x);
@@ -3798,24 +3819,24 @@ cJSON * cJSON_CreateTransient(const struct Transient * x);
37983819 char * cJSON_PrintTransient(const struct Transient * x);
37993820 void cJSON_DeleteTransient(struct Transient * x);
38003821
3801-struct Type * cJSON_ParseType(const char * s);
3802-struct Type * cJSON_GetTypeValue(const cJSON * j);
3803-cJSON * cJSON_CreateType(const struct Type * x);
3804-char * cJSON_PrintType(const struct Type * x);
3805-void cJSON_DeleteType(struct Type * x);
3806-
3807-struct Typealias * cJSON_ParseTypealias(const char * s);
3808-struct Typealias * cJSON_GetTypealiasValue(const cJSON * j);
3809-cJSON * cJSON_CreateTypealias(const struct Typealias * x);
3810-char * cJSON_PrintTypealias(const struct Typealias * x);
3811-void cJSON_DeleteTypealias(struct Typealias * x);
3812-
38133822 struct Obj5 * cJSON_ParseObj5(const char * s);
38143823 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
38153824 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
38163825 char * cJSON_PrintObj5(const struct Obj5 * x);
38173826 void cJSON_DeleteObj5(struct Obj5 * x);
38183827
3828+struct Try * cJSON_ParseTry(const char * s);
3829+struct Try * cJSON_GetTryValue(const cJSON * j);
3830+cJSON * cJSON_CreateTry(const struct Try * x);
3831+char * cJSON_PrintTry(const struct Try * x);
3832+void cJSON_DeleteTry(struct Try * x);
3833+
3834+struct TypeClass * cJSON_ParseTypeClass(const char * s);
3835+struct TypeClass * cJSON_GetTypeClassValue(const cJSON * j);
3836+cJSON * cJSON_CreateTypeClass(const struct TypeClass * x);
3837+char * cJSON_PrintTypeClass(const struct TypeClass * x);
3838+void cJSON_DeleteTypeClass(struct TypeClass * x);
3839+
38193840 struct Typedef * cJSON_ParseTypedef(const char * s);
38203841 struct Typedef * cJSON_GetTypedefValue(const cJSON * j);
38213842 cJSON * cJSON_CreateTypedef(const struct Typedef * x);
@@ -3900,6 +3921,18 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
39003921 char * cJSON_PrintXorEq(const struct XorEq * x);
39013922 void cJSON_DeleteXorEq(struct XorEq * x);
39023923
3924+struct Type * cJSON_ParseType(const char * s);
3925+struct Type * cJSON_GetTypeValue(const cJSON * j);
3926+cJSON * cJSON_CreateType(const struct Type * x);
3927+char * cJSON_PrintType(const struct Type * x);
3928+void cJSON_DeleteType(struct Type * x);
3929+
3930+struct Typealias * cJSON_ParseTypealias(const char * s);
3931+struct Typealias * cJSON_GetTypealiasValue(const cJSON * j);
3932+cJSON * cJSON_CreateTypealias(const struct Typealias * x);
3933+char * cJSON_PrintTypealias(const struct Typealias * x);
3934+void cJSON_DeleteTypealias(struct Typealias * x);
3935+
39033936 struct Uint * cJSON_ParseUint(const char * s);
39043937 struct Uint * cJSON_GetUintValue(const cJSON * j);
39053938 cJSON * cJSON_CreateUint(const struct Uint * x);
Mcplusplusdefault / quicktype.hpp+453 −348
@@ -3179,6 +3179,20 @@ namespace quicktype {
31793179 void set_list(const int64_t & value) { this->list = value; }
31803180 };
31813181
3182+ class LocalDate {
3183+ public:
3184+ LocalDate() = default;
3185+ virtual ~LocalDate() = default;
3186+
3187+ private:
3188+ int64_t local_date;
3189+
3190+ public:
3191+ const int64_t & get_local_date() const { return local_date; }
3192+ int64_t & get_mutable_local_date() { return local_date; }
3193+ void set_local_date(const int64_t & value) { this->local_date = value; }
3194+ };
3195+
31823196 class Locale {
31833197 public:
31843198 Locale() = default;
@@ -3277,20 +3291,6 @@ namespace quicktype {
32773291 void set_metadata_property_handling(const int64_t & value) { this->metadata_property_handling = value; }
32783292 };
32793293
3280- class Mutating {
3281- public:
3282- Mutating() = default;
3283- virtual ~Mutating() = default;
3284-
3285- private:
3286- int64_t mutating;
3287-
3288- public:
3289- const int64_t & get_mutating() const { return mutating; }
3290- int64_t & get_mutable_mutating() { return mutating; }
3291- void set_mutating(const int64_t & value) { this->mutating = value; }
3292- };
3293-
32943294 class Goto {
32953295 public:
32963296 Goto() = default;
@@ -3389,20 +3389,6 @@ namespace quicktype {
33893389 void set_module_module(const int64_t & value) { this->module_module = value; }
33903390 };
33913391
3392- class Mutable {
3393- public:
3394- Mutable() = default;
3395- virtual ~Mutable() = default;
3396-
3397- private:
3398- int64_t mutable_mutable;
3399-
3400- public:
3401- const int64_t & get_mutable_mutable() const { return mutable_mutable; }
3402- int64_t & get_mutable_mutable_mutable() { return mutable_mutable; }
3403- void set_mutable_mutable(const int64_t & value) { this->mutable_mutable = value; }
3404- };
3405-
34063392 class Obj3 {
34073393 public:
34083394 Obj3() = default;
@@ -3459,6 +3445,7 @@ namespace quicktype {
34593445 Left left;
34603446 Let let;
34613447 List list;
3448+ LocalDate local_date;
34623449 Locale locale;
34633450 Lock lock;
34643451 LongNode long_node;
@@ -3466,7 +3453,6 @@ namespace quicktype {
34663453 MapEntry map_entry;
34673454 MarshalJson marshal_json;
34683455 MetadataPropertyHandling metadata_property_handling;
3469- Mutating mutating;
34703456 Goto obj3_goto;
34713457 If obj3_if;
34723458 Import obj3_import;
@@ -3474,7 +3460,6 @@ namespace quicktype {
34743460 Int obj3_int;
34753461 Long obj3_long;
34763462 Module obj3_module;
3477- Mutable obj3_mutable;
34783463
34793464 public:
34803465 const int64_t & get_dummy() const { return dummy; }
@@ -3677,6 +3662,10 @@ namespace quicktype {
36773662 List & get_mutable_list() { return list; }
36783663 void set_list(const List & value) { this->list = value; }
36793664
3665+ const LocalDate & get_local_date() const { return local_date; }
3666+ LocalDate & get_mutable_local_date() { return local_date; }
3667+ void set_local_date(const LocalDate & value) { this->local_date = value; }
3668+
36803669 const Locale & get_locale() const { return locale; }
36813670 Locale & get_mutable_locale() { return locale; }
36823671 void set_locale(const Locale & value) { this->locale = value; }
@@ -3705,10 +3694,6 @@ namespace quicktype {
37053694 MetadataPropertyHandling & get_mutable_metadata_property_handling() { return metadata_property_handling; }
37063695 void set_metadata_property_handling(const MetadataPropertyHandling & value) { this->metadata_property_handling = value; }
37073696
3708- const Mutating & get_mutating() const { return mutating; }
3709- Mutating & get_mutable_mutating() { return mutating; }
3710- void set_mutating(const Mutating & value) { this->mutating = value; }
3711-
37123697 const Goto & get_obj3_goto() const { return obj3_goto; }
37133698 Goto & get_mutable_obj3_goto() { return obj3_goto; }
37143699 void set_obj3_goto(const Goto & value) { this->obj3_goto = value; }
@@ -3736,10 +3721,20 @@ namespace quicktype {
37363721 const Module & get_obj3_module() const { return obj3_module; }
37373722 Module & get_mutable_obj3_module() { return obj3_module; }
37383723 void set_obj3_module(const Module & value) { this->obj3_module = value; }
3724+ };
3725+
3726+ class Mutating {
3727+ public:
3728+ Mutating() = default;
3729+ virtual ~Mutating() = default;
3730+
3731+ private:
3732+ int64_t mutating;
37393733
3740- const Mutable & get_obj3_mutable() const { return obj3_mutable; }
3741- Mutable & get_mutable_obj3_mutable() { return obj3_mutable; }
3742- void set_obj3_mutable(const Mutable & value) { this->obj3_mutable = value; }
3734+ public:
3735+ const int64_t & get_mutating() const { return mutating; }
3736+ int64_t & get_mutable_mutating() { return mutating; }
3737+ void set_mutating(const int64_t & value) { this->mutating = value; }
37433738 };
37443739
37453740 class Native {
@@ -3952,6 +3947,20 @@ namespace quicktype {
39523947 void set_number(const int64_t & value) { this->number = value; }
39533948 };
39543949
3950+ class Mutable {
3951+ public:
3952+ Mutable() = default;
3953+ virtual ~Mutable() = default;
3954+
3955+ private:
3956+ int64_t mutable_mutable;
3957+
3958+ public:
3959+ const int64_t & get_mutable_mutable() const { return mutable_mutable; }
3960+ int64_t & get_mutable_mutable_mutable() { return mutable_mutable; }
3961+ void set_mutable_mutable(const int64_t & value) { this->mutable_mutable = value; }
3962+ };
3963+
39553964 class Namespace {
39563965 public:
39573966 Namespace() = default;
@@ -4204,20 +4213,6 @@ namespace quicktype {
42044213 void set_reinterpret_cast_reinterpret_cast(const int64_t & value) { this->reinterpret_cast_reinterpret_cast = value; }
42054214 };
42064215
4207- class Requires {
4208- public:
4209- Requires() = default;
4210- virtual ~Requires() = default;
4211-
4212- private:
4213- int64_t requires_requires;
4214-
4215- public:
4216- const int64_t & get_requires_requires() const { return requires_requires; }
4217- int64_t & get_mutable_requires_requires() { return requires_requires; }
4218- void set_requires_requires(const int64_t & value) { this->requires_requires = value; }
4219- };
4220-
42214216 class Object {
42224217 public:
42234218 Object() = default;
@@ -4302,6 +4297,34 @@ namespace quicktype {
43024297 void set_of(const int64_t & value) { this->of = value; }
43034298 };
43044299
4300+ class OffsetDateTime {
4301+ public:
4302+ OffsetDateTime() = default;
4303+ virtual ~OffsetDateTime() = default;
4304+
4305+ private:
4306+ int64_t offset_date_time;
4307+
4308+ public:
4309+ const int64_t & get_offset_date_time() const { return offset_date_time; }
4310+ int64_t & get_mutable_offset_date_time() { return offset_date_time; }
4311+ void set_offset_date_time(const int64_t & value) { this->offset_date_time = value; }
4312+ };
4313+
4314+ class OffsetTime {
4315+ public:
4316+ OffsetTime() = default;
4317+ virtual ~OffsetTime() = default;
4318+
4319+ private:
4320+ int64_t offset_time;
4321+
4322+ public:
4323+ const int64_t & get_offset_time() const { return offset_time; }
4324+ int64_t & get_mutable_offset_time() { return offset_time; }
4325+ void set_offset_time(const int64_t & value) { this->offset_time = value; }
4326+ };
4327+
43054328 class Oneway {
43064329 public:
43074330 Oneway() = default;
@@ -4596,48 +4619,6 @@ namespace quicktype {
45964619 void set_reg_exp(const std::string & value) { this->reg_exp = value; }
45974620 };
45984621
4599- class Repeat {
4600- public:
4601- Repeat() = default;
4602- virtual ~Repeat() = default;
4603-
4604- private:
4605- int64_t repeat;
4606-
4607- public:
4608- const int64_t & get_repeat() const { return repeat; }
4609- int64_t & get_mutable_repeat() { return repeat; }
4610- void set_repeat(const int64_t & value) { this->repeat = value; }
4611- };
4612-
4613- class Require {
4614- public:
4615- Require() = default;
4616- virtual ~Require() = default;
4617-
4618- private:
4619- int64_t require;
4620-
4621- public:
4622- const int64_t & get_require() const { return require; }
4623- int64_t & get_mutable_require() { return require; }
4624- void set_require(const int64_t & value) { this->require = value; }
4625- };
4626-
4627- class Required {
4628- public:
4629- Required() = default;
4630- virtual ~Required() = default;
4631-
4632- private:
4633- int64_t required;
4634-
4635- public:
4636- const int64_t & get_required() const { return required; }
4637- int64_t & get_mutable_required() { return required; }
4638- void set_required(const int64_t & value) { this->required = value; }
4639- };
4640-
46414622 class Obj4 {
46424623 public:
46434624 Obj4() = default;
@@ -4645,6 +4626,7 @@ namespace quicktype {
46454626
46464627 private:
46474628 int64_t dummy;
4629+ Mutating mutating;
46484630 Native native;
46494631 Newtonsoft newtonsoft;
46504632 Nil nil;
@@ -4660,6 +4642,7 @@ namespace quicktype {
46604642 Null null;
46614643 NullNode null_node;
46624644 Number number;
4645+ Mutable obj4_mutable;
46634646 Namespace obj4_namespace;
46644647 New obj4_new;
46654648 Noexcept obj4_noexcept;
@@ -4678,13 +4661,14 @@ namespace quicktype {
46784661 Public obj4_public;
46794662 Register obj4_register;
46804663 ReinterpretCast obj4_reinterpret_cast;
4681- Requires obj4_requires;
46824664 Object object;
46834665 ObjectMapper object_mapper;
46844666 ObjectNode object_node;
46854667 ObjectReader object_reader;
46864668 ObjectWriter object_writer;
46874669 Of of;
4670+ OffsetDateTime offset_date_time;
4671+ OffsetTime offset_time;
46884672 Oneway oneway;
46894673 Open open;
46904674 Optional optional;
@@ -4706,15 +4690,16 @@ namespace quicktype {
47064690 Readonly readonly;
47074691 Ref ref;
47084692 RegExp reg_exp;
4709- Repeat repeat;
4710- Require require;
4711- Required required;
47124693
47134694 public:
47144695 const int64_t & get_dummy() const { return dummy; }
47154696 int64_t & get_mutable_dummy() { return dummy; }
47164697 void set_dummy(const int64_t & value) { this->dummy = value; }
47174698
4699+ const Mutating & get_mutating() const { return mutating; }
4700+ Mutating & get_mutable_mutating() { return mutating; }
4701+ void set_mutating(const Mutating & value) { this->mutating = value; }
4702+
47184703 const Native & get_native() const { return native; }
47194704 Native & get_mutable_native() { return native; }
47204705 void set_native(const Native & value) { this->native = value; }
@@ -4775,6 +4760,10 @@ namespace quicktype {
47754760 Number & get_mutable_number() { return number; }
47764761 void set_number(const Number & value) { this->number = value; }
47774762
4763+ const Mutable & get_obj4_mutable() const { return obj4_mutable; }
4764+ Mutable & get_mutable_obj4_mutable() { return obj4_mutable; }
4765+ void set_obj4_mutable(const Mutable & value) { this->obj4_mutable = value; }
4766+
47784767 const Namespace & get_obj4_namespace() const { return obj4_namespace; }
47794768 Namespace & get_mutable_obj4_namespace() { return obj4_namespace; }
47804769 void set_obj4_namespace(const Namespace & value) { this->obj4_namespace = value; }
@@ -4847,10 +4836,6 @@ namespace quicktype {
48474836 ReinterpretCast & get_mutable_obj4_reinterpret_cast() { return obj4_reinterpret_cast; }
48484837 void set_obj4_reinterpret_cast(const ReinterpretCast & value) { this->obj4_reinterpret_cast = value; }
48494838
4850- const Requires & get_obj4_requires() const { return obj4_requires; }
4851- Requires & get_mutable_obj4_requires() { return obj4_requires; }
4852- void set_obj4_requires(const Requires & value) { this->obj4_requires = value; }
4853-
48544839 const Object & get_object() const { return object; }
48554840 Object & get_mutable_object() { return object; }
48564841 void set_object(const Object & value) { this->object = value; }
@@ -4875,6 +4860,14 @@ namespace quicktype {
48754860 Of & get_mutable_of() { return of; }
48764861 void set_of(const Of & value) { this->of = value; }
48774862
4863+ const OffsetDateTime & get_offset_date_time() const { return offset_date_time; }
4864+ OffsetDateTime & get_mutable_offset_date_time() { return offset_date_time; }
4865+ void set_offset_date_time(const OffsetDateTime & value) { this->offset_date_time = value; }
4866+
4867+ const OffsetTime & get_offset_time() const { return offset_time; }
4868+ OffsetTime & get_mutable_offset_time() { return offset_time; }
4869+ void set_offset_time(const OffsetTime & value) { this->offset_time = value; }
4870+
48784871 const Oneway & get_oneway() const { return oneway; }
48794872 Oneway & get_mutable_oneway() { return oneway; }
48804873 void set_oneway(const Oneway & value) { this->oneway = value; }
@@ -4958,18 +4951,6 @@ namespace quicktype {
49584951 const RegExp & get_reg_exp() const { return reg_exp; }
49594952 RegExp & get_mutable_reg_exp() { return reg_exp; }
49604953 void set_reg_exp(const RegExp & value) { this->reg_exp = value; }
4961-
4962- const Repeat & get_repeat() const { return repeat; }
4963- Repeat & get_mutable_repeat() { return repeat; }
4964- void set_repeat(const Repeat & value) { this->repeat = value; }
4965-
4966- const Require & get_require() const { return require; }
4967- Require & get_mutable_require() { return require; }
4968- void set_require(const Require & value) { this->require = value; }
4969-
4970- const Required & get_required() const { return required; }
4971- Required & get_mutable_required() { return required; }
4972- void set_required(const Required & value) { this->required = value; }
49734954 };
49744955
49754956 class KSerializer {
@@ -4986,6 +4967,20 @@ namespace quicktype {
49864967 void set_k_serializer(const int64_t & value) { this->k_serializer = value; }
49874968 };
49884969
4970+ class Requires {
4971+ public:
4972+ Requires() = default;
4973+ virtual ~Requires() = default;
4974+
4975+ private:
4976+ int64_t requires_requires;
4977+
4978+ public:
4979+ const int64_t & get_requires_requires() const { return requires_requires; }
4980+ int64_t & get_mutable_requires_requires() { return requires_requires; }
4981+ void set_requires_requires(const int64_t & value) { this->requires_requires = value; }
4982+ };
4983+
49894984 class Return {
49904985 public:
49914986 Return() = default;
@@ -5210,34 +5205,6 @@ namespace quicktype {
52105205 void set_true_true(const int64_t & value) { this->true_true = value; }
52115206 };
52125207
5213- class Try {
5214- public:
5215- Try() = default;
5216- virtual ~Try() = default;
5217-
5218- private:
5219- int64_t try_try;
5220-
5221- public:
5222- const int64_t & get_try_try() const { return try_try; }
5223- int64_t & get_mutable_try_try() { return try_try; }
5224- void set_try_try(const int64_t & value) { this->try_try = value; }
5225- };
5226-
5227- class TypeClass {
5228- public:
5229- TypeClass() = default;
5230- virtual ~TypeClass() = default;
5231-
5232- private:
5233- int64_t type;
5234-
5235- public:
5236- const int64_t & get_type() const { return type; }
5237- int64_t & get_mutable_type() { return type; }
5238- void set_type(const int64_t & value) { this->type = value; }
5239- };
5240-
52415208 class PrimitiveKind {
52425209 public:
52435210 PrimitiveKind() = default;
@@ -5266,6 +5233,48 @@ namespace quicktype {
52665233 void set_true_true(const int64_t & value) { this->true_true = value; }
52675234 };
52685235
5236+ class Repeat {
5237+ public:
5238+ Repeat() = default;
5239+ virtual ~Repeat() = default;
5240+
5241+ private:
5242+ int64_t repeat;
5243+
5244+ public:
5245+ const int64_t & get_repeat() const { return repeat; }
5246+ int64_t & get_mutable_repeat() { return repeat; }
5247+ void set_repeat(const int64_t & value) { this->repeat = value; }
5248+ };
5249+
5250+ class Require {
5251+ public:
5252+ Require() = default;
5253+ virtual ~Require() = default;
5254+
5255+ private:
5256+ int64_t require;
5257+
5258+ public:
5259+ const int64_t & get_require() const { return require; }
5260+ int64_t & get_mutable_require() { return require; }
5261+ void set_require(const int64_t & value) { this->require = value; }
5262+ };
5263+
5264+ class Required {
5265+ public:
5266+ Required() = default;
5267+ virtual ~Required() = default;
5268+
5269+ private:
5270+ int64_t required;
5271+
5272+ public:
5273+ const int64_t & get_required() const { return required; }
5274+ int64_t & get_mutable_required() { return required; }
5275+ void set_required(const int64_t & value) { this->required = value; }
5276+ };
5277+
52695278 class Restrict {
52705279 public:
52715280 Restrict() = default;
@@ -5840,42 +5849,15 @@ namespace quicktype {
58405849 void set_transient(const int64_t & value) { this->transient = value; }
58415850 };
58425851
5843- class Type {
5852+ class Obj5 {
58445853 public:
5845- Type() = default;
5846- virtual ~Type() = default;
5847-
5848- private:
5849- int64_t type;
5850-
5851- public:
5852- const int64_t & get_type() const { return type; }
5853- int64_t & get_mutable_type() { return type; }
5854- void set_type(const int64_t & value) { this->type = value; }
5855- };
5856-
5857- class Typealias {
5858- public:
5859- Typealias() = default;
5860- virtual ~Typealias() = default;
5861-
5862- private:
5863- int64_t typealias;
5864-
5865- public:
5866- const int64_t & get_typealias() const { return typealias; }
5867- int64_t & get_mutable_typealias() { return typealias; }
5868- void set_typealias(const int64_t & value) { this->typealias = value; }
5869- };
5870-
5871- class Obj5 {
5872- public:
5873- Obj5() = default;
5874- virtual ~Obj5() = default;
5854+ Obj5() = default;
5855+ virtual ~Obj5() = default;
58755856
58765857 private:
58775858 int64_t dummy;
58785859 KSerializer k_serializer;
5860+ Requires obj5_requires;
58795861 Return obj5_return;
58805862 SelfClass obj5_self;
58815863 Short obj5_short;
@@ -5892,10 +5874,11 @@ namespace quicktype {
58925874 ThreadLocal obj5_thread_local;
58935875 Throw obj5_throw;
58945876 True obj5_true;
5895- Try obj5_try;
5896- TypeClass obj5_type;
58975877 PrimitiveKind primitive_kind;
58985878 TrueClass purple_true;
5879+ Repeat repeat;
5880+ Require require;
5881+ Required required;
58995882 Restrict restrict;
59005883 Retain retain;
59015884 Rethrows rethrows;
@@ -5937,8 +5920,6 @@ namespace quicktype {
59375920 ToString to_string;
59385921 TopLevelClass top_level;
59395922 Transient transient;
5940- Type type;
5941- Typealias typealias;
59425923
59435924 public:
59445925 const int64_t & get_dummy() const { return dummy; }
@@ -5949,6 +5930,10 @@ namespace quicktype {
59495930 KSerializer & get_mutable_k_serializer() { return k_serializer; }
59505931 void set_k_serializer(const KSerializer & value) { this->k_serializer = value; }
59515932
5933+ const Requires & get_obj5_requires() const { return obj5_requires; }
5934+ Requires & get_mutable_obj5_requires() { return obj5_requires; }
5935+ void set_obj5_requires(const Requires & value) { this->obj5_requires = value; }
5936+
59525937 const Return & get_obj5_return() const { return obj5_return; }
59535938 Return & get_mutable_obj5_return() { return obj5_return; }
59545939 void set_obj5_return(const Return & value) { this->obj5_return = value; }
@@ -6013,14 +5998,6 @@ namespace quicktype {
60135998 True & get_mutable_obj5_true() { return obj5_true; }
60145999 void set_obj5_true(const True & value) { this->obj5_true = value; }
60156000
6016- const Try & get_obj5_try() const { return obj5_try; }
6017- Try & get_mutable_obj5_try() { return obj5_try; }
6018- void set_obj5_try(const Try & value) { this->obj5_try = value; }
6019-
6020- const TypeClass & get_obj5_type() const { return obj5_type; }
6021- TypeClass & get_mutable_obj5_type() { return obj5_type; }
6022- void set_obj5_type(const TypeClass & value) { this->obj5_type = value; }
6023-
60246001 const PrimitiveKind & get_primitive_kind() const { return primitive_kind; }
60256002 PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; }
60266003 void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; }
@@ -6029,6 +6006,18 @@ namespace quicktype {
60296006 TrueClass & get_mutable_purple_true() { return purple_true; }
60306007 void set_purple_true(const TrueClass & value) { this->purple_true = value; }
60316008
6009+ const Repeat & get_repeat() const { return repeat; }
6010+ Repeat & get_mutable_repeat() { return repeat; }
6011+ void set_repeat(const Repeat & value) { this->repeat = value; }
6012+
6013+ const Require & get_require() const { return require; }
6014+ Require & get_mutable_require() { return require; }
6015+ void set_require(const Require & value) { this->require = value; }
6016+
6017+ const Required & get_required() const { return required; }
6018+ Required & get_mutable_required() { return required; }
6019+ void set_required(const Required & value) { this->required = value; }
6020+
60326021 const Restrict & get_restrict() const { return restrict; }
60336022 Restrict & get_mutable_restrict() { return restrict; }
60346023 void set_restrict(const Restrict & value) { this->restrict = value; }
@@ -6192,14 +6181,34 @@ namespace quicktype {
61926181 const Transient & get_transient() const { return transient; }
61936182 Transient & get_mutable_transient() { return transient; }
61946183 void set_transient(const Transient & value) { this->transient = value; }
6184+ };
61956185
6196- const Type & get_type() const { return type; }
6197- Type & get_mutable_type() { return type; }
6198- void set_type(const Type & value) { this->type = value; }
6186+ class Try {
6187+ public:
6188+ Try() = default;
6189+ virtual ~Try() = default;
61996190
6200- const Typealias & get_typealias() const { return typealias; }
6201- Typealias & get_mutable_typealias() { return typealias; }
6202- void set_typealias(const Typealias & value) { this->typealias = value; }
6191+ private:
6192+ int64_t try_try;
6193+
6194+ public:
6195+ const int64_t & get_try_try() const { return try_try; }
6196+ int64_t & get_mutable_try_try() { return try_try; }
6197+ void set_try_try(const int64_t & value) { this->try_try = value; }
6198+ };
6199+
6200+ class TypeClass {
6201+ public:
6202+ TypeClass() = default;
6203+ virtual ~TypeClass() = default;
6204+
6205+ private:
6206+ int64_t type;
6207+
6208+ public:
6209+ const int64_t & get_type() const { return type; }
6210+ int64_t & get_mutable_type() { return type; }
6211+ void set_type(const int64_t & value) { this->type = value; }
62036212 };
62046213
62056214 class Typedef {
@@ -6384,6 +6393,34 @@ namespace quicktype {
63846393 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
63856394 };
63866395
6396+ class Type {
6397+ public:
6398+ Type() = default;
6399+ virtual ~Type() = default;
6400+
6401+ private:
6402+ int64_t type;
6403+
6404+ public:
6405+ const int64_t & get_type() const { return type; }
6406+ int64_t & get_mutable_type() { return type; }
6407+ void set_type(const int64_t & value) { this->type = value; }
6408+ };
6409+
6410+ class Typealias {
6411+ public:
6412+ Typealias() = default;
6413+ virtual ~Typealias() = default;
6414+
6415+ private:
6416+ int64_t typealias;
6417+
6418+ public:
6419+ const int64_t & get_typealias() const { return typealias; }
6420+ int64_t & get_mutable_typealias() { return typealias; }
6421+ void set_typealias(const int64_t & value) { this->typealias = value; }
6422+ };
6423+
63876424 class Typeof {
63886425 public:
63896426 Typeof() = default;
@@ -6671,6 +6708,8 @@ namespace quicktype {
66716708
66726709 private:
66736710 int64_t dummy;
6711+ Try obj6_try;
6712+ TypeClass obj6_type;
66746713 Typedef obj6_typedef;
66756714 Typeid obj6_typeid;
66766715 Typename obj6_typename;
@@ -6684,6 +6723,8 @@ namespace quicktype {
66846723 While obj6_while;
66856724 Xor obj6_xor;
66866725 XorEq obj6_xor_eq;
6726+ Type type;
6727+ Typealias typealias;
66876728 Typeof typeof;
66886729 Uint uint;
66896730 Ulong ulong;
@@ -6710,6 +6751,14 @@ namespace quicktype {
67106751 int64_t & get_mutable_dummy() { return dummy; }
67116752 void set_dummy(const int64_t & value) { this->dummy = value; }
67126753
6754+ const Try & get_obj6_try() const { return obj6_try; }
6755+ Try & get_mutable_obj6_try() { return obj6_try; }
6756+ void set_obj6_try(const Try & value) { this->obj6_try = value; }
6757+
6758+ const TypeClass & get_obj6_type() const { return obj6_type; }
6759+ TypeClass & get_mutable_obj6_type() { return obj6_type; }
6760+ void set_obj6_type(const TypeClass & value) { this->obj6_type = value; }
6761+
67136762 const Typedef & get_obj6_typedef() const { return obj6_typedef; }
67146763 Typedef & get_mutable_obj6_typedef() { return obj6_typedef; }
67156764 void set_obj6_typedef(const Typedef & value) { this->obj6_typedef = value; }
@@ -6762,6 +6811,14 @@ namespace quicktype {
67626811 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
67636812 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
67646813
6814+ const Type & get_type() const { return type; }
6815+ Type & get_mutable_type() { return type; }
6816+ void set_type(const Type & value) { this->type = value; }
6817+
6818+ const Typealias & get_typealias() const { return typealias; }
6819+ Typealias & get_mutable_typealias() { return typealias; }
6820+ void set_typealias(const Typealias & value) { this->typealias = value; }
6821+
67656822 const Typeof & get_typeof() const { return typeof; }
67666823 Typeof & get_mutable_typeof() { return typeof; }
67676824 void set_typeof(const Typeof & value) { this->typeof = value; }
@@ -7426,6 +7483,9 @@ namespace quicktype {
74267483 void from_json(const json & j, List & x);
74277484 void to_json(json & j, const List & x);
74287485
7486+ void from_json(const json & j, LocalDate & x);
7487+ void to_json(json & j, const LocalDate & x);
7488+
74297489 void from_json(const json & j, Locale & x);
74307490 void to_json(json & j, const Locale & x);
74317491
@@ -7447,9 +7507,6 @@ namespace quicktype {
74477507 void from_json(const json & j, MetadataPropertyHandling & x);
74487508 void to_json(json & j, const MetadataPropertyHandling & x);
74497509
7450- void from_json(const json & j, Mutating & x);
7451- void to_json(json & j, const Mutating & x);
7452-
74537510 void from_json(const json & j, Goto & x);
74547511 void to_json(json & j, const Goto & x);
74557512
@@ -7471,12 +7528,12 @@ namespace quicktype {
74717528 void from_json(const json & j, Module & x);
74727529 void to_json(json & j, const Module & x);
74737530
7474- void from_json(const json & j, Mutable & x);
7475- void to_json(json & j, const Mutable & x);
7476-
74777531 void from_json(const json & j, Obj3 & x);
74787532 void to_json(json & j, const Obj3 & x);
74797533
7534+ void from_json(const json & j, Mutating & x);
7535+ void to_json(json & j, const Mutating & x);
7536+
74807537 void from_json(const json & j, Native & x);
74817538 void to_json(json & j, const Native & x);
74827539
@@ -7522,6 +7579,9 @@ namespace quicktype {
75227579 void from_json(const json & j, Number & x);
75237580 void to_json(json & j, const Number & x);
75247581
7582+ void from_json(const json & j, Mutable & x);
7583+ void to_json(json & j, const Mutable & x);
7584+
75257585 void from_json(const json & j, Namespace & x);
75267586 void to_json(json & j, const Namespace & x);
75277587
@@ -7576,9 +7636,6 @@ namespace quicktype {
75767636 void from_json(const json & j, ReinterpretCast & x);
75777637 void to_json(json & j, const ReinterpretCast & x);
75787638
7579- void from_json(const json & j, Requires & x);
7580- void to_json(json & j, const Requires & x);
7581-
75827639 void from_json(const json & j, Object & x);
75837640 void to_json(json & j, const Object & x);
75847641
@@ -7597,6 +7654,12 @@ namespace quicktype {
75977654 void from_json(const json & j, Of & x);
75987655 void to_json(json & j, const Of & x);
75997656
7657+ void from_json(const json & j, OffsetDateTime & x);
7658+ void to_json(json & j, const OffsetDateTime & x);
7659+
7660+ void from_json(const json & j, OffsetTime & x);
7661+ void to_json(json & j, const OffsetTime & x);
7662+
76007663 void from_json(const json & j, Oneway & x);
76017664 void to_json(json & j, const Oneway & x);
76027665
@@ -7660,21 +7723,15 @@ namespace quicktype {
76607723 void from_json(const json & j, RegExp & x);
76617724 void to_json(json & j, const RegExp & x);
76627725
7663- void from_json(const json & j, Repeat & x);
7664- void to_json(json & j, const Repeat & x);
7665-
7666- void from_json(const json & j, Require & x);
7667- void to_json(json & j, const Require & x);
7668-
7669- void from_json(const json & j, Required & x);
7670- void to_json(json & j, const Required & x);
7671-
76727726 void from_json(const json & j, Obj4 & x);
76737727 void to_json(json & j, const Obj4 & x);
76747728
76757729 void from_json(const json & j, KSerializer & x);
76767730 void to_json(json & j, const KSerializer & x);
76777731
7732+ void from_json(const json & j, Requires & x);
7733+ void to_json(json & j, const Requires & x);
7734+
76787735 void from_json(const json & j, Return & x);
76797736 void to_json(json & j, const Return & x);
76807737
@@ -7723,18 +7780,21 @@ namespace quicktype {
77237780 void from_json(const json & j, True & x);
77247781 void to_json(json & j, const True & x);
77257782
7726- void from_json(const json & j, Try & x);
7727- void to_json(json & j, const Try & x);
7728-
7729- void from_json(const json & j, TypeClass & x);
7730- void to_json(json & j, const TypeClass & x);
7731-
77327783 void from_json(const json & j, PrimitiveKind & x);
77337784 void to_json(json & j, const PrimitiveKind & x);
77347785
77357786 void from_json(const json & j, TrueClass & x);
77367787 void to_json(json & j, const TrueClass & x);
77377788
7789+ void from_json(const json & j, Repeat & x);
7790+ void to_json(json & j, const Repeat & x);
7791+
7792+ void from_json(const json & j, Require & x);
7793+ void to_json(json & j, const Require & x);
7794+
7795+ void from_json(const json & j, Required & x);
7796+ void to_json(json & j, const Required & x);
7797+
77387798 void from_json(const json & j, Restrict & x);
77397799 void to_json(json & j, const Restrict & x);
77407800
@@ -7858,15 +7918,15 @@ namespace quicktype {
78587918 void from_json(const json & j, Transient & x);
78597919 void to_json(json & j, const Transient & x);
78607920
7861- void from_json(const json & j, Type & x);
7862- void to_json(json & j, const Type & x);
7863-
7864- void from_json(const json & j, Typealias & x);
7865- void to_json(json & j, const Typealias & x);
7866-
78677921 void from_json(const json & j, Obj5 & x);
78687922 void to_json(json & j, const Obj5 & x);
78697923
7924+ void from_json(const json & j, Try & x);
7925+ void to_json(json & j, const Try & x);
7926+
7927+ void from_json(const json & j, TypeClass & x);
7928+ void to_json(json & j, const TypeClass & x);
7929+
78707930 void from_json(const json & j, Typedef & x);
78717931 void to_json(json & j, const Typedef & x);
78727932
@@ -7906,6 +7966,12 @@ namespace quicktype {
79067966 void from_json(const json & j, XorEq & x);
79077967 void to_json(json & j, const XorEq & x);
79087968
7969+ void from_json(const json & j, Type & x);
7970+ void to_json(json & j, const Type & x);
7971+
7972+ void from_json(const json & j, Typealias & x);
7973+ void to_json(json & j, const Typealias & x);
7974+
79097975 void from_json(const json & j, Typeof & x);
79107976 void to_json(json & j, const Typeof & x);
79117977
@@ -10198,6 +10264,17 @@ namespace quicktype {
1019810264 j["list"] = x.get_list();
1019910265 }
1020010266
10267+ inline void from_json(const json & j, LocalDate& x) {
10268+ if (!j.is_object()) throw std::runtime_error("Expected object");
10269+ if (j.find("LocalDate") != j.end() && !j.at("LocalDate").is_number_integer()) throw std::runtime_error("Expected integer");
10270+ x.set_local_date(j.at("LocalDate").get<int64_t>());
10271+ }
10272+
10273+ inline void to_json(json & j, const LocalDate & x) {
10274+ j = json::object();
10275+ j["LocalDate"] = x.get_local_date();
10276+ }
10277+
1020110278 inline void from_json(const json & j, Locale& x) {
1020210279 if (!j.is_object()) throw std::runtime_error("Expected object");
1020310280 if (j.find("Locale") != j.end() && !j.at("Locale").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10275,17 +10352,6 @@ namespace quicktype {
1027510352 j["metadata_property_handling"] = x.get_metadata_property_handling();
1027610353 }
1027710354
10278- inline void from_json(const json & j, Mutating& x) {
10279- if (!j.is_object()) throw std::runtime_error("Expected object");
10280- if (j.find("mutating") != j.end() && !j.at("mutating").is_number_integer()) throw std::runtime_error("Expected integer");
10281- x.set_mutating(j.at("mutating").get<int64_t>());
10282- }
10283-
10284- inline void to_json(json & j, const Mutating & x) {
10285- j = json::object();
10286- j["mutating"] = x.get_mutating();
10287- }
10288-
1028910355 inline void from_json(const json & j, Goto& x) {
1029010356 if (!j.is_object()) throw std::runtime_error("Expected object");
1029110357 if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10363,17 +10429,6 @@ namespace quicktype {
1036310429 j["module"] = x.get_module_module();
1036410430 }
1036510431
10366- inline void from_json(const json & j, Mutable& x) {
10367- if (!j.is_object()) throw std::runtime_error("Expected object");
10368- if (j.find("mutable") != j.end() && !j.at("mutable").is_number_integer()) throw std::runtime_error("Expected integer");
10369- x.set_mutable_mutable(j.at("mutable").get<int64_t>());
10370- }
10371-
10372- inline void to_json(json & j, const Mutable & x) {
10373- j = json::object();
10374- j["mutable"] = x.get_mutable_mutable();
10375- }
10376-
1037710432 inline void from_json(const json & j, Obj3& x) {
1037810433 if (!j.is_object()) throw std::runtime_error("Expected object");
1037910434 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10427,6 +10482,7 @@ namespace quicktype {
1042710482 x.set_left(j.at("left").get<Left>());
1042810483 x.set_let(j.at("let").get<Let>());
1042910484 x.set_list(j.at("list").get<List>());
10485+ x.set_local_date(j.at("LocalDate").get<LocalDate>());
1043010486 x.set_locale(j.at("Locale").get<Locale>());
1043110487 x.set_lock(j.at("lock").get<Lock>());
1043210488 x.set_long_node(j.at("LongNode").get<LongNode>());
@@ -10434,7 +10490,6 @@ namespace quicktype {
1043410490 x.set_map_entry(j.at("MapEntry").get<MapEntry>());
1043510491 x.set_marshal_json(j.at("MarshalJSON").get<MarshalJson>());
1043610492 x.set_metadata_property_handling(j.at("metadata_property_handling").get<MetadataPropertyHandling>());
10437- x.set_mutating(j.at("mutating").get<Mutating>());
1043810493 x.set_obj3_goto(j.at("goto").get<Goto>());
1043910494 x.set_obj3_if(j.at("if").get<If>());
1044010495 x.set_obj3_import(j.at("import").get<Import>());
@@ -10442,7 +10497,6 @@ namespace quicktype {
1044210497 x.set_obj3_int(j.at("int").get<Int>());
1044310498 x.set_obj3_long(j.at("long").get<Long>());
1044410499 x.set_obj3_module(j.at("module").get<Module>());
10445- x.set_obj3_mutable(j.at("mutable").get<Mutable>());
1044610500 }
1044710501
1044810502 inline void to_json(json & j, const Obj3 & x) {
@@ -10497,6 +10551,7 @@ namespace quicktype {
1049710551 j["left"] = x.get_left();
1049810552 j["let"] = x.get_let();
1049910553 j["list"] = x.get_list();
10554+ j["LocalDate"] = x.get_local_date();
1050010555 j["Locale"] = x.get_locale();
1050110556 j["lock"] = x.get_lock();
1050210557 j["LongNode"] = x.get_long_node();
@@ -10504,7 +10559,6 @@ namespace quicktype {
1050410559 j["MapEntry"] = x.get_map_entry();
1050510560 j["MarshalJSON"] = x.get_marshal_json();
1050610561 j["metadata_property_handling"] = x.get_metadata_property_handling();
10507- j["mutating"] = x.get_mutating();
1050810562 j["goto"] = x.get_obj3_goto();
1050910563 j["if"] = x.get_obj3_if();
1051010564 j["import"] = x.get_obj3_import();
@@ -10512,7 +10566,17 @@ namespace quicktype {
1051210566 j["int"] = x.get_obj3_int();
1051310567 j["long"] = x.get_obj3_long();
1051410568 j["module"] = x.get_obj3_module();
10515- j["mutable"] = x.get_obj3_mutable();
10569+ }
10570+
10571+ inline void from_json(const json & j, Mutating& x) {
10572+ if (!j.is_object()) throw std::runtime_error("Expected object");
10573+ if (j.find("mutating") != j.end() && !j.at("mutating").is_number_integer()) throw std::runtime_error("Expected integer");
10574+ x.set_mutating(j.at("mutating").get<int64_t>());
10575+ }
10576+
10577+ inline void to_json(json & j, const Mutating & x) {
10578+ j = json::object();
10579+ j["mutating"] = x.get_mutating();
1051610580 }
1051710581
1051810582 inline void from_json(const json & j, Native& x) {
@@ -10680,6 +10744,17 @@ namespace quicktype {
1068010744 j["number"] = x.get_number();
1068110745 }
1068210746
10747+ inline void from_json(const json & j, Mutable& x) {
10748+ if (!j.is_object()) throw std::runtime_error("Expected object");
10749+ if (j.find("mutable") != j.end() && !j.at("mutable").is_number_integer()) throw std::runtime_error("Expected integer");
10750+ x.set_mutable_mutable(j.at("mutable").get<int64_t>());
10751+ }
10752+
10753+ inline void to_json(json & j, const Mutable & x) {
10754+ j = json::object();
10755+ j["mutable"] = x.get_mutable_mutable();
10756+ }
10757+
1068310758 inline void from_json(const json & j, Namespace& x) {
1068410759 if (!j.is_object()) throw std::runtime_error("Expected object");
1068510760 if (j.find("namespace") != j.end() && !j.at("namespace").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10878,17 +10953,6 @@ namespace quicktype {
1087810953 j["reinterpret_cast"] = x.get_reinterpret_cast_reinterpret_cast();
1087910954 }
1088010955
10881- inline void from_json(const json & j, Requires& x) {
10882- if (!j.is_object()) throw std::runtime_error("Expected object");
10883- if (j.find("requires") != j.end() && !j.at("requires").is_number_integer()) throw std::runtime_error("Expected integer");
10884- x.set_requires_requires(j.at("requires").get<int64_t>());
10885- }
10886-
10887- inline void to_json(json & j, const Requires & x) {
10888- j = json::object();
10889- j["requires"] = x.get_requires_requires();
10890- }
10891-
1089210956 inline void from_json(const json & j, Object& x) {
1089310957 if (!j.is_object()) throw std::runtime_error("Expected object");
1089410958 if (j.find("object") != j.end() && !j.at("object").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10955,6 +11019,28 @@ namespace quicktype {
1095511019 j["of"] = x.get_of();
1095611020 }
1095711021
11022+ inline void from_json(const json & j, OffsetDateTime& x) {
11023+ if (!j.is_object()) throw std::runtime_error("Expected object");
11024+ if (j.find("OffsetDateTime") != j.end() && !j.at("OffsetDateTime").is_number_integer()) throw std::runtime_error("Expected integer");
11025+ x.set_offset_date_time(j.at("OffsetDateTime").get<int64_t>());
11026+ }
11027+
11028+ inline void to_json(json & j, const OffsetDateTime & x) {
11029+ j = json::object();
11030+ j["OffsetDateTime"] = x.get_offset_date_time();
11031+ }
11032+
11033+ inline void from_json(const json & j, OffsetTime& x) {
11034+ if (!j.is_object()) throw std::runtime_error("Expected object");
11035+ if (j.find("OffsetTime") != j.end() && !j.at("OffsetTime").is_number_integer()) throw std::runtime_error("Expected integer");
11036+ x.set_offset_time(j.at("OffsetTime").get<int64_t>());
11037+ }
11038+
11039+ inline void to_json(json & j, const OffsetTime & x) {
11040+ j = json::object();
11041+ j["OffsetTime"] = x.get_offset_time();
11042+ }
11043+
1095811044 inline void from_json(const json & j, Oneway& x) {
1095911045 if (!j.is_object()) throw std::runtime_error("Expected object");
1096011046 if (j.find("oneway") != j.end() && !j.at("oneway").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11186,43 +11272,11 @@ namespace quicktype {
1118611272 j["RegExp"] = x.get_reg_exp();
1118711273 }
1118811274
11189- inline void from_json(const json & j, Repeat& x) {
11190- if (!j.is_object()) throw std::runtime_error("Expected object");
11191- if (j.find("repeat") != j.end() && !j.at("repeat").is_number_integer()) throw std::runtime_error("Expected integer");
11192- x.set_repeat(j.at("repeat").get<int64_t>());
11193- }
11194-
11195- inline void to_json(json & j, const Repeat & x) {
11196- j = json::object();
11197- j["repeat"] = x.get_repeat();
11198- }
11199-
11200- inline void from_json(const json & j, Require& x) {
11201- if (!j.is_object()) throw std::runtime_error("Expected object");
11202- if (j.find("require") != j.end() && !j.at("require").is_number_integer()) throw std::runtime_error("Expected integer");
11203- x.set_require(j.at("require").get<int64_t>());
11204- }
11205-
11206- inline void to_json(json & j, const Require & x) {
11207- j = json::object();
11208- j["require"] = x.get_require();
11209- }
11210-
11211- inline void from_json(const json & j, Required& x) {
11212- if (!j.is_object()) throw std::runtime_error("Expected object");
11213- if (j.find("required") != j.end() && !j.at("required").is_number_integer()) throw std::runtime_error("Expected integer");
11214- x.set_required(j.at("required").get<int64_t>());
11215- }
11216-
11217- inline void to_json(json & j, const Required & x) {
11218- j = json::object();
11219- j["required"] = x.get_required();
11220- }
11221-
1122211275 inline void from_json(const json & j, Obj4& x) {
1122311276 if (!j.is_object()) throw std::runtime_error("Expected object");
1122411277 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1122511278 x.set_dummy(j.at("dummy").get<int64_t>());
11279+ x.set_mutating(j.at("mutating").get<Mutating>());
1122611280 x.set_native(j.at("native").get<Native>());
1122711281 x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>());
1122811282 x.set_nil(j.at("nil").get<Nil>());
@@ -11238,6 +11292,7 @@ namespace quicktype {
1123811292 x.set_null(j.at("NULL").get<Null>());
1123911293 x.set_null_node(j.at("NullNode").get<NullNode>());
1124011294 x.set_number(j.at("number").get<Number>());
11295+ x.set_obj4_mutable(j.at("mutable").get<Mutable>());
1124111296 x.set_obj4_namespace(j.at("namespace").get<Namespace>());
1124211297 x.set_obj4_new(j.at("new").get<New>());
1124311298 x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>());
@@ -11256,13 +11311,14 @@ namespace quicktype {
1125611311 x.set_obj4_public(j.at("public").get<Public>());
1125711312 x.set_obj4_register(j.at("register").get<Register>());
1125811313 x.set_obj4_reinterpret_cast(j.at("reinterpret_cast").get<ReinterpretCast>());
11259- x.set_obj4_requires(j.at("requires").get<Requires>());
1126011314 x.set_object(j.at("object").get<Object>());
1126111315 x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>());
1126211316 x.set_object_node(j.at("ObjectNode").get<ObjectNode>());
1126311317 x.set_object_reader(j.at("ObjectReader").get<ObjectReader>());
1126411318 x.set_object_writer(j.at("ObjectWriter").get<ObjectWriter>());
1126511319 x.set_of(j.at("of").get<Of>());
11320+ x.set_offset_date_time(j.at("OffsetDateTime").get<OffsetDateTime>());
11321+ x.set_offset_time(j.at("OffsetTime").get<OffsetTime>());
1126611322 x.set_oneway(j.at("oneway").get<Oneway>());
1126711323 x.set_open(j.at("open").get<Open>());
1126811324 x.set_optional(j.at("optional").get<Optional>());
@@ -11284,14 +11340,12 @@ namespace quicktype {
1128411340 x.set_readonly(j.at("readonly").get<Readonly>());
1128511341 x.set_ref(j.at("ref").get<Ref>());
1128611342 x.set_reg_exp(j.at("RegExp").get<RegExp>());
11287- x.set_repeat(j.at("repeat").get<Repeat>());
11288- x.set_require(j.at("require").get<Require>());
11289- x.set_required(j.at("required").get<Required>());
1129011343 }
1129111344
1129211345 inline void to_json(json & j, const Obj4 & x) {
1129311346 j = json::object();
1129411347 j["dummy"] = x.get_dummy();
11348+ j["mutating"] = x.get_mutating();
1129511349 j["native"] = x.get_native();
1129611350 j["newtonsoft"] = x.get_newtonsoft();
1129711351 j["nil"] = x.get_nil();
@@ -11307,6 +11361,7 @@ namespace quicktype {
1130711361 j["NULL"] = x.get_null();
1130811362 j["NullNode"] = x.get_null_node();
1130911363 j["number"] = x.get_number();
11364+ j["mutable"] = x.get_obj4_mutable();
1131011365 j["namespace"] = x.get_obj4_namespace();
1131111366 j["new"] = x.get_obj4_new();
1131211367 j["noexcept"] = x.get_obj4_noexcept();
@@ -11325,13 +11380,14 @@ namespace quicktype {
1132511380 j["public"] = x.get_obj4_public();
1132611381 j["register"] = x.get_obj4_register();
1132711382 j["reinterpret_cast"] = x.get_obj4_reinterpret_cast();
11328- j["requires"] = x.get_obj4_requires();
1132911383 j["object"] = x.get_object();
1133011384 j["ObjectMapper"] = x.get_object_mapper();
1133111385 j["ObjectNode"] = x.get_object_node();
1133211386 j["ObjectReader"] = x.get_object_reader();
1133311387 j["ObjectWriter"] = x.get_object_writer();
1133411388 j["of"] = x.get_of();
11389+ j["OffsetDateTime"] = x.get_offset_date_time();
11390+ j["OffsetTime"] = x.get_offset_time();
1133511391 j["oneway"] = x.get_oneway();
1133611392 j["open"] = x.get_open();
1133711393 j["optional"] = x.get_optional();
@@ -11353,9 +11409,6 @@ namespace quicktype {
1135311409 j["readonly"] = x.get_readonly();
1135411410 j["ref"] = x.get_ref();
1135511411 j["RegExp"] = x.get_reg_exp();
11356- j["repeat"] = x.get_repeat();
11357- j["require"] = x.get_require();
11358- j["required"] = x.get_required();
1135911412 }
1136011413
1136111414 inline void from_json(const json & j, KSerializer& x) {
@@ -11369,6 +11422,17 @@ namespace quicktype {
1136911422 j["KSerializer"] = x.get_k_serializer();
1137011423 }
1137111424
11425+ inline void from_json(const json & j, Requires& x) {
11426+ if (!j.is_object()) throw std::runtime_error("Expected object");
11427+ if (j.find("requires") != j.end() && !j.at("requires").is_number_integer()) throw std::runtime_error("Expected integer");
11428+ x.set_requires_requires(j.at("requires").get<int64_t>());
11429+ }
11430+
11431+ inline void to_json(json & j, const Requires & x) {
11432+ j = json::object();
11433+ j["requires"] = x.get_requires_requires();
11434+ }
11435+
1137211436 inline void from_json(const json & j, Return& x) {
1137311437 if (!j.is_object()) throw std::runtime_error("Expected object");
1137411438 if (j.find("return") != j.end() && !j.at("return").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11545,48 +11609,59 @@ namespace quicktype {
1154511609 j["True"] = x.get_true_true();
1154611610 }
1154711611
11548- inline void from_json(const json & j, Try& x) {
11612+ inline void from_json(const json & j, PrimitiveKind& x) {
1154911613 if (!j.is_object()) throw std::runtime_error("Expected object");
11550- if (j.find("try") != j.end() && !j.at("try").is_number_integer()) throw std::runtime_error("Expected integer");
11551- x.set_try_try(j.at("try").get<int64_t>());
11614+ if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer");
11615+ x.set_primitive_kind(j.at("PrimitiveKind").get<int64_t>());
1155211616 }
1155311617
11554- inline void to_json(json & j, const Try & x) {
11618+ inline void to_json(json & j, const PrimitiveKind & x) {
1155511619 j = json::object();
11556- j["try"] = x.get_try_try();
11620+ j["PrimitiveKind"] = x.get_primitive_kind();
1155711621 }
1155811622
11559- inline void from_json(const json & j, TypeClass& x) {
11623+ inline void from_json(const json & j, TrueClass& x) {
1156011624 if (!j.is_object()) throw std::runtime_error("Expected object");
11561- if (j.find("type") != j.end() && !j.at("type").is_number_integer()) throw std::runtime_error("Expected integer");
11562- x.set_type(j.at("type").get<int64_t>());
11625+ if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer");
11626+ x.set_true_true(j.at("true").get<int64_t>());
1156311627 }
1156411628
11565- inline void to_json(json & j, const TypeClass & x) {
11629+ inline void to_json(json & j, const TrueClass & x) {
1156611630 j = json::object();
11567- j["type"] = x.get_type();
11631+ j["true"] = x.get_true_true();
1156811632 }
1156911633
11570- inline void from_json(const json & j, PrimitiveKind& x) {
11634+ inline void from_json(const json & j, Repeat& x) {
1157111635 if (!j.is_object()) throw std::runtime_error("Expected object");
11572- if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer");
11573- x.set_primitive_kind(j.at("PrimitiveKind").get<int64_t>());
11636+ if (j.find("repeat") != j.end() && !j.at("repeat").is_number_integer()) throw std::runtime_error("Expected integer");
11637+ x.set_repeat(j.at("repeat").get<int64_t>());
1157411638 }
1157511639
11576- inline void to_json(json & j, const PrimitiveKind & x) {
11640+ inline void to_json(json & j, const Repeat & x) {
1157711641 j = json::object();
11578- j["PrimitiveKind"] = x.get_primitive_kind();
11642+ j["repeat"] = x.get_repeat();
1157911643 }
1158011644
11581- inline void from_json(const json & j, TrueClass& x) {
11645+ inline void from_json(const json & j, Require& x) {
1158211646 if (!j.is_object()) throw std::runtime_error("Expected object");
11583- if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer");
11584- x.set_true_true(j.at("true").get<int64_t>());
11647+ if (j.find("require") != j.end() && !j.at("require").is_number_integer()) throw std::runtime_error("Expected integer");
11648+ x.set_require(j.at("require").get<int64_t>());
1158511649 }
1158611650
11587- inline void to_json(json & j, const TrueClass & x) {
11651+ inline void to_json(json & j, const Require & x) {
1158811652 j = json::object();
11589- j["true"] = x.get_true_true();
11653+ j["require"] = x.get_require();
11654+ }
11655+
11656+ inline void from_json(const json & j, Required& x) {
11657+ if (!j.is_object()) throw std::runtime_error("Expected object");
11658+ if (j.find("required") != j.end() && !j.at("required").is_number_integer()) throw std::runtime_error("Expected integer");
11659+ x.set_required(j.at("required").get<int64_t>());
11660+ }
11661+
11662+ inline void to_json(json & j, const Required & x) {
11663+ j = json::object();
11664+ j["required"] = x.get_required();
1159011665 }
1159111666
1159211667 inline void from_json(const json & j, Restrict& x) {
@@ -12040,33 +12115,12 @@ namespace quicktype {
1204012115 j["transient"] = x.get_transient();
1204112116 }
1204212117
12043- inline void from_json(const json & j, Type& x) {
12044- if (!j.is_object()) throw std::runtime_error("Expected object");
12045- if (j.find("Type") != j.end() && !j.at("Type").is_number_integer()) throw std::runtime_error("Expected integer");
12046- x.set_type(j.at("Type").get<int64_t>());
12047- }
12048-
12049- inline void to_json(json & j, const Type & x) {
12050- j = json::object();
12051- j["Type"] = x.get_type();
12052- }
12053-
12054- inline void from_json(const json & j, Typealias& x) {
12055- if (!j.is_object()) throw std::runtime_error("Expected object");
12056- if (j.find("typealias") != j.end() && !j.at("typealias").is_number_integer()) throw std::runtime_error("Expected integer");
12057- x.set_typealias(j.at("typealias").get<int64_t>());
12058- }
12059-
12060- inline void to_json(json & j, const Typealias & x) {
12061- j = json::object();
12062- j["typealias"] = x.get_typealias();
12063- }
12064-
1206512118 inline void from_json(const json & j, Obj5& x) {
1206612119 if (!j.is_object()) throw std::runtime_error("Expected object");
1206712120 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1206812121 x.set_dummy(j.at("dummy").get<int64_t>());
1206912122 x.set_k_serializer(j.at("KSerializer").get<KSerializer>());
12123+ x.set_obj5_requires(j.at("requires").get<Requires>());
1207012124 x.set_obj5_return(j.at("return").get<Return>());
1207112125 x.set_obj5_self(j.at("self").get<SelfClass>());
1207212126 x.set_obj5_short(j.at("short").get<Short>());
@@ -12083,10 +12137,11 @@ namespace quicktype {
1208312137 x.set_obj5_thread_local(j.at("thread_local").get<ThreadLocal>());
1208412138 x.set_obj5_throw(j.at("throw").get<Throw>());
1208512139 x.set_obj5_true(j.at("True").get<True>());
12086- x.set_obj5_try(j.at("try").get<Try>());
12087- x.set_obj5_type(j.at("type").get<TypeClass>());
1208812140 x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>());
1208912141 x.set_purple_true(j.at("true").get<TrueClass>());
12142+ x.set_repeat(j.at("repeat").get<Repeat>());
12143+ x.set_require(j.at("require").get<Require>());
12144+ x.set_required(j.at("required").get<Required>());
1209012145 x.set_restrict(j.at("restrict").get<Restrict>());
1209112146 x.set_retain(j.at("retain").get<Retain>());
1209212147 x.set_rethrows(j.at("rethrows").get<Rethrows>());
@@ -12128,14 +12183,13 @@ namespace quicktype {
1212812183 x.set_to_string(j.at("toString").get<ToString>());
1212912184 x.set_top_level(j.at("top_level").get<TopLevelClass>());
1213012185 x.set_transient(j.at("transient").get<Transient>());
12131- x.set_type(j.at("Type").get<Type>());
12132- x.set_typealias(j.at("typealias").get<Typealias>());
1213312186 }
1213412187
1213512188 inline void to_json(json & j, const Obj5 & x) {
1213612189 j = json::object();
1213712190 j["dummy"] = x.get_dummy();
1213812191 j["KSerializer"] = x.get_k_serializer();
12192+ j["requires"] = x.get_obj5_requires();
1213912193 j["return"] = x.get_obj5_return();
1214012194 j["self"] = x.get_obj5_self();
1214112195 j["short"] = x.get_obj5_short();
@@ -12152,10 +12206,11 @@ namespace quicktype {
1215212206 j["thread_local"] = x.get_obj5_thread_local();
1215312207 j["throw"] = x.get_obj5_throw();
1215412208 j["True"] = x.get_obj5_true();
12155- j["try"] = x.get_obj5_try();
12156- j["type"] = x.get_obj5_type();
1215712209 j["PrimitiveKind"] = x.get_primitive_kind();
1215812210 j["true"] = x.get_purple_true();
12211+ j["repeat"] = x.get_repeat();
12212+ j["require"] = x.get_require();
12213+ j["required"] = x.get_required();
1215912214 j["restrict"] = x.get_restrict();
1216012215 j["retain"] = x.get_retain();
1216112216 j["rethrows"] = x.get_rethrows();
@@ -12197,8 +12252,28 @@ namespace quicktype {
1219712252 j["toString"] = x.get_to_string();
1219812253 j["top_level"] = x.get_top_level();
1219912254 j["transient"] = x.get_transient();
12200- j["Type"] = x.get_type();
12201- j["typealias"] = x.get_typealias();
12255+ }
12256+
12257+ inline void from_json(const json & j, Try& x) {
12258+ if (!j.is_object()) throw std::runtime_error("Expected object");
12259+ if (j.find("try") != j.end() && !j.at("try").is_number_integer()) throw std::runtime_error("Expected integer");
12260+ x.set_try_try(j.at("try").get<int64_t>());
12261+ }
12262+
12263+ inline void to_json(json & j, const Try & x) {
12264+ j = json::object();
12265+ j["try"] = x.get_try_try();
12266+ }
12267+
12268+ inline void from_json(const json & j, TypeClass& x) {
12269+ if (!j.is_object()) throw std::runtime_error("Expected object");
12270+ if (j.find("type") != j.end() && !j.at("type").is_number_integer()) throw std::runtime_error("Expected integer");
12271+ x.set_type(j.at("type").get<int64_t>());
12272+ }
12273+
12274+ inline void to_json(json & j, const TypeClass & x) {
12275+ j = json::object();
12276+ j["type"] = x.get_type();
1220212277 }
1220312278
1220412279 inline void from_json(const json & j, Typedef& x) {
@@ -12344,6 +12419,28 @@ namespace quicktype {
1234412419 j["xor_eq"] = x.get_xor_eq_xor_eq();
1234512420 }
1234612421
12422+ inline void from_json(const json & j, Type& x) {
12423+ if (!j.is_object()) throw std::runtime_error("Expected object");
12424+ if (j.find("Type") != j.end() && !j.at("Type").is_number_integer()) throw std::runtime_error("Expected integer");
12425+ x.set_type(j.at("Type").get<int64_t>());
12426+ }
12427+
12428+ inline void to_json(json & j, const Type & x) {
12429+ j = json::object();
12430+ j["Type"] = x.get_type();
12431+ }
12432+
12433+ inline void from_json(const json & j, Typealias& x) {
12434+ if (!j.is_object()) throw std::runtime_error("Expected object");
12435+ if (j.find("typealias") != j.end() && !j.at("typealias").is_number_integer()) throw std::runtime_error("Expected integer");
12436+ x.set_typealias(j.at("typealias").get<int64_t>());
12437+ }
12438+
12439+ inline void to_json(json & j, const Typealias & x) {
12440+ j = json::object();
12441+ j["typealias"] = x.get_typealias();
12442+ }
12443+
1234712444 inline void from_json(const json & j, Typeof& x) {
1234812445 if (!j.is_object()) throw std::runtime_error("Expected object");
1234912446 if (j.find("typeof") != j.end() && !j.at("typeof").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -12568,6 +12665,8 @@ namespace quicktype {
1256812665 if (!j.is_object()) throw std::runtime_error("Expected object");
1256912666 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1257012667 x.set_dummy(j.at("dummy").get<int64_t>());
12668+ x.set_obj6_try(j.at("try").get<Try>());
12669+ x.set_obj6_type(j.at("type").get<TypeClass>());
1257112670 x.set_obj6_typedef(j.at("typedef").get<Typedef>());
1257212671 x.set_obj6_typeid(j.at("typeid").get<Typeid>());
1257312672 x.set_obj6_typename(j.at("typename").get<Typename>());
@@ -12581,6 +12680,8 @@ namespace quicktype {
1258112680 x.set_obj6_while(j.at("while").get<While>());
1258212681 x.set_obj6_xor(j.at("xor").get<Xor>());
1258312682 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
12683+ x.set_type(j.at("Type").get<Type>());
12684+ x.set_typealias(j.at("typealias").get<Typealias>());
1258412685 x.set_typeof(j.at("typeof").get<Typeof>());
1258512686 x.set_uint(j.at("uint").get<Uint>());
1258612687 x.set_ulong(j.at("ulong").get<Ulong>());
@@ -12606,6 +12707,8 @@ namespace quicktype {
1260612707 inline void to_json(json & j, const Obj6 & x) {
1260712708 j = json::object();
1260812709 j["dummy"] = x.get_dummy();
12710+ j["try"] = x.get_obj6_try();
12711+ j["type"] = x.get_obj6_type();
1260912712 j["typedef"] = x.get_obj6_typedef();
1261012713 j["typeid"] = x.get_obj6_typeid();
1261112714 j["typename"] = x.get_obj6_typename();
@@ -12619,6 +12722,8 @@ namespace quicktype {
1261912722 j["while"] = x.get_obj6_while();
1262012723 j["xor"] = x.get_obj6_xor();
1262112724 j["xor_eq"] = x.get_obj6_xor_eq();
12725+ j["Type"] = x.get_type();
12726+ j["typealias"] = x.get_typealias();
1262212727 j["typeof"] = x.get_typeof();
1262312728 j["uint"] = x.get_uint();
1262412729 j["ulong"] = x.get_ulong();
Mcrystaldefault / TopLevel.cr+108 −78
@@ -1267,6 +1267,9 @@ class Obj3
12671267
12681268 property list : List
12691269
1270+ @[JSON::Field(key: "LocalDate")]
1271+ property local_date : LocalDate
1272+
12701273 @[JSON::Field(key: "Locale")]
12711274 property locale : Locale
12721275
@@ -1287,10 +1290,6 @@ class Obj3
12871290
12881291 property metadata_property_handling : MetadataPropertyHandling
12891292
1290- property mutable : Mutable
1291-
1292- property mutating : Mutating
1293-
12941293 @[JSON::Field(key: "if")]
12951294 property obj3_if : If
12961295
@@ -1631,6 +1630,13 @@ class List
16311630 property list : Int64
16321631 end
16331632
1633+class LocalDate
1634+ include JSON::Serializable
1635+
1636+ @[JSON::Field(key: "LocalDate")]
1637+ property local_date : Int64
1638+end
1639+
16341640 class Locale
16351641 include JSON::Serializable
16361642
@@ -1683,18 +1689,6 @@ class MetadataPropertyHandling
16831689 property metadata_property_handling : Int64
16841690 end
16851691
1686-class Mutable
1687- include JSON::Serializable
1688-
1689- property mutable : Int64
1690-end
1691-
1692-class Mutating
1693- include JSON::Serializable
1694-
1695- property mutating : Int64
1696-end
1697-
16981692 class If
16991693 include JSON::Serializable
17001694
@@ -1721,6 +1715,10 @@ class Obj4
17211715
17221716 property dummy : Int64
17231717
1718+ property mutable : Mutable
1719+
1720+ property mutating : Mutating
1721+
17241722 property namespace : Namespace
17251723
17261724 property native : Native
@@ -1793,9 +1791,6 @@ class Obj4
17931791 @[JSON::Field(key: "protocol")]
17941792 property obj4_protocol : ProtocolClass
17951793
1796- @[JSON::Field(key: "require")]
1797- property obj4_require : Require
1798-
17991794 property object : ObjectClass
18001795
18011796 @[JSON::Field(key: "ObjectMapper")]
@@ -1810,6 +1805,12 @@ class Obj4
18101805 @[JSON::Field(key: "ObjectWriter")]
18111806 property object_writer : ObjectWriter
18121807
1808+ @[JSON::Field(key: "OffsetDateTime")]
1809+ property offset_date_time : OffsetDateTime
1810+
1811+ @[JSON::Field(key: "OffsetTime")]
1812+ property offset_time : OffsetTime
1813+
18131814 property oneway : Oneway
18141815
18151816 property open : Open
@@ -1866,12 +1867,18 @@ class Obj4
18661867 property register : Register
18671868
18681869 property reinterpret_cast : ReinterpretCast
1870+end
18691871
1870- property repeat : Repeat
1872+class Mutable
1873+ include JSON::Serializable
18711874
1872- property required : Required
1875+ property mutable : Int64
1876+end
18731877
1874- property requires : Requires
1878+class Mutating
1879+ include JSON::Serializable
1880+
1881+ property mutating : Int64
18751882 end
18761883
18771884 class Namespace
@@ -2055,13 +2062,6 @@ class ProtocolClass
20552062 property protocol : Int64
20562063 end
20572064
2058-class Require
2059- include JSON::Serializable
2060-
2061- @[JSON::Field(key: "require")]
2062- property require_require : Int64
2063-end
2064-
20652065 class ObjectClass
20662066 include JSON::Serializable
20672067
@@ -2096,6 +2096,20 @@ class ObjectWriter
20962096 property object_writer : Int64
20972097 end
20982098
2099+class OffsetDateTime
2100+ include JSON::Serializable
2101+
2102+ @[JSON::Field(key: "OffsetDateTime")]
2103+ property offset_date_time : Int64
2104+end
2105+
2106+class OffsetTime
2107+ include JSON::Serializable
2108+
2109+ @[JSON::Field(key: "OffsetTime")]
2110+ property offset_time : Int64
2111+end
2112+
20992113 class Oneway
21002114 include JSON::Serializable
21012115
@@ -2261,24 +2275,6 @@ class ReinterpretCast
22612275 property reinterpret_cast : Int64
22622276 end
22632277
2264-class Repeat
2265- include JSON::Serializable
2266-
2267- property repeat : Int64
2268-end
2269-
2270-class Required
2271- include JSON::Serializable
2272-
2273- property required : Int64
2274-end
2275-
2276-class Requires
2277- include JSON::Serializable
2278-
2279- property requires : Int64
2280-end
2281-
22822278 class Obj5
22832279 include JSON::Serializable
22842280
@@ -2287,6 +2283,9 @@ class Obj5
22872283 @[JSON::Field(key: "KSerializer")]
22882284 property k_serializer : KSerializer
22892285
2286+ @[JSON::Field(key: "require")]
2287+ property obj5_require : Require
2288+
22902289 @[JSON::Field(key: "return")]
22912290 property obj5_return : Return
22922291
@@ -2314,9 +2313,6 @@ class Obj5
23142313 @[JSON::Field(key: "True")]
23152314 property obj5_true : True
23162315
2317- @[JSON::Field(key: "Type")]
2318- property obj5_type : Type
2319-
23202316 @[JSON::Field(key: "PrimitiveKind")]
23212317 property primitive_kind : PrimitiveKind
23222318
@@ -2326,8 +2322,11 @@ class Obj5
23262322 @[JSON::Field(key: "true")]
23272323 property purple_true : TrueClass
23282324
2329- @[JSON::Field(key: "type")]
2330- property purple_type : TypeClass
2325+ property repeat : Repeat
2326+
2327+ property required : Required
2328+
2329+ property requires : Requires
23312330
23322331 property restrict : Restrict
23332332
@@ -2439,10 +2438,6 @@ class Obj5
24392438 property top_level : TopLevelClass
24402439
24412440 property transient : Transient
2442-
2443- property try : Try
2444-
2445- property typealias : Typealias
24462441 end
24472442
24482443 class KSerializer
@@ -2452,6 +2447,13 @@ class KSerializer
24522447 property k_serializer : Int64
24532448 end
24542449
2450+class Require
2451+ include JSON::Serializable
2452+
2453+ @[JSON::Field(key: "require")]
2454+ property require_require : Int64
2455+end
2456+
24552457 class Return
24562458 include JSON::Serializable
24572459
@@ -2515,13 +2517,6 @@ class True
25152517 property true_true : Int64
25162518 end
25172519
2518-class Type
2519- include JSON::Serializable
2520-
2521- @[JSON::Field(key: "Type")]
2522- property type_type : Int64
2523-end
2524-
25252520 class PrimitiveKind
25262521 include JSON::Serializable
25272522
@@ -2543,11 +2538,22 @@ class TrueClass
25432538 property true_true : Int64
25442539 end
25452540
2546-class TypeClass
2541+class Repeat
25472542 include JSON::Serializable
25482543
2549- @[JSON::Field(key: "type")]
2550- property type_type : Int64
2544+ property repeat : Int64
2545+end
2546+
2547+class Required
2548+ include JSON::Serializable
2549+
2550+ property required : Int64
2551+end
2552+
2553+class Requires
2554+ include JSON::Serializable
2555+
2556+ property requires : Int64
25512557 end
25522558
25532559 class Restrict
@@ -2849,23 +2855,14 @@ class Transient
28492855 property transient : Int64
28502856 end
28512857
2852-class Try
2853- include JSON::Serializable
2854-
2855- property try : Int64
2856-end
2857-
2858-class Typealias
2859- include JSON::Serializable
2860-
2861- property typealias : Int64
2862-end
2863-
28642858 class Obj6
28652859 include JSON::Serializable
28662860
28672861 property dummy : Int64
28682862
2863+ @[JSON::Field(key: "Type")]
2864+ property obj6_type : Type
2865+
28692866 @[JSON::Field(key: "typeof")]
28702867 property obj6_typeof : Typeof
28712868
@@ -2881,6 +2878,13 @@ class Obj6
28812878 @[JSON::Field(key: "yield")]
28822879 property obj6_yield : Yield
28832880
2881+ @[JSON::Field(key: "type")]
2882+ property purple_type : TypeClass
2883+
2884+ property try : Try
2885+
2886+ property typealias : Typealias
2887+
28842888 property typedef : Typedef
28852889
28862890 property typeid : Typeid
@@ -2945,6 +2949,13 @@ class Obj6
29452949 property yes : Yes
29462950 end
29472951
2952+class Type
2953+ include JSON::Serializable
2954+
2955+ @[JSON::Field(key: "Type")]
2956+ property type_type : Int64
2957+end
2958+
29482959 class Typeof
29492960 include JSON::Serializable
29502961
@@ -2980,6 +2991,25 @@ class Yield
29802991 property yield_yield : Int64
29812992 end
29822993
2994+class TypeClass
2995+ include JSON::Serializable
2996+
2997+ @[JSON::Field(key: "type")]
2998+ property type_type : Int64
2999+end
3000+
3001+class Try
3002+ include JSON::Serializable
3003+
3004+ property try : Int64
3005+end
3006+
3007+class Typealias
3008+ include JSON::Serializable
3009+
3010+ property typealias : Int64
3011+end
3012+
29833013 class Typedef
29843014 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+113 −86
@@ -1378,6 +1378,9 @@ namespace QuickType
13781378 [JsonProperty("list", Required = Required.Always)]
13791379 public List List { get; set; }
13801380
1381+ [JsonProperty("LocalDate", Required = Required.Always)]
1382+ public LocalDate LocalDate { get; set; }
1383+
13811384 [JsonProperty("Locale", Required = Required.Always)]
13821385 public Locale Locale { get; set; }
13831386
@@ -1404,12 +1407,6 @@ namespace QuickType
14041407
14051408 [JsonProperty("module", Required = Required.Always)]
14061409 public Module Module { get; set; }
1407-
1408- [JsonProperty("mutable", Required = Required.Always)]
1409- public Mutable Mutable { get; set; }
1410-
1411- [JsonProperty("mutating", Required = Required.Always)]
1412- public Mutating Mutating { get; set; }
14131410 }
14141411
14151412 public partial record Function
@@ -1736,6 +1733,12 @@ namespace QuickType
17361733 public long ListList { get; set; }
17371734 }
17381735
1736+ public partial record LocalDate
1737+ {
1738+ [JsonProperty("LocalDate", Required = Required.Always)]
1739+ public long LocalDateLocalDate { get; set; }
1740+ }
1741+
17391742 public partial record Locale
17401743 {
17411744 [JsonProperty("Locale", Required = Required.Always)]
@@ -1790,23 +1793,17 @@ namespace QuickType
17901793 public long ModuleModule { get; set; }
17911794 }
17921795
1793- public partial record Mutable
1794- {
1795- [JsonProperty("mutable", Required = Required.Always)]
1796- public long MutableMutable { get; set; }
1797- }
1798-
1799- public partial record Mutating
1800- {
1801- [JsonProperty("mutating", Required = Required.Always)]
1802- public long MutatingMutating { get; set; }
1803- }
1804-
18051796 public partial record Obj4
18061797 {
18071798 [JsonProperty("dummy", Required = Required.Always)]
18081799 public long Dummy { get; set; }
18091800
1801+ [JsonProperty("mutable", Required = Required.Always)]
1802+ public Mutable Mutable { get; set; }
1803+
1804+ [JsonProperty("mutating", Required = Required.Always)]
1805+ public Mutating Mutating { get; set; }
1806+
18101807 [JsonProperty("namespace", Required = Required.Always)]
18111808 public Namespace Namespace { get; set; }
18121809
@@ -1882,9 +1879,6 @@ namespace QuickType
18821879 [JsonProperty("protocol", Required = Required.Always)]
18831880 public ProtocolClass Obj4Protocol { get; set; }
18841881
1885- [JsonProperty("required", Required = Required.Always)]
1886- public RequiredClass Obj4Required { get; set; }
1887-
18881882 [JsonProperty("object", Required = Required.Always)]
18891883 public Object Object { get; set; }
18901884
@@ -1903,6 +1897,12 @@ namespace QuickType
19031897 [JsonProperty("of", Required = Required.Always)]
19041898 public Of Of { get; set; }
19051899
1900+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
1901+ public OffsetDateTime OffsetDateTime { get; set; }
1902+
1903+ [JsonProperty("OffsetTime", Required = Required.Always)]
1904+ public OffsetTime OffsetTime { get; set; }
1905+
19061906 [JsonProperty("oneway", Required = Required.Always)]
19071907 public Oneway Oneway { get; set; }
19081908
@@ -1989,15 +1989,18 @@ namespace QuickType
19891989
19901990 [JsonProperty("reinterpret_cast", Required = Required.Always)]
19911991 public ReinterpretCast ReinterpretCast { get; set; }
1992+ }
19921993
1993- [JsonProperty("repeat", Required = Required.Always)]
1994- public Repeat Repeat { get; set; }
1995-
1996- [JsonProperty("require", Required = Required.Always)]
1997- public Require Require { get; set; }
1994+ public partial record Mutable
1995+ {
1996+ [JsonProperty("mutable", Required = Required.Always)]
1997+ public long MutableMutable { get; set; }
1998+ }
19981999
1999- [JsonProperty("requires", Required = Required.Always)]
2000- public Requires Requires { get; set; }
2000+ public partial record Mutating
2001+ {
2002+ [JsonProperty("mutating", Required = Required.Always)]
2003+ public long MutatingMutating { get; set; }
20012004 }
20022005
20032006 public partial record Namespace
@@ -2150,12 +2153,6 @@ namespace QuickType
21502153 public long Protocol { get; set; }
21512154 }
21522155
2153- public partial record RequiredClass
2154- {
2155- [JsonProperty("required", Required = Required.Always)]
2156- public long RequiredRequired { get; set; }
2157- }
2158-
21592156 public partial record Object
21602157 {
21612158 [JsonProperty("object", Required = Required.Always)]
@@ -2192,6 +2189,18 @@ namespace QuickType
21922189 public long OfOf { get; set; }
21932190 }
21942191
2192+ public partial record OffsetDateTime
2193+ {
2194+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
2195+ public long OffsetDateTimeOffsetDateTime { get; set; }
2196+ }
2197+
2198+ public partial record OffsetTime
2199+ {
2200+ [JsonProperty("OffsetTime", Required = Required.Always)]
2201+ public long OffsetTimeOffsetTime { get; set; }
2202+ }
2203+
21952204 public partial record Oneway
21962205 {
21972206 [JsonProperty("oneway", Required = Required.Always)]
@@ -2366,24 +2375,6 @@ namespace QuickType
23662375 public long ReinterpretCastReinterpretCast { get; set; }
23672376 }
23682377
2369- public partial record Repeat
2370- {
2371- [JsonProperty("repeat", Required = Required.Always)]
2372- public long RepeatRepeat { get; set; }
2373- }
2374-
2375- public partial record Require
2376- {
2377- [JsonProperty("require", Required = Required.Always)]
2378- public long RequireRequire { get; set; }
2379- }
2380-
2381- public partial record Requires
2382- {
2383- [JsonProperty("requires", Required = Required.Always)]
2384- public long RequiresRequires { get; set; }
2385- }
2386-
23872378 public partial record Obj5
23882379 {
23892380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2392,6 +2383,9 @@ namespace QuickType
23922383 [JsonProperty("KSerializer", Required = Required.Always)]
23932384 public KSerializer KSerializer { get; set; }
23942385
2386+ [JsonProperty("required", Required = Required.Always)]
2387+ public RequiredClass Obj5Required { get; set; }
2388+
23952389 [JsonProperty("self", Required = Required.Always)]
23962390 public SelfClass Obj5Self { get; set; }
23972391
@@ -2404,12 +2398,18 @@ namespace QuickType
24042398 [JsonProperty("true", Required = Required.Always)]
24052399 public TrueClass Obj5True { get; set; }
24062400
2407- [JsonProperty("type", Required = Required.Always)]
2408- public Obj5Type Obj5Type { get; set; }
2409-
24102401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24112402 public PrimitiveKind PrimitiveKind { get; set; }
24122403
2404+ [JsonProperty("repeat", Required = Required.Always)]
2405+ public Repeat Repeat { get; set; }
2406+
2407+ [JsonProperty("require", Required = Required.Always)]
2408+ public Require Require { get; set; }
2409+
2410+ [JsonProperty("requires", Required = Required.Always)]
2411+ public Requires Requires { get; set; }
2412+
24132413 [JsonProperty("restrict", Required = Required.Always)]
24142414 public Restrict Restrict { get; set; }
24152415
@@ -2571,15 +2571,6 @@ namespace QuickType
25712571
25722572 [JsonProperty("True", Required = Required.Always)]
25732573 public True True { get; set; }
2574-
2575- [JsonProperty("try", Required = Required.Always)]
2576- public Try Try { get; set; }
2577-
2578- [JsonProperty("Type", Required = Required.Always)]
2579- public TypeClass Type { get; set; }
2580-
2581- [JsonProperty("typealias", Required = Required.Always)]
2582- public Typealias Typealias { get; set; }
25832574 }
25842575
25852576 public partial record KSerializer
@@ -2588,6 +2579,12 @@ namespace QuickType
25882579 public long KSerializerKSerializer { get; set; }
25892580 }
25902581
2582+ public partial record RequiredClass
2583+ {
2584+ [JsonProperty("required", Required = Required.Always)]
2585+ public long RequiredRequired { get; set; }
2586+ }
2587+
25912588 public partial record SelfClass
25922589 {
25932590 [JsonProperty("self", Required = Required.Always)]
@@ -2612,18 +2609,30 @@ namespace QuickType
26122609 public long True { get; set; }
26132610 }
26142611
2615- public partial record Obj5Type
2616- {
2617- [JsonProperty("type", Required = Required.Always)]
2618- public long Type { get; set; }
2619- }
2620-
26212612 public partial record PrimitiveKind
26222613 {
26232614 [JsonProperty("PrimitiveKind", Required = Required.Always)]
26242615 public long PrimitiveKindPrimitiveKind { get; set; }
26252616 }
26262617
2618+ public partial record Repeat
2619+ {
2620+ [JsonProperty("repeat", Required = Required.Always)]
2621+ public long RepeatRepeat { get; set; }
2622+ }
2623+
2624+ public partial record Require
2625+ {
2626+ [JsonProperty("require", Required = Required.Always)]
2627+ public long RequireRequire { get; set; }
2628+ }
2629+
2630+ public partial record Requires
2631+ {
2632+ [JsonProperty("requires", Required = Required.Always)]
2633+ public long RequiresRequires { get; set; }
2634+ }
2635+
26272636 public partial record Restrict
26282637 {
26292638 [JsonProperty("restrict", Required = Required.Always)]
@@ -2948,28 +2957,22 @@ namespace QuickType
29482957 public long TrueTrue { get; set; }
29492958 }
29502959
2951- public partial record Try
2960+ public partial record Obj6
29522961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
2965+ [JsonProperty("type", Required = Required.Always)]
2966+ public Obj6Type Obj6Type { get; set; }
2967+
29532968 [JsonProperty("try", Required = Required.Always)]
2954- public long TryTry { get; set; }
2955- }
2969+ public Try Try { get; set; }
29562970
2957- public partial record TypeClass
2958- {
29592971 [JsonProperty("Type", Required = Required.Always)]
2960- public long Type { get; set; }
2961- }
2972+ public TypeClass Type { get; set; }
29622973
2963- public partial record Typealias
2964- {
29652974 [JsonProperty("typealias", Required = Required.Always)]
2966- public long TypealiasTypealias { get; set; }
2967- }
2968-
2969- public partial record Obj6
2970- {
2971- [JsonProperty("dummy", Required = Required.Always)]
2972- public long Dummy { get; set; }
2975+ public Typealias Typealias { get; set; }
29732976
29742977 [JsonProperty("typedef", Required = Required.Always)]
29752978 public Typedef Typedef { get; set; }
@@ -3071,6 +3074,30 @@ namespace QuickType
30713074 public Yield Yield { get; set; }
30723075 }
30733076
3077+ public partial record Obj6Type
3078+ {
3079+ [JsonProperty("type", Required = Required.Always)]
3080+ public long Type { get; set; }
3081+ }
3082+
3083+ public partial record Try
3084+ {
3085+ [JsonProperty("try", Required = Required.Always)]
3086+ public long TryTry { get; set; }
3087+ }
3088+
3089+ public partial record TypeClass
3090+ {
3091+ [JsonProperty("Type", Required = Required.Always)]
3092+ public long Type { get; set; }
3093+ }
3094+
3095+ public partial record Typealias
3096+ {
3097+ [JsonProperty("typealias", Required = Required.Always)]
3098+ public long TypealiasTypealias { get; set; }
3099+ }
3100+
30743101 public partial record Typedef
30753102 {
30763103 [JsonProperty("typedef", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+133 −100
@@ -1695,6 +1695,10 @@ namespace QuickType
16951695 [JsonPropertyName("list")]
16961696 public List List { get; set; }
16971697
1698+ [JsonRequired]
1699+ [JsonPropertyName("LocalDate")]
1700+ public LocalDate LocalDate { get; set; }
1701+
16981702 [JsonRequired]
16991703 [JsonPropertyName("Locale")]
17001704 public Locale Locale { get; set; }
@@ -1730,14 +1734,6 @@ namespace QuickType
17301734 [JsonRequired]
17311735 [JsonPropertyName("module")]
17321736 public Module Module { get; set; }
1733-
1734- [JsonRequired]
1735- [JsonPropertyName("mutable")]
1736- public Mutable Mutable { get; set; }
1737-
1738- [JsonRequired]
1739- [JsonPropertyName("mutating")]
1740- public Mutating Mutating { get; set; }
17411737 }
17421738
17431739 public partial class Function
@@ -2118,6 +2114,13 @@ namespace QuickType
21182114 public long ListList { get; set; }
21192115 }
21202116
2117+ public partial class LocalDate
2118+ {
2119+ [JsonRequired]
2120+ [JsonPropertyName("LocalDate")]
2121+ public long LocalDateLocalDate { get; set; }
2122+ }
2123+
21212124 public partial class Locale
21222125 {
21232126 [JsonRequired]
@@ -2181,25 +2184,19 @@ namespace QuickType
21812184 public long ModuleModule { get; set; }
21822185 }
21832186
2184- public partial class Mutable
2187+ public partial class Obj4
21852188 {
21862189 [JsonRequired]
2187- [JsonPropertyName("mutable")]
2188- public long MutableMutable { get; set; }
2189- }
2190+ [JsonPropertyName("dummy")]
2191+ public long Dummy { get; set; }
21902192
2191- public partial class Mutating
2192- {
21932193 [JsonRequired]
2194- [JsonPropertyName("mutating")]
2195- public long MutatingMutating { get; set; }
2196- }
2194+ [JsonPropertyName("mutable")]
2195+ public Mutable Mutable { get; set; }
21972196
2198- public partial class Obj4
2199- {
22002197 [JsonRequired]
2201- [JsonPropertyName("dummy")]
2202- public long Dummy { get; set; }
2198+ [JsonPropertyName("mutating")]
2199+ public Mutating Mutating { get; set; }
22032200
22042201 [JsonRequired]
22052202 [JsonPropertyName("namespace")]
@@ -2297,10 +2294,6 @@ namespace QuickType
22972294 [JsonPropertyName("protocol")]
22982295 public ProtocolClass Obj4Protocol { get; set; }
22992296
2300- [JsonRequired]
2301- [JsonPropertyName("required")]
2302- public RequiredClass Obj4Required { get; set; }
2303-
23042297 [JsonRequired]
23052298 [JsonPropertyName("object")]
23062299 public Object Object { get; set; }
@@ -2325,6 +2318,14 @@ namespace QuickType
23252318 [JsonPropertyName("of")]
23262319 public Of Of { get; set; }
23272320
2321+ [JsonRequired]
2322+ [JsonPropertyName("OffsetDateTime")]
2323+ public OffsetDateTime OffsetDateTime { get; set; }
2324+
2325+ [JsonRequired]
2326+ [JsonPropertyName("OffsetTime")]
2327+ public OffsetTime OffsetTime { get; set; }
2328+
23282329 [JsonRequired]
23292330 [JsonPropertyName("oneway")]
23302331 public Oneway Oneway { get; set; }
@@ -2444,18 +2445,20 @@ namespace QuickType
24442445 [JsonRequired]
24452446 [JsonPropertyName("reinterpret_cast")]
24462447 public ReinterpretCast ReinterpretCast { get; set; }
2448+ }
24472449
2450+ public partial class Mutable
2451+ {
24482452 [JsonRequired]
2449- [JsonPropertyName("repeat")]
2450- public Repeat Repeat { get; set; }
2451-
2452- [JsonRequired]
2453- [JsonPropertyName("require")]
2454- public Require Require { get; set; }
2453+ [JsonPropertyName("mutable")]
2454+ public long MutableMutable { get; set; }
2455+ }
24552456
2457+ public partial class Mutating
2458+ {
24562459 [JsonRequired]
2457- [JsonPropertyName("requires")]
2458- public Requires Requires { get; set; }
2460+ [JsonPropertyName("mutating")]
2461+ public long MutatingMutating { get; set; }
24592462 }
24602463
24612464 public partial class Namespace
@@ -2626,13 +2629,6 @@ namespace QuickType
26262629 public long Protocol { get; set; }
26272630 }
26282631
2629- public partial class RequiredClass
2630- {
2631- [JsonRequired]
2632- [JsonPropertyName("required")]
2633- public long RequiredRequired { get; set; }
2634- }
2635-
26362632 public partial class Object
26372633 {
26382634 [JsonRequired]
@@ -2675,6 +2671,20 @@ namespace QuickType
26752671 public long OfOf { get; set; }
26762672 }
26772673
2674+ public partial class OffsetDateTime
2675+ {
2676+ [JsonRequired]
2677+ [JsonPropertyName("OffsetDateTime")]
2678+ public long OffsetDateTimeOffsetDateTime { get; set; }
2679+ }
2680+
2681+ public partial class OffsetTime
2682+ {
2683+ [JsonRequired]
2684+ [JsonPropertyName("OffsetTime")]
2685+ public long OffsetTimeOffsetTime { get; set; }
2686+ }
2687+
26782688 public partial class Oneway
26792689 {
26802690 [JsonRequired]
@@ -2885,27 +2895,6 @@ namespace QuickType
28852895 public long ReinterpretCastReinterpretCast { get; set; }
28862896 }
28872897
2888- public partial class Repeat
2889- {
2890- [JsonRequired]
2891- [JsonPropertyName("repeat")]
2892- public long RepeatRepeat { get; set; }
2893- }
2894-
2895- public partial class Require
2896- {
2897- [JsonRequired]
2898- [JsonPropertyName("require")]
2899- public long RequireRequire { get; set; }
2900- }
2901-
2902- public partial class Requires
2903- {
2904- [JsonRequired]
2905- [JsonPropertyName("requires")]
2906- public long RequiresRequires { get; set; }
2907- }
2908-
29092898 public partial class Obj5
29102899 {
29112900 [JsonRequired]
@@ -2916,6 +2905,10 @@ namespace QuickType
29162905 [JsonPropertyName("KSerializer")]
29172906 public KSerializer KSerializer { get; set; }
29182907
2908+ [JsonRequired]
2909+ [JsonPropertyName("required")]
2910+ public RequiredClass Obj5Required { get; set; }
2911+
29192912 [JsonRequired]
29202913 [JsonPropertyName("self")]
29212914 public SelfClass Obj5Self { get; set; }
@@ -2932,14 +2925,22 @@ namespace QuickType
29322925 [JsonPropertyName("true")]
29332926 public TrueClass Obj5True { get; set; }
29342927
2935- [JsonRequired]
2936- [JsonPropertyName("type")]
2937- public Obj5Type Obj5Type { get; set; }
2938-
29392928 [JsonRequired]
29402929 [JsonPropertyName("PrimitiveKind")]
29412930 public PrimitiveKind PrimitiveKind { get; set; }
29422931
2932+ [JsonRequired]
2933+ [JsonPropertyName("repeat")]
2934+ public Repeat Repeat { get; set; }
2935+
2936+ [JsonRequired]
2937+ [JsonPropertyName("require")]
2938+ public Require Require { get; set; }
2939+
2940+ [JsonRequired]
2941+ [JsonPropertyName("requires")]
2942+ public Requires Requires { get; set; }
2943+
29432944 [JsonRequired]
29442945 [JsonPropertyName("restrict")]
29452946 public Restrict Restrict { get; set; }
@@ -3155,18 +3156,6 @@ namespace QuickType
31553156 [JsonRequired]
31563157 [JsonPropertyName("True")]
31573158 public True True { get; set; }
3158-
3159- [JsonRequired]
3160- [JsonPropertyName("try")]
3161- public Try Try { get; set; }
3162-
3163- [JsonRequired]
3164- [JsonPropertyName("Type")]
3165- public TypeClass Type { get; set; }
3166-
3167- [JsonRequired]
3168- [JsonPropertyName("typealias")]
3169- public Typealias Typealias { get; set; }
31703159 }
31713160
31723161 public partial class KSerializer
@@ -3176,6 +3165,13 @@ namespace QuickType
31763165 public long KSerializerKSerializer { get; set; }
31773166 }
31783167
3168+ public partial class RequiredClass
3169+ {
3170+ [JsonRequired]
3171+ [JsonPropertyName("required")]
3172+ public long RequiredRequired { get; set; }
3173+ }
3174+
31793175 public partial class SelfClass
31803176 {
31813177 [JsonRequired]
@@ -3204,18 +3200,32 @@ namespace QuickType
32043200 public long True { get; set; }
32053201 }
32063202
3207- public partial class Obj5Type
3203+ public partial class PrimitiveKind
32083204 {
32093205 [JsonRequired]
3210- [JsonPropertyName("type")]
3211- public long Type { get; set; }
3206+ [JsonPropertyName("PrimitiveKind")]
3207+ public long PrimitiveKindPrimitiveKind { get; set; }
32123208 }
32133209
3214- public partial class PrimitiveKind
3210+ public partial class Repeat
32153211 {
32163212 [JsonRequired]
3217- [JsonPropertyName("PrimitiveKind")]
3218- public long PrimitiveKindPrimitiveKind { get; set; }
3213+ [JsonPropertyName("repeat")]
3214+ public long RepeatRepeat { get; set; }
3215+ }
3216+
3217+ public partial class Require
3218+ {
3219+ [JsonRequired]
3220+ [JsonPropertyName("require")]
3221+ public long RequireRequire { get; set; }
3222+ }
3223+
3224+ public partial class Requires
3225+ {
3226+ [JsonRequired]
3227+ [JsonPropertyName("requires")]
3228+ public long RequiresRequires { get; set; }
32193229 }
32203230
32213231 public partial class Restrict
@@ -3596,32 +3606,27 @@ namespace QuickType
35963606 public long TrueTrue { get; set; }
35973607 }
35983608
3599- public partial class Try
3609+ public partial class Obj6
36003610 {
3611+ [JsonRequired]
3612+ [JsonPropertyName("dummy")]
3613+ public long Dummy { get; set; }
3614+
3615+ [JsonRequired]
3616+ [JsonPropertyName("type")]
3617+ public Obj6Type Obj6Type { get; set; }
3618+
36013619 [JsonRequired]
36023620 [JsonPropertyName("try")]
3603- public long TryTry { get; set; }
3604- }
3621+ public Try Try { get; set; }
36053622
3606- public partial class TypeClass
3607- {
36083623 [JsonRequired]
36093624 [JsonPropertyName("Type")]
3610- public long Type { get; set; }
3611- }
3625+ public TypeClass Type { get; set; }
36123626
3613- public partial class Typealias
3614- {
36153627 [JsonRequired]
36163628 [JsonPropertyName("typealias")]
3617- public long TypealiasTypealias { get; set; }
3618- }
3619-
3620- public partial class Obj6
3621- {
3622- [JsonRequired]
3623- [JsonPropertyName("dummy")]
3624- public long Dummy { get; set; }
3629+ public Typealias Typealias { get; set; }
36253630
36263631 [JsonRequired]
36273632 [JsonPropertyName("typedef")]
@@ -3756,6 +3761,34 @@ namespace QuickType
37563761 public Yield Yield { get; set; }
37573762 }
37583763
3764+ public partial class Obj6Type
3765+ {
3766+ [JsonRequired]
3767+ [JsonPropertyName("type")]
3768+ public long Type { get; set; }
3769+ }
3770+
3771+ public partial class Try
3772+ {
3773+ [JsonRequired]
3774+ [JsonPropertyName("try")]
3775+ public long TryTry { get; set; }
3776+ }
3777+
3778+ public partial class TypeClass
3779+ {
3780+ [JsonRequired]
3781+ [JsonPropertyName("Type")]
3782+ public long Type { get; set; }
3783+ }
3784+
3785+ public partial class Typealias
3786+ {
3787+ [JsonRequired]
3788+ [JsonPropertyName("typealias")]
3789+ public long TypealiasTypealias { get; set; }
3790+ }
3791+
37593792 public partial class Typedef
37603793 {
37613794 [JsonRequired]
Mcsharpdefault / QuickType.cs+113 −86
@@ -1378,6 +1378,9 @@ namespace QuickType
13781378 [JsonProperty("list", Required = Required.Always)]
13791379 public List List { get; set; }
13801380
1381+ [JsonProperty("LocalDate", Required = Required.Always)]
1382+ public LocalDate LocalDate { get; set; }
1383+
13811384 [JsonProperty("Locale", Required = Required.Always)]
13821385 public Locale Locale { get; set; }
13831386
@@ -1404,12 +1407,6 @@ namespace QuickType
14041407
14051408 [JsonProperty("module", Required = Required.Always)]
14061409 public Module Module { get; set; }
1407-
1408- [JsonProperty("mutable", Required = Required.Always)]
1409- public Mutable Mutable { get; set; }
1410-
1411- [JsonProperty("mutating", Required = Required.Always)]
1412- public Mutating Mutating { get; set; }
14131410 }
14141411
14151412 public partial class Function
@@ -1736,6 +1733,12 @@ namespace QuickType
17361733 public long ListList { get; set; }
17371734 }
17381735
1736+ public partial class LocalDate
1737+ {
1738+ [JsonProperty("LocalDate", Required = Required.Always)]
1739+ public long LocalDateLocalDate { get; set; }
1740+ }
1741+
17391742 public partial class Locale
17401743 {
17411744 [JsonProperty("Locale", Required = Required.Always)]
@@ -1790,23 +1793,17 @@ namespace QuickType
17901793 public long ModuleModule { get; set; }
17911794 }
17921795
1793- public partial class Mutable
1794- {
1795- [JsonProperty("mutable", Required = Required.Always)]
1796- public long MutableMutable { get; set; }
1797- }
1798-
1799- public partial class Mutating
1800- {
1801- [JsonProperty("mutating", Required = Required.Always)]
1802- public long MutatingMutating { get; set; }
1803- }
1804-
18051796 public partial class Obj4
18061797 {
18071798 [JsonProperty("dummy", Required = Required.Always)]
18081799 public long Dummy { get; set; }
18091800
1801+ [JsonProperty("mutable", Required = Required.Always)]
1802+ public Mutable Mutable { get; set; }
1803+
1804+ [JsonProperty("mutating", Required = Required.Always)]
1805+ public Mutating Mutating { get; set; }
1806+
18101807 [JsonProperty("namespace", Required = Required.Always)]
18111808 public Namespace Namespace { get; set; }
18121809
@@ -1879,9 +1876,6 @@ namespace QuickType
18791876 [JsonProperty("protocol", Required = Required.Always)]
18801877 public ProtocolClass Obj4Protocol { get; set; }
18811878
1882- [JsonProperty("required", Required = Required.Always)]
1883- public RequiredClass Obj4Required { get; set; }
1884-
18851879 [JsonProperty("object", Required = Required.Always)]
18861880 public Object Object { get; set; }
18871881
@@ -1900,6 +1894,12 @@ namespace QuickType
19001894 [JsonProperty("of", Required = Required.Always)]
19011895 public Of Of { get; set; }
19021896
1897+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
1898+ public OffsetDateTime OffsetDateTime { get; set; }
1899+
1900+ [JsonProperty("OffsetTime", Required = Required.Always)]
1901+ public OffsetTime OffsetTime { get; set; }
1902+
19031903 [JsonProperty("oneway", Required = Required.Always)]
19041904 public Oneway Oneway { get; set; }
19051905
@@ -1989,15 +1989,18 @@ namespace QuickType
19891989
19901990 [JsonProperty("reinterpret_cast", Required = Required.Always)]
19911991 public ReinterpretCast ReinterpretCast { get; set; }
1992+ }
19921993
1993- [JsonProperty("repeat", Required = Required.Always)]
1994- public Repeat Repeat { get; set; }
1995-
1996- [JsonProperty("require", Required = Required.Always)]
1997- public Require Require { get; set; }
1994+ public partial class Mutable
1995+ {
1996+ [JsonProperty("mutable", Required = Required.Always)]
1997+ public long MutableMutable { get; set; }
1998+ }
19981999
1999- [JsonProperty("requires", Required = Required.Always)]
2000- public Requires Requires { get; set; }
2000+ public partial class Mutating
2001+ {
2002+ [JsonProperty("mutating", Required = Required.Always)]
2003+ public long MutatingMutating { get; set; }
20012004 }
20022005
20032006 public partial class Namespace
@@ -2144,12 +2147,6 @@ namespace QuickType
21442147 public long Protocol { get; set; }
21452148 }
21462149
2147- public partial class RequiredClass
2148- {
2149- [JsonProperty("required", Required = Required.Always)]
2150- public long RequiredRequired { get; set; }
2151- }
2152-
21532150 public partial class Object
21542151 {
21552152 [JsonProperty("object", Required = Required.Always)]
@@ -2186,6 +2183,18 @@ namespace QuickType
21862183 public long OfOf { get; set; }
21872184 }
21882185
2186+ public partial class OffsetDateTime
2187+ {
2188+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
2189+ public long OffsetDateTimeOffsetDateTime { get; set; }
2190+ }
2191+
2192+ public partial class OffsetTime
2193+ {
2194+ [JsonProperty("OffsetTime", Required = Required.Always)]
2195+ public long OffsetTimeOffsetTime { get; set; }
2196+ }
2197+
21892198 public partial class Oneway
21902199 {
21912200 [JsonProperty("oneway", Required = Required.Always)]
@@ -2366,24 +2375,6 @@ namespace QuickType
23662375 public long ReinterpretCastReinterpretCast { get; set; }
23672376 }
23682377
2369- public partial class Repeat
2370- {
2371- [JsonProperty("repeat", Required = Required.Always)]
2372- public long RepeatRepeat { get; set; }
2373- }
2374-
2375- public partial class Require
2376- {
2377- [JsonProperty("require", Required = Required.Always)]
2378- public long RequireRequire { get; set; }
2379- }
2380-
2381- public partial class Requires
2382- {
2383- [JsonProperty("requires", Required = Required.Always)]
2384- public long RequiresRequires { get; set; }
2385- }
2386-
23872378 public partial class Obj5
23882379 {
23892380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2392,6 +2383,9 @@ namespace QuickType
23922383 [JsonProperty("KSerializer", Required = Required.Always)]
23932384 public KSerializer KSerializer { get; set; }
23942385
2386+ [JsonProperty("required", Required = Required.Always)]
2387+ public RequiredClass Obj5Required { get; set; }
2388+
23952389 [JsonProperty("self", Required = Required.Always)]
23962390 public SelfClass Obj5Self { get; set; }
23972391
@@ -2404,12 +2398,18 @@ namespace QuickType
24042398 [JsonProperty("true", Required = Required.Always)]
24052399 public TrueClass Obj5True { get; set; }
24062400
2407- [JsonProperty("type", Required = Required.Always)]
2408- public Obj5Type Obj5Type { get; set; }
2409-
24102401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24112402 public PrimitiveKind PrimitiveKind { get; set; }
24122403
2404+ [JsonProperty("repeat", Required = Required.Always)]
2405+ public Repeat Repeat { get; set; }
2406+
2407+ [JsonProperty("require", Required = Required.Always)]
2408+ public Require Require { get; set; }
2409+
2410+ [JsonProperty("requires", Required = Required.Always)]
2411+ public Requires Requires { get; set; }
2412+
24132413 [JsonProperty("restrict", Required = Required.Always)]
24142414 public Restrict Restrict { get; set; }
24152415
@@ -2571,15 +2571,6 @@ namespace QuickType
25712571
25722572 [JsonProperty("True", Required = Required.Always)]
25732573 public True True { get; set; }
2574-
2575- [JsonProperty("try", Required = Required.Always)]
2576- public Try Try { get; set; }
2577-
2578- [JsonProperty("Type", Required = Required.Always)]
2579- public TypeClass Type { get; set; }
2580-
2581- [JsonProperty("typealias", Required = Required.Always)]
2582- public Typealias Typealias { get; set; }
25832574 }
25842575
25852576 public partial class KSerializer
@@ -2588,6 +2579,12 @@ namespace QuickType
25882579 public long KSerializerKSerializer { get; set; }
25892580 }
25902581
2582+ public partial class RequiredClass
2583+ {
2584+ [JsonProperty("required", Required = Required.Always)]
2585+ public long RequiredRequired { get; set; }
2586+ }
2587+
25912588 public partial class SelfClass
25922589 {
25932590 [JsonProperty("self", Required = Required.Always)]
@@ -2612,18 +2609,30 @@ namespace QuickType
26122609 public long True { get; set; }
26132610 }
26142611
2615- public partial class Obj5Type
2616- {
2617- [JsonProperty("type", Required = Required.Always)]
2618- public long Type { get; set; }
2619- }
2620-
26212612 public partial class PrimitiveKind
26222613 {
26232614 [JsonProperty("PrimitiveKind", Required = Required.Always)]
26242615 public long PrimitiveKindPrimitiveKind { get; set; }
26252616 }
26262617
2618+ public partial class Repeat
2619+ {
2620+ [JsonProperty("repeat", Required = Required.Always)]
2621+ public long RepeatRepeat { get; set; }
2622+ }
2623+
2624+ public partial class Require
2625+ {
2626+ [JsonProperty("require", Required = Required.Always)]
2627+ public long RequireRequire { get; set; }
2628+ }
2629+
2630+ public partial class Requires
2631+ {
2632+ [JsonProperty("requires", Required = Required.Always)]
2633+ public long RequiresRequires { get; set; }
2634+ }
2635+
26272636 public partial class Restrict
26282637 {
26292638 [JsonProperty("restrict", Required = Required.Always)]
@@ -2948,28 +2957,22 @@ namespace QuickType
29482957 public long TrueTrue { get; set; }
29492958 }
29502959
2951- public partial class Try
2960+ public partial class Obj6
29522961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
2965+ [JsonProperty("type", Required = Required.Always)]
2966+ public Obj6Type Obj6Type { get; set; }
2967+
29532968 [JsonProperty("try", Required = Required.Always)]
2954- public long TryTry { get; set; }
2955- }
2969+ public Try Try { get; set; }
29562970
2957- public partial class TypeClass
2958- {
29592971 [JsonProperty("Type", Required = Required.Always)]
2960- public long Type { get; set; }
2961- }
2972+ public TypeClass Type { get; set; }
29622973
2963- public partial class Typealias
2964- {
29652974 [JsonProperty("typealias", Required = Required.Always)]
2966- public long TypealiasTypealias { get; set; }
2967- }
2968-
2969- public partial class Obj6
2970- {
2971- [JsonProperty("dummy", Required = Required.Always)]
2972- public long Dummy { get; set; }
2975+ public Typealias Typealias { get; set; }
29732976
29742977 [JsonProperty("typedef", Required = Required.Always)]
29752978 public Typedef Typedef { get; set; }
@@ -3071,6 +3074,30 @@ namespace QuickType
30713074 public Yield Yield { get; set; }
30723075 }
30733076
3077+ public partial class Obj6Type
3078+ {
3079+ [JsonProperty("type", Required = Required.Always)]
3080+ public long Type { get; set; }
3081+ }
3082+
3083+ public partial class Try
3084+ {
3085+ [JsonProperty("try", Required = Required.Always)]
3086+ public long TryTry { get; set; }
3087+ }
3088+
3089+ public partial class TypeClass
3090+ {
3091+ [JsonProperty("Type", Required = Required.Always)]
3092+ public long Type { get; set; }
3093+ }
3094+
3095+ public partial class Typealias
3096+ {
3097+ [JsonProperty("typealias", Required = Required.Always)]
3098+ public long TypealiasTypealias { get; set; }
3099+ }
3100+
30743101 public partial class Typedef
30753102 {
30763103 [JsonProperty("typedef", Required = Required.Always)]
Mdartdefault / TopLevel.dart+256 −196
@@ -2697,6 +2697,7 @@ class Obj3 {
26972697 final Left left;
26982698 final Let let;
26992699 final ListClass list;
2700+ final LocalDate localDate;
27002701 final Locale locale;
27012702 final Lock lock;
27022703 final Long long;
@@ -2706,8 +2707,6 @@ class Obj3 {
27062707 final MarshalJson marshalJson;
27072708 final MetadataPropertyHandling metadataPropertyHandling;
27082709 final Module module;
2709- final Mutable mutable;
2710- final Mutating mutating;
27112710 final Get obj3Get;
27122711 final HashCode obj3HashCode;
27132712 final If obj3If;
@@ -2765,6 +2764,7 @@ class Obj3 {
27652764 required this.left,
27662765 required this.let,
27672766 required this.list,
2767+ required this.localDate,
27682768 required this.locale,
27692769 required this.lock,
27702770 required this.long,
@@ -2774,8 +2774,6 @@ class Obj3 {
27742774 required this.marshalJson,
27752775 required this.metadataPropertyHandling,
27762776 required this.module,
2777- required this.mutable,
2778- required this.mutating,
27792777 required this.obj3Get,
27802778 required this.obj3HashCode,
27812779 required this.obj3If,
@@ -2834,6 +2832,7 @@ class Obj3 {
28342832 left: Left.fromJson(json["left"]),
28352833 let: Let.fromJson(json["let"]),
28362834 list: ListClass.fromJson(json["list"]),
2835+ localDate: LocalDate.fromJson(json["LocalDate"]),
28372836 locale: Locale.fromJson(json["Locale"]),
28382837 lock: Lock.fromJson(json["lock"]),
28392838 long: Long.fromJson(json["long"]),
@@ -2843,8 +2842,6 @@ class Obj3 {
28432842 marshalJson: MarshalJson.fromJson(json["MarshalJSON"]),
28442843 metadataPropertyHandling: MetadataPropertyHandling.fromJson(json["metadata_property_handling"]),
28452844 module: Module.fromJson(json["module"]),
2846- mutable: Mutable.fromJson(json["mutable"]),
2847- mutating: Mutating.fromJson(json["mutating"]),
28482845 obj3Get: Get.fromJson(json["get"]),
28492846 obj3HashCode: HashCode.fromJson(json["hashCode"]),
28502847 obj3If: If.fromJson(json["if"]),
@@ -2903,6 +2900,7 @@ class Obj3 {
29032900 "left": left.toJson(),
29042901 "let": let.toJson(),
29052902 "list": list.toJson(),
2903+ "LocalDate": localDate.toJson(),
29062904 "Locale": locale.toJson(),
29072905 "lock": lock.toJson(),
29082906 "long": long.toJson(),
@@ -2912,8 +2910,6 @@ class Obj3 {
29122910 "MarshalJSON": marshalJson.toJson(),
29132911 "metadata_property_handling": metadataPropertyHandling.toJson(),
29142912 "module": module.toJson(),
2915- "mutable": mutable.toJson(),
2916- "mutating": mutating.toJson(),
29172913 "get": obj3Get.toJson(),
29182914 "hashCode": obj3HashCode.toJson(),
29192915 "if": obj3If.toJson(),
@@ -3646,6 +3642,22 @@ class ListClass {
36463642 };
36473643 }
36483644
3645+class LocalDate {
3646+ final int localDate;
3647+
3648+ LocalDate({
3649+ required this.localDate,
3650+ });
3651+
3652+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
3653+ localDate: json["LocalDate"],
3654+ );
3655+
3656+ Map<String, dynamic> toJson() => {
3657+ "LocalDate": localDate,
3658+ };
3659+}
3660+
36493661 class Locale {
36503662 final int locale;
36513663
@@ -3790,38 +3802,6 @@ class Module {
37903802 };
37913803 }
37923804
3793-class Mutable {
3794- final int mutable;
3795-
3796- Mutable({
3797- required this.mutable,
3798- });
3799-
3800- factory Mutable.fromJson(Map<String, dynamic> json) => Mutable(
3801- mutable: json["mutable"],
3802- );
3803-
3804- Map<String, dynamic> toJson() => {
3805- "mutable": mutable,
3806- };
3807-}
3808-
3809-class Mutating {
3810- final int mutating;
3811-
3812- Mutating({
3813- required this.mutating,
3814- });
3815-
3816- factory Mutating.fromJson(Map<String, dynamic> json) => Mutating(
3817- mutating: json["mutating"],
3818- );
3819-
3820- Map<String, dynamic> toJson() => {
3821- "mutating": mutating,
3822- };
3823-}
3824-
38253805 class Get {
38263806 final int getGet;
38273807
@@ -3968,6 +3948,8 @@ class Is {
39683948
39693949 class Obj4 {
39703950 final int dummy;
3951+ final Mutable mutable;
3952+ final Mutating mutating;
39713953 final Namespace namespace;
39723954 final Native native;
39733955 final Newtonsoft newtonsoft;
@@ -3998,6 +3980,8 @@ class Obj4 {
39983980 final ObjectReader objectReader;
39993981 final ObjectWriter objectWriter;
40003982 final Of of;
3983+ final OffsetDateTime offsetDateTime;
3984+ final OffsetTime offsetTime;
40013985 final Oneway oneway;
40023986 final Open open;
40033987 final Optional optional;
@@ -4028,13 +4012,11 @@ class Obj4 {
40284012 final RegExpClass regExp;
40294013 final Register register;
40304014 final ReinterpretCast reinterpretCast;
4031- final Repeat repeat;
4032- final Require require;
4033- final Required required;
4034- final Requires requires;
40354015
40364016 Obj4({
40374017 required this.dummy,
4018+ required this.mutable,
4019+ required this.mutating,
40384020 required this.namespace,
40394021 required this.native,
40404022 required this.newtonsoft,
@@ -4065,6 +4047,8 @@ class Obj4 {
40654047 required this.objectReader,
40664048 required this.objectWriter,
40674049 required this.of,
4050+ required this.offsetDateTime,
4051+ required this.offsetTime,
40684052 required this.oneway,
40694053 required this.open,
40704054 required this.optional,
@@ -4095,14 +4079,12 @@ class Obj4 {
40954079 required this.regExp,
40964080 required this.register,
40974081 required this.reinterpretCast,
4098- required this.repeat,
4099- required this.require,
4100- required this.required,
4101- required this.requires,
41024082 });
41034083
41044084 factory Obj4.fromJson(Map<String, dynamic> json) => Obj4(
41054085 dummy: json["dummy"],
4086+ mutable: Mutable.fromJson(json["mutable"]),
4087+ mutating: Mutating.fromJson(json["mutating"]),
41064088 namespace: Namespace.fromJson(json["namespace"]),
41074089 native: Native.fromJson(json["native"]),
41084090 newtonsoft: Newtonsoft.fromJson(json["newtonsoft"]),
@@ -4133,6 +4115,8 @@ class Obj4 {
41334115 objectReader: ObjectReader.fromJson(json["ObjectReader"]),
41344116 objectWriter: ObjectWriter.fromJson(json["ObjectWriter"]),
41354117 of: Of.fromJson(json["of"]),
4118+ offsetDateTime: OffsetDateTime.fromJson(json["OffsetDateTime"]),
4119+ offsetTime: OffsetTime.fromJson(json["OffsetTime"]),
41364120 oneway: Oneway.fromJson(json["oneway"]),
41374121 open: Open.fromJson(json["open"]),
41384122 optional: Optional.fromJson(json["optional"]),
@@ -4163,14 +4147,12 @@ class Obj4 {
41634147 regExp: RegExpClass.fromJson(json["RegExp"]),
41644148 register: Register.fromJson(json["register"]),
41654149 reinterpretCast: ReinterpretCast.fromJson(json["reinterpret_cast"]),
4166- repeat: Repeat.fromJson(json["repeat"]),
4167- require: Require.fromJson(json["require"]),
4168- required: Required.fromJson(json["required"]),
4169- requires: Requires.fromJson(json["requires"]),
41704150 );
41714151
41724152 Map<String, dynamic> toJson() => {
41734153 "dummy": dummy,
4154+ "mutable": mutable.toJson(),
4155+ "mutating": mutating.toJson(),
41744156 "namespace": namespace.toJson(),
41754157 "native": native.toJson(),
41764158 "newtonsoft": newtonsoft.toJson(),
@@ -4201,6 +4183,8 @@ class Obj4 {
42014183 "ObjectReader": objectReader.toJson(),
42024184 "ObjectWriter": objectWriter.toJson(),
42034185 "of": of.toJson(),
4186+ "OffsetDateTime": offsetDateTime.toJson(),
4187+ "OffsetTime": offsetTime.toJson(),
42044188 "oneway": oneway.toJson(),
42054189 "open": open.toJson(),
42064190 "optional": optional.toJson(),
@@ -4231,10 +4215,38 @@ class Obj4 {
42314215 "RegExp": regExp.toJson(),
42324216 "register": register.toJson(),
42334217 "reinterpret_cast": reinterpretCast.toJson(),
4234- "repeat": repeat.toJson(),
4235- "require": require.toJson(),
4236- "required": required.toJson(),
4237- "requires": requires.toJson(),
4218+ };
4219+}
4220+
4221+class Mutable {
4222+ final int mutable;
4223+
4224+ Mutable({
4225+ required this.mutable,
4226+ });
4227+
4228+ factory Mutable.fromJson(Map<String, dynamic> json) => Mutable(
4229+ mutable: json["mutable"],
4230+ );
4231+
4232+ Map<String, dynamic> toJson() => {
4233+ "mutable": mutable,
4234+ };
4235+}
4236+
4237+class Mutating {
4238+ final int mutating;
4239+
4240+ Mutating({
4241+ required this.mutating,
4242+ });
4243+
4244+ factory Mutating.fromJson(Map<String, dynamic> json) => Mutating(
4245+ mutating: json["mutating"],
4246+ );
4247+
4248+ Map<String, dynamic> toJson() => {
4249+ "mutating": mutating,
42384250 };
42394251 }
42404252
@@ -4718,6 +4730,38 @@ class Of {
47184730 };
47194731 }
47204732
4733+class OffsetDateTime {
4734+ final int offsetDateTime;
4735+
4736+ OffsetDateTime({
4737+ required this.offsetDateTime,
4738+ });
4739+
4740+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
4741+ offsetDateTime: json["OffsetDateTime"],
4742+ );
4743+
4744+ Map<String, dynamic> toJson() => {
4745+ "OffsetDateTime": offsetDateTime,
4746+ };
4747+}
4748+
4749+class OffsetTime {
4750+ final int offsetTime;
4751+
4752+ OffsetTime({
4753+ required this.offsetTime,
4754+ });
4755+
4756+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
4757+ offsetTime: json["OffsetTime"],
4758+ );
4759+
4760+ Map<String, dynamic> toJson() => {
4761+ "OffsetTime": offsetTime,
4762+ };
4763+}
4764+
47214765 class Oneway {
47224766 final int oneway;
47234767
@@ -5198,70 +5242,6 @@ class ReinterpretCast {
51985242 };
51995243 }
52005244
5201-class Repeat {
5202- final int repeat;
5203-
5204- Repeat({
5205- required this.repeat,
5206- });
5207-
5208- factory Repeat.fromJson(Map<String, dynamic> json) => Repeat(
5209- repeat: json["repeat"],
5210- );
5211-
5212- Map<String, dynamic> toJson() => {
5213- "repeat": repeat,
5214- };
5215-}
5216-
5217-class Require {
5218- final int require;
5219-
5220- Require({
5221- required this.require,
5222- });
5223-
5224- factory Require.fromJson(Map<String, dynamic> json) => Require(
5225- require: json["require"],
5226- );
5227-
5228- Map<String, dynamic> toJson() => {
5229- "require": require,
5230- };
5231-}
5232-
5233-class Required {
5234- final int required;
5235-
5236- Required({
5237- required this.required,
5238- });
5239-
5240- factory Required.fromJson(Map<String, dynamic> json) => Required(
5241- required: json["required"],
5242- );
5243-
5244- Map<String, dynamic> toJson() => {
5245- "required": required,
5246- };
5247-}
5248-
5249-class Requires {
5250- final int requires;
5251-
5252- Requires({
5253- required this.requires,
5254- });
5255-
5256- factory Requires.fromJson(Map<String, dynamic> json) => Requires(
5257- requires: json["requires"],
5258- );
5259-
5260- Map<String, dynamic> toJson() => {
5261- "requires": requires,
5262- };
5263-}
5264-
52655245 class Obj5 {
52665246 final int dummy;
52675247 final KSerializer kSerializer;
@@ -5277,10 +5257,12 @@ class Obj5 {
52775257 final ToJson obj5ToJson;
52785258 final ToString obj5ToString;
52795259 final True obj5True;
5280- final Try obj5Try;
5281- final TypeClass obj5Type;
52825260 final PrimitiveKind primitiveKind;
52835261 final TrueClass purpleTrue;
5262+ final Repeat repeat;
5263+ final Require require;
5264+ final Required required;
5265+ final Requires requires;
52845266 final Restrict restrict;
52855267 final Retain retain;
52865268 final Rethrows rethrows;
@@ -5326,8 +5308,6 @@ class Obj5 {
53265308 final ToDict toDict;
53275309 final TopLevelClass topLevel;
53285310 final Transient transient;
5329- final Type type;
5330- final Typealias typealias;
53315311
53325312 Obj5({
53335313 required this.dummy,
@@ -5344,10 +5324,12 @@ class Obj5 {
53445324 required this.obj5ToJson,
53455325 required this.obj5ToString,
53465326 required this.obj5True,
5347- required this.obj5Try,
5348- required this.obj5Type,
53495327 required this.primitiveKind,
53505328 required this.purpleTrue,
5329+ required this.repeat,
5330+ required this.require,
5331+ required this.required,
5332+ required this.requires,
53515333 required this.restrict,
53525334 required this.retain,
53535335 required this.rethrows,
@@ -5393,8 +5375,6 @@ class Obj5 {
53935375 required this.toDict,
53945376 required this.topLevel,
53955377 required this.transient,
5396- required this.type,
5397- required this.typealias,
53985378 });
53995379
54005380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
@@ -5412,10 +5392,12 @@ class Obj5 {
54125392 obj5ToJson: ToJson.fromJson(json["to_json"]),
54135393 obj5ToString: ToString.fromJson(json["toString"]),
54145394 obj5True: True.fromJson(json["True"]),
5415- obj5Try: Try.fromJson(json["try"]),
5416- obj5Type: TypeClass.fromJson(json["type"]),
54175395 primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]),
54185396 purpleTrue: TrueClass.fromJson(json["true"]),
5397+ repeat: Repeat.fromJson(json["repeat"]),
5398+ require: Require.fromJson(json["require"]),
5399+ required: Required.fromJson(json["required"]),
5400+ requires: Requires.fromJson(json["requires"]),
54195401 restrict: Restrict.fromJson(json["restrict"]),
54205402 retain: Retain.fromJson(json["retain"]),
54215403 rethrows: Rethrows.fromJson(json["rethrows"]),
@@ -5461,8 +5443,6 @@ class Obj5 {
54615443 toDict: ToDict.fromJson(json["to_dict"]),
54625444 topLevel: TopLevelClass.fromJson(json["top_level"]),
54635445 transient: Transient.fromJson(json["transient"]),
5464- type: Type.fromJson(json["Type"]),
5465- typealias: Typealias.fromJson(json["typealias"]),
54665446 );
54675447
54685448 Map<String, dynamic> toJson() => {
@@ -5480,10 +5460,12 @@ class Obj5 {
54805460 "to_json": obj5ToJson.toJson(),
54815461 "toString": obj5ToString.toJson(),
54825462 "True": obj5True.toJson(),
5483- "try": obj5Try.toJson(),
5484- "type": obj5Type.toJson(),
54855463 "PrimitiveKind": primitiveKind.toJson(),
54865464 "true": purpleTrue.toJson(),
5465+ "repeat": repeat.toJson(),
5466+ "require": require.toJson(),
5467+ "required": required.toJson(),
5468+ "requires": requires.toJson(),
54875469 "restrict": restrict.toJson(),
54885470 "retain": retain.toJson(),
54895471 "rethrows": rethrows.toJson(),
@@ -5529,8 +5511,6 @@ class Obj5 {
55295511 "to_dict": toDict.toJson(),
55305512 "top_level": topLevel.toJson(),
55315513 "transient": transient.toJson(),
5532- "Type": type.toJson(),
5533- "typealias": typealias.toJson(),
55345514 };
55355515 }
55365516
@@ -5742,67 +5722,99 @@ class True {
57425722 };
57435723 }
57445724
5745-class Try {
5746- final int tryTry;
5725+class PrimitiveKind {
5726+ final int primitiveKind;
57475727
5748- Try({
5749- required this.tryTry,
5728+ PrimitiveKind({
5729+ required this.primitiveKind,
57505730 });
57515731
5752- factory Try.fromJson(Map<String, dynamic> json) => Try(
5753- tryTry: json["try"],
5732+ factory PrimitiveKind.fromJson(Map<String, dynamic> json) => PrimitiveKind(
5733+ primitiveKind: json["PrimitiveKind"],
57545734 );
57555735
57565736 Map<String, dynamic> toJson() => {
5757- "try": tryTry,
5737+ "PrimitiveKind": primitiveKind,
57585738 };
57595739 }
57605740
5761-class TypeClass {
5762- final int type;
5741+class TrueClass {
5742+ final int trueTrue;
57635743
5764- TypeClass({
5765- required this.type,
5744+ TrueClass({
5745+ required this.trueTrue,
57665746 });
57675747
5768- factory TypeClass.fromJson(Map<String, dynamic> json) => TypeClass(
5769- type: json["type"],
5748+ factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass(
5749+ trueTrue: json["true"],
57705750 );
57715751
57725752 Map<String, dynamic> toJson() => {
5773- "type": type,
5753+ "true": trueTrue,
57745754 };
57755755 }
57765756
5777-class PrimitiveKind {
5778- final int primitiveKind;
5757+class Repeat {
5758+ final int repeat;
57795759
5780- PrimitiveKind({
5781- required this.primitiveKind,
5760+ Repeat({
5761+ required this.repeat,
57825762 });
57835763
5784- factory PrimitiveKind.fromJson(Map<String, dynamic> json) => PrimitiveKind(
5785- primitiveKind: json["PrimitiveKind"],
5764+ factory Repeat.fromJson(Map<String, dynamic> json) => Repeat(
5765+ repeat: json["repeat"],
57865766 );
57875767
57885768 Map<String, dynamic> toJson() => {
5789- "PrimitiveKind": primitiveKind,
5769+ "repeat": repeat,
57905770 };
57915771 }
57925772
5793-class TrueClass {
5794- final int trueTrue;
5773+class Require {
5774+ final int require;
57955775
5796- TrueClass({
5797- required this.trueTrue,
5776+ Require({
5777+ required this.require,
57985778 });
57995779
5800- factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass(
5801- trueTrue: json["true"],
5780+ factory Require.fromJson(Map<String, dynamic> json) => Require(
5781+ require: json["require"],
58025782 );
58035783
58045784 Map<String, dynamic> toJson() => {
5805- "true": trueTrue,
5785+ "require": require,
5786+ };
5787+}
5788+
5789+class Required {
5790+ final int required;
5791+
5792+ Required({
5793+ required this.required,
5794+ });
5795+
5796+ factory Required.fromJson(Map<String, dynamic> json) => Required(
5797+ required: json["required"],
5798+ );
5799+
5800+ Map<String, dynamic> toJson() => {
5801+ "required": required,
5802+ };
5803+}
5804+
5805+class Requires {
5806+ final int requires;
5807+
5808+ Requires({
5809+ required this.requires,
5810+ });
5811+
5812+ factory Requires.fromJson(Map<String, dynamic> json) => Requires(
5813+ requires: json["requires"],
5814+ );
5815+
5816+ Map<String, dynamic> toJson() => {
5817+ "requires": requires,
58065818 };
58075819 }
58085820
@@ -6526,46 +6538,18 @@ class Transient {
65266538 };
65276539 }
65286540
6529-class Type {
6530- final int type;
6531-
6532- Type({
6533- required this.type,
6534- });
6535-
6536- factory Type.fromJson(Map<String, dynamic> json) => Type(
6537- type: json["Type"],
6538- );
6539-
6540- Map<String, dynamic> toJson() => {
6541- "Type": type,
6542- };
6543-}
6544-
6545-class Typealias {
6546- final int typealias;
6547-
6548- Typealias({
6549- required this.typealias,
6550- });
6551-
6552- factory Typealias.fromJson(Map<String, dynamic> json) => Typealias(
6553- typealias: json["typealias"],
6554- );
6555-
6556- Map<String, dynamic> toJson() => {
6557- "typealias": typealias,
6558- };
6559-}
6560-
65616541 class Obj6 {
65626542 final int dummy;
6543+ final Try obj6Try;
6544+ final TypeClass obj6Type;
65636545 final Typedef obj6Typedef;
65646546 final Var obj6Var;
65656547 final Void obj6Void;
65666548 final While obj6While;
65676549 final With obj6With;
65686550 final Yield obj6Yield;
6551+ final Type type;
6552+ final Typealias typealias;
65696553 final Typeid typeid;
65706554 final Typename typename;
65716555 final Typeof typeof;
@@ -6596,12 +6580,16 @@ class Obj6 {
65966580
65976581 Obj6({
65986582 required this.dummy,
6583+ required this.obj6Try,
6584+ required this.obj6Type,
65996585 required this.obj6Typedef,
66006586 required this.obj6Var,
66016587 required this.obj6Void,
66026588 required this.obj6While,
66036589 required this.obj6With,
66046590 required this.obj6Yield,
6591+ required this.type,
6592+ required this.typealias,
66056593 required this.typeid,
66066594 required this.typename,
66076595 required this.typeof,
@@ -6633,12 +6621,16 @@ class Obj6 {
66336621
66346622 factory Obj6.fromJson(Map<String, dynamic> json) => Obj6(
66356623 dummy: json["dummy"],
6624+ obj6Try: Try.fromJson(json["try"]),
6625+ obj6Type: TypeClass.fromJson(json["type"]),
66366626 obj6Typedef: Typedef.fromJson(json["typedef"]),
66376627 obj6Var: Var.fromJson(json["var"]),
66386628 obj6Void: Void.fromJson(json["void"]),
66396629 obj6While: While.fromJson(json["while"]),
66406630 obj6With: With.fromJson(json["with"]),
66416631 obj6Yield: Yield.fromJson(json["yield"]),
6632+ type: Type.fromJson(json["Type"]),
6633+ typealias: Typealias.fromJson(json["typealias"]),
66426634 typeid: Typeid.fromJson(json["typeid"]),
66436635 typename: Typename.fromJson(json["typename"]),
66446636 typeof: Typeof.fromJson(json["typeof"]),
@@ -6670,12 +6662,16 @@ class Obj6 {
66706662
66716663 Map<String, dynamic> toJson() => {
66726664 "dummy": dummy,
6665+ "try": obj6Try.toJson(),
6666+ "type": obj6Type.toJson(),
66736667 "typedef": obj6Typedef.toJson(),
66746668 "var": obj6Var.toJson(),
66756669 "void": obj6Void.toJson(),
66766670 "while": obj6While.toJson(),
66776671 "with": obj6With.toJson(),
66786672 "yield": obj6Yield.toJson(),
6673+ "Type": type.toJson(),
6674+ "typealias": typealias.toJson(),
66796675 "typeid": typeid.toJson(),
66806676 "typename": typename.toJson(),
66816677 "typeof": typeof.toJson(),
@@ -6706,6 +6702,38 @@ class Obj6 {
67066702 };
67076703 }
67086704
6705+class Try {
6706+ final int tryTry;
6707+
6708+ Try({
6709+ required this.tryTry,
6710+ });
6711+
6712+ factory Try.fromJson(Map<String, dynamic> json) => Try(
6713+ tryTry: json["try"],
6714+ );
6715+
6716+ Map<String, dynamic> toJson() => {
6717+ "try": tryTry,
6718+ };
6719+}
6720+
6721+class TypeClass {
6722+ final int type;
6723+
6724+ TypeClass({
6725+ required this.type,
6726+ });
6727+
6728+ factory TypeClass.fromJson(Map<String, dynamic> json) => TypeClass(
6729+ type: json["type"],
6730+ );
6731+
6732+ Map<String, dynamic> toJson() => {
6733+ "type": type,
6734+ };
6735+}
6736+
67096737 class Typedef {
67106738 final int typedefTypedef;
67116739
@@ -6802,6 +6830,38 @@ class Yield {
68026830 };
68036831 }
68046832
6833+class Type {
6834+ final int type;
6835+
6836+ Type({
6837+ required this.type,
6838+ });
6839+
6840+ factory Type.fromJson(Map<String, dynamic> json) => Type(
6841+ type: json["Type"],
6842+ );
6843+
6844+ Map<String, dynamic> toJson() => {
6845+ "Type": type,
6846+ };
6847+}
6848+
6849+class Typealias {
6850+ final int typealias;
6851+
6852+ Typealias({
6853+ required this.typealias,
6854+ });
6855+
6856+ factory Typealias.fromJson(Map<String, dynamic> json) => Typealias(
6857+ typealias: json["typealias"],
6858+ );
6859+
6860+ Map<String, dynamic> toJson() => {
6861+ "typealias": typealias,
6862+ };
6863+}
6864+
68056865 class Typeid {
68066866 final int typeid;
Melixirdefault / QuickType.ex+577 −451
@@ -7533,6 +7533,45 @@ defmodule ListClass do
75337533 end
75347534 end
75357535
7536+defmodule LocalDate do
7537+ @enforce_keys [:local_date]
7538+ defstruct [:local_date]
7539+
7540+ @type t :: %__MODULE__{
7541+ local_date: integer()
7542+ }
7543+
7544+ def decode_local_date(value) when is_integer(value), do: value
7545+ def decode_local_date(_), do: {:error, "Unexpected type when decoding LocalDate.local_date"}
7546+
7547+ def encode_local_date(value) when is_integer(value), do: value
7548+ def encode_local_date(_), do: {:error, "Unexpected type when encoding LocalDate.local_date"}
7549+
7550+ def from_map(m) do
7551+ %LocalDate{
7552+ local_date: decode_local_date(m["LocalDate"]),
7553+ }
7554+ end
7555+
7556+ def from_json(json) do
7557+ json
7558+ |> Jason.decode!()
7559+ |> from_map()
7560+ end
7561+
7562+ def to_map(struct) do
7563+ %{
7564+ "LocalDate" => struct.local_date,
7565+ }
7566+ end
7567+
7568+ def to_json(struct) do
7569+ struct
7570+ |> to_map()
7571+ |> Jason.encode!()
7572+ end
7573+end
7574+
75367575 defmodule Locale do
75377576 @enforce_keys [:locale]
75387577 defstruct [:locale]
@@ -7884,84 +7923,6 @@ defmodule ModuleClass do
78847923 end
78857924 end
78867925
7887-defmodule Mutable do
7888- @enforce_keys [:mutable]
7889- defstruct [:mutable]
7890-
7891- @type t :: %__MODULE__{
7892- mutable: integer()
7893- }
7894-
7895- def decode_mutable(value) when is_integer(value), do: value
7896- def decode_mutable(_), do: {:error, "Unexpected type when decoding Mutable.mutable"}
7897-
7898- def encode_mutable(value) when is_integer(value), do: value
7899- def encode_mutable(_), do: {:error, "Unexpected type when encoding Mutable.mutable"}
7900-
7901- def from_map(m) do
7902- %Mutable{
7903- mutable: decode_mutable(m["mutable"]),
7904- }
7905- end
7906-
7907- def from_json(json) do
7908- json
7909- |> Jason.decode!()
7910- |> from_map()
7911- end
7912-
7913- def to_map(struct) do
7914- %{
7915- "mutable" => struct.mutable,
7916- }
7917- end
7918-
7919- def to_json(struct) do
7920- struct
7921- |> to_map()
7922- |> Jason.encode!()
7923- end
7924-end
7925-
7926-defmodule Mutating do
7927- @enforce_keys [:mutating]
7928- defstruct [:mutating]
7929-
7930- @type t :: %__MODULE__{
7931- mutating: integer()
7932- }
7933-
7934- def decode_mutating(value) when is_integer(value), do: value
7935- def decode_mutating(_), do: {:error, "Unexpected type when decoding Mutating.mutating"}
7936-
7937- def encode_mutating(value) when is_integer(value), do: value
7938- def encode_mutating(_), do: {:error, "Unexpected type when encoding Mutating.mutating"}
7939-
7940- def from_map(m) do
7941- %Mutating{
7942- mutating: decode_mutating(m["mutating"]),
7943- }
7944- end
7945-
7946- def from_json(json) do
7947- json
7948- |> Jason.decode!()
7949- |> from_map()
7950- end
7951-
7952- def to_map(struct) do
7953- %{
7954- "mutating" => struct.mutating,
7955- }
7956- end
7957-
7958- def to_json(struct) do
7959- struct
7960- |> to_map()
7961- |> Jason.encode!()
7962- end
7963-end
7964-
79657926 defmodule ImportClass do
79667927 @enforce_keys [:import_import]
79677928 defstruct [:import_import]
@@ -8041,8 +8002,8 @@ defmodule InClass do
80418002 end
80428003
80438004 defmodule Obj3 do
8044- @enforce_keys [:dummy, :function, :get, :global, :go, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :int_node, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :long_node, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :obj3_import, :obj3_in]
8045- defstruct [:dummy, :function, :get, :global, :go, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :int_node, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :long_node, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :obj3_import, :obj3_in]
8005+ @enforce_keys [:dummy, :function, :get, :global, :go, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :int_node, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :local_date, :locale, :lock, :long, :long_node, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :obj3_import, :obj3_in]
8006+ defstruct [:dummy, :function, :get, :global, :go, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :int_node, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :local_date, :locale, :lock, :long, :long_node, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :obj3_import, :obj3_in]
80468007
80478008 @type t :: %__MODULE__{
80488009 dummy: integer(),
@@ -8098,6 +8059,7 @@ defmodule Obj3 do
80988059 left: Left.t(),
80998060 let: Let.t(),
81008061 list: ListClass.t(),
8062+ local_date: LocalDate.t(),
81018063 locale: Locale.t(),
81028064 lock: Lock.t(),
81038065 long: Long.t(),
@@ -8107,8 +8069,6 @@ defmodule Obj3 do
81078069 marshal_json: MarshalJSON.t(),
81088070 metadata_property_handling: MetadataPropertyHandling.t(),
81098071 module: ModuleClass.t(),
8110- mutable: Mutable.t(),
8111- mutating: Mutating.t(),
81128072 obj3_import: ImportClass.t(),
81138073 obj3_in: InClass.t()
81148074 }
@@ -8174,6 +8134,7 @@ defmodule Obj3 do
81748134 left: Left.from_map(m["left"]),
81758135 let: Let.from_map(m["let"]),
81768136 list: ListClass.from_map(m["list"]),
8137+ local_date: LocalDate.from_map(m["LocalDate"]),
81778138 locale: Locale.from_map(m["Locale"]),
81788139 lock: Lock.from_map(m["lock"]),
81798140 long: Long.from_map(m["long"]),
@@ -8183,8 +8144,6 @@ defmodule Obj3 do
81838144 marshal_json: MarshalJSON.from_map(m["MarshalJSON"]),
81848145 metadata_property_handling: MetadataPropertyHandling.from_map(m["metadata_property_handling"]),
81858146 module: ModuleClass.from_map(m["module"]),
8186- mutable: Mutable.from_map(m["mutable"]),
8187- mutating: Mutating.from_map(m["mutating"]),
81888147 obj3_import: ImportClass.from_map(m["import"]),
81898148 obj3_in: InClass.from_map(m["in"]),
81908149 }
@@ -8251,6 +8210,7 @@ defmodule Obj3 do
82518210 "left" => Left.to_map(struct.left),
82528211 "let" => Let.to_map(struct.let),
82538212 "list" => ListClass.to_map(struct.list),
8213+ "LocalDate" => LocalDate.to_map(struct.local_date),
82548214 "Locale" => Locale.to_map(struct.locale),
82558215 "lock" => Lock.to_map(struct.lock),
82568216 "long" => Long.to_map(struct.long),
@@ -8260,8 +8220,6 @@ defmodule Obj3 do
82608220 "MarshalJSON" => MarshalJSON.to_map(struct.marshal_json),
82618221 "metadata_property_handling" => MetadataPropertyHandling.to_map(struct.metadata_property_handling),
82628222 "module" => ModuleClass.to_map(struct.module),
8263- "mutable" => Mutable.to_map(struct.mutable),
8264- "mutating" => Mutating.to_map(struct.mutating),
82658223 "import" => ImportClass.to_map(struct.obj3_import),
82668224 "in" => InClass.to_map(struct.obj3_in),
82678225 }
@@ -8274,6 +8232,84 @@ defmodule Obj3 do
82748232 end
82758233 end
82768234
8235+defmodule Mutable do
8236+ @enforce_keys [:mutable]
8237+ defstruct [:mutable]
8238+
8239+ @type t :: %__MODULE__{
8240+ mutable: integer()
8241+ }
8242+
8243+ def decode_mutable(value) when is_integer(value), do: value
8244+ def decode_mutable(_), do: {:error, "Unexpected type when decoding Mutable.mutable"}
8245+
8246+ def encode_mutable(value) when is_integer(value), do: value
8247+ def encode_mutable(_), do: {:error, "Unexpected type when encoding Mutable.mutable"}
8248+
8249+ def from_map(m) do
8250+ %Mutable{
8251+ mutable: decode_mutable(m["mutable"]),
8252+ }
8253+ end
8254+
8255+ def from_json(json) do
8256+ json
8257+ |> Jason.decode!()
8258+ |> from_map()
8259+ end
8260+
8261+ def to_map(struct) do
8262+ %{
8263+ "mutable" => struct.mutable,
8264+ }
8265+ end
8266+
8267+ def to_json(struct) do
8268+ struct
8269+ |> to_map()
8270+ |> Jason.encode!()
8271+ end
8272+end
8273+
8274+defmodule Mutating do
8275+ @enforce_keys [:mutating]
8276+ defstruct [:mutating]
8277+
8278+ @type t :: %__MODULE__{
8279+ mutating: integer()
8280+ }
8281+
8282+ def decode_mutating(value) when is_integer(value), do: value
8283+ def decode_mutating(_), do: {:error, "Unexpected type when decoding Mutating.mutating"}
8284+
8285+ def encode_mutating(value) when is_integer(value), do: value
8286+ def encode_mutating(_), do: {:error, "Unexpected type when encoding Mutating.mutating"}
8287+
8288+ def from_map(m) do
8289+ %Mutating{
8290+ mutating: decode_mutating(m["mutating"]),
8291+ }
8292+ end
8293+
8294+ def from_json(json) do
8295+ json
8296+ |> Jason.decode!()
8297+ |> from_map()
8298+ end
8299+
8300+ def to_map(struct) do
8301+ %{
8302+ "mutating" => struct.mutating,
8303+ }
8304+ end
8305+
8306+ def to_json(struct) do
8307+ struct
8308+ |> to_map()
8309+ |> Jason.encode!()
8310+ end
8311+end
8312+
82778313 defmodule Namespace do
82788314 @enforce_keys [:namespace]
82798315 defstruct [:namespace]
@@ -9483,6 +9519,84 @@ defmodule Of do
94839519 end
94849520 end
94859521
9522+defmodule OffsetDateTime do
9523+ @enforce_keys [:offset_date_time]
9524+ defstruct [:offset_date_time]
9525+
9526+ @type t :: %__MODULE__{
9527+ offset_date_time: integer()
9528+ }
9529+
9530+ def decode_offset_date_time(value) when is_integer(value), do: value
9531+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding OffsetDateTime.offset_date_time"}
9532+
9533+ def encode_offset_date_time(value) when is_integer(value), do: value
9534+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding OffsetDateTime.offset_date_time"}
9535+
9536+ def from_map(m) do
9537+ %OffsetDateTime{
9538+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
9539+ }
9540+ end
9541+
9542+ def from_json(json) do
9543+ json
9544+ |> Jason.decode!()
9545+ |> from_map()
9546+ end
9547+
9548+ def to_map(struct) do
9549+ %{
9550+ "OffsetDateTime" => struct.offset_date_time,
9551+ }
9552+ end
9553+
9554+ def to_json(struct) do
9555+ struct
9556+ |> to_map()
9557+ |> Jason.encode!()
9558+ end
9559+end
9560+
9561+defmodule OffsetTime do
9562+ @enforce_keys [:offset_time]
9563+ defstruct [:offset_time]
9564+
9565+ @type t :: %__MODULE__{
9566+ offset_time: integer()
9567+ }
9568+
9569+ def decode_offset_time(value) when is_integer(value), do: value
9570+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding OffsetTime.offset_time"}
9571+
9572+ def encode_offset_time(value) when is_integer(value), do: value
9573+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding OffsetTime.offset_time"}
9574+
9575+ def from_map(m) do
9576+ %OffsetTime{
9577+ offset_time: decode_offset_time(m["OffsetTime"]),
9578+ }
9579+ end
9580+
9581+ def from_json(json) do
9582+ json
9583+ |> Jason.decode!()
9584+ |> from_map()
9585+ end
9586+
9587+ def to_map(struct) do
9588+ %{
9589+ "OffsetTime" => struct.offset_time,
9590+ }
9591+ end
9592+
9593+ def to_json(struct) do
9594+ struct
9595+ |> to_map()
9596+ |> Jason.encode!()
9597+ end
9598+end
9599+
94869600 defmodule Oneway do
94879601 @enforce_keys [:oneway]
94889602 defstruct [:oneway]
@@ -10614,168 +10728,14 @@ defmodule ReinterpretCast do
1061410728 end
1061510729 end
1061610730
10617-defmodule Repeat do
10618- @enforce_keys [:repeat]
10619- defstruct [:repeat]
10620-
10621- @type t :: %__MODULE__{
10622- repeat: integer()
10623- }
10624-
10625- def decode_repeat(value) when is_integer(value), do: value
10626- def decode_repeat(_), do: {:error, "Unexpected type when decoding Repeat.repeat"}
10627-
10628- def encode_repeat(value) when is_integer(value), do: value
10629- def encode_repeat(_), do: {:error, "Unexpected type when encoding Repeat.repeat"}
10630-
10631- def from_map(m) do
10632- %Repeat{
10633- repeat: decode_repeat(m["repeat"]),
10634- }
10635- end
10636-
10637- def from_json(json) do
10638- json
10639- |> Jason.decode!()
10640- |> from_map()
10641- end
10642-
10643- def to_map(struct) do
10644- %{
10645- "repeat" => struct.repeat,
10646- }
10647- end
10648-
10649- def to_json(struct) do
10650- struct
10651- |> to_map()
10652- |> Jason.encode!()
10653- end
10654-end
10655-
10656-defmodule Require do
10657- @enforce_keys [:require]
10658- defstruct [:require]
10659-
10660- @type t :: %__MODULE__{
10661- require: integer()
10662- }
10663-
10664- def decode_require(value) when is_integer(value), do: value
10665- def decode_require(_), do: {:error, "Unexpected type when decoding Require.require"}
10666-
10667- def encode_require(value) when is_integer(value), do: value
10668- def encode_require(_), do: {:error, "Unexpected type when encoding Require.require"}
10669-
10670- def from_map(m) do
10671- %Require{
10672- require: decode_require(m["require"]),
10673- }
10674- end
10675-
10676- def from_json(json) do
10677- json
10678- |> Jason.decode!()
10679- |> from_map()
10680- end
10681-
10682- def to_map(struct) do
10683- %{
10684- "require" => struct.require,
10685- }
10686- end
10687-
10688- def to_json(struct) do
10689- struct
10690- |> to_map()
10691- |> Jason.encode!()
10692- end
10693-end
10694-
10695-defmodule Required do
10696- @enforce_keys [:required]
10697- defstruct [:required]
10698-
10699- @type t :: %__MODULE__{
10700- required: integer()
10701- }
10702-
10703- def decode_required(value) when is_integer(value), do: value
10704- def decode_required(_), do: {:error, "Unexpected type when decoding Required.required"}
10705-
10706- def encode_required(value) when is_integer(value), do: value
10707- def encode_required(_), do: {:error, "Unexpected type when encoding Required.required"}
10708-
10709- def from_map(m) do
10710- %Required{
10711- required: decode_required(m["required"]),
10712- }
10713- end
10714-
10715- def from_json(json) do
10716- json
10717- |> Jason.decode!()
10718- |> from_map()
10719- end
10720-
10721- def to_map(struct) do
10722- %{
10723- "required" => struct.required,
10724- }
10725- end
10726-
10727- def to_json(struct) do
10728- struct
10729- |> to_map()
10730- |> Jason.encode!()
10731- end
10732-end
10733-
10734-defmodule Requires do
10735- @enforce_keys [:requires]
10736- defstruct [:requires]
10737-
10738- @type t :: %__MODULE__{
10739- requires: integer()
10740- }
10741-
10742- def decode_requires(value) when is_integer(value), do: value
10743- def decode_requires(_), do: {:error, "Unexpected type when decoding Requires.requires"}
10744-
10745- def encode_requires(value) when is_integer(value), do: value
10746- def encode_requires(_), do: {:error, "Unexpected type when encoding Requires.requires"}
10747-
10748- def from_map(m) do
10749- %Requires{
10750- requires: decode_requires(m["requires"]),
10751- }
10752- end
10753-
10754- def from_json(json) do
10755- json
10756- |> Jason.decode!()
10757- |> from_map()
10758- end
10759-
10760- def to_map(struct) do
10761- %{
10762- "requires" => struct.requires,
10763- }
10764- end
10765-
10766- def to_json(struct) do
10767- struct
10768- |> to_map()
10769- |> Jason.encode!()
10770- end
10771-end
10772-
10773-defmodule Obj4 do
10774- @enforce_keys [:dummy, :namespace, :native, :new, :newtonsoft, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :null_node, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :object_node, :object_reader, :object_writer, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires]
10775- defstruct [:dummy, :namespace, :native, :new, :newtonsoft, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :null_node, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :object_node, :object_reader, :object_writer, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires]
10731+defmodule Obj4 do
10732+ @enforce_keys [:dummy, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :null_node, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :object_node, :object_reader, :object_writer, :of, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast]
10733+ defstruct [:dummy, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :null_node, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :object_node, :object_reader, :object_writer, :of, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast]
1077610734
1077710735 @type t :: %__MODULE__{
1077810736 dummy: integer(),
10737+ mutable: Mutable.t(),
10738+ mutating: Mutating.t(),
1077910739 namespace: Namespace.t(),
1078010740 native: Native.t(),
1078110741 new: New.t(),
@@ -10807,6 +10767,8 @@ defmodule Obj4 do
1080710767 object_reader: ObjectReader.t(),
1080810768 object_writer: ObjectWriter.t(),
1080910769 of: Of.t(),
10770+ offset_date_time: OffsetDateTime.t(),
10771+ offset_time: OffsetTime.t(),
1081010772 oneway: Oneway.t(),
1081110773 open: Open.t(),
1081210774 operator: Operator.t(),
@@ -10835,11 +10797,7 @@ defmodule Obj4 do
1083510797 ref: Ref.t(),
1083610798 reg_exp: RegExp.t(),
1083710799 register: Register.t(),
10838- reinterpret_cast: ReinterpretCast.t(),
10839- repeat: Repeat.t(),
10840- require: Require.t(),
10841- required: Required.t(),
10842- requires: Requires.t()
10800+ reinterpret_cast: ReinterpretCast.t()
1084310801 }
1084410802
1084510803 def decode_dummy(value) when is_integer(value), do: value
@@ -10851,6 +10809,8 @@ defmodule Obj4 do
1085110809 def from_map(m) do
1085210810 %Obj4{
1085310811 dummy: decode_dummy(m["dummy"]),
10812+ mutable: Mutable.from_map(m["mutable"]),
10813+ mutating: Mutating.from_map(m["mutating"]),
1085410814 namespace: Namespace.from_map(m["namespace"]),
1085510815 native: Native.from_map(m["native"]),
1085610816 new: New.from_map(m["new"]),
@@ -10882,6 +10842,8 @@ defmodule Obj4 do
1088210842 object_reader: ObjectReader.from_map(m["ObjectReader"]),
1088310843 object_writer: ObjectWriter.from_map(m["ObjectWriter"]),
1088410844 of: Of.from_map(m["of"]),
10845+ offset_date_time: OffsetDateTime.from_map(m["OffsetDateTime"]),
10846+ offset_time: OffsetTime.from_map(m["OffsetTime"]),
1088510847 oneway: Oneway.from_map(m["oneway"]),
1088610848 open: Open.from_map(m["open"]),
1088710849 operator: Operator.from_map(m["operator"]),
@@ -10911,10 +10873,6 @@ defmodule Obj4 do
1091110873 reg_exp: RegExp.from_map(m["RegExp"]),
1091210874 register: Register.from_map(m["register"]),
1091310875 reinterpret_cast: ReinterpretCast.from_map(m["reinterpret_cast"]),
10914- repeat: Repeat.from_map(m["repeat"]),
10915- require: Require.from_map(m["require"]),
10916- required: Required.from_map(m["required"]),
10917- requires: Requires.from_map(m["requires"]),
1091810876 }
1091910877 end
1092010878
@@ -10927,6 +10885,8 @@ defmodule Obj4 do
1092710885 def to_map(struct) do
1092810886 %{
1092910887 "dummy" => struct.dummy,
10888+ "mutable" => Mutable.to_map(struct.mutable),
10889+ "mutating" => Mutating.to_map(struct.mutating),
1093010890 "namespace" => Namespace.to_map(struct.namespace),
1093110891 "native" => Native.to_map(struct.native),
1093210892 "new" => New.to_map(struct.new),
@@ -10958,6 +10918,8 @@ defmodule Obj4 do
1095810918 "ObjectReader" => ObjectReader.to_map(struct.object_reader),
1095910919 "ObjectWriter" => ObjectWriter.to_map(struct.object_writer),
1096010920 "of" => Of.to_map(struct.of),
10921+ "OffsetDateTime" => OffsetDateTime.to_map(struct.offset_date_time),
10922+ "OffsetTime" => OffsetTime.to_map(struct.offset_time),
1096110923 "oneway" => Oneway.to_map(struct.oneway),
1096210924 "open" => Open.to_map(struct.open),
1096310925 "operator" => Operator.to_map(struct.operator),
@@ -10987,10 +10949,6 @@ defmodule Obj4 do
1098710949 "RegExp" => RegExp.to_map(struct.reg_exp),
1098810950 "register" => Register.to_map(struct.register),
1098910951 "reinterpret_cast" => ReinterpretCast.to_map(struct.reinterpret_cast),
10990- "repeat" => Repeat.to_map(struct.repeat),
10991- "require" => Require.to_map(struct.require),
10992- "required" => Required.to_map(struct.required),
10993- "requires" => Requires.to_map(struct.requires),
1099410952 }
1099510953 end
1099610954
@@ -11118,23 +11076,23 @@ defmodule TrueClass do
1111811076 end
1111911077 end
1112011078
11121-defmodule TypeClass do
11122- @enforce_keys [:type]
11123- defstruct [:type]
11079+defmodule PrimitiveKind do
11080+ @enforce_keys [:primitive_kind]
11081+ defstruct [:primitive_kind]
1112411082
1112511083 @type t :: %__MODULE__{
11126- type: integer()
11084+ primitive_kind: integer()
1112711085 }
1112811086
11129- def decode_type(value) when is_integer(value), do: value
11130- def decode_type(_), do: {:error, "Unexpected type when decoding TypeClass.type"}
11087+ def decode_primitive_kind(value) when is_integer(value), do: value
11088+ def decode_primitive_kind(_), do: {:error, "Unexpected type when decoding PrimitiveKind.primitive_kind"}
1113111089
11132- def encode_type(value) when is_integer(value), do: value
11133- def encode_type(_), do: {:error, "Unexpected type when encoding TypeClass.type"}
11090+ def encode_primitive_kind(value) when is_integer(value), do: value
11091+ def encode_primitive_kind(_), do: {:error, "Unexpected type when encoding PrimitiveKind.primitive_kind"}
1113411092
1113511093 def from_map(m) do
11136- %TypeClass{
11137- type: decode_type(m["type"]),
11094+ %PrimitiveKind{
11095+ primitive_kind: decode_primitive_kind(m["PrimitiveKind"]),
1113811096 }
1113911097 end
1114011098
@@ -11146,7 +11104,7 @@ defmodule TypeClass do
1114611104
1114711105 def to_map(struct) do
1114811106 %{
11149- "type" => struct.type,
11107+ "PrimitiveKind" => struct.primitive_kind,
1115011108 }
1115111109 end
1115211110
@@ -11157,23 +11115,23 @@ defmodule TypeClass do
1115711115 end
1115811116 end
1115911117
11160-defmodule PrimitiveKind do
11161- @enforce_keys [:primitive_kind]
11162- defstruct [:primitive_kind]
11118+defmodule Repeat do
11119+ @enforce_keys [:repeat]
11120+ defstruct [:repeat]
1116311121
1116411122 @type t :: %__MODULE__{
11165- primitive_kind: integer()
11123+ repeat: integer()
1116611124 }
1116711125
11168- def decode_primitive_kind(value) when is_integer(value), do: value
11169- def decode_primitive_kind(_), do: {:error, "Unexpected type when decoding PrimitiveKind.primitive_kind"}
11126+ def decode_repeat(value) when is_integer(value), do: value
11127+ def decode_repeat(_), do: {:error, "Unexpected type when decoding Repeat.repeat"}
1117011128
11171- def encode_primitive_kind(value) when is_integer(value), do: value
11172- def encode_primitive_kind(_), do: {:error, "Unexpected type when encoding PrimitiveKind.primitive_kind"}
11129+ def encode_repeat(value) when is_integer(value), do: value
11130+ def encode_repeat(_), do: {:error, "Unexpected type when encoding Repeat.repeat"}
1117311131
1117411132 def from_map(m) do
11175- %PrimitiveKind{
11176- primitive_kind: decode_primitive_kind(m["PrimitiveKind"]),
11133+ %Repeat{
11134+ repeat: decode_repeat(m["repeat"]),
1117711135 }
1117811136 end
1117911137
@@ -11185,7 +11143,124 @@ defmodule PrimitiveKind do
1118511143
1118611144 def to_map(struct) do
1118711145 %{
11188- "PrimitiveKind" => struct.primitive_kind,
11146+ "repeat" => struct.repeat,
11147+ }
11148+ end
11149+
11150+ def to_json(struct) do
11151+ struct
11152+ |> to_map()
11153+ |> Jason.encode!()
11154+ end
11155+end
11156+
11157+defmodule Require do
11158+ @enforce_keys [:require]
11159+ defstruct [:require]
11160+
11161+ @type t :: %__MODULE__{
11162+ require: integer()
11163+ }
11164+
11165+ def decode_require(value) when is_integer(value), do: value
11166+ def decode_require(_), do: {:error, "Unexpected type when decoding Require.require"}
11167+
11168+ def encode_require(value) when is_integer(value), do: value
11169+ def encode_require(_), do: {:error, "Unexpected type when encoding Require.require"}
11170+
11171+ def from_map(m) do
11172+ %Require{
11173+ require: decode_require(m["require"]),
11174+ }
11175+ end
11176+
11177+ def from_json(json) do
11178+ json
11179+ |> Jason.decode!()
11180+ |> from_map()
11181+ end
11182+
11183+ def to_map(struct) do
11184+ %{
11185+ "require" => struct.require,
11186+ }
11187+ end
11188+
11189+ def to_json(struct) do
11190+ struct
11191+ |> to_map()
11192+ |> Jason.encode!()
11193+ end
11194+end
11195+
11196+defmodule Required do
11197+ @enforce_keys [:required]
11198+ defstruct [:required]
11199+
11200+ @type t :: %__MODULE__{
11201+ required: integer()
11202+ }
11203+
11204+ def decode_required(value) when is_integer(value), do: value
11205+ def decode_required(_), do: {:error, "Unexpected type when decoding Required.required"}
11206+
11207+ def encode_required(value) when is_integer(value), do: value
11208+ def encode_required(_), do: {:error, "Unexpected type when encoding Required.required"}
11209+
11210+ def from_map(m) do
11211+ %Required{
11212+ required: decode_required(m["required"]),
11213+ }
11214+ end
11215+
11216+ def from_json(json) do
11217+ json
11218+ |> Jason.decode!()
11219+ |> from_map()
11220+ end
11221+
11222+ def to_map(struct) do
11223+ %{
11224+ "required" => struct.required,
11225+ }
11226+ end
11227+
11228+ def to_json(struct) do
11229+ struct
11230+ |> to_map()
11231+ |> Jason.encode!()
11232+ end
11233+end
11234+
11235+defmodule Requires do
11236+ @enforce_keys [:requires]
11237+ defstruct [:requires]
11238+
11239+ @type t :: %__MODULE__{
11240+ requires: integer()
11241+ }
11242+
11243+ def decode_requires(value) when is_integer(value), do: value
11244+ def decode_requires(_), do: {:error, "Unexpected type when decoding Requires.requires"}
11245+
11246+ def encode_requires(value) when is_integer(value), do: value
11247+ def encode_requires(_), do: {:error, "Unexpected type when encoding Requires.requires"}
11248+
11249+ def from_map(m) do
11250+ %Requires{
11251+ requires: decode_requires(m["requires"]),
11252+ }
11253+ end
11254+
11255+ def from_json(json) do
11256+ json
11257+ |> Jason.decode!()
11258+ |> from_map()
11259+ end
11260+
11261+ def to_map(struct) do
11262+ %{
11263+ "requires" => struct.requires,
1118911264 }
1119011265 end
1119111266
@@ -13236,128 +13311,11 @@ defmodule ToString do
1323613311 def decode_to_string(_), do: {:error, "Unexpected type when decoding ToString.to_string"}
1323713312
1323813313 def encode_to_string(value) when is_integer(value), do: value
13239- def encode_to_string(_), do: {:error, "Unexpected type when encoding ToString.to_string"}
13240-
13241- def from_map(m) do
13242- %ToString{
13243- to_string: decode_to_string(m["toString"]),
13244- }
13245- end
13246-
13247- def from_json(json) do
13248- json
13249- |> Jason.decode!()
13250- |> from_map()
13251- end
13252-
13253- def to_map(struct) do
13254- %{
13255- "toString" => struct.to_string,
13256- }
13257- end
13258-
13259- def to_json(struct) do
13260- struct
13261- |> to_map()
13262- |> Jason.encode!()
13263- end
13264-end
13265-
13266-defmodule TopLevelClass do
13267- @enforce_keys [:top_level]
13268- defstruct [:top_level]
13269-
13270- @type t :: %__MODULE__{
13271- top_level: integer()
13272- }
13273-
13274- def decode_top_level(value) when is_integer(value), do: value
13275- def decode_top_level(_), do: {:error, "Unexpected type when decoding TopLevelClass.top_level"}
13276-
13277- def encode_top_level(value) when is_integer(value), do: value
13278- def encode_top_level(_), do: {:error, "Unexpected type when encoding TopLevelClass.top_level"}
13279-
13280- def from_map(m) do
13281- %TopLevelClass{
13282- top_level: decode_top_level(m["top_level"]),
13283- }
13284- end
13285-
13286- def from_json(json) do
13287- json
13288- |> Jason.decode!()
13289- |> from_map()
13290- end
13291-
13292- def to_map(struct) do
13293- %{
13294- "top_level" => struct.top_level,
13295- }
13296- end
13297-
13298- def to_json(struct) do
13299- struct
13300- |> to_map()
13301- |> Jason.encode!()
13302- end
13303-end
13304-
13305-defmodule Transient do
13306- @enforce_keys [:transient]
13307- defstruct [:transient]
13308-
13309- @type t :: %__MODULE__{
13310- transient: integer()
13311- }
13312-
13313- def decode_transient(value) when is_integer(value), do: value
13314- def decode_transient(_), do: {:error, "Unexpected type when decoding Transient.transient"}
13315-
13316- def encode_transient(value) when is_integer(value), do: value
13317- def encode_transient(_), do: {:error, "Unexpected type when encoding Transient.transient"}
13318-
13319- def from_map(m) do
13320- %Transient{
13321- transient: decode_transient(m["transient"]),
13322- }
13323- end
13324-
13325- def from_json(json) do
13326- json
13327- |> Jason.decode!()
13328- |> from_map()
13329- end
13330-
13331- def to_map(struct) do
13332- %{
13333- "transient" => struct.transient,
13334- }
13335- end
13336-
13337- def to_json(struct) do
13338- struct
13339- |> to_map()
13340- |> Jason.encode!()
13341- end
13342-end
13343-
13344-defmodule Obj5True do
13345- @enforce_keys [:true_true]
13346- defstruct [:true_true]
13347-
13348- @type t :: %__MODULE__{
13349- true_true: integer()
13350- }
13351-
13352- def decode_true_true(value) when is_integer(value), do: value
13353- def decode_true_true(_), do: {:error, "Unexpected type when decoding Obj5True.true_true"}
13354-
13355- def encode_true_true(value) when is_integer(value), do: value
13356- def encode_true_true(_), do: {:error, "Unexpected type when encoding Obj5True.true_true"}
13314+ def encode_to_string(_), do: {:error, "Unexpected type when encoding ToString.to_string"}
1335713315
1335813316 def from_map(m) do
13359- %Obj5True{
13360- true_true: decode_true_true(m["true"]),
13317+ %ToString{
13318+ to_string: decode_to_string(m["toString"]),
1336113319 }
1336213320 end
1336313321
@@ -13369,7 +13327,7 @@ defmodule Obj5True do
1336913327
1337013328 def to_map(struct) do
1337113329 %{
13372- "true" => struct.true_true,
13330+ "toString" => struct.to_string,
1337313331 }
1337413332 end
1337513333
@@ -13380,23 +13338,23 @@ defmodule Obj5True do
1338013338 end
1338113339 end
1338213340
13383-defmodule Try do
13384- @enforce_keys [:try]
13385- defstruct [:try]
13341+defmodule TopLevelClass do
13342+ @enforce_keys [:top_level]
13343+ defstruct [:top_level]
1338613344
1338713345 @type t :: %__MODULE__{
13388- try: integer()
13346+ top_level: integer()
1338913347 }
1339013348
13391- def decode_try(value) when is_integer(value), do: value
13392- def decode_try(_), do: {:error, "Unexpected type when decoding Try.try"}
13349+ def decode_top_level(value) when is_integer(value), do: value
13350+ def decode_top_level(_), do: {:error, "Unexpected type when decoding TopLevelClass.top_level"}
1339313351
13394- def encode_try(value) when is_integer(value), do: value
13395- def encode_try(_), do: {:error, "Unexpected type when encoding Try.try"}
13352+ def encode_top_level(value) when is_integer(value), do: value
13353+ def encode_top_level(_), do: {:error, "Unexpected type when encoding TopLevelClass.top_level"}
1339613354
1339713355 def from_map(m) do
13398- %Try{
13399- try: decode_try(m["try"]),
13356+ %TopLevelClass{
13357+ top_level: decode_top_level(m["top_level"]),
1340013358 }
1340113359 end
1340213360
@@ -13408,7 +13366,7 @@ defmodule Try do
1340813366
1340913367 def to_map(struct) do
1341013368 %{
13411- "try" => struct.try,
13369+ "top_level" => struct.top_level,
1341213370 }
1341313371 end
1341413372
@@ -13419,23 +13377,23 @@ defmodule Try do
1341913377 end
1342013378 end
1342113379
13422-defmodule Type do
13423- @enforce_keys [:type]
13424- defstruct [:type]
13380+defmodule Transient do
13381+ @enforce_keys [:transient]
13382+ defstruct [:transient]
1342513383
1342613384 @type t :: %__MODULE__{
13427- type: integer()
13385+ transient: integer()
1342813386 }
1342913387
13430- def decode_type(value) when is_integer(value), do: value
13431- def decode_type(_), do: {:error, "Unexpected type when decoding Type.type"}
13388+ def decode_transient(value) when is_integer(value), do: value
13389+ def decode_transient(_), do: {:error, "Unexpected type when decoding Transient.transient"}
1343213390
13433- def encode_type(value) when is_integer(value), do: value
13434- def encode_type(_), do: {:error, "Unexpected type when encoding Type.type"}
13391+ def encode_transient(value) when is_integer(value), do: value
13392+ def encode_transient(_), do: {:error, "Unexpected type when encoding Transient.transient"}
1343513393
1343613394 def from_map(m) do
13437- %Type{
13438- type: decode_type(m["Type"]),
13395+ %Transient{
13396+ transient: decode_transient(m["transient"]),
1343913397 }
1344013398 end
1344113399
@@ -13447,7 +13405,7 @@ defmodule Type do
1344713405
1344813406 def to_map(struct) do
1344913407 %{
13450- "Type" => struct.type,
13408+ "transient" => struct.transient,
1345113409 }
1345213410 end
1345313411
@@ -13458,23 +13416,23 @@ defmodule Type do
1345813416 end
1345913417 end
1346013418
13461-defmodule Typealias do
13462- @enforce_keys [:typealias]
13463- defstruct [:typealias]
13419+defmodule Obj5True do
13420+ @enforce_keys [:true_true]
13421+ defstruct [:true_true]
1346413422
1346513423 @type t :: %__MODULE__{
13466- typealias: integer()
13424+ true_true: integer()
1346713425 }
1346813426
13469- def decode_typealias(value) when is_integer(value), do: value
13470- def decode_typealias(_), do: {:error, "Unexpected type when decoding Typealias.typealias"}
13427+ def decode_true_true(value) when is_integer(value), do: value
13428+ def decode_true_true(_), do: {:error, "Unexpected type when decoding Obj5True.true_true"}
1347113429
13472- def encode_typealias(value) when is_integer(value), do: value
13473- def encode_typealias(_), do: {:error, "Unexpected type when encoding Typealias.typealias"}
13430+ def encode_true_true(value) when is_integer(value), do: value
13431+ def encode_true_true(_), do: {:error, "Unexpected type when encoding Obj5True.true_true"}
1347413432
1347513433 def from_map(m) do
13476- %Typealias{
13477- typealias: decode_typealias(m["typealias"]),
13434+ %Obj5True{
13435+ true_true: decode_true_true(m["true"]),
1347813436 }
1347913437 end
1348013438
@@ -13486,7 +13444,7 @@ defmodule Typealias do
1348613444
1348713445 def to_map(struct) do
1348813446 %{
13489- "typealias" => struct.typealias,
13447+ "true" => struct.true_true,
1349013448 }
1349113449 end
1349213450
@@ -13498,16 +13456,19 @@ defmodule Typealias do
1349813456 end
1349913457
1350013458 defmodule Obj5 do
13501- @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :text_node, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias]
13502- defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :text_node, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias]
13459+ @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :primitive_kind, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :text_node, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1]
13460+ defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :primitive_kind, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :text_node, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1]
1350313461
1350413462 @type t :: %__MODULE__{
1350513463 dummy: integer(),
1350613464 k_serializer: KSerializer.t(),
1350713465 obj5_self: SelfClass.t(),
1350813466 obj5_true: TrueClass.t(),
13509- obj5_type: TypeClass.t(),
1351013467 primitive_kind: PrimitiveKind.t(),
13468+ repeat: Repeat.t(),
13469+ require: Require.t(),
13470+ required: Required.t(),
13471+ requires: Requires.t(),
1351113472 restrict: Restrict.t(),
1351213473 retain: Retain.t(),
1351313474 rethrows: Rethrows.t(),
@@ -13563,10 +13524,7 @@ defmodule Obj5 do
1356313524 to_string: ToString.t(),
1356413525 top_level: TopLevelClass.t(),
1356513526 transient: Transient.t(),
13566- true_1: Obj5True.t(),
13567- try: Try.t(),
13568- type: Type.t(),
13569- typealias: Typealias.t()
13527+ true_1: Obj5True.t()
1357013528 }
1357113529
1357213530 def decode_dummy(value) when is_integer(value), do: value
@@ -13581,8 +13539,11 @@ defmodule Obj5 do
1358113539 k_serializer: KSerializer.from_map(m["KSerializer"]),
1358213540 obj5_self: SelfClass.from_map(m["self"]),
1358313541 obj5_true: TrueClass.from_map(m["True"]),
13584- obj5_type: TypeClass.from_map(m["type"]),
1358513542 primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]),
13543+ repeat: Repeat.from_map(m["repeat"]),
13544+ require: Require.from_map(m["require"]),
13545+ required: Required.from_map(m["required"]),
13546+ requires: Requires.from_map(m["requires"]),
1358613547 restrict: Restrict.from_map(m["restrict"]),
1358713548 retain: Retain.from_map(m["retain"]),
1358813549 rethrows: Rethrows.from_map(m["rethrows"]),
@@ -13639,9 +13600,6 @@ defmodule Obj5 do
1363913600 top_level: TopLevelClass.from_map(m["top_level"]),
1364013601 transient: Transient.from_map(m["transient"]),
1364113602 true_1: Obj5True.from_map(m["true"]),
13642- try: Try.from_map(m["try"]),
13643- type: Type.from_map(m["Type"]),
13644- typealias: Typealias.from_map(m["typealias"]),
1364513603 }
1364613604 end
1364713605
@@ -13657,8 +13615,11 @@ defmodule Obj5 do
1365713615 "KSerializer" => KSerializer.to_map(struct.k_serializer),
1365813616 "self" => SelfClass.to_map(struct.obj5_self),
1365913617 "True" => TrueClass.to_map(struct.obj5_true),
13660- "type" => TypeClass.to_map(struct.obj5_type),
1366113618 "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind),
13619+ "repeat" => Repeat.to_map(struct.repeat),
13620+ "require" => Require.to_map(struct.require),
13621+ "required" => Required.to_map(struct.required),
13622+ "requires" => Requires.to_map(struct.requires),
1366213623 "restrict" => Restrict.to_map(struct.restrict),
1366313624 "retain" => Retain.to_map(struct.retain),
1366413625 "rethrows" => Rethrows.to_map(struct.rethrows),
@@ -13715,9 +13676,162 @@ defmodule Obj5 do
1371513676 "top_level" => TopLevelClass.to_map(struct.top_level),
1371613677 "transient" => Transient.to_map(struct.transient),
1371713678 "true" => Obj5True.to_map(struct.true_1),
13718- "try" => Try.to_map(struct.try),
13719- "Type" => Type.to_map(struct.type),
13720- "typealias" => Typealias.to_map(struct.typealias),
13679+ }
13680+ end
13681+
13682+ def to_json(struct) do
13683+ struct
13684+ |> to_map()
13685+ |> Jason.encode!()
13686+ end
13687+end
13688+
13689+defmodule TypeClass do
13690+ @enforce_keys [:type]
13691+ defstruct [:type]
13692+
13693+ @type t :: %__MODULE__{
13694+ type: integer()
13695+ }
13696+
13697+ def decode_type(value) when is_integer(value), do: value
13698+ def decode_type(_), do: {:error, "Unexpected type when decoding TypeClass.type"}
13699+
13700+ def encode_type(value) when is_integer(value), do: value
13701+ def encode_type(_), do: {:error, "Unexpected type when encoding TypeClass.type"}
13702+
13703+ def from_map(m) do
13704+ %TypeClass{
13705+ type: decode_type(m["type"]),
13706+ }
13707+ end
13708+
13709+ def from_json(json) do
13710+ json
13711+ |> Jason.decode!()
13712+ |> from_map()
13713+ end
13714+
13715+ def to_map(struct) do
13716+ %{
13717+ "type" => struct.type,
13718+ }
13719+ end
13720+
13721+ def to_json(struct) do
13722+ struct
13723+ |> to_map()
13724+ |> Jason.encode!()
13725+ end
13726+end
13727+
13728+defmodule Try do
13729+ @enforce_keys [:try]
13730+ defstruct [:try]
13731+
13732+ @type t :: %__MODULE__{
13733+ try: integer()
13734+ }
13735+
13736+ def decode_try(value) when is_integer(value), do: value
13737+ def decode_try(_), do: {:error, "Unexpected type when decoding Try.try"}
13738+
13739+ def encode_try(value) when is_integer(value), do: value
13740+ def encode_try(_), do: {:error, "Unexpected type when encoding Try.try"}
13741+
13742+ def from_map(m) do
13743+ %Try{
13744+ try: decode_try(m["try"]),
13745+ }
13746+ end
13747+
13748+ def from_json(json) do
13749+ json
13750+ |> Jason.decode!()
13751+ |> from_map()
13752+ end
13753+
13754+ def to_map(struct) do
13755+ %{
13756+ "try" => struct.try,
13757+ }
13758+ end
13759+
13760+ def to_json(struct) do
13761+ struct
13762+ |> to_map()
13763+ |> Jason.encode!()
13764+ end
13765+end
13766+
13767+defmodule Type do
13768+ @enforce_keys [:type]
13769+ defstruct [:type]
13770+
13771+ @type t :: %__MODULE__{
13772+ type: integer()
13773+ }
13774+
13775+ def decode_type(value) when is_integer(value), do: value
13776+ def decode_type(_), do: {:error, "Unexpected type when decoding Type.type"}
13777+
13778+ def encode_type(value) when is_integer(value), do: value
13779+ def encode_type(_), do: {:error, "Unexpected type when encoding Type.type"}
13780+
13781+ def from_map(m) do
13782+ %Type{
13783+ type: decode_type(m["Type"]),
13784+ }
13785+ end
13786+
13787+ def from_json(json) do
13788+ json
13789+ |> Jason.decode!()
13790+ |> from_map()
13791+ end
13792+
13793+ def to_map(struct) do
13794+ %{
13795+ "Type" => struct.type,
13796+ }
13797+ end
13798+
13799+ def to_json(struct) do
13800+ struct
13801+ |> to_map()
13802+ |> Jason.encode!()
13803+ end
13804+end
13805+
13806+defmodule Typealias do
13807+ @enforce_keys [:typealias]
13808+ defstruct [:typealias]
13809+
13810+ @type t :: %__MODULE__{
13811+ typealias: integer()
13812+ }
13813+
13814+ def decode_typealias(value) when is_integer(value), do: value
13815+ def decode_typealias(_), do: {:error, "Unexpected type when decoding Typealias.typealias"}
13816+
13817+ def encode_typealias(value) when is_integer(value), do: value
13818+ def encode_typealias(_), do: {:error, "Unexpected type when encoding Typealias.typealias"}
13819+
13820+ def from_map(m) do
13821+ %Typealias{
13822+ typealias: decode_typealias(m["typealias"]),
13823+ }
13824+ end
13825+
13826+ def from_json(json) do
13827+ json
13828+ |> Jason.decode!()
13829+ |> from_map()
13830+ end
13831+
13832+ def to_map(struct) do
13833+ %{
13834+ "typealias" => struct.typealias,
1372113835 }
1372213836 end
1372313837
@@ -15016,11 +15130,15 @@ defmodule Yield do
1501615130 end
1501715131
1501815132 defmodule Obj6 do
15019- @enforce_keys [:dummy, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
15020- defstruct [:dummy, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
15133+ @enforce_keys [:dummy, :obj6_type, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
15134+ defstruct [:dummy, :obj6_type, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
1502115135
1502215136 @type t :: %__MODULE__{
1502315137 dummy: integer(),
15138+ obj6_type: TypeClass.t(),
15139+ try: Try.t(),
15140+ type: Type.t(),
15141+ typealias: Typealias.t(),
1502415142 typedef: Typedef.t(),
1502515143 typeid: Typeid.t(),
1502615144 typename: Typename.t(),
@@ -15065,6 +15183,10 @@ defmodule Obj6 do
1506515183 def from_map(m) do
1506615184 %Obj6{
1506715185 dummy: decode_dummy(m["dummy"]),
15186+ obj6_type: TypeClass.from_map(m["type"]),
15187+ try: Try.from_map(m["try"]),
15188+ type: Type.from_map(m["Type"]),
15189+ typealias: Typealias.from_map(m["typealias"]),
1506815190 typedef: Typedef.from_map(m["typedef"]),
1506915191 typeid: Typeid.from_map(m["typeid"]),
1507015192 typename: Typename.from_map(m["typename"]),
@@ -15110,6 +15232,10 @@ defmodule Obj6 do
1511015232 def to_map(struct) do
1511115233 %{
1511215234 "dummy" => struct.dummy,
15235+ "type" => TypeClass.to_map(struct.obj6_type),
15236+ "try" => Try.to_map(struct.try),
15237+ "Type" => Type.to_map(struct.type),
15238+ "typealias" => Typealias.to_map(struct.typealias),
1511315239 "typedef" => Typedef.to_map(struct.typedef),
1511415240 "typeid" => Typeid.to_map(struct.typeid),
1511515241 "typename" => Typename.to_map(struct.typename),
Melmdefault / QuickType.elm+241 −184
@@ -194,6 +194,7 @@ module QuickType exposing
194194 , Lazy
195195 , Left
196196 , ListClass
197+ , LocalDate
197198 , Locale
198199 , Lock
199200 , Long
@@ -202,8 +203,6 @@ module QuickType exposing
202203 , MapEntry
203204 , MarshalJSON
204205 , MetadataPropertyHandling
205- , Mutable
206- , Mutating
207206 , If
208207 , Import
209208 , In
@@ -212,6 +211,8 @@ module QuickType exposing
212211 , Let
213212 , Module
214213 , Obj4
214+ , Mutable
215+ , Mutating
215216 , Namespace
216217 , Native
217218 , New
@@ -243,6 +244,8 @@ module QuickType exposing
243244 , ObjectNode
244245 , ObjectReader
245246 , ObjectWriter
247+ , OffsetDateTime
248+ , OffsetTime
246249 , Oneway
247250 , Open
248251 , Operator
@@ -272,19 +275,17 @@ module QuickType exposing
272275 , RegExp
273276 , Register
274277 , ReinterpretCast
275- , Repeat
276- , Require
277- , Required
278- , Requires
279278 , Obj5
280279 , KSerializer
281280 , SelfClass
282281 , StringClass
283282 , Then
284283 , Obj5True
285- , Type
286284 , PrimitiveKind
287- , TypeClass
285+ , Repeat
286+ , Require
287+ , Required
288+ , Requires
288289 , Restrict
289290 , Retain
290291 , Rethrows
@@ -339,10 +340,12 @@ module QuickType exposing
339340 , TopLevel
340341 , Transient
341342 , TrueClass
342- , Try
343- , Typealias
344343 , Obj6
344+ , Type
345345 , Where
346+ , TypeClass
347+ , Try
348+ , Typealias
346349 , Typedef
347350 , Typeid
348351 , Typename
@@ -1095,6 +1098,7 @@ type alias Obj3 =
10951098 , lazy : Lazy
10961099 , left : Left
10971100 , list : ListClass
1101+ , localDate : LocalDate
10981102 , locale : Locale
10991103 , lock : Lock
11001104 , long : Long
@@ -1103,8 +1107,6 @@ type alias Obj3 =
11031107 , mapEntry : MapEntry
11041108 , marshalJSON : MarshalJSON
11051109 , metadataPropertyHandling : MetadataPropertyHandling
1106- , mutable : Mutable
1107- , mutating : Mutating
11081110 , obj3If : If
11091111 , obj3Import : Import
11101112 , obj3In : In
@@ -1306,6 +1308,10 @@ type alias ListClass =
13061308 { list : Int
13071309 }
13081310
1311+type alias LocalDate =
1312+ { localDate : Int
1313+ }
1314+
13091315 type alias Locale =
13101316 { locale : Int
13111317 }
@@ -1338,14 +1344,6 @@ type alias MetadataPropertyHandling =
13381344 { metadataPropertyHandling : Int
13391345 }
13401346
1341-type alias Mutable =
1342- { mutable : Int
1343- }
1344-
1345-type alias Mutating =
1346- { mutating : Int
1347- }
1348-
13491347 type alias If =
13501348 { ifIf : Int
13511349 }
@@ -1376,6 +1374,8 @@ type alias Module =
13761374
13771375 type alias Obj4 =
13781376 { dummy : Int
1377+ , mutable : Mutable
1378+ , mutating : Mutating
13791379 , namespace : Namespace
13801380 , native : Native
13811381 , new : New
@@ -1407,6 +1407,8 @@ type alias Obj4 =
14071407 , objectNode : ObjectNode
14081408 , objectReader : ObjectReader
14091409 , objectWriter : ObjectWriter
1410+ , offsetDateTime : OffsetDateTime
1411+ , offsetTime : OffsetTime
14101412 , oneway : Oneway
14111413 , open : Open
14121414 , operator : Operator
@@ -1436,10 +1438,14 @@ type alias Obj4 =
14361438 , regExp : RegExp
14371439 , register : Register
14381440 , reinterpretCast : ReinterpretCast
1439- , repeat : Repeat
1440- , require : Require
1441- , required : Required
1442- , requires : Requires
1441+ }
1442+
1443+type alias Mutable =
1444+ { mutable : Int
1445+ }
1446+
1447+type alias Mutating =
1448+ { mutating : Int
14431449 }
14441450
14451451 type alias Namespace =
@@ -1566,6 +1572,14 @@ type alias ObjectWriter =
15661572 { objectWriter : Int
15671573 }
15681574
1575+type alias OffsetDateTime =
1576+ { offsetDateTime : Int
1577+ }
1578+
1579+type alias OffsetTime =
1580+ { offsetTime : Int
1581+ }
1582+
15691583 type alias Oneway =
15701584 { oneway : Int
15711585 }
@@ -1682,22 +1696,6 @@ type alias ReinterpretCast =
16821696 { reinterpretCast : Int
16831697 }
16841698
1685-type alias Repeat =
1686- { repeat : Int
1687- }
1688-
1689-type alias Require =
1690- { require : Int
1691- }
1692-
1693-type alias Required =
1694- { required : Int
1695- }
1696-
1697-type alias Requires =
1698- { requires : Int
1699- }
1700-
17011699 type alias Obj5 =
17021700 { dummy : Int
17031701 , kSerializer : KSerializer
@@ -1705,9 +1703,11 @@ type alias Obj5 =
17051703 , obj5String : StringClass
17061704 , obj5Then : Then
17071705 , obj5True : Obj5True
1708- , obj5Type : Type
17091706 , primitiveKind : PrimitiveKind
1710- , purpleType : TypeClass
1707+ , repeat : Repeat
1708+ , require : Require
1709+ , required : Required
1710+ , requires : Requires
17111711 , restrict : Restrict
17121712 , retain : Retain
17131713 , rethrows : Rethrows
@@ -1762,8 +1762,6 @@ type alias Obj5 =
17621762 , topLevel : TopLevel
17631763 , transient : Transient
17641764 , true : TrueClass
1765- , try : Try
1766- , typealias : Typealias
17671765 }
17681766
17691767 type alias KSerializer =
@@ -1786,16 +1784,24 @@ type alias Obj5True =
17861784 { true : Int
17871785 }
17881786
1789-type alias Type =
1790- { typeType : Int
1791- }
1792-
17931787 type alias PrimitiveKind =
17941788 { primitiveKind : Int
17951789 }
17961790
1797-type alias TypeClass =
1798- { typeType : Int
1791+type alias Repeat =
1792+ { repeat : Int
1793+ }
1794+
1795+type alias Require =
1796+ { require : Int
1797+ }
1798+
1799+type alias Required =
1800+ { required : Int
1801+ }
1802+
1803+type alias Requires =
1804+ { requires : Int
17991805 }
18001806
18011807 type alias Restrict =
@@ -2014,17 +2020,13 @@ type alias TrueClass =
20142020 { true : Int
20152021 }
20162022
2017-type alias Try =
2018- { try : Int
2019- }
2020-
2021-type alias Typealias =
2022- { typealias : Int
2023- }
2024-
20252023 type alias Obj6 =
20262024 { dummy : Int
2025+ , obj6Type : Type
20272026 , obj6Where : Where
2027+ , purpleType : TypeClass
2028+ , try : Try
2029+ , typealias : Typealias
20282030 , typedef : Typedef
20292031 , typeid : Typeid
20302032 , typename : Typename
@@ -2059,10 +2061,26 @@ type alias Obj6 =
20592061 , yield : Yield
20602062 }
20612063
2064+type alias Type =
2065+ { typeType : Int
2066+ }
2067+
20622068 type alias Where =
20632069 { whereWhere : Int
20642070 }
20652071
2072+type alias TypeClass =
2073+ { typeType : Int
2074+ }
2075+
2076+type alias Try =
2077+ { try : Int
2078+ }
2079+
2080+type alias Typealias =
2081+ { typealias : Int
2082+ }
2083+
20662084 type alias Typedef =
20672085 { typedef : Int
20682086 }
@@ -3978,6 +3996,7 @@ obj3 =
39783996 |> Jpipe.required "lazy" lazy
39793997 |> Jpipe.required "left" left
39803998 |> Jpipe.required "list" listClass
3999+ |> Jpipe.required "LocalDate" localDate
39814000 |> Jpipe.required "Locale" locale
39824001 |> Jpipe.required "lock" lock
39834002 |> Jpipe.required "long" long
@@ -3986,8 +4005,6 @@ obj3 =
39864005 |> Jpipe.required "MapEntry" mapEntry
39874006 |> Jpipe.required "MarshalJSON" marshalJSON
39884007 |> Jpipe.required "metadata_property_handling" metadataPropertyHandling
3989- |> Jpipe.required "mutable" mutable
3990- |> Jpipe.required "mutating" mutating
39914008 |> Jpipe.required "if" purpleIf
39924009 |> Jpipe.required "import" purpleImport
39934010 |> Jpipe.required "in" purpleIn
@@ -4048,6 +4065,7 @@ encodeObj3 x =
40484065 , ("lazy", encodeLazy x.lazy)
40494066 , ("left", encodeLeft x.left)
40504067 , ("list", encodeListClass x.list)
4068+ , ("LocalDate", encodeLocalDate x.localDate)
40514069 , ("Locale", encodeLocale x.locale)
40524070 , ("lock", encodeLock x.lock)
40534071 , ("long", encodeLong x.long)
@@ -4056,8 +4074,6 @@ encodeObj3 x =
40564074 , ("MapEntry", encodeMapEntry x.mapEntry)
40574075 , ("MarshalJSON", encodeMarshalJSON x.marshalJSON)
40584076 , ("metadata_property_handling", encodeMetadataPropertyHandling x.metadataPropertyHandling)
4059- , ("mutable", encodeMutable x.mutable)
4060- , ("mutating", encodeMutating x.mutating)
40614077 , ("if", encodeIf x.obj3If)
40624078 , ("import", encodeImport x.obj3Import)
40634079 , ("in", encodeIn x.obj3In)
@@ -4595,6 +4611,17 @@ encodeListClass x =
45954611 [ ("list", Jenc.int x.list)
45964612 ]
45974613
4614+localDate : Jdec.Decoder LocalDate
4615+localDate =
4616+ Jdec.succeed LocalDate
4617+ |> Jpipe.required "LocalDate" Jdec.int
4618+
4619+encodeLocalDate : LocalDate -> Jenc.Value
4620+encodeLocalDate x =
4621+ Jenc.object
4622+ [ ("LocalDate", Jenc.int x.localDate)
4623+ ]
4624+
45984625 locale : Jdec.Decoder Locale
45994626 locale =
46004627 Jdec.succeed Locale
@@ -4683,28 +4710,6 @@ encodeMetadataPropertyHandling x =
46834710 [ ("metadata_property_handling", Jenc.int x.metadataPropertyHandling)
46844711 ]
46854712
4686-mutable : Jdec.Decoder Mutable
4687-mutable =
4688- Jdec.succeed Mutable
4689- |> Jpipe.required "mutable" Jdec.int
4690-
4691-encodeMutable : Mutable -> Jenc.Value
4692-encodeMutable x =
4693- Jenc.object
4694- [ ("mutable", Jenc.int x.mutable)
4695- ]
4696-
4697-mutating : Jdec.Decoder Mutating
4698-mutating =
4699- Jdec.succeed Mutating
4700- |> Jpipe.required "mutating" Jdec.int
4701-
4702-encodeMutating : Mutating -> Jenc.Value
4703-encodeMutating x =
4704- Jenc.object
4705- [ ("mutating", Jenc.int x.mutating)
4706- ]
4707-
47084713 purpleIf : Jdec.Decoder If
47094714 purpleIf =
47104715 Jdec.succeed If
@@ -4786,6 +4791,8 @@ obj4 : Jdec.Decoder Obj4
47864791 obj4 =
47874792 Jdec.succeed Obj4
47884793 |> Jpipe.required "dummy" Jdec.int
4794+ |> Jpipe.required "mutable" mutable
4795+ |> Jpipe.required "mutating" mutating
47894796 |> Jpipe.required "namespace" namespace
47904797 |> Jpipe.required "native" native
47914798 |> Jpipe.required "new" new
@@ -4817,6 +4824,8 @@ obj4 =
48174824 |> Jpipe.required "ObjectNode" objectNode
48184825 |> Jpipe.required "ObjectReader" objectReader
48194826 |> Jpipe.required "ObjectWriter" objectWriter
4827+ |> Jpipe.required "OffsetDateTime" offsetDateTime
4828+ |> Jpipe.required "OffsetTime" offsetTime
48204829 |> Jpipe.required "oneway" oneway
48214830 |> Jpipe.required "open" open
48224831 |> Jpipe.required "operator" operator
@@ -4846,15 +4855,13 @@ obj4 =
48464855 |> Jpipe.required "RegExp" regExp
48474856 |> Jpipe.required "register" register
48484857 |> Jpipe.required "reinterpret_cast" reinterpretCast
4849- |> Jpipe.required "repeat" repeat
4850- |> Jpipe.required "require" require
4851- |> Jpipe.required "required" required
4852- |> Jpipe.required "requires" requires
48534858
48544859 encodeObj4 : Obj4 -> Jenc.Value
48554860 encodeObj4 x =
48564861 Jenc.object
48574862 [ ("dummy", Jenc.int x.dummy)
4863+ , ("mutable", encodeMutable x.mutable)
4864+ , ("mutating", encodeMutating x.mutating)
48584865 , ("namespace", encodeNamespace x.namespace)
48594866 , ("native", encodeNative x.native)
48604867 , ("new", encodeNew x.new)
@@ -4886,6 +4893,8 @@ encodeObj4 x =
48864893 , ("ObjectNode", encodeObjectNode x.objectNode)
48874894 , ("ObjectReader", encodeObjectReader x.objectReader)
48884895 , ("ObjectWriter", encodeObjectWriter x.objectWriter)
4896+ , ("OffsetDateTime", encodeOffsetDateTime x.offsetDateTime)
4897+ , ("OffsetTime", encodeOffsetTime x.offsetTime)
48894898 , ("oneway", encodeOneway x.oneway)
48904899 , ("open", encodeOpen x.open)
48914900 , ("operator", encodeOperator x.operator)
@@ -4915,10 +4924,28 @@ encodeObj4 x =
49154924 , ("RegExp", encodeRegExp x.regExp)
49164925 , ("register", encodeRegister x.register)
49174926 , ("reinterpret_cast", encodeReinterpretCast x.reinterpretCast)
4918- , ("repeat", encodeRepeat x.repeat)
4919- , ("require", encodeRequire x.require)
4920- , ("required", encodeRequired x.required)
4921- , ("requires", encodeRequires x.requires)
4927+ ]
4928+
4929+mutable : Jdec.Decoder Mutable
4930+mutable =
4931+ Jdec.succeed Mutable
4932+ |> Jpipe.required "mutable" Jdec.int
4933+
4934+encodeMutable : Mutable -> Jenc.Value
4935+encodeMutable x =
4936+ Jenc.object
4937+ [ ("mutable", Jenc.int x.mutable)
4938+ ]
4939+
4940+mutating : Jdec.Decoder Mutating
4941+mutating =
4942+ Jdec.succeed Mutating
4943+ |> Jpipe.required "mutating" Jdec.int
4944+
4945+encodeMutating : Mutating -> Jenc.Value
4946+encodeMutating x =
4947+ Jenc.object
4948+ [ ("mutating", Jenc.int x.mutating)
49224949 ]
49234950
49244951 namespace : Jdec.Decoder Namespace
@@ -5262,6 +5289,28 @@ encodeObjectWriter x =
52625289 [ ("ObjectWriter", Jenc.int x.objectWriter)
52635290 ]
52645291
5292+offsetDateTime : Jdec.Decoder OffsetDateTime
5293+offsetDateTime =
5294+ Jdec.succeed OffsetDateTime
5295+ |> Jpipe.required "OffsetDateTime" Jdec.int
5296+
5297+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
5298+encodeOffsetDateTime x =
5299+ Jenc.object
5300+ [ ("OffsetDateTime", Jenc.int x.offsetDateTime)
5301+ ]
5302+
5303+offsetTime : Jdec.Decoder OffsetTime
5304+offsetTime =
5305+ Jdec.succeed OffsetTime
5306+ |> Jpipe.required "OffsetTime" Jdec.int
5307+
5308+encodeOffsetTime : OffsetTime -> Jenc.Value
5309+encodeOffsetTime x =
5310+ Jenc.object
5311+ [ ("OffsetTime", Jenc.int x.offsetTime)
5312+ ]
5313+
52655314 oneway : Jdec.Decoder Oneway
52665315 oneway =
52675316 Jdec.succeed Oneway
@@ -5581,50 +5630,6 @@ encodeReinterpretCast x =
55815630 [ ("reinterpret_cast", Jenc.int x.reinterpretCast)
55825631 ]
55835632
5584-repeat : Jdec.Decoder Repeat
5585-repeat =
5586- Jdec.succeed Repeat
5587- |> Jpipe.required "repeat" Jdec.int
5588-
5589-encodeRepeat : Repeat -> Jenc.Value
5590-encodeRepeat x =
5591- Jenc.object
5592- [ ("repeat", Jenc.int x.repeat)
5593- ]
5594-
5595-require : Jdec.Decoder Require
5596-require =
5597- Jdec.succeed Require
5598- |> Jpipe.required "require" Jdec.int
5599-
5600-encodeRequire : Require -> Jenc.Value
5601-encodeRequire x =
5602- Jenc.object
5603- [ ("require", Jenc.int x.require)
5604- ]
5605-
5606-required : Jdec.Decoder Required
5607-required =
5608- Jdec.succeed Required
5609- |> Jpipe.required "required" Jdec.int
5610-
5611-encodeRequired : Required -> Jenc.Value
5612-encodeRequired x =
5613- Jenc.object
5614- [ ("required", Jenc.int x.required)
5615- ]
5616-
5617-requires : Jdec.Decoder Requires
5618-requires =
5619- Jdec.succeed Requires
5620- |> Jpipe.required "requires" Jdec.int
5621-
5622-encodeRequires : Requires -> Jenc.Value
5623-encodeRequires x =
5624- Jenc.object
5625- [ ("requires", Jenc.int x.requires)
5626- ]
5627-
56285633 obj5 : Jdec.Decoder Obj5
56295634 obj5 =
56305635 Jdec.succeed Obj5
@@ -5634,9 +5639,11 @@ obj5 =
56345639 |> Jpipe.required "string" stringClass
56355640 |> Jpipe.required "then" purpleThen
56365641 |> Jpipe.required "true" obj5True
5637- |> Jpipe.required "Type" purpleType
56385642 |> Jpipe.required "PrimitiveKind" primitiveKind
5639- |> Jpipe.required "type" typeClass
5643+ |> Jpipe.required "repeat" repeat
5644+ |> Jpipe.required "require" require
5645+ |> Jpipe.required "required" required
5646+ |> Jpipe.required "requires" requires
56405647 |> Jpipe.required "restrict" restrict
56415648 |> Jpipe.required "retain" retain
56425649 |> Jpipe.required "rethrows" rethrows
@@ -5691,8 +5698,6 @@ obj5 =
56915698 |> Jpipe.required "top_level" topLevel
56925699 |> Jpipe.required "transient" transient
56935700 |> Jpipe.required "True" trueClass
5694- |> Jpipe.required "try" try
5695- |> Jpipe.required "typealias" typealias
56965701
56975702 encodeObj5 : Obj5 -> Jenc.Value
56985703 encodeObj5 x =
@@ -5703,9 +5708,11 @@ encodeObj5 x =
57035708 , ("string", encodeStringClass x.obj5String)
57045709 , ("then", encodeThen x.obj5Then)
57055710 , ("true", encodeObj5True x.obj5True)
5706- , ("Type", encodeType x.obj5Type)
57075711 , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind)
5708- , ("type", encodeTypeClass x.purpleType)
5712+ , ("repeat", encodeRepeat x.repeat)
5713+ , ("require", encodeRequire x.require)
5714+ , ("required", encodeRequired x.required)
5715+ , ("requires", encodeRequires x.requires)
57095716 , ("restrict", encodeRestrict x.restrict)
57105717 , ("retain", encodeRetain x.retain)
57115718 , ("rethrows", encodeRethrows x.rethrows)
@@ -5760,8 +5767,6 @@ encodeObj5 x =
57605767 , ("top_level", encodeTopLevel x.topLevel)
57615768 , ("transient", encodeTransient x.transient)
57625769 , ("True", encodeTrueClass x.true)
5763- , ("try", encodeTry x.try)
5764- , ("typealias", encodeTypealias x.typealias)
57655770 ]
57665771
57675772 kSerializer : Jdec.Decoder KSerializer
@@ -5819,17 +5824,6 @@ encodeObj5True x =
58195824 [ ("true", Jenc.int x.true)
58205825 ]
58215826
5822-purpleType : Jdec.Decoder Type
5823-purpleType =
5824- Jdec.succeed Type
5825- |> Jpipe.required "Type" Jdec.int
5826-
5827-encodeType : Type -> Jenc.Value
5828-encodeType x =
5829- Jenc.object
5830- [ ("Type", Jenc.int x.typeType)
5831- ]
5832-
58335827 primitiveKind : Jdec.Decoder PrimitiveKind
58345828 primitiveKind =
58355829 Jdec.succeed PrimitiveKind
@@ -5841,15 +5835,48 @@ encodePrimitiveKind x =
58415835 [ ("PrimitiveKind", Jenc.int x.primitiveKind)
58425836 ]
58435837
5844-typeClass : Jdec.Decoder TypeClass
5845-typeClass =
5846- Jdec.succeed TypeClass
5847- |> Jpipe.required "type" Jdec.int
5838+repeat : Jdec.Decoder Repeat
5839+repeat =
5840+ Jdec.succeed Repeat
5841+ |> Jpipe.required "repeat" Jdec.int
58485842
5849-encodeTypeClass : TypeClass -> Jenc.Value
5850-encodeTypeClass x =
5843+encodeRepeat : Repeat -> Jenc.Value
5844+encodeRepeat x =
58515845 Jenc.object
5852- [ ("type", Jenc.int x.typeType)
5846+ [ ("repeat", Jenc.int x.repeat)
5847+ ]
5848+
5849+require : Jdec.Decoder Require
5850+require =
5851+ Jdec.succeed Require
5852+ |> Jpipe.required "require" Jdec.int
5853+
5854+encodeRequire : Require -> Jenc.Value
5855+encodeRequire x =
5856+ Jenc.object
5857+ [ ("require", Jenc.int x.require)
5858+ ]
5859+
5860+required : Jdec.Decoder Required
5861+required =
5862+ Jdec.succeed Required
5863+ |> Jpipe.required "required" Jdec.int
5864+
5865+encodeRequired : Required -> Jenc.Value
5866+encodeRequired x =
5867+ Jenc.object
5868+ [ ("required", Jenc.int x.required)
5869+ ]
5870+
5871+requires : Jdec.Decoder Requires
5872+requires =
5873+ Jdec.succeed Requires
5874+ |> Jpipe.required "requires" Jdec.int
5875+
5876+encodeRequires : Requires -> Jenc.Value
5877+encodeRequires x =
5878+ Jenc.object
5879+ [ ("requires", Jenc.int x.requires)
58535880 ]
58545881
58555882 restrict : Jdec.Decoder Restrict
@@ -6446,33 +6473,15 @@ encodeTrueClass x =
64466473 [ ("True", Jenc.int x.true)
64476474 ]
64486475
6449-try : Jdec.Decoder Try
6450-try =
6451- Jdec.succeed Try
6452- |> Jpipe.required "try" Jdec.int
6453-
6454-encodeTry : Try -> Jenc.Value
6455-encodeTry x =
6456- Jenc.object
6457- [ ("try", Jenc.int x.try)
6458- ]
6459-
6460-typealias : Jdec.Decoder Typealias
6461-typealias =
6462- Jdec.succeed Typealias
6463- |> Jpipe.required "typealias" Jdec.int
6464-
6465-encodeTypealias : Typealias -> Jenc.Value
6466-encodeTypealias x =
6467- Jenc.object
6468- [ ("typealias", Jenc.int x.typealias)
6469- ]
6470-
64716476 obj6 : Jdec.Decoder Obj6
64726477 obj6 =
64736478 Jdec.succeed Obj6
64746479 |> Jpipe.required "dummy" Jdec.int
6480+ |> Jpipe.required "Type" purpleType
64756481 |> Jpipe.required "where" purpleWhere
6482+ |> Jpipe.required "type" typeClass
6483+ |> Jpipe.required "try" try
6484+ |> Jpipe.required "typealias" typealias
64766485 |> Jpipe.required "typedef" typedef
64776486 |> Jpipe.required "typeid" typeid
64786487 |> Jpipe.required "typename" typename
@@ -6510,7 +6519,11 @@ encodeObj6 : Obj6 -> Jenc.Value
65106519 encodeObj6 x =
65116520 Jenc.object
65126521 [ ("dummy", Jenc.int x.dummy)
6522+ , ("Type", encodeType x.obj6Type)
65136523 , ("where", encodeWhere x.obj6Where)
6524+ , ("type", encodeTypeClass x.purpleType)
6525+ , ("try", encodeTry x.try)
6526+ , ("typealias", encodeTypealias x.typealias)
65146527 , ("typedef", encodeTypedef x.typedef)
65156528 , ("typeid", encodeTypeid x.typeid)
65166529 , ("typename", encodeTypename x.typename)
@@ -6545,6 +6558,17 @@ encodeObj6 x =
65456558 , ("yield", encodeYield x.yield)
65466559 ]
65476560
6561+purpleType : Jdec.Decoder Type
6562+purpleType =
6563+ Jdec.succeed Type
6564+ |> Jpipe.required "Type" Jdec.int
6565+
6566+encodeType : Type -> Jenc.Value
6567+encodeType x =
6568+ Jenc.object
6569+ [ ("Type", Jenc.int x.typeType)
6570+ ]
6571+
65486572 purpleWhere : Jdec.Decoder Where
65496573 purpleWhere =
65506574 Jdec.succeed Where
@@ -6556,6 +6580,39 @@ encodeWhere x =
65566580 [ ("where", Jenc.int x.whereWhere)
65576581 ]
65586582
6583+typeClass : Jdec.Decoder TypeClass
6584+typeClass =
6585+ Jdec.succeed TypeClass
6586+ |> Jpipe.required "type" Jdec.int
6587+
6588+encodeTypeClass : TypeClass -> Jenc.Value
6589+encodeTypeClass x =
6590+ Jenc.object
6591+ [ ("type", Jenc.int x.typeType)
6592+ ]
6593+
6594+try : Jdec.Decoder Try
6595+try =
6596+ Jdec.succeed Try
6597+ |> Jpipe.required "try" Jdec.int
6598+
6599+encodeTry : Try -> Jenc.Value
6600+encodeTry x =
6601+ Jenc.object
6602+ [ ("try", Jenc.int x.try)
6603+ ]
6604+
6605+typealias : Jdec.Decoder Typealias
6606+typealias =
6607+ Jdec.succeed Typealias
6608+ |> Jpipe.required "typealias" Jdec.int
6609+
6610+encodeTypealias : Typealias -> Jenc.Value
6611+encodeTypealias x =
6612+ Jenc.object
6613+ [ ("typealias", Jenc.int x.typealias)
6614+ ]
6615+
65596616 typedef : Jdec.Decoder Typedef
65606617 typedef =
65616618 Jdec.succeed Typedef
Mflowdefault / TopLevel.js+114 −87
@@ -688,6 +688,7 @@ export type Obj3 = {
688688 JsonParser: JSONParser;
689689 JsonReader: JSONReader;
690690 JsonTokenType: JSONTokenType;
691+ LocalDate: LocalDate;
691692 Locale: Locale;
692693 LongNode: LongNode;
693694 MapEntry: MapEntry;
@@ -736,8 +737,6 @@ export type Obj3 = {
736737 map: Map;
737738 metadata_property_handling: MetadataPropertyHandling;
738739 module: Module;
739- mutable: Mutable;
740- mutating: Mutating;
741740 };
742741
743742 export type Hashable = {
@@ -804,6 +803,10 @@ export type JSONTokenType = {
804803 JsonTokenType: number;
805804 };
806805
806+export type LocalDate = {
807+ LocalDate: number;
808+};
809+
807810 export type Locale = {
808811 Locale: number;
809812 };
@@ -992,14 +995,6 @@ export type Module = {
992995 module: number;
993996 };
994997
995-export type Mutable = {
996- mutable: number;
997-};
998-
999-export type Mutating = {
1000- mutating: number;
1001-};
1002-
1003998 export type Obj4 = {
1004999 NO: No;
10051000 NSError: NSError;
@@ -1012,9 +1007,13 @@ export type Obj4 = {
10121007 ObjectNode: ObjectNode;
10131008 ObjectReader: ObjectReader;
10141009 ObjectWriter: ObjectWriter;
1010+ OffsetDateTime: OffsetDateTime;
1011+ OffsetTime: OffsetTime;
10151012 Protocol: Protocol;
10161013 RegExp: RegExpClass;
10171014 dummy: number;
1015+ mutable: Mutable;
1016+ mutating: Mutating;
10181017 namespace: Namespace;
10191018 native: Native;
10201019 new: New;
@@ -1062,10 +1061,6 @@ export type Obj4 = {
10621061 ref: Ref;
10631062 register: Register;
10641063 reinterpret_cast: ReinterpretCast;
1065- repeat: Repeat;
1066- require: Require;
1067- required: Required;
1068- requires: Requires;
10691064 };
10701065
10711066 export type No = {
@@ -1112,6 +1107,14 @@ export type ObjectWriter = {
11121107 ObjectWriter: number;
11131108 };
11141109
1110+export type OffsetDateTime = {
1111+ OffsetDateTime: number;
1112+};
1113+
1114+export type OffsetTime = {
1115+ OffsetTime: number;
1116+};
1117+
11151118 export type Protocol = {
11161119 Protocol: number;
11171120 };
@@ -1120,6 +1123,14 @@ export type RegExpClass = {
11201123 RegExp: string;
11211124 };
11221125
1126+export type Mutable = {
1127+ mutable: number;
1128+};
1129+
1130+export type Mutating = {
1131+ mutating: number;
1132+};
1133+
11231134 export type Namespace = {
11241135 namespace: number;
11251136 };
@@ -1308,22 +1319,6 @@ export type ReinterpretCast = {
13081319 reinterpret_cast: number;
13091320 };
13101321
1311-export type Repeat = {
1312- repeat: number;
1313-};
1314-
1315-export type Require = {
1316- require: number;
1317-};
1318-
1319-export type Required = {
1320- required: number;
1321-};
1322-
1323-export type Requires = {
1324- requires: number;
1325-};
1326-
13271322 export type Obj5 = {
13281323 KSerializer: KSerializer;
13291324 PrimitiveKind: PrimitiveKind;
@@ -1344,8 +1339,11 @@ export type Obj5 = {
13441339 TimeOnlyConverter: TimeOnlyConverter;
13451340 TimeZone: TimeZone;
13461341 True: True;
1347- Type: Type;
13481342 dummy: number;
1343+ repeat: Repeat;
1344+ require: Require;
1345+ required: Required;
1346+ requires: Requires;
13491347 restrict: Restrict;
13501348 retain: Retain;
13511349 rethrows: Rethrows;
@@ -1387,9 +1385,6 @@ export type Obj5 = {
13871385 top_level: TopLevelClass;
13881386 transient: Transient;
13891387 true: TrueClass;
1390- try: Try;
1391- type: TypeClass;
1392- typealias: Typealias;
13931388 };
13941389
13951390 export type KSerializer = {
@@ -1468,8 +1463,20 @@ export type True = {
14681463 True: number;
14691464 };
14701465
1471-export type Type = {
1472- Type: number;
1466+export type Repeat = {
1467+ repeat: number;
1468+};
1469+
1470+export type Require = {
1471+ require: number;
1472+};
1473+
1474+export type Required = {
1475+ required: number;
1476+};
1477+
1478+export type Requires = {
1479+ requires: number;
14731480 };
14741481
14751482 export type Restrict = {
@@ -1636,19 +1643,8 @@ export type TrueClass = {
16361643 true: number;
16371644 };
16381645
1639-export type Try = {
1640- try: number;
1641-};
1642-
1643-export type TypeClass = {
1644- type: number;
1645-};
1646-
1647-export type Typealias = {
1648- typealias: number;
1649-};
1650-
16511646 export type Obj6 = {
1647+ Type: Type;
16521648 UUID: UUID;
16531649 UnmarshalJSON: UnmarshalJSON;
16541650 UseSerializers: UseSerializers;
@@ -1656,6 +1652,9 @@ export type Obj6 = {
16561652 Utf8JsonWriter: Utf8JSONWriter;
16571653 YES: Yes;
16581654 dummy: number;
1655+ try: Try;
1656+ type: TypeClass;
1657+ typealias: Typealias;
16591658 typedef: Typedef;
16601659 typeid: Typeid;
16611660 typename: Typename;
@@ -1685,6 +1684,10 @@ export type Obj6 = {
16851684 yield: Yield;
16861685 };
16871686
1687+export type Type = {
1688+ Type: number;
1689+};
1690+
16881691 export type UUID = {
16891692 UUID: number;
16901693 };
@@ -1709,6 +1712,18 @@ export type Yes = {
17091712 YES: number;
17101713 };
17111714
1715+export type Try = {
1716+ try: number;
1717+};
1718+
1719+export type TypeClass = {
1720+ type: number;
1721+};
1722+
1723+export type Typealias = {
1724+ typealias: number;
1725+};
1726+
17121727 export type Typedef = {
17131728 typedef: number;
17141729 };
@@ -2547,6 +2562,7 @@ const typeMap: any = {
25472562 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
25482563 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
25492564 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2565+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
25502566 { json: "Locale", js: "Locale", typ: r("Locale") },
25512567 { json: "LongNode", js: "LongNode", typ: r("LongNode") },
25522568 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
@@ -2595,8 +2611,6 @@ const typeMap: any = {
25952611 { json: "map", js: "map", typ: r("Map") },
25962612 { json: "metadata_property_handling", js: "metadata_property_handling", typ: r("MetadataPropertyHandling") },
25972613 { json: "module", js: "module", typ: r("Module") },
2598- { json: "mutable", js: "mutable", typ: r("Mutable") },
2599- { json: "mutating", js: "mutating", typ: r("Mutating") },
26002614 ], false),
26012615 "Hashable": o([
26022616 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2646,6 +2660,9 @@ const typeMap: any = {
26462660 "JSONTokenType": o([
26472661 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
26482662 ], false),
2663+ "LocalDate": o([
2664+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2665+ ], false),
26492666 "Locale": o([
26502667 { json: "Locale", js: "Locale", typ: i(0) },
26512668 ], false),
@@ -2787,12 +2804,6 @@ const typeMap: any = {
27872804 "Module": o([
27882805 { json: "module", js: "module", typ: i(0) },
27892806 ], false),
2790- "Mutable": o([
2791- { json: "mutable", js: "mutable", typ: i(0) },
2792- ], false),
2793- "Mutating": o([
2794- { json: "mutating", js: "mutating", typ: i(0) },
2795- ], false),
27962807 "Obj4": o([
27972808 { json: "NO", js: "NO", typ: r("No") },
27982809 { json: "NSError", js: "NSError", typ: r("NSError") },
@@ -2805,9 +2816,13 @@ const typeMap: any = {
28052816 { json: "ObjectNode", js: "ObjectNode", typ: r("ObjectNode") },
28062817 { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") },
28072818 { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") },
2819+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2820+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
28082821 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
28092822 { json: "RegExp", js: "RegExp", typ: r("RegExpClass") },
28102823 { json: "dummy", js: "dummy", typ: i(0) },
2824+ { json: "mutable", js: "mutable", typ: r("Mutable") },
2825+ { json: "mutating", js: "mutating", typ: r("Mutating") },
28112826 { json: "namespace", js: "namespace", typ: r("Namespace") },
28122827 { json: "native", js: "native", typ: r("Native") },
28132828 { json: "new", js: "new", typ: r("New") },
@@ -2855,10 +2870,6 @@ const typeMap: any = {
28552870 { json: "ref", js: "ref", typ: r("Ref") },
28562871 { json: "register", js: "register", typ: r("Register") },
28572872 { json: "reinterpret_cast", js: "reinterpret_cast", typ: r("ReinterpretCast") },
2858- { json: "repeat", js: "repeat", typ: r("Repeat") },
2859- { json: "require", js: "require", typ: r("Require") },
2860- { json: "required", js: "required", typ: r("Required") },
2861- { json: "requires", js: "requires", typ: r("Requires") },
28622873 ], false),
28632874 "No": o([
28642875 { json: "NO", js: "NO", typ: i(0) },
@@ -2893,12 +2904,24 @@ const typeMap: any = {
28932904 "ObjectWriter": o([
28942905 { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) },
28952906 ], false),
2907+ "OffsetDateTime": o([
2908+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2909+ ], false),
2910+ "OffsetTime": o([
2911+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2912+ ], false),
28962913 "Protocol": o([
28972914 { json: "Protocol", js: "Protocol", typ: i(0) },
28982915 ], false),
28992916 "RegExpClass": o([
29002917 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
29012918 ], false),
2919+ "Mutable": o([
2920+ { json: "mutable", js: "mutable", typ: i(0) },
2921+ ], false),
2922+ "Mutating": o([
2923+ { json: "mutating", js: "mutating", typ: i(0) },
2924+ ], false),
29022925 "Namespace": o([
29032926 { json: "namespace", js: "namespace", typ: i(0) },
29042927 ], false),
@@ -3040,18 +3063,6 @@ const typeMap: any = {
30403063 "ReinterpretCast": o([
30413064 { json: "reinterpret_cast", js: "reinterpret_cast", typ: i(0) },
30423065 ], false),
3043- "Repeat": o([
3044- { json: "repeat", js: "repeat", typ: i(0) },
3045- ], false),
3046- "Require": o([
3047- { json: "require", js: "require", typ: i(0) },
3048- ], false),
3049- "Required": o([
3050- { json: "required", js: "required", typ: i(0) },
3051- ], false),
3052- "Requires": o([
3053- { json: "requires", js: "requires", typ: i(0) },
3054- ], false),
30553066 "Obj5": o([
30563067 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
30573068 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -3072,8 +3083,11 @@ const typeMap: any = {
30723083 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: r("TimeOnlyConverter") },
30733084 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
30743085 { json: "True", js: "True", typ: r("True") },
3075- { json: "Type", js: "Type", typ: r("Type") },
30763086 { json: "dummy", js: "dummy", typ: i(0) },
3087+ { json: "repeat", js: "repeat", typ: r("Repeat") },
3088+ { json: "require", js: "require", typ: r("Require") },
3089+ { json: "required", js: "required", typ: r("Required") },
3090+ { json: "requires", js: "requires", typ: r("Requires") },
30773091 { json: "restrict", js: "restrict", typ: r("Restrict") },
30783092 { json: "retain", js: "retain", typ: r("Retain") },
30793093 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
@@ -3115,9 +3129,6 @@ const typeMap: any = {
31153129 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
31163130 { json: "transient", js: "transient", typ: r("Transient") },
31173131 { json: "true", js: "true", typ: r("TrueClass") },
3118- { json: "try", js: "try", typ: r("Try") },
3119- { json: "type", js: "type", typ: r("TypeClass") },
3120- { json: "typealias", js: "typealias", typ: r("Typealias") },
31213132 ], false),
31223133 "KSerializer": o([
31233134 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3176,8 +3187,17 @@ const typeMap: any = {
31763187 "True": o([
31773188 { json: "True", js: "True", typ: i(0) },
31783189 ], false),
3179- "Type": o([
3180- { json: "Type", js: "Type", typ: i(0) },
3190+ "Repeat": o([
3191+ { json: "repeat", js: "repeat", typ: i(0) },
3192+ ], false),
3193+ "Require": o([
3194+ { json: "require", js: "require", typ: i(0) },
3195+ ], false),
3196+ "Required": o([
3197+ { json: "required", js: "required", typ: i(0) },
3198+ ], false),
3199+ "Requires": o([
3200+ { json: "requires", js: "requires", typ: i(0) },
31813201 ], false),
31823202 "Restrict": o([
31833203 { json: "restrict", js: "restrict", typ: i(0) },
@@ -3302,16 +3322,8 @@ const typeMap: any = {
33023322 "TrueClass": o([
33033323 { json: "true", js: "true", typ: i(0) },
33043324 ], false),
3305- "Try": o([
3306- { json: "try", js: "try", typ: i(0) },
3307- ], false),
3308- "TypeClass": o([
3309- { json: "type", js: "type", typ: i(0) },
3310- ], false),
3311- "Typealias": o([
3312- { json: "typealias", js: "typealias", typ: i(0) },
3313- ], false),
33143325 "Obj6": o([
3326+ { json: "Type", js: "Type", typ: r("Type") },
33153327 { json: "UUID", js: "UUID", typ: r("UUID") },
33163328 { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
33173329 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
@@ -3319,6 +3331,9 @@ const typeMap: any = {
33193331 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
33203332 { json: "YES", js: "YES", typ: r("Yes") },
33213333 { json: "dummy", js: "dummy", typ: i(0) },
3334+ { json: "try", js: "try", typ: r("Try") },
3335+ { json: "type", js: "type", typ: r("TypeClass") },
3336+ { json: "typealias", js: "typealias", typ: r("Typealias") },
33223337 { json: "typedef", js: "typedef", typ: r("Typedef") },
33233338 { json: "typeid", js: "typeid", typ: r("Typeid") },
33243339 { json: "typename", js: "typename", typ: r("Typename") },
@@ -3347,6 +3362,9 @@ const typeMap: any = {
33473362 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
33483363 { json: "yield", js: "yield", typ: r("Yield") },
33493364 ], false),
3365+ "Type": o([
3366+ { json: "Type", js: "Type", typ: i(0) },
3367+ ], false),
33503368 "UUID": o([
33513369 { json: "UUID", js: "UUID", typ: i(0) },
33523370 ], false),
@@ -3365,6 +3383,15 @@ const typeMap: any = {
33653383 "Yes": o([
33663384 { json: "YES", js: "YES", typ: i(0) },
33673385 ], false),
3386+ "Try": o([
3387+ { json: "try", js: "try", typ: i(0) },
3388+ ], false),
3389+ "TypeClass": o([
3390+ { json: "type", js: "type", typ: i(0) },
3391+ ], false),
3392+ "Typealias": o([
3393+ { json: "typealias", js: "typealias", typ: i(0) },
3394+ ], false),
33683395 "Typedef": o([
33693396 { json: "typedef", js: "typedef", typ: i(0) },
33703397 ], false),
Mgolangdefault / quicktype.go+65 −50
@@ -734,6 +734,7 @@ type Obj3 struct {
734734 Left Left `json:"left"`
735735 Let Let `json:"let"`
736736 List List `json:"list"`
737+ LocalDate LocalDate `json:"LocalDate"`
737738 Locale Locale `json:"Locale"`
738739 Lock Lock `json:"lock"`
739740 Long Long `json:"long"`
@@ -743,8 +744,6 @@ type Obj3 struct {
743744 MarshalJSON MarshalJSON `json:"MarshalJSON"`
744745 MetadataPropertyHandling MetadataPropertyHandling `json:"metadata_property_handling"`
745746 Module Module `json:"module"`
746- Mutable Mutable `json:"mutable"`
747- Mutating Mutating `json:"mutating"`
748747 }
749748
750749 type Function struct {
@@ -963,6 +962,10 @@ type List struct {
963962 List int64 `json:"list"`
964963 }
965964
965+type LocalDate struct {
966+ LocalDate int64 `json:"LocalDate"`
967+}
968+
966969 type Locale struct {
967970 Locale int64 `json:"Locale"`
968971 }
@@ -999,16 +1002,10 @@ type Module struct {
9991002 Module int64 `json:"module"`
10001003 }
10011004
1002-type Mutable struct {
1003- Mutable int64 `json:"mutable"`
1004-}
1005-
1006-type Mutating struct {
1007- Mutating int64 `json:"mutating"`
1008-}
1009-
10101005 type Obj4 struct {
10111006 Dummy int64 `json:"dummy"`
1007+ Mutable Mutable `json:"mutable"`
1008+ Mutating Mutating `json:"mutating"`
10121009 NSError NSError `json:"NSError"`
10131010 NSObject NSObject `json:"NSObject"`
10141011 NSString NSString `json:"NSString"`
@@ -1039,6 +1036,8 @@ type Obj4 struct {
10391036 ObjectReader ObjectReader `json:"ObjectReader"`
10401037 ObjectWriter ObjectWriter `json:"ObjectWriter"`
10411038 Of Of `json:"of"`
1039+ OffsetDateTime OffsetDateTime `json:"OffsetDateTime"`
1040+ OffsetTime OffsetTime `json:"OffsetTime"`
10421041 Oneway Oneway `json:"oneway"`
10431042 Open Open `json:"open"`
10441043 Operator Operator `json:"operator"`
@@ -1069,10 +1068,14 @@ type Obj4 struct {
10691068 RegExp RegExp `json:"RegExp"`
10701069 Register Register `json:"register"`
10711070 ReinterpretCast ReinterpretCast `json:"reinterpret_cast"`
1072- Repeat Repeat `json:"repeat"`
1073- Require Require `json:"require"`
1074- Required Required `json:"required"`
1075- Requires Requires `json:"requires"`
1071+}
1072+
1073+type Mutable struct {
1074+ Mutable int64 `json:"mutable"`
1075+}
1076+
1077+type Mutating struct {
1078+ Mutating int64 `json:"mutating"`
10761079 }
10771080
10781081 type NSError struct {
@@ -1195,6 +1198,14 @@ type Of struct {
11951198 Of int64 `json:"of"`
11961199 }
11971200
1201+type OffsetDateTime struct {
1202+ OffsetDateTime int64 `json:"OffsetDateTime"`
1203+}
1204+
1205+type OffsetTime struct {
1206+ OffsetTime int64 `json:"OffsetTime"`
1207+}
1208+
11981209 type Oneway struct {
11991210 Oneway int64 `json:"oneway"`
12001211 }
@@ -1315,29 +1326,16 @@ type ReinterpretCast struct {
13151326 ReinterpretCast int64 `json:"reinterpret_cast"`
13161327 }
13171328
1318-type Repeat struct {
1319- Repeat int64 `json:"repeat"`
1320-}
1321-
1322-type Require struct {
1323- Require int64 `json:"require"`
1324-}
1325-
1326-type Required struct {
1327- Required int64 `json:"required"`
1328-}
1329-
1330-type Requires struct {
1331- Requires int64 `json:"requires"`
1332-}
1333-
13341329 type Obj5 struct {
13351330 Dummy int64 `json:"dummy"`
13361331 KSerializer KSerializer `json:"KSerializer"`
13371332 Obj5Self SelfClass `json:"self"`
13381333 Obj5True TrueClass `json:"true"`
1339- Obj5Type TypeClass `json:"type"`
13401334 PrimitiveKind PrimitiveKind `json:"PrimitiveKind"`
1335+ Repeat Repeat `json:"repeat"`
1336+ Require Require `json:"require"`
1337+ Required Required `json:"required"`
1338+ Requires Requires `json:"requires"`
13411339 Restrict Restrict `json:"restrict"`
13421340 Retain Retain `json:"retain"`
13431341 Rethrows Rethrows `json:"rethrows"`
@@ -1394,9 +1392,6 @@ type Obj5 struct {
13941392 TopLevel TopLevelClass `json:"top_level"`
13951393 Transient Transient `json:"transient"`
13961394 True True `json:"True"`
1397- Try Try `json:"try"`
1398- Type Type `json:"Type"`
1399- Typealias Typealias `json:"typealias"`
14001395 }
14011396
14021397 type KSerializer struct {
@@ -1411,14 +1406,26 @@ type TrueClass struct {
14111406 True int64 `json:"true"`
14121407 }
14131408
1414-type TypeClass struct {
1415- Type int64 `json:"type"`
1416-}
1417-
14181409 type PrimitiveKind struct {
14191410 PrimitiveKind int64 `json:"PrimitiveKind"`
14201411 }
14211412
1413+type Repeat struct {
1414+ Repeat int64 `json:"repeat"`
1415+}
1416+
1417+type Require struct {
1418+ Require int64 `json:"require"`
1419+}
1420+
1421+type Required struct {
1422+ Required int64 `json:"required"`
1423+}
1424+
1425+type Requires struct {
1426+ Requires int64 `json:"requires"`
1427+}
1428+
14221429 type Restrict struct {
14231430 Restrict int64 `json:"restrict"`
14241431 }
@@ -1643,20 +1650,12 @@ type True struct {
16431650 True int64 `json:"True"`
16441651 }
16451652
1646-type Try struct {
1647- Try int64 `json:"try"`
1648-}
1649-
1650-type Type struct {
1651- Type int64 `json:"Type"`
1652-}
1653-
1654-type Typealias struct {
1655- Typealias int64 `json:"typealias"`
1656-}
1657-
16581653 type Obj6 struct {
16591654 Dummy int64 `json:"dummy"`
1655+ Obj6Type TypeClass `json:"type"`
1656+ Try Try `json:"try"`
1657+ Type Type `json:"Type"`
1658+ Typealias Typealias `json:"typealias"`
16601659 Typedef Typedef `json:"typedef"`
16611660 Typeid Typeid `json:"typeid"`
16621661 Typename Typename `json:"typename"`
@@ -1692,6 +1691,22 @@ type Obj6 struct {
16921691 Yield Yield `json:"yield"`
16931692 }
16941693
1694+type TypeClass struct {
1695+ Type int64 `json:"type"`
1696+}
1697+
1698+type Try struct {
1699+ Try int64 `json:"try"`
1700+}
1701+
1702+type Type struct {
1703+ Type int64 `json:"Type"`
1704+}
1705+
1706+type Typealias struct {
1707+ Typealias int64 `json:"typealias"`
1708+}
1709+
16951710 type Typedef struct {
16961711 Typedef int64 `json:"typedef"`
16971712 }
Mhaskelldefault / QuickType.hs+232 −178
@@ -182,6 +182,7 @@ module QuickType
182182 , Lazy (..)
183183 , LeftClass (..)
184184 , List (..)
185+ , LocalDate (..)
185186 , Locale (..)
186187 , Lock (..)
187188 , Long (..)
@@ -190,8 +191,6 @@ module QuickType
190191 , MapEntry (..)
191192 , MarshalJSON (..)
192193 , MetadataPropertyHandling (..)
193- , Mutable (..)
194- , Mutating (..)
195194 , ID (..)
196195 , If (..)
197196 , Import (..)
@@ -200,6 +199,8 @@ module QuickType
200199 , Let (..)
201200 , Module (..)
202201 , Obj4 (..)
202+ , Mutable (..)
203+ , Mutating (..)
203204 , Namespace (..)
204205 , Native (..)
205206 , New (..)
@@ -230,6 +231,8 @@ module QuickType
230231 , ObjectNode (..)
231232 , ObjectReader (..)
232233 , ObjectWriter (..)
234+ , OffsetDateTime (..)
235+ , OffsetTime (..)
233236 , Oneway (..)
234237 , Open (..)
235238 , Operator (..)
@@ -260,18 +263,16 @@ module QuickType
260263 , RegExp (..)
261264 , Register (..)
262265 , ReinterpretCast (..)
263- , Repeat (..)
264- , Require (..)
265- , Required (..)
266- , Requires (..)
267266 , Obj5 (..)
268267 , KSerializer (..)
269268 , SelfClass (..)
270269 , Then (..)
271270 , Obj5True (..)
272- , Type (..)
273271 , PrimitiveKind (..)
274- , TypeClass (..)
272+ , Repeat (..)
273+ , Require (..)
274+ , Required (..)
275+ , Requires (..)
275276 , Restrict (..)
276277 , Retain (..)
277278 , Rethrows (..)
@@ -327,10 +328,12 @@ module QuickType
327328 , TopLevel (..)
328329 , Transient (..)
329330 , TrueClass (..)
330- , Try (..)
331- , Typealias (..)
332331 , Obj6 (..)
332+ , Type (..)
333333 , Where (..)
334+ , TypeClass (..)
335+ , Try (..)
336+ , Typealias (..)
334337 , Typedef (..)
335338 , Typeid (..)
336339 , Typename (..)
@@ -1086,6 +1089,7 @@ data Obj3 = Obj3
10861089 , lazyObj3 :: Lazy
10871090 , leftObj3 :: LeftClass
10881091 , listObj3 :: List
1092+ , localDateObj3 :: LocalDate
10891093 , localeObj3 :: Locale
10901094 , lockObj3 :: Lock
10911095 , longObj3 :: Long
@@ -1094,8 +1098,6 @@ data Obj3 = Obj3
10941098 , mapEntryObj3 :: MapEntry
10951099 , marshalJSONObj3 :: MarshalJSON
10961100 , metadataPropertyHandlingObj3 :: MetadataPropertyHandling
1097- , mutableObj3 :: Mutable
1098- , mutatingObj3 :: Mutating
10991101 , obj3IDObj3 :: ID
11001102 , obj3IfObj3 :: If
11011103 , obj3ImportObj3 :: Import
@@ -1297,6 +1299,10 @@ data List = List
12971299 { listList :: Int
12981300 } deriving (Show)
12991301
1302+data LocalDate = LocalDate
1303+ { localDateLocalDate :: Int
1304+ } deriving (Show)
1305+
13001306 data Locale = Locale
13011307 { localeLocale :: Int
13021308 } deriving (Show)
@@ -1329,14 +1335,6 @@ data MetadataPropertyHandling = MetadataPropertyHandling
13291335 { metadataPropertyHandlingMetadataPropertyHandling :: Int
13301336 } deriving (Show)
13311337
1332-data Mutable = Mutable
1333- { mutableMutable :: Int
1334- } deriving (Show)
1335-
1336-data Mutating = Mutating
1337- { mutatingMutating :: Int
1338- } deriving (Show)
1339-
13401338 data ID = ID
13411339 { idIDID :: Int
13421340 } deriving (Show)
@@ -1367,6 +1365,8 @@ data Module = Module
13671365
13681366 data Obj4 = Obj4
13691367 { dummyObj4 :: Int
1368+ , mutableObj4 :: Mutable
1369+ , mutatingObj4 :: Mutating
13701370 , namespaceObj4 :: Namespace
13711371 , nativeObj4 :: Native
13721372 , newObj4 :: New
@@ -1397,6 +1397,8 @@ data Obj4 = Obj4
13971397 , objectNodeObj4 :: ObjectNode
13981398 , objectReaderObj4 :: ObjectReader
13991399 , objectWriterObj4 :: ObjectWriter
1400+ , offsetDateTimeObj4 :: OffsetDateTime
1401+ , offsetTimeObj4 :: OffsetTime
14001402 , onewayObj4 :: Oneway
14011403 , openObj4 :: Open
14021404 , operatorObj4 :: Operator
@@ -1427,10 +1429,14 @@ data Obj4 = Obj4
14271429 , regExpObj4 :: RegExp
14281430 , registerObj4 :: Register
14291431 , reinterpretCastObj4 :: ReinterpretCast
1430- , repeatObj4 :: Repeat
1431- , requireObj4 :: Require
1432- , requiredObj4 :: Required
1433- , requiresObj4 :: Requires
1432+ } deriving (Show)
1433+
1434+data Mutable = Mutable
1435+ { mutableMutable :: Int
1436+ } deriving (Show)
1437+
1438+data Mutating = Mutating
1439+ { mutatingMutating :: Int
14341440 } deriving (Show)
14351441
14361442 data Namespace = Namespace
@@ -1553,6 +1559,14 @@ data ObjectWriter = ObjectWriter
15531559 { objectWriterObjectWriter :: Int
15541560 } deriving (Show)
15551561
1562+data OffsetDateTime = OffsetDateTime
1563+ { offsetDateTimeOffsetDateTime :: Int
1564+ } deriving (Show)
1565+
1566+data OffsetTime = OffsetTime
1567+ { offsetTimeOffsetTime :: Int
1568+ } deriving (Show)
1569+
15561570 data Oneway = Oneway
15571571 { onewayOneway :: Int
15581572 } deriving (Show)
@@ -1673,31 +1687,17 @@ data ReinterpretCast = ReinterpretCast
16731687 { reinterpretCastReinterpretCast :: Int
16741688 } deriving (Show)
16751689
1676-data Repeat = Repeat
1677- { repeatRepeat :: Int
1678- } deriving (Show)
1679-
1680-data Require = Require
1681- { requireRequire :: Int
1682- } deriving (Show)
1683-
1684-data Required = Required
1685- { requiredRequired :: Int
1686- } deriving (Show)
1687-
1688-data Requires = Requires
1689- { requiresRequires :: Int
1690- } deriving (Show)
1691-
16921690 data Obj5 = Obj5
16931691 { dummyObj5 :: Int
16941692 , kSerializerObj5 :: KSerializer
16951693 , obj5SelfObj5 :: SelfClass
16961694 , obj5ThenObj5 :: Then
16971695 , obj5TrueObj5 :: Obj5True
1698- , obj5TypeObj5 :: Type
16991696 , primitiveKindObj5 :: PrimitiveKind
1700- , purpleTypeObj5 :: TypeClass
1697+ , repeatObj5 :: Repeat
1698+ , requireObj5 :: Require
1699+ , requiredObj5 :: Required
1700+ , requiresObj5 :: Requires
17011701 , restrictObj5 :: Restrict
17021702 , retainObj5 :: Retain
17031703 , rethrowsObj5 :: Rethrows
@@ -1753,8 +1753,6 @@ data Obj5 = Obj5
17531753 , topLevelObj5 :: TopLevel
17541754 , transientObj5 :: Transient
17551755 , trueObj5 :: TrueClass
1756- , tryObj5 :: Try
1757- , typealiasObj5 :: Typealias
17581756 } deriving (Show)
17591757
17601758 data KSerializer = KSerializer
@@ -1773,16 +1771,24 @@ data Obj5True = Obj5True
17731771 { trueObj5True :: Int
17741772 } deriving (Show)
17751773
1776-data Type = Type
1777- { typeTypeType :: Int
1778- } deriving (Show)
1779-
17801774 data PrimitiveKind = PrimitiveKind
17811775 { primitiveKindPrimitiveKind :: Int
17821776 } deriving (Show)
17831777
1784-data TypeClass = TypeClass
1785- { typeTypeTypeClass :: Int
1778+data Repeat = Repeat
1779+ { repeatRepeat :: Int
1780+ } deriving (Show)
1781+
1782+data Require = Require
1783+ { requireRequire :: Int
1784+ } deriving (Show)
1785+
1786+data Required = Required
1787+ { requiredRequired :: Int
1788+ } deriving (Show)
1789+
1790+data Requires = Requires
1791+ { requiresRequires :: Int
17861792 } deriving (Show)
17871793
17881794 data Restrict = Restrict
@@ -2005,17 +2011,13 @@ data TrueClass = TrueClass
20052011 { trueTrueClass :: Int
20062012 } deriving (Show)
20072013
2008-data Try = Try
2009- { tryTry :: Int
2010- } deriving (Show)
2011-
2012-data Typealias = Typealias
2013- { typealiasTypealias :: Int
2014- } deriving (Show)
2015-
20162014 data Obj6 = Obj6
20172015 { dummyObj6 :: Int
2016+ , obj6TypeObj6 :: Type
20182017 , obj6WhereObj6 :: Where
2018+ , purpleTypeObj6 :: TypeClass
2019+ , tryObj6 :: Try
2020+ , typealiasObj6 :: Typealias
20192021 , typedefObj6 :: Typedef
20202022 , typeidObj6 :: Typeid
20212023 , typenameObj6 :: Typename
@@ -2050,10 +2052,26 @@ data Obj6 = Obj6
20502052 , yieldObj6 :: Yield
20512053 } deriving (Show)
20522054
2055+data Type = Type
2056+ { typeTypeType :: Int
2057+ } deriving (Show)
2058+
20532059 data Where = Where
20542060 { whereWhereWhere :: Int
20552061 } deriving (Show)
20562062
2063+data TypeClass = TypeClass
2064+ { typeTypeTypeClass :: Int
2065+ } deriving (Show)
2066+
2067+data Try = Try
2068+ { tryTry :: Int
2069+ } deriving (Show)
2070+
2071+data Typealias = Typealias
2072+ { typealiasTypealias :: Int
2073+ } deriving (Show)
2074+
20572075 data Typedef = Typedef
20582076 { typedefTypedef :: Int
20592077 } deriving (Show)
@@ -3774,7 +3792,7 @@ instance FromJSON Obj2False where
37743792 <$> v .: "false"
37753793
37763794 instance ToJSON Obj3 where
3777- toJSON (Obj3 dummyObj3 functionObj3 getObj3 globalObj3 goObj3 gotoObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 intNodeObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localeObj3 lockObj3 longObj3 longNodeObj3 mapObj3 mapEntryObj3 marshalJSONObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
3795+ toJSON (Obj3 dummyObj3 functionObj3 getObj3 globalObj3 goObj3 gotoObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 intNodeObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localDateObj3 localeObj3 lockObj3 longObj3 longNodeObj3 mapObj3 mapEntryObj3 marshalJSONObj3 metadataPropertyHandlingObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
37783796 object $ foldMap (maybe [] pure)
37793797 [ Just $ "dummy" .= dummyObj3
37803798 , Just $ "function" .= functionObj3
@@ -3825,6 +3843,7 @@ instance ToJSON Obj3 where
38253843 , Just $ "lazy" .= lazyObj3
38263844 , Just $ "left" .= leftObj3
38273845 , Just $ "list" .= listObj3
3846+ , Just $ "LocalDate" .= localDateObj3
38283847 , Just $ "Locale" .= localeObj3
38293848 , Just $ "lock" .= lockObj3
38303849 , Just $ "long" .= longObj3
@@ -3833,8 +3852,6 @@ instance ToJSON Obj3 where
38333852 , Just $ "MapEntry" .= mapEntryObj3
38343853 , Just $ "MarshalJSON" .= marshalJSONObj3
38353854 , Just $ "metadata_property_handling" .= metadataPropertyHandlingObj3
3836- , Just $ "mutable" .= mutableObj3
3837- , Just $ "mutating" .= mutatingObj3
38383855 , Just $ "id" .= obj3IDObj3
38393856 , Just $ "if" .= obj3IfObj3
38403857 , Just $ "import" .= obj3ImportObj3
@@ -3895,6 +3912,7 @@ instance FromJSON Obj3 where
38953912 <*> v .: "lazy"
38963913 <*> v .: "left"
38973914 <*> v .: "list"
3915+ <*> v .: "LocalDate"
38983916 <*> v .: "Locale"
38993917 <*> v .: "lock"
39003918 <*> v .: "long"
@@ -3903,8 +3921,6 @@ instance FromJSON Obj3 where
39033921 <*> v .: "MapEntry"
39043922 <*> v .: "MarshalJSON"
39053923 <*> v .: "metadata_property_handling"
3906- <*> v .: "mutable"
3907- <*> v .: "mutating"
39083924 <*> v .: "id"
39093925 <*> v .: "if"
39103926 <*> v .: "import"
@@ -4393,6 +4409,16 @@ instance FromJSON List where
43934409 parseJSON (Object v) = List
43944410 <$> v .: "list"
43954411
4412+instance ToJSON LocalDate where
4413+ toJSON (LocalDate localDateLocalDate) =
4414+ object $ foldMap (maybe [] pure)
4415+ [ Just $ "LocalDate" .= localDateLocalDate
4416+ ]
4417+
4418+instance FromJSON LocalDate where
4419+ parseJSON (Object v) = LocalDate
4420+ <$> v .: "LocalDate"
4421+
43964422 instance ToJSON Locale where
43974423 toJSON (Locale localeLocale) =
43984424 object $ foldMap (maybe [] pure)
@@ -4473,26 +4499,6 @@ instance FromJSON MetadataPropertyHandling where
44734499 parseJSON (Object v) = MetadataPropertyHandling
44744500 <$> v .: "metadata_property_handling"
44754501
4476-instance ToJSON Mutable where
4477- toJSON (Mutable mutableMutable) =
4478- object $ foldMap (maybe [] pure)
4479- [ Just $ "mutable" .= mutableMutable
4480- ]
4481-
4482-instance FromJSON Mutable where
4483- parseJSON (Object v) = Mutable
4484- <$> v .: "mutable"
4485-
4486-instance ToJSON Mutating where
4487- toJSON (Mutating mutatingMutating) =
4488- object $ foldMap (maybe [] pure)
4489- [ Just $ "mutating" .= mutatingMutating
4490- ]
4491-
4492-instance FromJSON Mutating where
4493- parseJSON (Object v) = Mutating
4494- <$> v .: "mutating"
4495-
44964502 instance ToJSON ID where
44974503 toJSON (ID idIDID) =
44984504 object $ foldMap (maybe [] pure)
@@ -4564,9 +4570,11 @@ instance FromJSON Module where
45644570 <$> v .: "module"
45654571
45664572 instance ToJSON Obj4 where
4567- toJSON (Obj4 dummyObj4 namespaceObj4 nativeObj4 newObj4 newtonsoftObj4 nilObj4 noObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullNodeObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 objectNodeObj4 objectReaderObj4 objectWriterObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4) =
4573+ toJSON (Obj4 dummyObj4 mutableObj4 mutatingObj4 namespaceObj4 nativeObj4 newObj4 newtonsoftObj4 nilObj4 noObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullNodeObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 objectNodeObj4 objectReaderObj4 objectWriterObj4 offsetDateTimeObj4 offsetTimeObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4) =
45684574 object $ foldMap (maybe [] pure)
45694575 [ Just $ "dummy" .= dummyObj4
4576+ , Just $ "mutable" .= mutableObj4
4577+ , Just $ "mutating" .= mutatingObj4
45704578 , Just $ "namespace" .= namespaceObj4
45714579 , Just $ "native" .= nativeObj4
45724580 , Just $ "new" .= newObj4
@@ -4597,6 +4605,8 @@ instance ToJSON Obj4 where
45974605 , Just $ "ObjectNode" .= objectNodeObj4
45984606 , Just $ "ObjectReader" .= objectReaderObj4
45994607 , Just $ "ObjectWriter" .= objectWriterObj4
4608+ , Just $ "OffsetDateTime" .= offsetDateTimeObj4
4609+ , Just $ "OffsetTime" .= offsetTimeObj4
46004610 , Just $ "oneway" .= onewayObj4
46014611 , Just $ "open" .= openObj4
46024612 , Just $ "operator" .= operatorObj4
@@ -4627,15 +4637,13 @@ instance ToJSON Obj4 where
46274637 , Just $ "RegExp" .= regExpObj4
46284638 , Just $ "register" .= registerObj4
46294639 , Just $ "reinterpret_cast" .= reinterpretCastObj4
4630- , Just $ "repeat" .= repeatObj4
4631- , Just $ "require" .= requireObj4
4632- , Just $ "required" .= requiredObj4
4633- , Just $ "requires" .= requiresObj4
46344640 ]
46354641
46364642 instance FromJSON Obj4 where
46374643 parseJSON (Object v) = Obj4
46384644 <$> v .: "dummy"
4645+ <*> v .: "mutable"
4646+ <*> v .: "mutating"
46394647 <*> v .: "namespace"
46404648 <*> v .: "native"
46414649 <*> v .: "new"
@@ -4666,6 +4674,8 @@ instance FromJSON Obj4 where
46664674 <*> v .: "ObjectNode"
46674675 <*> v .: "ObjectReader"
46684676 <*> v .: "ObjectWriter"
4677+ <*> v .: "OffsetDateTime"
4678+ <*> v .: "OffsetTime"
46694679 <*> v .: "oneway"
46704680 <*> v .: "open"
46714681 <*> v .: "operator"
@@ -4696,10 +4706,26 @@ instance FromJSON Obj4 where
46964706 <*> v .: "RegExp"
46974707 <*> v .: "register"
46984708 <*> v .: "reinterpret_cast"
4699- <*> v .: "repeat"
4700- <*> v .: "require"
4701- <*> v .: "required"
4702- <*> v .: "requires"
4709+
4710+instance ToJSON Mutable where
4711+ toJSON (Mutable mutableMutable) =
4712+ object $ foldMap (maybe [] pure)
4713+ [ Just $ "mutable" .= mutableMutable
4714+ ]
4715+
4716+instance FromJSON Mutable where
4717+ parseJSON (Object v) = Mutable
4718+ <$> v .: "mutable"
4719+
4720+instance ToJSON Mutating where
4721+ toJSON (Mutating mutatingMutating) =
4722+ object $ foldMap (maybe [] pure)
4723+ [ Just $ "mutating" .= mutatingMutating
4724+ ]
4725+
4726+instance FromJSON Mutating where
4727+ parseJSON (Object v) = Mutating
4728+ <$> v .: "mutating"
47034729
47044730 instance ToJSON Namespace where
47054731 toJSON (Namespace namespaceNamespace) =
@@ -5001,6 +5027,26 @@ instance FromJSON ObjectWriter where
50015027 parseJSON (Object v) = ObjectWriter
50025028 <$> v .: "ObjectWriter"
50035029
5030+instance ToJSON OffsetDateTime where
5031+ toJSON (OffsetDateTime offsetDateTimeOffsetDateTime) =
5032+ object $ foldMap (maybe [] pure)
5033+ [ Just $ "OffsetDateTime" .= offsetDateTimeOffsetDateTime
5034+ ]
5035+
5036+instance FromJSON OffsetDateTime where
5037+ parseJSON (Object v) = OffsetDateTime
5038+ <$> v .: "OffsetDateTime"
5039+
5040+instance ToJSON OffsetTime where
5041+ toJSON (OffsetTime offsetTimeOffsetTime) =
5042+ object $ foldMap (maybe [] pure)
5043+ [ Just $ "OffsetTime" .= offsetTimeOffsetTime
5044+ ]
5045+
5046+instance FromJSON OffsetTime where
5047+ parseJSON (Object v) = OffsetTime
5048+ <$> v .: "OffsetTime"
5049+
50045050 instance ToJSON Oneway where
50055051 toJSON (Oneway onewayOneway) =
50065052 object $ foldMap (maybe [] pure)
@@ -5301,57 +5347,19 @@ instance FromJSON ReinterpretCast where
53015347 parseJSON (Object v) = ReinterpretCast
53025348 <$> v .: "reinterpret_cast"
53035349
5304-instance ToJSON Repeat where
5305- toJSON (Repeat repeatRepeat) =
5306- object $ foldMap (maybe [] pure)
5307- [ Just $ "repeat" .= repeatRepeat
5308- ]
5309-
5310-instance FromJSON Repeat where
5311- parseJSON (Object v) = Repeat
5312- <$> v .: "repeat"
5313-
5314-instance ToJSON Require where
5315- toJSON (Require requireRequire) =
5316- object $ foldMap (maybe [] pure)
5317- [ Just $ "require" .= requireRequire
5318- ]
5319-
5320-instance FromJSON Require where
5321- parseJSON (Object v) = Require
5322- <$> v .: "require"
5323-
5324-instance ToJSON Required where
5325- toJSON (Required requiredRequired) =
5326- object $ foldMap (maybe [] pure)
5327- [ Just $ "required" .= requiredRequired
5328- ]
5329-
5330-instance FromJSON Required where
5331- parseJSON (Object v) = Required
5332- <$> v .: "required"
5333-
5334-instance ToJSON Requires where
5335- toJSON (Requires requiresRequires) =
5336- object $ foldMap (maybe [] pure)
5337- [ Just $ "requires" .= requiresRequires
5338- ]
5339-
5340-instance FromJSON Requires where
5341- parseJSON (Object v) = Requires
5342- <$> v .: "requires"
5343-
53445350 instance ToJSON Obj5 where
5345- toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 restrictObj5 retainObj5 rethrowsObj5 returnObj5 rightObj5 runtimeTypeObj5 sObj5 sbyteObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializationFeatureObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 textNodeObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toDictObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5) =
5351+ toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 primitiveKindObj5 repeatObj5 requireObj5 requiredObj5 requiresObj5 restrictObj5 retainObj5 rethrowsObj5 returnObj5 rightObj5 runtimeTypeObj5 sObj5 sbyteObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializationFeatureObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 textNodeObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toDictObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5) =
53465352 object $ foldMap (maybe [] pure)
53475353 [ Just $ "dummy" .= dummyObj5
53485354 , Just $ "KSerializer" .= kSerializerObj5
53495355 , Just $ "self" .= obj5SelfObj5
53505356 , Just $ "then" .= obj5ThenObj5
53515357 , Just $ "true" .= obj5TrueObj5
5352- , Just $ "Type" .= obj5TypeObj5
53535358 , Just $ "PrimitiveKind" .= primitiveKindObj5
5354- , Just $ "type" .= purpleTypeObj5
5359+ , Just $ "repeat" .= repeatObj5
5360+ , Just $ "require" .= requireObj5
5361+ , Just $ "required" .= requiredObj5
5362+ , Just $ "requires" .= requiresObj5
53555363 , Just $ "restrict" .= restrictObj5
53565364 , Just $ "retain" .= retainObj5
53575365 , Just $ "rethrows" .= rethrowsObj5
@@ -5407,8 +5415,6 @@ instance ToJSON Obj5 where
54075415 , Just $ "top_level" .= topLevelObj5
54085416 , Just $ "transient" .= transientObj5
54095417 , Just $ "True" .= trueObj5
5410- , Just $ "try" .= tryObj5
5411- , Just $ "typealias" .= typealiasObj5
54125418 ]
54135419
54145420 instance FromJSON Obj5 where
@@ -5418,9 +5424,11 @@ instance FromJSON Obj5 where
54185424 <*> v .: "self"
54195425 <*> v .: "then"
54205426 <*> v .: "true"
5421- <*> v .: "Type"
54225427 <*> v .: "PrimitiveKind"
5423- <*> v .: "type"
5428+ <*> v .: "repeat"
5429+ <*> v .: "require"
5430+ <*> v .: "required"
5431+ <*> v .: "requires"
54245432 <*> v .: "restrict"
54255433 <*> v .: "retain"
54265434 <*> v .: "rethrows"
@@ -5476,8 +5484,6 @@ instance FromJSON Obj5 where
54765484 <*> v .: "top_level"
54775485 <*> v .: "transient"
54785486 <*> v .: "True"
5479- <*> v .: "try"
5480- <*> v .: "typealias"
54815487
54825488 instance ToJSON KSerializer where
54835489 toJSON (KSerializer kSerializerKSerializer) =
@@ -5519,16 +5525,6 @@ instance FromJSON Obj5True where
55195525 parseJSON (Object v) = Obj5True
55205526 <$> v .: "true"
55215527
5522-instance ToJSON Type where
5523- toJSON (Type typeTypeType) =
5524- object $ foldMap (maybe [] pure)
5525- [ Just $ "Type" .= typeTypeType
5526- ]
5527-
5528-instance FromJSON Type where
5529- parseJSON (Object v) = Type
5530- <$> v .: "Type"
5531-
55325528 instance ToJSON PrimitiveKind where
55335529 toJSON (PrimitiveKind primitiveKindPrimitiveKind) =
55345530 object $ foldMap (maybe [] pure)
@@ -5539,15 +5535,45 @@ instance FromJSON PrimitiveKind where
55395535 parseJSON (Object v) = PrimitiveKind
55405536 <$> v .: "PrimitiveKind"
55415537
5542-instance ToJSON TypeClass where
5543- toJSON (TypeClass typeTypeTypeClass) =
5538+instance ToJSON Repeat where
5539+ toJSON (Repeat repeatRepeat) =
55445540 object $ foldMap (maybe [] pure)
5545- [ Just $ "type" .= typeTypeTypeClass
5541+ [ Just $ "repeat" .= repeatRepeat
55465542 ]
55475543
5548-instance FromJSON TypeClass where
5549- parseJSON (Object v) = TypeClass
5550- <$> v .: "type"
5544+instance FromJSON Repeat where
5545+ parseJSON (Object v) = Repeat
5546+ <$> v .: "repeat"
5547+
5548+instance ToJSON Require where
5549+ toJSON (Require requireRequire) =
5550+ object $ foldMap (maybe [] pure)
5551+ [ Just $ "require" .= requireRequire
5552+ ]
5553+
5554+instance FromJSON Require where
5555+ parseJSON (Object v) = Require
5556+ <$> v .: "require"
5557+
5558+instance ToJSON Required where
5559+ toJSON (Required requiredRequired) =
5560+ object $ foldMap (maybe [] pure)
5561+ [ Just $ "required" .= requiredRequired
5562+ ]
5563+
5564+instance FromJSON Required where
5565+ parseJSON (Object v) = Required
5566+ <$> v .: "required"
5567+
5568+instance ToJSON Requires where
5569+ toJSON (Requires requiresRequires) =
5570+ object $ foldMap (maybe [] pure)
5571+ [ Just $ "requires" .= requiresRequires
5572+ ]
5573+
5574+instance FromJSON Requires where
5575+ parseJSON (Object v) = Requires
5576+ <$> v .: "requires"
55515577
55525578 instance ToJSON Restrict where
55535579 toJSON (Restrict restrictRestrict) =
@@ -6099,31 +6125,15 @@ instance FromJSON TrueClass where
60996125 parseJSON (Object v) = TrueClass
61006126 <$> v .: "True"
61016127
6102-instance ToJSON Try where
6103- toJSON (Try tryTry) =
6104- object $ foldMap (maybe [] pure)
6105- [ Just $ "try" .= tryTry
6106- ]
6107-
6108-instance FromJSON Try where
6109- parseJSON (Object v) = Try
6110- <$> v .: "try"
6111-
6112-instance ToJSON Typealias where
6113- toJSON (Typealias typealiasTypealias) =
6114- object $ foldMap (maybe [] pure)
6115- [ Just $ "typealias" .= typealiasTypealias
6116- ]
6117-
6118-instance FromJSON Typealias where
6119- parseJSON (Object v) = Typealias
6120- <$> v .: "typealias"
6121-
61226128 instance ToJSON Obj6 where
6123- toJSON (Obj6 dummyObj6 obj6WhereObj6 typedefObj6 typeidObj6 typenameObj6 typeofObj6 uintObj6 ulongObj6 uncheckedObj6 undefinedObj6 unionObj6 unmarshalJSONObj6 unownedObj6 unsafeObj6 unsignedObj6 useSerializersObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
6129+ toJSON (Obj6 dummyObj6 obj6TypeObj6 obj6WhereObj6 purpleTypeObj6 tryObj6 typealiasObj6 typedefObj6 typeidObj6 typenameObj6 typeofObj6 uintObj6 ulongObj6 uncheckedObj6 undefinedObj6 unionObj6 unmarshalJSONObj6 unownedObj6 unsafeObj6 unsignedObj6 useSerializersObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
61246130 object $ foldMap (maybe [] pure)
61256131 [ Just $ "dummy" .= dummyObj6
6132+ , Just $ "Type" .= obj6TypeObj6
61266133 , Just $ "where" .= obj6WhereObj6
6134+ , Just $ "type" .= purpleTypeObj6
6135+ , Just $ "try" .= tryObj6
6136+ , Just $ "typealias" .= typealiasObj6
61276137 , Just $ "typedef" .= typedefObj6
61286138 , Just $ "typeid" .= typeidObj6
61296139 , Just $ "typename" .= typenameObj6
@@ -6161,7 +6171,11 @@ instance ToJSON Obj6 where
61616171 instance FromJSON Obj6 where
61626172 parseJSON (Object v) = Obj6
61636173 <$> v .: "dummy"
6174+ <*> v .: "Type"
61646175 <*> v .: "where"
6176+ <*> v .: "type"
6177+ <*> v .: "try"
6178+ <*> v .: "typealias"
61656179 <*> v .: "typedef"
61666180 <*> v .: "typeid"
61676181 <*> v .: "typename"
@@ -6195,6 +6209,16 @@ instance FromJSON Obj6 where
61956209 <*> v .: "YES"
61966210 <*> v .: "yield"
61976211
6212+instance ToJSON Type where
6213+ toJSON (Type typeTypeType) =
6214+ object $ foldMap (maybe [] pure)
6215+ [ Just $ "Type" .= typeTypeType
6216+ ]
6217+
6218+instance FromJSON Type where
6219+ parseJSON (Object v) = Type
6220+ <$> v .: "Type"
6221+
61986222 instance ToJSON Where where
61996223 toJSON (Where whereWhereWhere) =
62006224 object $ foldMap (maybe [] pure)
@@ -6205,6 +6229,36 @@ instance FromJSON Where where
62056229 parseJSON (Object v) = Where
62066230 <$> v .: "where"
62076231
6232+instance ToJSON TypeClass where
6233+ toJSON (TypeClass typeTypeTypeClass) =
6234+ object $ foldMap (maybe [] pure)
6235+ [ Just $ "type" .= typeTypeTypeClass
6236+ ]
6237+
6238+instance FromJSON TypeClass where
6239+ parseJSON (Object v) = TypeClass
6240+ <$> v .: "type"
6241+
6242+instance ToJSON Try where
6243+ toJSON (Try tryTry) =
6244+ object $ foldMap (maybe [] pure)
6245+ [ Just $ "try" .= tryTry
6246+ ]
6247+
6248+instance FromJSON Try where
6249+ parseJSON (Object v) = Try
6250+ <$> v .: "try"
6251+
6252+instance ToJSON Typealias where
6253+ toJSON (Typealias typealiasTypealias) =
6254+ object $ foldMap (maybe [] pure)
6255+ [ Just $ "typealias" .= typealiasTypealias
6256+ ]
6257+
6258+instance FromJSON Typealias where
6259+ parseJSON (Object v) = Typealias
6260+ <$> v .: "typealias"
6261+
62086262 instance ToJSON Typedef where
62096263 toJSON (Typedef typedefTypedef) =
62106264 object $ foldMap (maybe [] pure)
Ajava-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class LocalDate {
6+ private long localDate;
7+
8+ @JsonProperty("LocalDate")
9+ public long getLocalDate() { return localDate; }
10+ @JsonProperty("LocalDate")
11+ public void setLocalDate(long value) { this.localDate = value; }
12+}
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+6 −12
@@ -51,6 +51,7 @@ public class Obj3 {
5151 private Left left;
5252 private Let let;
5353 private ListClass list;
54+ private LocalDate localDate;
5455 private Locale locale;
5556 private Lock lock;
5657 private LongNode longNode;
@@ -59,8 +60,6 @@ public class Obj3 {
5960 private MarshalJSON marshalJSON;
6061 private MetadataPropertyHandling metadataPropertyHandling;
6162 private Module module;
62- private Mutable mutable;
63- private Mutating mutating;
6463 private Goto obj3Goto;
6564 private If obj3If;
6665 private Implements obj3Implements;
@@ -310,6 +309,11 @@ public class Obj3 {
310309 @JsonProperty("list")
311310 public void setList(ListClass value) { this.list = value; }
312311
312+ @JsonProperty("LocalDate")
313+ public LocalDate getLocalDate() { return localDate; }
314+ @JsonProperty("LocalDate")
315+ public void setLocalDate(LocalDate value) { this.localDate = value; }
316+
313317 @JsonProperty("Locale")
314318 public Locale getLocale() { return locale; }
315319 @JsonProperty("Locale")
@@ -350,16 +354,6 @@ public class Obj3 {
350354 @JsonProperty("module")
351355 public void setModule(Module value) { this.module = value; }
352356
353- @JsonProperty("mutable")
354- public Mutable getMutable() { return mutable; }
355- @JsonProperty("mutable")
356- public void setMutable(Mutable value) { this.mutable = value; }
357-
358- @JsonProperty("mutating")
359- public Mutating getMutating() { return mutating; }
360- @JsonProperty("mutating")
361- public void setMutating(Mutating value) { this.mutating = value; }
362-
363357 @JsonProperty("goto")
364358 public Goto getObj3Goto() { return obj3Goto; }
365359 @JsonProperty("goto")
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+24 −24
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj4 {
66 private long dummy;
7+ private Mutable mutable;
8+ private Mutating mutating;
79 private Namespace namespace;
810 private Newtonsoft newtonsoft;
911 private Nil nil;
@@ -38,6 +40,8 @@ public class Obj4 {
3840 private ObjectReaderClass objectReader;
3941 private ObjectWriterClass objectWriter;
4042 private Of of;
43+ private OffsetDateTime offsetDateTime;
44+ private OffsetTime offsetTime;
4145 private Oneway oneway;
4246 private Open open;
4347 private Operator operator;
@@ -64,16 +68,22 @@ public class Obj4 {
6468 private RegExp regExp;
6569 private Register register;
6670 private ReinterpretCast reinterpretCast;
67- private Repeat repeat;
68- private Require require;
69- private Required required;
70- private Requires requires;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("mutable")
78+ public Mutable getMutable() { return mutable; }
79+ @JsonProperty("mutable")
80+ public void setMutable(Mutable value) { this.mutable = value; }
81+
82+ @JsonProperty("mutating")
83+ public Mutating getMutating() { return mutating; }
84+ @JsonProperty("mutating")
85+ public void setMutating(Mutating value) { this.mutating = value; }
86+
7787 @JsonProperty("namespace")
7888 public Namespace getNamespace() { return namespace; }
7989 @JsonProperty("namespace")
@@ -244,6 +254,16 @@ public class Obj4 {
244254 @JsonProperty("of")
245255 public void setOf(Of value) { this.of = value; }
246256
257+ @JsonProperty("OffsetDateTime")
258+ public OffsetDateTime getOffsetDateTime() { return offsetDateTime; }
259+ @JsonProperty("OffsetDateTime")
260+ public void setOffsetDateTime(OffsetDateTime value) { this.offsetDateTime = value; }
261+
262+ @JsonProperty("OffsetTime")
263+ public OffsetTime getOffsetTime() { return offsetTime; }
264+ @JsonProperty("OffsetTime")
265+ public void setOffsetTime(OffsetTime value) { this.offsetTime = value; }
266+
247267 @JsonProperty("oneway")
248268 public Oneway getOneway() { return oneway; }
249269 @JsonProperty("oneway")
@@ -373,24 +393,4 @@ public class Obj4 {
373393 public ReinterpretCast getReinterpretCast() { return reinterpretCast; }
374394 @JsonProperty("reinterpret_cast")
375395 public void setReinterpretCast(ReinterpretCast value) { this.reinterpretCast = value; }
376-
377- @JsonProperty("repeat")
378- public Repeat getRepeat() { return repeat; }
379- @JsonProperty("repeat")
380- public void setRepeat(Repeat value) { this.repeat = value; }
381-
382- @JsonProperty("require")
383- public Require getRequire() { return require; }
384- @JsonProperty("require")
385- public void setRequire(Require value) { this.require = value; }
386-
387- @JsonProperty("required")
388- public Required getRequired() { return required; }
389- @JsonProperty("required")
390- public void setRequired(Required value) { this.required = value; }
391-
392- @JsonProperty("requires")
393- public Requires getRequires() { return requires; }
394- @JsonProperty("requires")
395- public void setRequires(Requires value) { this.requires = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+24 −24
@@ -18,10 +18,12 @@ public class Obj5 {
1818 private Throws obj5Throws;
1919 private Transient obj5Transient;
2020 private True obj5True;
21- private Try obj5Try;
22- private TypeClass obj5Type;
2321 private PrimitiveKind primitiveKind;
2422 private TrueClass purpleTrue;
23+ private Repeat repeat;
24+ private Require require;
25+ private Required required;
26+ private Requires requires;
2527 private Restrict restrict;
2628 private Retain retain;
2729 private Rethrows rethrows;
@@ -66,8 +68,6 @@ public class Obj5 {
6668 private ToJSON toJSON;
6769 private ToString toString;
6870 private TopLevelClass topLevel;
69- private Type type;
70- private Typealias typealias;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -144,16 +144,6 @@ public class Obj5 {
144144 @JsonProperty("True")
145145 public void setObj5True(True value) { this.obj5True = value; }
146146
147- @JsonProperty("try")
148- public Try getObj5Try() { return obj5Try; }
149- @JsonProperty("try")
150- public void setObj5Try(Try value) { this.obj5Try = value; }
151-
152- @JsonProperty("type")
153- public TypeClass getObj5Type() { return obj5Type; }
154- @JsonProperty("type")
155- public void setObj5Type(TypeClass value) { this.obj5Type = value; }
156-
157147 @JsonProperty("PrimitiveKind")
158148 public PrimitiveKind getPrimitiveKind() { return primitiveKind; }
159149 @JsonProperty("PrimitiveKind")
@@ -164,6 +154,26 @@ public class Obj5 {
164154 @JsonProperty("true")
165155 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
166156
157+ @JsonProperty("repeat")
158+ public Repeat getRepeat() { return repeat; }
159+ @JsonProperty("repeat")
160+ public void setRepeat(Repeat value) { this.repeat = value; }
161+
162+ @JsonProperty("require")
163+ public Require getRequire() { return require; }
164+ @JsonProperty("require")
165+ public void setRequire(Require value) { this.require = value; }
166+
167+ @JsonProperty("required")
168+ public Required getRequired() { return required; }
169+ @JsonProperty("required")
170+ public void setRequired(Required value) { this.required = value; }
171+
172+ @JsonProperty("requires")
173+ public Requires getRequires() { return requires; }
174+ @JsonProperty("requires")
175+ public void setRequires(Requires value) { this.requires = value; }
176+
167177 @JsonProperty("restrict")
168178 public Restrict getRestrict() { return restrict; }
169179 @JsonProperty("restrict")
@@ -383,14 +393,4 @@ public class Obj5 {
383393 public TopLevelClass getTopLevel() { return topLevel; }
384394 @JsonProperty("top_level")
385395 public void setTopLevel(TopLevelClass value) { this.topLevel = value; }
386-
387- @JsonProperty("Type")
388- public Type getType() { return type; }
389- @JsonProperty("Type")
390- public void setType(Type value) { this.type = value; }
391-
392- @JsonProperty("typealias")
393- public Typealias getTypealias() { return typealias; }
394- @JsonProperty("typealias")
395- public void setTypealias(Typealias value) { this.typealias = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+24 −0
@@ -4,9 +4,13 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj6 {
66 private long dummy;
7+ private Try obj6Try;
8+ private TypeClass obj6Type;
79 private Void obj6Void;
810 private Volatile obj6Volatile;
911 private While obj6While;
12+ private Type type;
13+ private Typealias typealias;
1014 private Typedef typedef;
1115 private Typeid typeid;
1216 private Typename typename;
@@ -43,6 +47,16 @@ public class Obj6 {
4347 @JsonProperty("dummy")
4448 public void setDummy(long value) { this.dummy = value; }
4549
50+ @JsonProperty("try")
51+ public Try getObj6Try() { return obj6Try; }
52+ @JsonProperty("try")
53+ public void setObj6Try(Try value) { this.obj6Try = value; }
54+
55+ @JsonProperty("type")
56+ public TypeClass getObj6Type() { return obj6Type; }
57+ @JsonProperty("type")
58+ public void setObj6Type(TypeClass value) { this.obj6Type = value; }
59+
4660 @JsonProperty("void")
4761 public Void getObj6Void() { return obj6Void; }
4862 @JsonProperty("void")
@@ -58,6 +72,16 @@ public class Obj6 {
5872 @JsonProperty("while")
5973 public void setObj6While(While value) { this.obj6While = value; }
6074
75+ @JsonProperty("Type")
76+ public Type getType() { return type; }
77+ @JsonProperty("Type")
78+ public void setType(Type value) { this.type = value; }
79+
80+ @JsonProperty("typealias")
81+ public Typealias getTypealias() { return typealias; }
82+ @JsonProperty("typealias")
83+ public void setTypealias(Typealias value) { this.typealias = value; }
84+
6185 @JsonProperty("typedef")
6286 public Typedef getTypedef() { return typedef; }
6387 @JsonProperty("typedef")
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetDateTime {
6+ private long offsetDateTime;
7+
8+ @JsonProperty("OffsetDateTime")
9+ public long getOffsetDateTime() { return offsetDateTime; }
10+ @JsonProperty("OffsetDateTime")
11+ public void setOffsetDateTime(long value) { this.offsetDateTime = value; }
12+}
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetTime {
6+ private long offsetTime;
7+
8+ @JsonProperty("OffsetTime")
9+ public long getOffsetTime() { return offsetTime; }
10+ @JsonProperty("OffsetTime")
11+ public void setOffsetTime(long value) { this.offsetTime = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class LocalDateClass {
6+ private long localDate;
7+
8+ @JsonProperty("LocalDate")
9+ public long getLocalDate() { return localDate; }
10+ @JsonProperty("LocalDate")
11+ public void setLocalDate(long value) { this.localDate = value; }
12+}
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+6 −12
@@ -51,6 +51,7 @@ public class Obj3 {
5151 private Left left;
5252 private Let let;
5353 private ListClass list;
54+ private LocalDateClass localDate;
5455 private Locale locale;
5556 private Lock lock;
5657 private LongNode longNode;
@@ -59,8 +60,6 @@ public class Obj3 {
5960 private MarshalJSON marshalJSON;
6061 private MetadataPropertyHandling metadataPropertyHandling;
6162 private Module module;
62- private Mutable mutable;
63- private Mutating mutating;
6463 private Goto obj3Goto;
6564 private If obj3If;
6665 private Implements obj3Implements;
@@ -310,6 +309,11 @@ public class Obj3 {
310309 @JsonProperty("list")
311310 public void setList(ListClass value) { this.list = value; }
312311
312+ @JsonProperty("LocalDate")
313+ public LocalDateClass getLocalDate() { return localDate; }
314+ @JsonProperty("LocalDate")
315+ public void setLocalDate(LocalDateClass value) { this.localDate = value; }
316+
313317 @JsonProperty("Locale")
314318 public Locale getLocale() { return locale; }
315319 @JsonProperty("Locale")
@@ -350,16 +354,6 @@ public class Obj3 {
350354 @JsonProperty("module")
351355 public void setModule(Module value) { this.module = value; }
352356
353- @JsonProperty("mutable")
354- public Mutable getMutable() { return mutable; }
355- @JsonProperty("mutable")
356- public void setMutable(Mutable value) { this.mutable = value; }
357-
358- @JsonProperty("mutating")
359- public Mutating getMutating() { return mutating; }
360- @JsonProperty("mutating")
361- public void setMutating(Mutating value) { this.mutating = value; }
362-
363357 @JsonProperty("goto")
364358 public Goto getObj3Goto() { return obj3Goto; }
365359 @JsonProperty("goto")
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+24 −24
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj4 {
66 private long dummy;
7+ private Mutable mutable;
8+ private Mutating mutating;
79 private Namespace namespace;
810 private Newtonsoft newtonsoft;
911 private Nil nil;
@@ -38,6 +40,8 @@ public class Obj4 {
3840 private ObjectReaderClass objectReader;
3941 private ObjectWriterClass objectWriter;
4042 private Of of;
43+ private OffsetDateTimeClass offsetDateTime;
44+ private OffsetTimeClass offsetTime;
4145 private Oneway oneway;
4246 private Open open;
4347 private Operator operator;
@@ -64,16 +68,22 @@ public class Obj4 {
6468 private RegExp regExp;
6569 private Register register;
6670 private ReinterpretCast reinterpretCast;
67- private Repeat repeat;
68- private Require require;
69- private Required required;
70- private Requires requires;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("mutable")
78+ public Mutable getMutable() { return mutable; }
79+ @JsonProperty("mutable")
80+ public void setMutable(Mutable value) { this.mutable = value; }
81+
82+ @JsonProperty("mutating")
83+ public Mutating getMutating() { return mutating; }
84+ @JsonProperty("mutating")
85+ public void setMutating(Mutating value) { this.mutating = value; }
86+
7787 @JsonProperty("namespace")
7888 public Namespace getNamespace() { return namespace; }
7989 @JsonProperty("namespace")
@@ -244,6 +254,16 @@ public class Obj4 {
244254 @JsonProperty("of")
245255 public void setOf(Of value) { this.of = value; }
246256
257+ @JsonProperty("OffsetDateTime")
258+ public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; }
259+ @JsonProperty("OffsetDateTime")
260+ public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; }
261+
262+ @JsonProperty("OffsetTime")
263+ public OffsetTimeClass getOffsetTime() { return offsetTime; }
264+ @JsonProperty("OffsetTime")
265+ public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; }
266+
247267 @JsonProperty("oneway")
248268 public Oneway getOneway() { return oneway; }
249269 @JsonProperty("oneway")
@@ -373,24 +393,4 @@ public class Obj4 {
373393 public ReinterpretCast getReinterpretCast() { return reinterpretCast; }
374394 @JsonProperty("reinterpret_cast")
375395 public void setReinterpretCast(ReinterpretCast value) { this.reinterpretCast = value; }
376-
377- @JsonProperty("repeat")
378- public Repeat getRepeat() { return repeat; }
379- @JsonProperty("repeat")
380- public void setRepeat(Repeat value) { this.repeat = value; }
381-
382- @JsonProperty("require")
383- public Require getRequire() { return require; }
384- @JsonProperty("require")
385- public void setRequire(Require value) { this.require = value; }
386-
387- @JsonProperty("required")
388- public Required getRequired() { return required; }
389- @JsonProperty("required")
390- public void setRequired(Required value) { this.required = value; }
391-
392- @JsonProperty("requires")
393- public Requires getRequires() { return requires; }
394- @JsonProperty("requires")
395- public void setRequires(Requires value) { this.requires = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+24 −24
@@ -18,10 +18,12 @@ public class Obj5 {
1818 private Throws obj5Throws;
1919 private Transient obj5Transient;
2020 private True obj5True;
21- private Try obj5Try;
22- private TypeClass obj5Type;
2321 private PrimitiveKind primitiveKind;
2422 private TrueClass purpleTrue;
23+ private Repeat repeat;
24+ private Require require;
25+ private Required required;
26+ private Requires requires;
2527 private Restrict restrict;
2628 private Retain retain;
2729 private Rethrows rethrows;
@@ -66,8 +68,6 @@ public class Obj5 {
6668 private ToJSON toJSON;
6769 private ToString toString;
6870 private TopLevelClass topLevel;
69- private Type type;
70- private Typealias typealias;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -144,16 +144,6 @@ public class Obj5 {
144144 @JsonProperty("True")
145145 public void setObj5True(True value) { this.obj5True = value; }
146146
147- @JsonProperty("try")
148- public Try getObj5Try() { return obj5Try; }
149- @JsonProperty("try")
150- public void setObj5Try(Try value) { this.obj5Try = value; }
151-
152- @JsonProperty("type")
153- public TypeClass getObj5Type() { return obj5Type; }
154- @JsonProperty("type")
155- public void setObj5Type(TypeClass value) { this.obj5Type = value; }
156-
157147 @JsonProperty("PrimitiveKind")
158148 public PrimitiveKind getPrimitiveKind() { return primitiveKind; }
159149 @JsonProperty("PrimitiveKind")
@@ -164,6 +154,26 @@ public class Obj5 {
164154 @JsonProperty("true")
165155 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
166156
157+ @JsonProperty("repeat")
158+ public Repeat getRepeat() { return repeat; }
159+ @JsonProperty("repeat")
160+ public void setRepeat(Repeat value) { this.repeat = value; }
161+
162+ @JsonProperty("require")
163+ public Require getRequire() { return require; }
164+ @JsonProperty("require")
165+ public void setRequire(Require value) { this.require = value; }
166+
167+ @JsonProperty("required")
168+ public Required getRequired() { return required; }
169+ @JsonProperty("required")
170+ public void setRequired(Required value) { this.required = value; }
171+
172+ @JsonProperty("requires")
173+ public Requires getRequires() { return requires; }
174+ @JsonProperty("requires")
175+ public void setRequires(Requires value) { this.requires = value; }
176+
167177 @JsonProperty("restrict")
168178 public Restrict getRestrict() { return restrict; }
169179 @JsonProperty("restrict")
@@ -383,14 +393,4 @@ public class Obj5 {
383393 public TopLevelClass getTopLevel() { return topLevel; }
384394 @JsonProperty("top_level")
385395 public void setTopLevel(TopLevelClass value) { this.topLevel = value; }
386-
387- @JsonProperty("Type")
388- public Type getType() { return type; }
389- @JsonProperty("Type")
390- public void setType(Type value) { this.type = value; }
391-
392- @JsonProperty("typealias")
393- public Typealias getTypealias() { return typealias; }
394- @JsonProperty("typealias")
395- public void setTypealias(Typealias value) { this.typealias = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+24 −0
@@ -4,9 +4,13 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj6 {
66 private long dummy;
7+ private Try obj6Try;
8+ private TypeClass obj6Type;
79 private Void obj6Void;
810 private Volatile obj6Volatile;
911 private While obj6While;
12+ private Type type;
13+ private Typealias typealias;
1014 private Typedef typedef;
1115 private Typeid typeid;
1216 private Typename typename;
@@ -43,6 +47,16 @@ public class Obj6 {
4347 @JsonProperty("dummy")
4448 public void setDummy(long value) { this.dummy = value; }
4549
50+ @JsonProperty("try")
51+ public Try getObj6Try() { return obj6Try; }
52+ @JsonProperty("try")
53+ public void setObj6Try(Try value) { this.obj6Try = value; }
54+
55+ @JsonProperty("type")
56+ public TypeClass getObj6Type() { return obj6Type; }
57+ @JsonProperty("type")
58+ public void setObj6Type(TypeClass value) { this.obj6Type = value; }
59+
4660 @JsonProperty("void")
4761 public Void getObj6Void() { return obj6Void; }
4862 @JsonProperty("void")
@@ -58,6 +72,16 @@ public class Obj6 {
5872 @JsonProperty("while")
5973 public void setObj6While(While value) { this.obj6While = value; }
6074
75+ @JsonProperty("Type")
76+ public Type getType() { return type; }
77+ @JsonProperty("Type")
78+ public void setType(Type value) { this.type = value; }
79+
80+ @JsonProperty("typealias")
81+ public Typealias getTypealias() { return typealias; }
82+ @JsonProperty("typealias")
83+ public void setTypealias(Typealias value) { this.typealias = value; }
84+
6185 @JsonProperty("typedef")
6286 public Typedef getTypedef() { return typedef; }
6387 @JsonProperty("typedef")
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetDateTimeClass {
6+ private long offsetDateTime;
7+
8+ @JsonProperty("OffsetDateTime")
9+ public long getOffsetDateTime() { return offsetDateTime; }
10+ @JsonProperty("OffsetDateTime")
11+ public void setOffsetDateTime(long value) { this.offsetDateTime = value; }
12+}
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetTimeClass {
6+ private long offsetTime;
7+
8+ @JsonProperty("OffsetTime")
9+ public long getOffsetTime() { return offsetTime; }
10+ @JsonProperty("OffsetTime")
11+ public void setOffsetTime(long value) { this.offsetTime = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class LocalDateClass {
6+ private long localDate;
7+
8+ @JsonProperty("LocalDate")
9+ public long getLocalDate() { return localDate; }
10+ @JsonProperty("LocalDate")
11+ public void setLocalDate(long value) { this.localDate = value; }
12+}
Mjavadefault / src / main / java / io / quicktype / Obj3.java+6 −12
@@ -51,6 +51,7 @@ public class Obj3 {
5151 private Left left;
5252 private Let let;
5353 private ListClass list;
54+ private LocalDateClass localDate;
5455 private Locale locale;
5556 private Lock lock;
5657 private LongNode longNode;
@@ -59,8 +60,6 @@ public class Obj3 {
5960 private MarshalJSON marshalJSON;
6061 private MetadataPropertyHandling metadataPropertyHandling;
6162 private Module module;
62- private Mutable mutable;
63- private Mutating mutating;
6463 private Goto obj3Goto;
6564 private If obj3If;
6665 private Implements obj3Implements;
@@ -310,6 +309,11 @@ public class Obj3 {
310309 @JsonProperty("list")
311310 public void setList(ListClass value) { this.list = value; }
312311
312+ @JsonProperty("LocalDate")
313+ public LocalDateClass getLocalDate() { return localDate; }
314+ @JsonProperty("LocalDate")
315+ public void setLocalDate(LocalDateClass value) { this.localDate = value; }
316+
313317 @JsonProperty("Locale")
314318 public Locale getLocale() { return locale; }
315319 @JsonProperty("Locale")
@@ -350,16 +354,6 @@ public class Obj3 {
350354 @JsonProperty("module")
351355 public void setModule(Module value) { this.module = value; }
352356
353- @JsonProperty("mutable")
354- public Mutable getMutable() { return mutable; }
355- @JsonProperty("mutable")
356- public void setMutable(Mutable value) { this.mutable = value; }
357-
358- @JsonProperty("mutating")
359- public Mutating getMutating() { return mutating; }
360- @JsonProperty("mutating")
361- public void setMutating(Mutating value) { this.mutating = value; }
362-
363357 @JsonProperty("goto")
364358 public Goto getObj3Goto() { return obj3Goto; }
365359 @JsonProperty("goto")
Mjavadefault / src / main / java / io / quicktype / Obj4.java+24 −24
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj4 {
66 private long dummy;
7+ private Mutable mutable;
8+ private Mutating mutating;
79 private Namespace namespace;
810 private Newtonsoft newtonsoft;
911 private Nil nil;
@@ -38,6 +40,8 @@ public class Obj4 {
3840 private ObjectReaderClass objectReader;
3941 private ObjectWriterClass objectWriter;
4042 private Of of;
43+ private OffsetDateTimeClass offsetDateTime;
44+ private OffsetTimeClass offsetTime;
4145 private Oneway oneway;
4246 private Open open;
4347 private Operator operator;
@@ -64,16 +68,22 @@ public class Obj4 {
6468 private RegExp regExp;
6569 private Register register;
6670 private ReinterpretCast reinterpretCast;
67- private Repeat repeat;
68- private Require require;
69- private Required required;
70- private Requires requires;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
7474 @JsonProperty("dummy")
7575 public void setDummy(long value) { this.dummy = value; }
7676
77+ @JsonProperty("mutable")
78+ public Mutable getMutable() { return mutable; }
79+ @JsonProperty("mutable")
80+ public void setMutable(Mutable value) { this.mutable = value; }
81+
82+ @JsonProperty("mutating")
83+ public Mutating getMutating() { return mutating; }
84+ @JsonProperty("mutating")
85+ public void setMutating(Mutating value) { this.mutating = value; }
86+
7787 @JsonProperty("namespace")
7888 public Namespace getNamespace() { return namespace; }
7989 @JsonProperty("namespace")
@@ -244,6 +254,16 @@ public class Obj4 {
244254 @JsonProperty("of")
245255 public void setOf(Of value) { this.of = value; }
246256
257+ @JsonProperty("OffsetDateTime")
258+ public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; }
259+ @JsonProperty("OffsetDateTime")
260+ public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; }
261+
262+ @JsonProperty("OffsetTime")
263+ public OffsetTimeClass getOffsetTime() { return offsetTime; }
264+ @JsonProperty("OffsetTime")
265+ public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; }
266+
247267 @JsonProperty("oneway")
248268 public Oneway getOneway() { return oneway; }
249269 @JsonProperty("oneway")
@@ -373,24 +393,4 @@ public class Obj4 {
373393 public ReinterpretCast getReinterpretCast() { return reinterpretCast; }
374394 @JsonProperty("reinterpret_cast")
375395 public void setReinterpretCast(ReinterpretCast value) { this.reinterpretCast = value; }
376-
377- @JsonProperty("repeat")
378- public Repeat getRepeat() { return repeat; }
379- @JsonProperty("repeat")
380- public void setRepeat(Repeat value) { this.repeat = value; }
381-
382- @JsonProperty("require")
383- public Require getRequire() { return require; }
384- @JsonProperty("require")
385- public void setRequire(Require value) { this.require = value; }
386-
387- @JsonProperty("required")
388- public Required getRequired() { return required; }
389- @JsonProperty("required")
390- public void setRequired(Required value) { this.required = value; }
391-
392- @JsonProperty("requires")
393- public Requires getRequires() { return requires; }
394- @JsonProperty("requires")
395- public void setRequires(Requires value) { this.requires = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj5.java+24 −24
@@ -18,10 +18,12 @@ public class Obj5 {
1818 private Throws obj5Throws;
1919 private Transient obj5Transient;
2020 private True obj5True;
21- private Try obj5Try;
22- private TypeClass obj5Type;
2321 private PrimitiveKind primitiveKind;
2422 private TrueClass purpleTrue;
23+ private Repeat repeat;
24+ private Require require;
25+ private Required required;
26+ private Requires requires;
2527 private Restrict restrict;
2628 private Retain retain;
2729 private Rethrows rethrows;
@@ -66,8 +68,6 @@ public class Obj5 {
6668 private ToJSON toJSON;
6769 private ToString toString;
6870 private TopLevelClass topLevel;
69- private Type type;
70- private Typealias typealias;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -144,16 +144,6 @@ public class Obj5 {
144144 @JsonProperty("True")
145145 public void setObj5True(True value) { this.obj5True = value; }
146146
147- @JsonProperty("try")
148- public Try getObj5Try() { return obj5Try; }
149- @JsonProperty("try")
150- public void setObj5Try(Try value) { this.obj5Try = value; }
151-
152- @JsonProperty("type")
153- public TypeClass getObj5Type() { return obj5Type; }
154- @JsonProperty("type")
155- public void setObj5Type(TypeClass value) { this.obj5Type = value; }
156-
157147 @JsonProperty("PrimitiveKind")
158148 public PrimitiveKind getPrimitiveKind() { return primitiveKind; }
159149 @JsonProperty("PrimitiveKind")
@@ -164,6 +154,26 @@ public class Obj5 {
164154 @JsonProperty("true")
165155 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
166156
157+ @JsonProperty("repeat")
158+ public Repeat getRepeat() { return repeat; }
159+ @JsonProperty("repeat")
160+ public void setRepeat(Repeat value) { this.repeat = value; }
161+
162+ @JsonProperty("require")
163+ public Require getRequire() { return require; }
164+ @JsonProperty("require")
165+ public void setRequire(Require value) { this.require = value; }
166+
167+ @JsonProperty("required")
168+ public Required getRequired() { return required; }
169+ @JsonProperty("required")
170+ public void setRequired(Required value) { this.required = value; }
171+
172+ @JsonProperty("requires")
173+ public Requires getRequires() { return requires; }
174+ @JsonProperty("requires")
175+ public void setRequires(Requires value) { this.requires = value; }
176+
167177 @JsonProperty("restrict")
168178 public Restrict getRestrict() { return restrict; }
169179 @JsonProperty("restrict")
@@ -383,14 +393,4 @@ public class Obj5 {
383393 public TopLevelClass getTopLevel() { return topLevel; }
384394 @JsonProperty("top_level")
385395 public void setTopLevel(TopLevelClass value) { this.topLevel = value; }
386-
387- @JsonProperty("Type")
388- public Type getType() { return type; }
389- @JsonProperty("Type")
390- public void setType(Type value) { this.type = value; }
391-
392- @JsonProperty("typealias")
393- public Typealias getTypealias() { return typealias; }
394- @JsonProperty("typealias")
395- public void setTypealias(Typealias value) { this.typealias = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj6.java+24 −0
@@ -4,9 +4,13 @@ import com.fasterxml.jackson.annotation.*;
44
55 public class Obj6 {
66 private long dummy;
7+ private Try obj6Try;
8+ private TypeClass obj6Type;
79 private Void obj6Void;
810 private Volatile obj6Volatile;
911 private While obj6While;
12+ private Type type;
13+ private Typealias typealias;
1014 private Typedef typedef;
1115 private Typeid typeid;
1216 private Typename typename;
@@ -43,6 +47,16 @@ public class Obj6 {
4347 @JsonProperty("dummy")
4448 public void setDummy(long value) { this.dummy = value; }
4549
50+ @JsonProperty("try")
51+ public Try getObj6Try() { return obj6Try; }
52+ @JsonProperty("try")
53+ public void setObj6Try(Try value) { this.obj6Try = value; }
54+
55+ @JsonProperty("type")
56+ public TypeClass getObj6Type() { return obj6Type; }
57+ @JsonProperty("type")
58+ public void setObj6Type(TypeClass value) { this.obj6Type = value; }
59+
4660 @JsonProperty("void")
4761 public Void getObj6Void() { return obj6Void; }
4862 @JsonProperty("void")
@@ -58,6 +72,16 @@ public class Obj6 {
5872 @JsonProperty("while")
5973 public void setObj6While(While value) { this.obj6While = value; }
6074
75+ @JsonProperty("Type")
76+ public Type getType() { return type; }
77+ @JsonProperty("Type")
78+ public void setType(Type value) { this.type = value; }
79+
80+ @JsonProperty("typealias")
81+ public Typealias getTypealias() { return typealias; }
82+ @JsonProperty("typealias")
83+ public void setTypealias(Typealias value) { this.typealias = value; }
84+
6185 @JsonProperty("typedef")
6286 public Typedef getTypedef() { return typedef; }
6387 @JsonProperty("typedef")
Ajavadefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetDateTimeClass {
6+ private long offsetDateTime;
7+
8+ @JsonProperty("OffsetDateTime")
9+ public long getOffsetDateTime() { return offsetDateTime; }
10+ @JsonProperty("OffsetDateTime")
11+ public void setOffsetDateTime(long value) { this.offsetDateTime = value; }
12+}
Ajavadefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
@@ -0,0 +1,12 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+public class OffsetTimeClass {
6+ private long offsetTime;
7+
8+ @JsonProperty("OffsetTime")
9+ public long getOffsetTime() { return offsetTime; }
10+ @JsonProperty("OffsetTime")
11+ public void setOffsetTime(long value) { this.offsetTime = value; }
12+}
Mjavascript-prop-typesdefault / toplevel.js+64 −49
@@ -161,6 +161,7 @@ let _JSONNode;
161161 let _JSONParser;
162162 let _JSONReader;
163163 let _JSONTokenType;
164+let _LocalDate;
164165 let _Locale;
165166 let _LongNode;
166167 let _MapEntry;
@@ -208,8 +209,6 @@ let _Long;
208209 let _Map;
209210 let _MetadataPropertyHandling;
210211 let _Module;
211-let _Mutable;
212-let _Mutating;
213212 let _Obj4;
214213 let _No;
215214 let _NSError;
@@ -222,8 +221,12 @@ let _ObjectMapper;
222221 let _ObjectNode;
223222 let _ObjectReader;
224223 let _ObjectWriter;
224+let _OffsetDateTime;
225+let _OffsetTime;
225226 let _Protocol;
226227 let _RegExp;
228+let _Mutable;
229+let _Mutating;
227230 let _Namespace;
228231 let _Native;
229232 let _New;
@@ -271,10 +274,6 @@ let _Readonly;
271274 let _Ref;
272275 let _Register;
273276 let _ReinterpretCast;
274-let _Repeat;
275-let _Require;
276-let _Required;
277-let _Requires;
278277 let _Obj5;
279278 let _KSerializer;
280279 let _PrimitiveKind;
@@ -295,7 +294,10 @@ let _TimeOnly;
295294 let _TimeOnlyConverter;
296295 let _TimeZone;
297296 let _True;
298-let _Type;
297+let _Repeat;
298+let _Require;
299+let _Required;
300+let _Requires;
299301 let _Restrict;
300302 let _Retain;
301303 let _Rethrows;
@@ -337,16 +339,17 @@ let _ToJSON;
337339 let _TopLevelClass;
338340 let _Transient;
339341 let _TrueClass;
340-let _Try;
341-let _TypeClass;
342-let _Typealias;
343342 let _Obj6;
343+let _Type;
344344 let _UUID;
345345 let _UnmarshalJSON;
346346 let _UseSerializers;
347347 let _Utf8JSONReader;
348348 let _Utf8JSONWriter;
349349 let _Yes;
350+let _Try;
351+let _TypeClass;
352+let _Typealias;
350353 let _Typedef;
351354 let _Typeid;
352355 let _Typename;
@@ -941,6 +944,9 @@ _JSONReader = PropTypes.shape({
941944 _JSONTokenType = PropTypes.shape({
942945 "JsonTokenType": PropTypes.oneOfType([Integer]).isRequired,
943946 });
947+_LocalDate = PropTypes.shape({
948+ "LocalDate": PropTypes.oneOfType([Integer]).isRequired,
949+});
944950 _Locale = PropTypes.shape({
945951 "Locale": PropTypes.oneOfType([Integer]).isRequired,
946952 });
@@ -1082,12 +1088,6 @@ _MetadataPropertyHandling = PropTypes.shape({
10821088 _Module = PropTypes.shape({
10831089 "module": PropTypes.oneOfType([Integer]).isRequired,
10841090 });
1085-_Mutable = PropTypes.shape({
1086- "mutable": PropTypes.oneOfType([Integer]).isRequired,
1087-});
1088-_Mutating = PropTypes.shape({
1089- "mutating": PropTypes.oneOfType([Integer]).isRequired,
1090-});
10911091 _Obj3 = PropTypes.shape({
10921092 "Hashable": _Hashable,
10931093 "Hasher": _Hasher,
@@ -1105,6 +1105,7 @@ _Obj3 = PropTypes.shape({
11051105 "JsonParser": _JSONParser,
11061106 "JsonReader": _JSONReader,
11071107 "JsonTokenType": _JSONTokenType,
1108+ "LocalDate": _LocalDate,
11081109 "Locale": _Locale,
11091110 "LongNode": _LongNode,
11101111 "MapEntry": _MapEntry,
@@ -1153,8 +1154,6 @@ _Obj3 = PropTypes.shape({
11531154 "map": _Map,
11541155 "metadata_property_handling": _MetadataPropertyHandling,
11551156 "module": _Module,
1156- "mutable": _Mutable,
1157- "mutating": _Mutating,
11581157 });
11591158 _No = PropTypes.shape({
11601159 "NO": PropTypes.oneOfType([Integer]).isRequired,
@@ -1189,12 +1188,24 @@ _ObjectReader = PropTypes.shape({
11891188 _ObjectWriter = PropTypes.shape({
11901189 "ObjectWriter": PropTypes.oneOfType([Integer]).isRequired,
11911190 });
1191+_OffsetDateTime = PropTypes.shape({
1192+ "OffsetDateTime": PropTypes.oneOfType([Integer]).isRequired,
1193+});
1194+_OffsetTime = PropTypes.shape({
1195+ "OffsetTime": PropTypes.oneOfType([Integer]).isRequired,
1196+});
11921197 _Protocol = PropTypes.shape({
11931198 "Protocol": PropTypes.oneOfType([Integer]).isRequired,
11941199 });
11951200 _RegExp = PropTypes.shape({
11961201 "RegExp": PropTypes.oneOfType([(props, name) => props[name] == null || /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(props[name]) ? null : new Error("Expected UUID")]).isRequired,
11971202 });
1203+_Mutable = PropTypes.shape({
1204+ "mutable": PropTypes.oneOfType([Integer]).isRequired,
1205+});
1206+_Mutating = PropTypes.shape({
1207+ "mutating": PropTypes.oneOfType([Integer]).isRequired,
1208+});
11981209 _Namespace = PropTypes.shape({
11991210 "namespace": PropTypes.oneOfType([Integer]).isRequired,
12001211 });
@@ -1336,18 +1347,6 @@ _Register = PropTypes.shape({
13361347 _ReinterpretCast = PropTypes.shape({
13371348 "reinterpret_cast": PropTypes.oneOfType([Integer]).isRequired,
13381349 });
1339-_Repeat = PropTypes.shape({
1340- "repeat": PropTypes.oneOfType([Integer]).isRequired,
1341-});
1342-_Require = PropTypes.shape({
1343- "require": PropTypes.oneOfType([Integer]).isRequired,
1344-});
1345-_Required = PropTypes.shape({
1346- "required": PropTypes.oneOfType([Integer]).isRequired,
1347-});
1348-_Requires = PropTypes.shape({
1349- "requires": PropTypes.oneOfType([Integer]).isRequired,
1350-});
13511350 _Obj4 = PropTypes.shape({
13521351 "NO": _No,
13531352 "NSError": _NSError,
@@ -1360,9 +1359,13 @@ _Obj4 = PropTypes.shape({
13601359 "ObjectNode": _ObjectNode,
13611360 "ObjectReader": _ObjectReader,
13621361 "ObjectWriter": _ObjectWriter,
1362+ "OffsetDateTime": _OffsetDateTime,
1363+ "OffsetTime": _OffsetTime,
13631364 "Protocol": _Protocol,
13641365 "RegExp": _RegExp,
13651366 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1367+ "mutable": _Mutable,
1368+ "mutating": _Mutating,
13661369 "namespace": _Namespace,
13671370 "native": _Native,
13681371 "new": _New,
@@ -1410,10 +1413,6 @@ _Obj4 = PropTypes.shape({
14101413 "ref": _Ref,
14111414 "register": _Register,
14121415 "reinterpret_cast": _ReinterpretCast,
1413- "repeat": _Repeat,
1414- "require": _Require,
1415- "required": _Required,
1416- "requires": _Requires,
14171416 });
14181417 _KSerializer = PropTypes.shape({
14191418 "KSerializer": PropTypes.oneOfType([Integer]).isRequired,
@@ -1472,8 +1471,17 @@ _TimeZone = PropTypes.shape({
14721471 _True = PropTypes.shape({
14731472 "True": PropTypes.oneOfType([Integer]).isRequired,
14741473 });
1475-_Type = PropTypes.shape({
1476- "Type": PropTypes.oneOfType([Integer]).isRequired,
1474+_Repeat = PropTypes.shape({
1475+ "repeat": PropTypes.oneOfType([Integer]).isRequired,
1476+});
1477+_Require = PropTypes.shape({
1478+ "require": PropTypes.oneOfType([Integer]).isRequired,
1479+});
1480+_Required = PropTypes.shape({
1481+ "required": PropTypes.oneOfType([Integer]).isRequired,
1482+});
1483+_Requires = PropTypes.shape({
1484+ "requires": PropTypes.oneOfType([Integer]).isRequired,
14771485 });
14781486 _Restrict = PropTypes.shape({
14791487 "restrict": PropTypes.oneOfType([Integer]).isRequired,
@@ -1598,15 +1606,6 @@ _Transient = PropTypes.shape({
15981606 _TrueClass = PropTypes.shape({
15991607 "true": PropTypes.oneOfType([Integer]).isRequired,
16001608 });
1601-_Try = PropTypes.shape({
1602- "try": PropTypes.oneOfType([Integer]).isRequired,
1603-});
1604-_TypeClass = PropTypes.shape({
1605- "type": PropTypes.oneOfType([Integer]).isRequired,
1606-});
1607-_Typealias = PropTypes.shape({
1608- "typealias": PropTypes.oneOfType([Integer]).isRequired,
1609-});
16101609 _Obj5 = PropTypes.shape({
16111610 "KSerializer": _KSerializer,
16121611 "PrimitiveKind": _PrimitiveKind,
@@ -1627,8 +1626,11 @@ _Obj5 = PropTypes.shape({
16271626 "TimeOnlyConverter": _TimeOnlyConverter,
16281627 "TimeZone": _TimeZone,
16291628 "True": _True,
1630- "Type": _Type,
16311629 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1630+ "repeat": _Repeat,
1631+ "require": _Require,
1632+ "required": _Required,
1633+ "requires": _Requires,
16321634 "restrict": _Restrict,
16331635 "retain": _Retain,
16341636 "rethrows": _Rethrows,
@@ -1670,9 +1672,9 @@ _Obj5 = PropTypes.shape({
16701672 "top_level": _TopLevelClass,
16711673 "transient": _Transient,
16721674 "true": _TrueClass,
1673- "try": _Try,
1674- "type": _TypeClass,
1675- "typealias": _Typealias,
1675+});
1676+_Type = PropTypes.shape({
1677+ "Type": PropTypes.oneOfType([Integer]).isRequired,
16761678 });
16771679 _UUID = PropTypes.shape({
16781680 "UUID": PropTypes.oneOfType([Integer]).isRequired,
@@ -1692,6 +1694,15 @@ _Utf8JSONWriter = PropTypes.shape({
16921694 _Yes = PropTypes.shape({
16931695 "YES": PropTypes.oneOfType([Integer]).isRequired,
16941696 });
1697+_Try = PropTypes.shape({
1698+ "try": PropTypes.oneOfType([Integer]).isRequired,
1699+});
1700+_TypeClass = PropTypes.shape({
1701+ "type": PropTypes.oneOfType([Integer]).isRequired,
1702+});
1703+_Typealias = PropTypes.shape({
1704+ "typealias": PropTypes.oneOfType([Integer]).isRequired,
1705+});
16951706 _Typedef = PropTypes.shape({
16961707 "typedef": PropTypes.oneOfType([Integer]).isRequired,
16971708 });
@@ -1774,6 +1785,7 @@ _Yield = PropTypes.shape({
17741785 "yield": PropTypes.oneOfType([Integer]).isRequired,
17751786 });
17761787 _Obj6 = PropTypes.shape({
1788+ "Type": _Type,
17771789 "UUID": _UUID,
17781790 "UnmarshalJSON": _UnmarshalJSON,
17791791 "UseSerializers": _UseSerializers,
@@ -1781,6 +1793,9 @@ _Obj6 = PropTypes.shape({
17811793 "Utf8JsonWriter": _Utf8JSONWriter,
17821794 "YES": _Yes,
17831795 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1796+ "try": _Try,
1797+ "type": _TypeClass,
1798+ "typealias": _Typealias,
17841799 "typedef": _Typedef,
17851800 "typeid": _Typeid,
17861801 "typename": _Typename,
Mjavascriptdefault / TopLevel.js+51 −39
@@ -737,6 +737,7 @@ const typeMap = {
737737 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
738738 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
739739 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
740+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
740741 { json: "Locale", js: "Locale", typ: r("Locale") },
741742 { json: "LongNode", js: "LongNode", typ: r("LongNode") },
742743 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
@@ -785,8 +786,6 @@ const typeMap = {
785786 { json: "map", js: "map", typ: r("Map") },
786787 { json: "metadata_property_handling", js: "metadata_property_handling", typ: r("MetadataPropertyHandling") },
787788 { json: "module", js: "module", typ: r("Module") },
788- { json: "mutable", js: "mutable", typ: r("Mutable") },
789- { json: "mutating", js: "mutating", typ: r("Mutating") },
790789 ], false),
791790 "Hashable": o([
792791 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -836,6 +835,9 @@ const typeMap = {
836835 "JSONTokenType": o([
837836 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
838837 ], false),
838+ "LocalDate": o([
839+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
840+ ], false),
839841 "Locale": o([
840842 { json: "Locale", js: "Locale", typ: i(0) },
841843 ], false),
@@ -977,12 +979,6 @@ const typeMap = {
977979 "Module": o([
978980 { json: "module", js: "module", typ: i(0) },
979981 ], false),
980- "Mutable": o([
981- { json: "mutable", js: "mutable", typ: i(0) },
982- ], false),
983- "Mutating": o([
984- { json: "mutating", js: "mutating", typ: i(0) },
985- ], false),
986982 "Obj4": o([
987983 { json: "NO", js: "NO", typ: r("No") },
988984 { json: "NSError", js: "NSError", typ: r("NSError") },
@@ -995,9 +991,13 @@ const typeMap = {
995991 { json: "ObjectNode", js: "ObjectNode", typ: r("ObjectNode") },
996992 { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") },
997993 { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") },
994+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
995+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
998996 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
999997 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
1000998 { json: "dummy", js: "dummy", typ: i(0) },
999+ { json: "mutable", js: "mutable", typ: r("Mutable") },
1000+ { json: "mutating", js: "mutating", typ: r("Mutating") },
10011001 { json: "namespace", js: "namespace", typ: r("Namespace") },
10021002 { json: "native", js: "native", typ: r("Native") },
10031003 { json: "new", js: "new", typ: r("New") },
@@ -1045,10 +1045,6 @@ const typeMap = {
10451045 { json: "ref", js: "ref", typ: r("Ref") },
10461046 { json: "register", js: "register", typ: r("Register") },
10471047 { json: "reinterpret_cast", js: "reinterpret_cast", typ: r("ReinterpretCast") },
1048- { json: "repeat", js: "repeat", typ: r("Repeat") },
1049- { json: "require", js: "require", typ: r("Require") },
1050- { json: "required", js: "required", typ: r("Required") },
1051- { json: "requires", js: "requires", typ: r("Requires") },
10521048 ], false),
10531049 "No": o([
10541050 { json: "NO", js: "NO", typ: i(0) },
@@ -1083,12 +1079,24 @@ const typeMap = {
10831079 "ObjectWriter": o([
10841080 { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) },
10851081 ], false),
1082+ "OffsetDateTime": o([
1083+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
1084+ ], false),
1085+ "OffsetTime": o([
1086+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
1087+ ], false),
10861088 "Protocol": o([
10871089 { json: "Protocol", js: "Protocol", typ: i(0) },
10881090 ], false),
10891091 "RegExp": o([
10901092 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
10911093 ], false),
1094+ "Mutable": o([
1095+ { json: "mutable", js: "mutable", typ: i(0) },
1096+ ], false),
1097+ "Mutating": o([
1098+ { json: "mutating", js: "mutating", typ: i(0) },
1099+ ], false),
10921100 "Namespace": o([
10931101 { json: "namespace", js: "namespace", typ: i(0) },
10941102 ], false),
@@ -1230,18 +1238,6 @@ const typeMap = {
12301238 "ReinterpretCast": o([
12311239 { json: "reinterpret_cast", js: "reinterpret_cast", typ: i(0) },
12321240 ], false),
1233- "Repeat": o([
1234- { json: "repeat", js: "repeat", typ: i(0) },
1235- ], false),
1236- "Require": o([
1237- { json: "require", js: "require", typ: i(0) },
1238- ], false),
1239- "Required": o([
1240- { json: "required", js: "required", typ: i(0) },
1241- ], false),
1242- "Requires": o([
1243- { json: "requires", js: "requires", typ: i(0) },
1244- ], false),
12451241 "Obj5": o([
12461242 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
12471243 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -1262,8 +1258,11 @@ const typeMap = {
12621258 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: r("TimeOnlyConverter") },
12631259 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
12641260 { json: "True", js: "True", typ: r("True") },
1265- { json: "Type", js: "Type", typ: r("Type") },
12661261 { json: "dummy", js: "dummy", typ: i(0) },
1262+ { json: "repeat", js: "repeat", typ: r("Repeat") },
1263+ { json: "require", js: "require", typ: r("Require") },
1264+ { json: "required", js: "required", typ: r("Required") },
1265+ { json: "requires", js: "requires", typ: r("Requires") },
12671266 { json: "restrict", js: "restrict", typ: r("Restrict") },
12681267 { json: "retain", js: "retain", typ: r("Retain") },
12691268 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
@@ -1305,9 +1304,6 @@ const typeMap = {
13051304 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
13061305 { json: "transient", js: "transient", typ: r("Transient") },
13071306 { json: "true", js: "true", typ: r("TrueClass") },
1308- { json: "try", js: "try", typ: r("Try") },
1309- { json: "type", js: "type", typ: r("TypeClass") },
1310- { json: "typealias", js: "typealias", typ: r("Typealias") },
13111307 ], false),
13121308 "KSerializer": o([
13131309 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -1366,8 +1362,17 @@ const typeMap = {
13661362 "True": o([
13671363 { json: "True", js: "True", typ: i(0) },
13681364 ], false),
1369- "Type": o([
1370- { json: "Type", js: "Type", typ: i(0) },
1365+ "Repeat": o([
1366+ { json: "repeat", js: "repeat", typ: i(0) },
1367+ ], false),
1368+ "Require": o([
1369+ { json: "require", js: "require", typ: i(0) },
1370+ ], false),
1371+ "Required": o([
1372+ { json: "required", js: "required", typ: i(0) },
1373+ ], false),
1374+ "Requires": o([
1375+ { json: "requires", js: "requires", typ: i(0) },
13711376 ], false),
13721377 "Restrict": o([
13731378 { json: "restrict", js: "restrict", typ: i(0) },
@@ -1492,16 +1497,8 @@ const typeMap = {
14921497 "TrueClass": o([
14931498 { json: "true", js: "true", typ: i(0) },
14941499 ], false),
1495- "Try": o([
1496- { json: "try", js: "try", typ: i(0) },
1497- ], false),
1498- "TypeClass": o([
1499- { json: "type", js: "type", typ: i(0) },
1500- ], false),
1501- "Typealias": o([
1502- { json: "typealias", js: "typealias", typ: i(0) },
1503- ], false),
15041500 "Obj6": o([
1501+ { json: "Type", js: "Type", typ: r("Type") },
15051502 { json: "UUID", js: "UUID", typ: r("UUID") },
15061503 { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
15071504 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
@@ -1509,6 +1506,9 @@ const typeMap = {
15091506 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
15101507 { json: "YES", js: "YES", typ: r("Yes") },
15111508 { json: "dummy", js: "dummy", typ: i(0) },
1509+ { json: "try", js: "try", typ: r("Try") },
1510+ { json: "type", js: "type", typ: r("TypeClass") },
1511+ { json: "typealias", js: "typealias", typ: r("Typealias") },
15121512 { json: "typedef", js: "typedef", typ: r("Typedef") },
15131513 { json: "typeid", js: "typeid", typ: r("Typeid") },
15141514 { json: "typename", js: "typename", typ: r("Typename") },
@@ -1537,6 +1537,9 @@ const typeMap = {
15371537 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
15381538 { json: "yield", js: "yield", typ: r("Yield") },
15391539 ], false),
1540+ "Type": o([
1541+ { json: "Type", js: "Type", typ: i(0) },
1542+ ], false),
15401543 "UUID": o([
15411544 { json: "UUID", js: "UUID", typ: i(0) },
15421545 ], false),
@@ -1555,6 +1558,15 @@ const typeMap = {
15551558 "Yes": o([
15561559 { json: "YES", js: "YES", typ: i(0) },
15571560 ], false),
1561+ "Try": o([
1562+ { json: "try", js: "try", typ: i(0) },
1563+ ], false),
1564+ "TypeClass": o([
1565+ { json: "type", js: "type", typ: i(0) },
1566+ ], false),
1567+ "Typealias": o([
1568+ { json: "typealias", js: "typealias", typ: i(0) },
1569+ ], false),
15581570 "Typedef": o([
15591571 { json: "typedef", js: "typedef", typ: i(0) },
15601572 ], false),
Mkotlin-jacksondefault / TopLevel.kt+101 −77
@@ -1264,6 +1264,9 @@ data class Obj3 (
12641264 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
12651265 val list: ListClass,
12661266
1267+ @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true)
1268+ val localDate: LocalDate,
1269+
12671270 @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true)
12681271 val locale: Locale,
12691272
@@ -1291,12 +1294,6 @@ data class Obj3 (
12911294 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
12921295 val module: Module,
12931296
1294- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1295- val mutable: Mutable,
1296-
1297- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1298- val mutating: Mutating,
1299-
13001297 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
13011298 val obj3If: If,
13021299
@@ -1560,6 +1557,11 @@ data class ListClass (
15601557 val list: Long
15611558 )
15621559
1560+data class LocalDate (
1561+ @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true)
1562+ val localDate: Long
1563+)
1564+
15631565 data class Locale (
15641566 @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true)
15651567 val locale: Long
@@ -1605,16 +1607,6 @@ data class Module (
16051607 val module: Long
16061608 )
16071609
1608-data class Mutable (
1609- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1610- val mutable: Long
1611-)
1612-
1613-data class Mutating (
1614- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1615- val mutating: Long
1616-)
1617-
16181610 data class If (
16191611 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
16201612 val ifIf: Long
@@ -1639,6 +1631,12 @@ data class Obj4 (
16391631 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16401632 val dummy: Long,
16411633
1634+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1635+ val mutable: Mutable,
1636+
1637+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1638+ val mutating: Mutating,
1639+
16421640 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16431641 val namespace: Namespace,
16441642
@@ -1732,6 +1730,12 @@ data class Obj4 (
17321730 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
17331731 val of: Of,
17341732
1733+ @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true)
1734+ val offsetDateTime: OffsetDateTimeClass,
1735+
1736+ @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true)
1737+ val offsetTime: OffsetTime,
1738+
17351739 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
17361740 val oneway: Oneway,
17371741
@@ -1817,19 +1821,17 @@ data class Obj4 (
18171821 val register: Register,
18181822
18191823 @get:JsonProperty("reinterpret_cast", required=true)@field:JsonProperty("reinterpret_cast", required=true)
1820- val reinterpretCast: ReinterpretCast,
1821-
1822- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1823- val repeat: Repeat,
1824-
1825- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1826- val require: Require,
1824+ val reinterpretCast: ReinterpretCast
1825+)
18271826
1827+data class Mutable (
18281828 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1829- val required: Required,
1829+ val mutable: Long
1830+)
18301831
1832+data class Mutating (
18311833 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1832- val requires: Requires
1834+ val mutating: Long
18331835 )
18341836
18351837 data class Namespace (
@@ -1987,6 +1989,16 @@ data class Of (
19871989 val of: Long
19881990 )
19891991
1992+data class OffsetDateTimeClass (
1993+ @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true)
1994+ val offsetDateTime: Long
1995+)
1996+
1997+data class OffsetTime (
1998+ @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true)
1999+ val offsetTime: Long
2000+)
2001+
19902002 data class Oneway (
19912003 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
19922004 val oneway: Long
@@ -2132,26 +2144,6 @@ data class ReinterpretCast (
21322144 val reinterpretCast: Long
21332145 )
21342146
2135-data class Repeat (
2136- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2137- val repeat: Long
2138-)
2139-
2140-data class Require (
2141- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2142- val require: Long
2143-)
2144-
2145-data class Required (
2146- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2147- val required: Long
2148-)
2149-
2150-data class Requires (
2151- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2152- val requires: Long
2153-)
2154-
21552147 data class Obj5 (
21562148 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21572149 val dummy: Long,
@@ -2177,21 +2169,24 @@ data class Obj5 (
21772169 @get:JsonProperty("True", required=true)@field:JsonProperty("True", required=true)
21782170 val obj5True: True,
21792171
2180- @get:JsonProperty("try", required=true)@field:JsonProperty("try", required=true)
2181- val obj5Try: Try,
2182-
2183- @get:JsonProperty("type", required=true)@field:JsonProperty("type", required=true)
2184- val obj5Type: TypeClass,
2185-
2186- @get:JsonProperty("typealias", required=true)@field:JsonProperty("typealias", required=true)
2187- val obj5Typealias: Typealias,
2188-
21892172 @get:JsonProperty("PrimitiveKind", required=true)@field:JsonProperty("PrimitiveKind", required=true)
21902173 val primitiveKind: PrimitiveKind,
21912174
21922175 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21932176 val purpleTrue: TrueClass,
21942177
2178+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2179+ val repeat: Repeat,
2180+
2181+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2182+ val require: Require,
2183+
2184+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2185+ val required: Required,
2186+
2187+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2188+ val requires: Requires,
2189+
21952190 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21962191 val restrict: Restrict,
21972192
@@ -2343,10 +2338,7 @@ data class Obj5 (
23432338 val topLevel: TopLevelClass,
23442339
23452340 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2346- val transient: Transient,
2347-
2348- @get:JsonProperty("Type", required=true)@field:JsonProperty("Type", required=true)
2349- val type: Type
2341+ val transient: Transient
23502342 )
23512343
23522344 data class KSerializer (
@@ -2384,29 +2376,34 @@ data class True (
23842376 val trueTrue: Long
23852377 )
23862378
2387-data class Try (
2388- @get:JsonProperty("try", required=true)@field:JsonProperty("try", required=true)
2389- val tryTry: Long
2379+data class PrimitiveKind (
2380+ @get:JsonProperty("PrimitiveKind", required=true)@field:JsonProperty("PrimitiveKind", required=true)
2381+ val primitiveKind: Long
23902382 )
23912383
2392-data class TypeClass (
2384+data class TrueClass (
2385+ @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
2386+ val trueTrue: Long
2387+)
2388+
2389+data class Repeat (
23932390 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2394- val type: Long
2391+ val repeat: Long
23952392 )
23962393
2397-data class Typealias (
2398- @get:JsonProperty("typealias", required=true)@field:JsonProperty("typealias", required=true)
2399- val typealiasTypealias: Long
2394+data class Require (
2395+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2396+ val require: Long
24002397 )
24012398
2402-data class PrimitiveKind (
2403- @get:JsonProperty("PrimitiveKind", required=true)@field:JsonProperty("PrimitiveKind", required=true)
2404- val primitiveKind: Long
2399+data class Required (
2400+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2401+ val required: Long
24052402 )
24062403
2407-data class TrueClass (
2408- @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
2409- val trueTrue: Long
2404+data class Requires (
2405+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2406+ val requires: Long
24102407 )
24112408
24122409 data class Restrict (
@@ -2664,15 +2661,19 @@ data class Transient (
26642661 val transient: Long
26652662 )
26662663
2667-data class Type (
2668- @get:JsonProperty("Type", required=true)@field:JsonProperty("Type", required=true)
2669- val type: Long
2670-)
2671-
26722664 data class Obj6 (
26732665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26742666 val dummy: Long,
26752667
2668+ @get:JsonProperty("try", required=true)@field:JsonProperty("try", required=true)
2669+ val obj6Try: Try,
2670+
2671+ @get:JsonProperty("type", required=true)@field:JsonProperty("type", required=true)
2672+ val obj6Type: TypeClass,
2673+
2674+ @get:JsonProperty("typealias", required=true)@field:JsonProperty("typealias", required=true)
2675+ val obj6Typealias: Typealias,
2676+
26762677 @get:JsonProperty("typeof", required=true)@field:JsonProperty("typeof", required=true)
26772678 val obj6Typeof: Typeof,
26782679
@@ -2682,6 +2683,9 @@ data class Obj6 (
26822683 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
26832684 val obj6While: While,
26842685
2686+ @get:JsonProperty("Type", required=true)@field:JsonProperty("Type", required=true)
2687+ val type: Type,
2688+
26852689 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26862690 val typedef: Typedef,
26872691
@@ -2773,6 +2777,21 @@ data class Obj6 (
27732777 val yield: Yield
27742778 )
27752779
2780+data class Try (
2781+ @get:JsonProperty("try", required=true)@field:JsonProperty("try", required=true)
2782+ val tryTry: Long
2783+)
2784+
2785+data class TypeClass (
2786+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2787+ val type: Long
2788+)
2789+
2790+data class Typealias (
2791+ @get:JsonProperty("typealias", required=true)@field:JsonProperty("typealias", required=true)
2792+ val typealiasTypealias: Long
2793+)
2794+
27762795 data class Typeof (
27772796 @get:JsonProperty("typeof", required=true)@field:JsonProperty("typeof", required=true)
27782797 val typeofTypeof: Long
@@ -2788,6 +2807,11 @@ data class While (
27882807 val whileWhile: Long
27892808 )
27902809
2810+data class Type (
2811+ @get:JsonProperty("Type", required=true)@field:JsonProperty("Type", required=true)
2812+ val type: Long
2813+)
2814+
27912815 data class Typedef (
27922816 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27932817 val typedef: Long
Mkotlindefault / TopLevel.kt+87 −63
@@ -975,6 +975,9 @@ data class Obj3 (
975975 val let: Let,
976976 val list: ListClass,
977977
978+ @Json(name = "LocalDate")
979+ val localDate: LocalDate,
980+
978981 @Json(name = "Locale")
979982 val locale: Locale,
980983
@@ -996,8 +999,6 @@ data class Obj3 (
996999 val metadataPropertyHandling: MetadataPropertyHandling,
9971000
9981001 val module: Module,
999- val mutable: Mutable,
1000- val mutating: Mutating,
10011002
10021003 @Json(name = "if")
10031004 val obj3If: If,
@@ -1232,6 +1233,11 @@ data class ListClass (
12321233 val list: Long
12331234 )
12341235
1236+data class LocalDate (
1237+ @Json(name = "LocalDate")
1238+ val localDate: Long
1239+)
1240+
12351241 data class Locale (
12361242 @Json(name = "Locale")
12371243 val locale: Long
@@ -1273,14 +1279,6 @@ data class Module (
12731279 val module: Long
12741280 )
12751281
1276-data class Mutable (
1277- val mutable: Long
1278-)
1279-
1280-data class Mutating (
1281- val mutating: Long
1282-)
1283-
12841282 data class If (
12851283 @Json(name = "if")
12861284 val ifIf: Long
@@ -1303,6 +1301,8 @@ data class Is (
13031301
13041302 data class Obj4 (
13051303 val dummy: Long,
1304+ val mutable: Mutable,
1305+ val mutating: Mutating,
13061306 val namespace: Namespace,
13071307 val native: Native,
13081308 val new: New,
@@ -1372,6 +1372,13 @@ data class Obj4 (
13721372 val objectWriter: ObjectWriter,
13731373
13741374 val of: Of,
1375+
1376+ @Json(name = "OffsetDateTime")
1377+ val offsetDateTime: OffsetDateTimeClass,
1378+
1379+ @Json(name = "OffsetTime")
1380+ val offsetTime: OffsetTime,
1381+
13751382 val oneway: Oneway,
13761383 val open: Open,
13771384 val operator: Operator,
@@ -1411,12 +1418,15 @@ data class Obj4 (
14111418 val register: Register,
14121419
14131420 @Json(name = "reinterpret_cast")
1414- val reinterpretCast: ReinterpretCast,
1421+ val reinterpretCast: ReinterpretCast
1422+)
14151423
1416- val repeat: Repeat,
1417- val require: Require,
1418- val required: Required,
1419- val requires: Requires
1424+data class Mutable (
1425+ val mutable: Long
1426+)
1427+
1428+data class Mutating (
1429+ val mutating: Long
14201430 )
14211431
14221432 data class Namespace (
@@ -1558,6 +1568,16 @@ data class Of (
15581568 val of: Long
15591569 )
15601570
1571+data class OffsetDateTimeClass (
1572+ @Json(name = "OffsetDateTime")
1573+ val offsetDateTime: Long
1574+)
1575+
1576+data class OffsetTime (
1577+ @Json(name = "OffsetTime")
1578+ val offsetTime: Long
1579+)
1580+
15611581 data class Oneway (
15621582 val oneway: Long
15631583 )
@@ -1678,22 +1698,6 @@ data class ReinterpretCast (
16781698 val reinterpretCast: Long
16791699 )
16801700
1681-data class Repeat (
1682- val repeat: Long
1683-)
1684-
1685-data class Require (
1686- val require: Long
1687-)
1688-
1689-data class Required (
1690- val required: Long
1691-)
1692-
1693-data class Requires (
1694- val requires: Long
1695-)
1696-
16971701 data class Obj5 (
16981702 val dummy: Long,
16991703
@@ -1718,21 +1722,16 @@ data class Obj5 (
17181722 @Json(name = "True")
17191723 val obj5True: True,
17201724
1721- @Json(name = "try")
1722- val obj5Try: Try,
1723-
1724- @Json(name = "type")
1725- val obj5Type: TypeClass,
1726-
1727- @Json(name = "typealias")
1728- val obj5Typealias: Typealias,
1729-
17301725 @Json(name = "PrimitiveKind")
17311726 val primitiveKind: PrimitiveKind,
17321727
17331728 @Json(name = "true")
17341729 val purpleTrue: TrueClass,
17351730
1731+ val repeat: Repeat,
1732+ val require: Require,
1733+ val required: Required,
1734+ val requires: Requires,
17361735 val restrict: Restrict,
17371736 val retain: Retain,
17381737 val rethrows: Rethrows,
@@ -1837,10 +1836,7 @@ data class Obj5 (
18371836 @Json(name = "top_level")
18381837 val topLevel: TopLevelClass,
18391838
1840- val transient: Transient,
1841-
1842- @Json(name = "Type")
1843- val type: Type
1839+ val transient: Transient
18441840 )
18451841
18461842 data class KSerializer (
@@ -1877,20 +1873,6 @@ data class True (
18771873 val trueTrue: Long
18781874 )
18791875
1880-data class Try (
1881- @Json(name = "try")
1882- val tryTry: Long
1883-)
1884-
1885-data class TypeClass (
1886- val type: Long
1887-)
1888-
1889-data class Typealias (
1890- @Json(name = "typealias")
1891- val typealiasTypealias: Long
1892-)
1893-
18941876 data class PrimitiveKind (
18951877 @Json(name = "PrimitiveKind")
18961878 val primitiveKind: Long
@@ -1901,6 +1883,22 @@ data class TrueClass (
19011883 val trueTrue: Long
19021884 )
19031885
1886+data class Repeat (
1887+ val repeat: Long
1888+)
1889+
1890+data class Require (
1891+ val require: Long
1892+)
1893+
1894+data class Required (
1895+ val required: Long
1896+)
1897+
1898+data class Requires (
1899+ val requires: Long
1900+)
1901+
19041902 data class Restrict (
19051903 val restrict: Long
19061904 )
@@ -2127,14 +2125,18 @@ data class Transient (
21272125 val transient: Long
21282126 )
21292127
2130-data class Type (
2131- @Json(name = "Type")
2132- val type: Long
2133-)
2134-
21352128 data class Obj6 (
21362129 val dummy: Long,
21372130
2131+ @Json(name = "try")
2132+ val obj6Try: Try,
2133+
2134+ @Json(name = "type")
2135+ val obj6Type: TypeClass,
2136+
2137+ @Json(name = "typealias")
2138+ val obj6Typealias: Typealias,
2139+
21382140 @Json(name = "typeof")
21392141 val obj6Typeof: Typeof,
21402142
@@ -2144,6 +2146,9 @@ data class Obj6 (
21442146 @Json(name = "while")
21452147 val obj6While: While,
21462148
2149+ @Json(name = "Type")
2150+ val type: Type,
2151+
21472152 val typedef: Typedef,
21482153 val typeid: Typeid,
21492154 val typename: Typename,
@@ -2197,6 +2202,20 @@ data class Obj6 (
21972202 val yield: Yield
21982203 )
21992204
2205+data class Try (
2206+ @Json(name = "try")
2207+ val tryTry: Long
2208+)
2209+
2210+data class TypeClass (
2211+ val type: Long
2212+)
2213+
2214+data class Typealias (
2215+ @Json(name = "typealias")
2216+ val typealiasTypealias: Long
2217+)
2218+
22002219 data class Typeof (
22012220 @Json(name = "typeof")
22022221 val typeofTypeof: Long
@@ -2212,6 +2231,11 @@ data class While (
22122231 val whileWhile: Long
22132232 )
22142233
2234+data class Type (
2235+ @Json(name = "Type")
2236+ val type: Long
2237+)
2238+
22152239 data class Typedef (
22162240 val typedef: Long
22172241 )
Mkotlinxdefault / TopLevel.kt+97 −70
@@ -1088,6 +1088,9 @@ data class Obj3 (
10881088 val let: Let,
10891089 val list: ListClass,
10901090
1091+ @SerialName("LocalDate")
1092+ val localDate: LocalDate,
1093+
10911094 @SerialName("Locale")
10921095 val locale: Locale,
10931096
@@ -1109,8 +1112,6 @@ data class Obj3 (
11091112 val metadataPropertyHandling: MetadataPropertyHandling,
11101113
11111114 val module: Module,
1112- val mutable: Mutable,
1113- val mutating: Mutating,
11141115
11151116 @SerialName("if")
11161117 val obj3If: If,
@@ -1395,6 +1396,12 @@ data class ListClass (
13951396 val list: Long
13961397 )
13971398
1399+@Serializable
1400+data class LocalDate (
1401+ @SerialName("LocalDate")
1402+ val localDate: Long
1403+)
1404+
13981405 @Serializable
13991406 data class Locale (
14001407 @SerialName("Locale")
@@ -1445,16 +1452,6 @@ data class Module (
14451452 val module: Long
14461453 )
14471454
1448-@Serializable
1449-data class Mutable (
1450- val mutable: Long
1451-)
1452-
1453-@Serializable
1454-data class Mutating (
1455- val mutating: Long
1456-)
1457-
14581455 @Serializable
14591456 data class If (
14601457 @SerialName("if")
@@ -1482,6 +1479,8 @@ data class Is (
14821479 @Serializable
14831480 data class Obj4 (
14841481 val dummy: Long,
1482+ val mutable: Mutable,
1483+ val mutating: Mutating,
14851484 val namespace: Namespace,
14861485 val native: Native,
14871486 val new: New,
@@ -1551,6 +1550,13 @@ data class Obj4 (
15511550 val objectWriter: ObjectWriter,
15521551
15531552 val of: Of,
1553+
1554+ @SerialName("OffsetDateTime")
1555+ val offsetDateTime: OffsetDateTimeClass,
1556+
1557+ @SerialName("OffsetTime")
1558+ val offsetTime: OffsetTime,
1559+
15541560 val oneway: Oneway,
15551561 val open: Open,
15561562 val operator: Operator,
@@ -1590,12 +1596,17 @@ data class Obj4 (
15901596 val register: Register,
15911597
15921598 @SerialName("reinterpret_cast")
1593- val reinterpretCast: ReinterpretCast,
1599+ val reinterpretCast: ReinterpretCast
1600+)
15941601
1595- val repeat: Repeat,
1596- val require: Require,
1597- val required: Required,
1598- val requires: Requires
1602+@Serializable
1603+data class Mutable (
1604+ val mutable: Long
1605+)
1606+
1607+@Serializable
1608+data class Mutating (
1609+ val mutating: Long
15991610 )
16001611
16011612 @Serializable
@@ -1768,6 +1779,18 @@ data class Of (
17681779 val of: Long
17691780 )
17701781
1782+@Serializable
1783+data class OffsetDateTimeClass (
1784+ @SerialName("OffsetDateTime")
1785+ val offsetDateTime: Long
1786+)
1787+
1788+@Serializable
1789+data class OffsetTime (
1790+ @SerialName("OffsetTime")
1791+ val offsetTime: Long
1792+)
1793+
17711794 @Serializable
17721795 data class Oneway (
17731796 val oneway: Long
@@ -1917,26 +1940,6 @@ data class ReinterpretCast (
19171940 val reinterpretCast: Long
19181941 )
19191942
1920-@Serializable
1921-data class Repeat (
1922- val repeat: Long
1923-)
1924-
1925-@Serializable
1926-data class Require (
1927- val require: Long
1928-)
1929-
1930-@Serializable
1931-data class Required (
1932- val required: Long
1933-)
1934-
1935-@Serializable
1936-data class Requires (
1937- val requires: Long
1938-)
1939-
19401943 @Serializable
19411944 data class Obj5 (
19421945 val dummy: Long,
@@ -1962,21 +1965,16 @@ data class Obj5 (
19621965 @SerialName("True")
19631966 val obj5True: True,
19641967
1965- @SerialName("try")
1966- val obj5Try: Try,
1967-
1968- @SerialName("type")
1969- val obj5Type: TypeClass,
1970-
1971- @SerialName("typealias")
1972- val obj5Typealias: Typealias,
1973-
19741968 @SerialName("PrimitiveKind")
19751969 val primitiveKind: PrimitiveKindClass,
19761970
19771971 @SerialName("true")
19781972 val purpleTrue: TrueClass,
19791973
1974+ val repeat: Repeat,
1975+ val require: Require,
1976+ val required: Required,
1977+ val requires: Requires,
19801978 val restrict: Restrict,
19811979 val retain: Retain,
19821980 val rethrows: Rethrows,
@@ -2081,10 +2079,7 @@ data class Obj5 (
20812079 @SerialName("top_level")
20822080 val topLevel: TopLevelClass,
20832081
2084- val transient: Transient,
2085-
2086- @SerialName("Type")
2087- val type: Type
2082+ val transient: Transient
20882083 )
20892084
20902085 @Serializable
@@ -2129,32 +2124,35 @@ data class True (
21292124 )
21302125
21312126 @Serializable
2132-data class Try (
2133- @SerialName("try")
2134- val tryTry: Long
2127+data class PrimitiveKindClass (
2128+ @SerialName("PrimitiveKind")
2129+ val primitiveKind: Long
21352130 )
21362131
21372132 @Serializable
2138-data class TypeClass (
2139- val type: Long
2133+data class TrueClass (
2134+ @SerialName("true")
2135+ val trueTrue: Long
21402136 )
21412137
21422138 @Serializable
2143-data class Typealias (
2144- @SerialName("typealias")
2145- val typealiasTypealias: Long
2139+data class Repeat (
2140+ val repeat: Long
21462141 )
21472142
21482143 @Serializable
2149-data class PrimitiveKindClass (
2150- @SerialName("PrimitiveKind")
2151- val primitiveKind: Long
2144+data class Require (
2145+ val require: Long
21522146 )
21532147
21542148 @Serializable
2155-data class TrueClass (
2156- @SerialName("true")
2157- val trueTrue: Long
2149+data class Required (
2150+ val required: Long
2151+)
2152+
2153+@Serializable
2154+data class Requires (
2155+ val requires: Long
21582156 )
21592157
21602158 @Serializable
@@ -2434,16 +2432,19 @@ data class Transient (
24342432 val transient: Long
24352433 )
24362434
2437-@Serializable
2438-data class Type (
2439- @SerialName("Type")
2440- val type: Long
2441-)
2442-
24432435 @Serializable
24442436 data class Obj6 (
24452437 val dummy: Long,
24462438
2439+ @SerialName("try")
2440+ val obj6Try: Try,
2441+
2442+ @SerialName("type")
2443+ val obj6Type: TypeClass,
2444+
2445+ @SerialName("typealias")
2446+ val obj6Typealias: Typealias,
2447+
24472448 @SerialName("typeof")
24482449 val obj6Typeof: Typeof,
24492450
@@ -2453,6 +2454,9 @@ data class Obj6 (
24532454 @SerialName("while")
24542455 val obj6While: While,
24552456
2457+ @SerialName("Type")
2458+ val type: Type,
2459+
24562460 val typedef: Typedef,
24572461 val typeid: Typeid,
24582462 val typename: Typename,
@@ -2506,6 +2510,23 @@ data class Obj6 (
25062510 val yield: Yield
25072511 )
25082512
2513+@Serializable
2514+data class Try (
2515+ @SerialName("try")
2516+ val tryTry: Long
2517+)
2518+
2519+@Serializable
2520+data class TypeClass (
2521+ val type: Long
2522+)
2523+
2524+@Serializable
2525+data class Typealias (
2526+ @SerialName("typealias")
2527+ val typealiasTypealias: Long
2528+)
2529+
25092530 @Serializable
25102531 data class Typeof (
25112532 @SerialName("typeof")
@@ -2524,6 +2545,12 @@ data class While (
25242545 val whileWhile: Long
25252546 )
25262547
2548+@Serializable
2549+data class Type (
2550+ @SerialName("Type")
2551+ val type: Long
2552+)
2553+
25272554 @Serializable
25282555 data class Typedef (
25292556 val typedef: Long
Mobjective-cdefault / QTTopLevel.h+78 −60
@@ -186,6 +186,7 @@
186186 @class QTLeft;
187187 @class QTLet;
188188 @class QTList;
189+@class QTLocalDate;
189190 @class QTLocale;
190191 @class QTLock;
191192 @class QTLongNode;
@@ -194,8 +195,6 @@
194195 @class QTMarshalJSON;
195196 @class QTMetadataPropertyHandling;
196197 @class QTModule;
197-@class QTMutable;
198-@class QTMutating;
199198 @class QTGoto;
200199 @class QTIf;
201200 @class QTInline;
@@ -204,6 +203,8 @@
204203 @class QTHashCode;
205204 @class QTInit;
206205 @class QTObj4;
206+@class QTMutable;
207+@class QTMutating;
207208 @class QTNamespace;
208209 @class QTNative;
209210 @class QTNewtonsoft;
@@ -234,6 +235,8 @@
234235 @class QTObjectReader;
235236 @class QTObjectWriter;
236237 @class QTOf;
238+@class QTOffsetDateTime;
239+@class QTOffsetTime;
237240 @class QTOneway;
238241 @class QTOpen;
239242 @class QTOperator;
@@ -263,10 +266,6 @@
263266 @class QTRef;
264267 @class QTRegExp;
265268 @class QTReinterpretCast;
266-@class QTRepeat;
267-@class QTRequire;
268-@class QTRequired;
269-@class QTRequires;
270269 @class QTNew;
271270 @class QTObj5;
272271 @class QTKSerializer;
@@ -281,8 +280,11 @@
281280 @class QTStruct;
282281 @class QTSwitch;
283282 @class QTTrue;
284-@class QTTypeClass;
285283 @class QTPrimitiveKind;
284+@class QTRepeat;
285+@class QTRequire;
286+@class QTRequired;
287+@class QTRequires;
286288 @class QTRethrows;
287289 @class QTRight;
288290 @class QTRuntimeType;
@@ -330,10 +332,8 @@
330332 @class QTToString;
331333 @class QTTopLevelClass;
332334 @class QTTransient;
333-@class QTTry;
334-@class QTType;
335-@class QTTypealias;
336335 @class QTObj6;
336+@class QTTypeClass;
337337 @class QTTypedef;
338338 @class QTTypeof;
339339 @class QTUnion;
@@ -341,6 +341,9 @@
341341 @class QTVoid;
342342 @class QTVolatile;
343343 @class QTWhile;
344+@class QTTry;
345+@class QTType;
346+@class QTTypealias;
344347 @class QTTypeid;
345348 @class QTTypename;
346349 @class QTUint;
@@ -1101,6 +1104,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11011104 @property (nonatomic, strong) QTLeft *left;
11021105 @property (nonatomic, strong) QTLet *let;
11031106 @property (nonatomic, strong) QTList *list;
1107+@property (nonatomic, strong) QTLocalDate *localDate;
11041108 @property (nonatomic, strong) QTLocale *locale;
11051109 @property (nonatomic, strong) QTLock *lock;
11061110 @property (nonatomic, strong) QTLongNode *longNode;
@@ -1109,8 +1113,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11091113 @property (nonatomic, strong) QTMarshalJSON *marshalJSON;
11101114 @property (nonatomic, strong) QTMetadataPropertyHandling *metadataPropertyHandling;
11111115 @property (nonatomic, strong) QTModule *module;
1112-@property (nonatomic, strong) QTMutable *mutable;
1113-@property (nonatomic, strong) QTMutating *mutating;
11141116 @property (nonatomic, strong) QTGoto *obj3Goto;
11151117 @property (nonatomic, strong) QTIf *obj3If;
11161118 @property (nonatomic, strong) QTInline *obj3Inline;
@@ -1312,6 +1314,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13121314 @property (nonatomic, assign) NSInteger list;
13131315 @end
13141316
1317+@interface QTLocalDate : NSObject
1318+@property (nonatomic, assign) NSInteger localDate;
1319+@end
1320+
13151321 @interface QTLocale : NSObject
13161322 @property (nonatomic, assign) NSInteger locale;
13171323 @end
@@ -1344,14 +1350,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13441350 @property (nonatomic, assign) NSInteger module;
13451351 @end
13461352
1347-@interface QTMutable : NSObject
1348-@property (nonatomic, assign) NSInteger mutable;
1349-@end
1350-
1351-@interface QTMutating : NSObject
1352-@property (nonatomic, assign) NSInteger mutating;
1353-@end
1354-
13551353 @interface QTGoto : NSObject
13561354 @property (nonatomic, assign) NSInteger gotoGoto;
13571355 @end
@@ -1382,6 +1380,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13821380
13831381 @interface QTObj4 : NSObject
13841382 @property (nonatomic, assign) NSInteger dummy;
1383+@property (nonatomic, strong) QTMutable *mutable;
1384+@property (nonatomic, strong) QTMutating *mutating;
13851385 @property (nonatomic, strong) QTNamespace *namespace;
13861386 @property (nonatomic, strong) QTNative *native;
13871387 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
@@ -1412,6 +1412,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14121412 @property (nonatomic, strong) QTObjectReader *objectReader;
14131413 @property (nonatomic, strong) QTObjectWriter *objectWriter;
14141414 @property (nonatomic, strong) QTOf *of;
1415+@property (nonatomic, strong) QTOffsetDateTime *offsetDateTime;
1416+@property (nonatomic, strong) QTOffsetTime *offsetTime;
14151417 @property (nonatomic, strong) QTOneway *oneway;
14161418 @property (nonatomic, strong) QTOpen *open;
14171419 @property (nonatomic, strong) QTOperator *operator;
@@ -1441,13 +1443,17 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14411443 @property (nonatomic, strong) QTRef *ref;
14421444 @property (nonatomic, strong) QTRegExp *regExp;
14431445 @property (nonatomic, strong) QTReinterpretCast *reinterpretCast;
1444-@property (nonatomic, strong) QTRepeat *repeat;
1445-@property (nonatomic, strong) QTRequire *require;
1446-@property (nonatomic, strong) QTRequired *required;
1447-@property (nonatomic, strong) QTRequires *requires;
14481446 @property (nonatomic, strong) QTNew *theNew;
14491447 @end
14501448
1449+@interface QTMutable : NSObject
1450+@property (nonatomic, assign) NSInteger mutable;
1451+@end
1452+
1453+@interface QTMutating : NSObject
1454+@property (nonatomic, assign) NSInteger mutating;
1455+@end
1456+
14511457 @interface QTNamespace : NSObject
14521458 @property (nonatomic, assign) NSInteger namespace;
14531459 @end
@@ -1568,6 +1574,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
15681574 @property (nonatomic, assign) NSInteger of;
15691575 @end
15701576
1577+@interface QTOffsetDateTime : NSObject
1578+@property (nonatomic, assign) NSInteger offsetDateTime;
1579+@end
1580+
1581+@interface QTOffsetTime : NSObject
1582+@property (nonatomic, assign) NSInteger offsetTime;
1583+@end
1584+
15711585 @interface QTOneway : NSObject
15721586 @property (nonatomic, assign) NSInteger oneway;
15731587 @end
@@ -1684,22 +1698,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16841698 @property (nonatomic, assign) NSInteger reinterpretCast;
16851699 @end
16861700
1687-@interface QTRepeat : NSObject
1688-@property (nonatomic, assign) NSInteger repeat;
1689-@end
1690-
1691-@interface QTRequire : NSObject
1692-@property (nonatomic, assign) NSInteger require;
1693-@end
1694-
1695-@interface QTRequired : NSObject
1696-@property (nonatomic, assign) NSInteger required;
1697-@end
1698-
1699-@interface QTRequires : NSObject
1700-@property (nonatomic, assign) NSInteger requires;
1701-@end
1702-
17031701 @interface QTNew : NSObject
17041702 @property (nonatomic, assign) NSInteger theNew;
17051703 @end
@@ -1718,8 +1716,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17181716 @property (nonatomic, strong) QTStruct *obj5Struct;
17191717 @property (nonatomic, strong) QTSwitch *obj5Switch;
17201718 @property (nonatomic, strong) QTTrue *obj5True;
1721-@property (nonatomic, strong) QTTypeClass *obj5Type;
17221719 @property (nonatomic, strong) QTPrimitiveKind *primitiveKind;
1720+@property (nonatomic, strong) QTRepeat *repeat;
1721+@property (nonatomic, strong) QTRequire *require;
1722+@property (nonatomic, strong) QTRequired *required;
1723+@property (nonatomic, strong) QTRequires *requires;
17231724 @property (nonatomic, strong) QTRethrows *rethrows;
17241725 @property (nonatomic, strong) QTRight *right;
17251726 @property (nonatomic, strong) QTRuntimeType *runtimeType;
@@ -1767,9 +1768,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17671768 @property (nonatomic, strong) QTToString *toString;
17681769 @property (nonatomic, strong) QTTopLevelClass *topLevel;
17691770 @property (nonatomic, strong) QTTransient *transient;
1770-@property (nonatomic, strong) QTTry *try;
1771-@property (nonatomic, strong) QTType *type;
1772-@property (nonatomic, strong) QTTypealias *typealias;
17731771 @end
17741772
17751773 @interface QTKSerializer : NSObject
@@ -1820,14 +1818,26 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
18201818 @property (nonatomic, assign) NSInteger trueTrue;
18211819 @end
18221820
1823-@interface QTTypeClass : NSObject
1824-@property (nonatomic, assign) NSInteger type;
1825-@end
1826-
18271821 @interface QTPrimitiveKind : NSObject
18281822 @property (nonatomic, assign) NSInteger primitiveKind;
18291823 @end
18301824
1825+@interface QTRepeat : NSObject
1826+@property (nonatomic, assign) NSInteger repeat;
1827+@end
1828+
1829+@interface QTRequire : NSObject
1830+@property (nonatomic, assign) NSInteger require;
1831+@end
1832+
1833+@interface QTRequired : NSObject
1834+@property (nonatomic, assign) NSInteger required;
1835+@end
1836+
1837+@interface QTRequires : NSObject
1838+@property (nonatomic, assign) NSInteger requires;
1839+@end
1840+
18311841 @interface QTRethrows : NSObject
18321842 @property (nonatomic, assign) NSInteger rethrows;
18331843 @end
@@ -2016,20 +2026,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20162026 @property (nonatomic, assign) NSInteger transient;
20172027 @end
20182028
2019-@interface QTTry : NSObject
2020-@property (nonatomic, assign) NSInteger try;
2021-@end
2022-
2023-@interface QTType : NSObject
2024-@property (nonatomic, assign) NSInteger type;
2025-@end
2026-
2027-@interface QTTypealias : NSObject
2028-@property (nonatomic, assign) NSInteger typealias;
2029-@end
2030-
20312029 @interface QTObj6 : NSObject
20322030 @property (nonatomic, assign) NSInteger dummy;
2031+@property (nonatomic, strong) QTTypeClass *obj6Type;
20332032 @property (nonatomic, strong) QTTypedef *obj6Typedef;
20342033 @property (nonatomic, strong) QTTypeof *obj6Typeof;
20352034 @property (nonatomic, strong) QTUnion *obj6Union;
@@ -2037,6 +2036,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20372036 @property (nonatomic, strong) QTVoid *obj6Void;
20382037 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20392038 @property (nonatomic, strong) QTWhile *obj6While;
2039+@property (nonatomic, strong) QTTry *try;
2040+@property (nonatomic, strong) QTType *type;
2041+@property (nonatomic, strong) QTTypealias *typealias;
20402042 @property (nonatomic, strong) QTTypeid *typeid;
20412043 @property (nonatomic, strong) QTTypename *typename;
20422044 @property (nonatomic, strong) QTUint *uint;
@@ -2065,6 +2067,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20652067 @property (nonatomic, strong) QTYield *yield;
20662068 @end
20672069
2070+@interface QTTypeClass : NSObject
2071+@property (nonatomic, assign) NSInteger type;
2072+@end
2073+
20682074 @interface QTTypedef : NSObject
20692075 @property (nonatomic, assign) NSInteger typedefTypedef;
20702076 @end
@@ -2093,6 +2099,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20932099 @property (nonatomic, assign) NSInteger whileWhile;
20942100 @end
20952101
2102+@interface QTTry : NSObject
2103+@property (nonatomic, assign) NSInteger try;
2104+@end
2105+
2106+@interface QTType : NSObject
2107+@property (nonatomic, assign) NSInteger type;
2108+@end
2109+
2110+@interface QTTypealias : NSObject
2111+@property (nonatomic, assign) NSInteger typealias;
2112+@end
2113+
20962114 @interface QTTypeid : NSObject
20972115 @property (nonatomic, assign) NSInteger typeid;
20982116 @end
Mobjective-cdefault / QTTopLevel.m+754 −568
@@ -908,6 +908,11 @@ NS_ASSUME_NONNULL_BEGIN
908908 - (NSDictionary *)JSONDictionary;
909909 @end
910910
911+@interface QTLocalDate (JSONConversion)
912++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
913+- (NSDictionary *)JSONDictionary;
914+@end
915+
911916 @interface QTLocale (JSONConversion)
912917 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
913918 - (NSDictionary *)JSONDictionary;
@@ -948,16 +953,6 @@ NS_ASSUME_NONNULL_BEGIN
948953 - (NSDictionary *)JSONDictionary;
949954 @end
950955
951-@interface QTMutable (JSONConversion)
952-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
953-- (NSDictionary *)JSONDictionary;
954-@end
955-
956-@interface QTMutating (JSONConversion)
957-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
958-- (NSDictionary *)JSONDictionary;
959-@end
960-
961956 @interface QTGoto (JSONConversion)
962957 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
963958 - (NSDictionary *)JSONDictionary;
@@ -998,6 +993,16 @@ NS_ASSUME_NONNULL_BEGIN
998993 - (NSDictionary *)JSONDictionary;
999994 @end
1000995
996+@interface QTMutable (JSONConversion)
997++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
998+- (NSDictionary *)JSONDictionary;
999+@end
1000+
1001+@interface QTMutating (JSONConversion)
1002++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1003+- (NSDictionary *)JSONDictionary;
1004+@end
1005+
10011006 @interface QTNamespace (JSONConversion)
10021007 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
10031008 - (NSDictionary *)JSONDictionary;
@@ -1148,6 +1153,16 @@ NS_ASSUME_NONNULL_BEGIN
11481153 - (NSDictionary *)JSONDictionary;
11491154 @end
11501155
1156+@interface QTOffsetDateTime (JSONConversion)
1157++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1158+- (NSDictionary *)JSONDictionary;
1159+@end
1160+
1161+@interface QTOffsetTime (JSONConversion)
1162++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1163+- (NSDictionary *)JSONDictionary;
1164+@end
1165+
11511166 @interface QTOneway (JSONConversion)
11521167 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
11531168 - (NSDictionary *)JSONDictionary;
@@ -1293,26 +1308,6 @@ NS_ASSUME_NONNULL_BEGIN
12931308 - (NSDictionary *)JSONDictionary;
12941309 @end
12951310
1296-@interface QTRepeat (JSONConversion)
1297-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1298-- (NSDictionary *)JSONDictionary;
1299-@end
1300-
1301-@interface QTRequire (JSONConversion)
1302-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1303-- (NSDictionary *)JSONDictionary;
1304-@end
1305-
1306-@interface QTRequired (JSONConversion)
1307-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1308-- (NSDictionary *)JSONDictionary;
1309-@end
1310-
1311-@interface QTRequires (JSONConversion)
1312-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1313-- (NSDictionary *)JSONDictionary;
1314-@end
1315-
13161311 @interface QTNew (JSONConversion)
13171312 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13181313 - (NSDictionary *)JSONDictionary;
@@ -1383,12 +1378,27 @@ NS_ASSUME_NONNULL_BEGIN
13831378 - (NSDictionary *)JSONDictionary;
13841379 @end
13851380
1386-@interface QTTypeClass (JSONConversion)
1381+@interface QTPrimitiveKind (JSONConversion)
13871382 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881383 - (NSDictionary *)JSONDictionary;
13891384 @end
13901385
1391-@interface QTPrimitiveKind (JSONConversion)
1386+@interface QTRepeat (JSONConversion)
1387++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1388+- (NSDictionary *)JSONDictionary;
1389+@end
1390+
1391+@interface QTRequire (JSONConversion)
1392++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1393+- (NSDictionary *)JSONDictionary;
1394+@end
1395+
1396+@interface QTRequired (JSONConversion)
1397++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1398+- (NSDictionary *)JSONDictionary;
1399+@end
1400+
1401+@interface QTRequires (JSONConversion)
13921402 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13931403 - (NSDictionary *)JSONDictionary;
13941404 @end
@@ -1628,57 +1638,62 @@ NS_ASSUME_NONNULL_BEGIN
16281638 - (NSDictionary *)JSONDictionary;
16291639 @end
16301640
1631-@interface QTTry (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16321642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16331643 - (NSDictionary *)JSONDictionary;
16341644 @end
16351645
1636-@interface QTType (JSONConversion)
1646+@interface QTTypeClass (JSONConversion)
16371647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381648 - (NSDictionary *)JSONDictionary;
16391649 @end
16401650
1641-@interface QTTypealias (JSONConversion)
1651+@interface QTTypedef (JSONConversion)
16421652 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431653 - (NSDictionary *)JSONDictionary;
16441654 @end
16451655
1646-@interface QTObj6 (JSONConversion)
1656+@interface QTTypeof (JSONConversion)
16471657 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16481658 - (NSDictionary *)JSONDictionary;
16491659 @end
16501660
1651-@interface QTTypedef (JSONConversion)
1661+@interface QTUnion (JSONConversion)
16521662 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16531663 - (NSDictionary *)JSONDictionary;
16541664 @end
16551665
1656-@interface QTTypeof (JSONConversion)
1666+@interface QTUnsigned (JSONConversion)
16571667 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16581668 - (NSDictionary *)JSONDictionary;
16591669 @end
16601670
1661-@interface QTUnion (JSONConversion)
1671+@interface QTVoid (JSONConversion)
16621672 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16631673 - (NSDictionary *)JSONDictionary;
16641674 @end
16651675
1666-@interface QTUnsigned (JSONConversion)
1676+@interface QTVolatile (JSONConversion)
16671677 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16681678 - (NSDictionary *)JSONDictionary;
16691679 @end
16701680
1671-@interface QTVoid (JSONConversion)
1681+@interface QTWhile (JSONConversion)
16721682 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16731683 - (NSDictionary *)JSONDictionary;
16741684 @end
16751685
1676-@interface QTVolatile (JSONConversion)
1686+@interface QTTry (JSONConversion)
16771687 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16781688 - (NSDictionary *)JSONDictionary;
16791689 @end
16801690
1681-@interface QTWhile (JSONConversion)
1691+@interface QTType (JSONConversion)
1692++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1693+- (NSDictionary *)JSONDictionary;
1694+@end
1695+
1696+@interface QTTypealias (JSONConversion)
16821697 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16831698 - (NSDictionary *)JSONDictionary;
16841699 @end
@@ -8789,6 +8804,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87898804 @"left": @"left",
87908805 @"let": @"let",
87918806 @"list": @"list",
8807+ @"LocalDate": @"localDate",
87928808 @"Locale": @"locale",
87938809 @"lock": @"lock",
87948810 @"LongNode": @"longNode",
@@ -8797,8 +8813,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87978813 @"MarshalJSON": @"marshalJSON",
87988814 @"metadata_property_handling": @"metadataPropertyHandling",
87998815 @"module": @"module",
8800- @"mutable": @"mutable",
8801- @"mutating": @"mutating",
88028816 @"goto": @"obj3Goto",
88038817 @"if": @"obj3If",
88048818 @"inline": @"obj3Inline",
@@ -8867,6 +8881,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88678881 if (![dict[@"left"] isKindOfClass:NSDictionary.class]) return nil;
88688882 if (![dict[@"let"] isKindOfClass:NSDictionary.class]) return nil;
88698883 if (![dict[@"list"] isKindOfClass:NSDictionary.class]) return nil;
8884+ if (![dict[@"LocalDate"] isKindOfClass:NSDictionary.class]) return nil;
88708885 if (![dict[@"Locale"] isKindOfClass:NSDictionary.class]) return nil;
88718886 if (![dict[@"lock"] isKindOfClass:NSDictionary.class]) return nil;
88728887 if (![dict[@"LongNode"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8875,8 +8890,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88758890 if (![dict[@"MarshalJSON"] isKindOfClass:NSDictionary.class]) return nil;
88768891 if (![dict[@"metadata_property_handling"] isKindOfClass:NSDictionary.class]) return nil;
88778892 if (![dict[@"module"] isKindOfClass:NSDictionary.class]) return nil;
8878- if (![dict[@"mutable"] isKindOfClass:NSDictionary.class]) return nil;
8879- if (![dict[@"mutating"] isKindOfClass:NSDictionary.class]) return nil;
88808893 if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil;
88818894 if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil;
88828895 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8981,6 +8994,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89818994 if (!_let && dict[@"let"] && ![dict[@"let"] isKindOfClass:NSNull.class]) return nil;
89828995 _list = [QTList fromJSONDictionary:(id)_list];
89838996 if (!_list && dict[@"list"] && ![dict[@"list"] isKindOfClass:NSNull.class]) return nil;
8997+ _localDate = [QTLocalDate fromJSONDictionary:(id)_localDate];
8998+ if (!_localDate && dict[@"LocalDate"] && ![dict[@"LocalDate"] isKindOfClass:NSNull.class]) return nil;
89848999 _locale = [QTLocale fromJSONDictionary:(id)_locale];
89859000 if (!_locale && dict[@"Locale"] && ![dict[@"Locale"] isKindOfClass:NSNull.class]) return nil;
89869001 _lock = [QTLock fromJSONDictionary:(id)_lock];
@@ -8997,10 +9012,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89979012 if (!_metadataPropertyHandling && dict[@"metadata_property_handling"] && ![dict[@"metadata_property_handling"] isKindOfClass:NSNull.class]) return nil;
89989013 _module = [QTModule fromJSONDictionary:(id)_module];
89999014 if (!_module && dict[@"module"] && ![dict[@"module"] isKindOfClass:NSNull.class]) return nil;
9000- _mutable = [QTMutable fromJSONDictionary:(id)_mutable];
9001- if (!_mutable && dict[@"mutable"] && ![dict[@"mutable"] isKindOfClass:NSNull.class]) return nil;
9002- _mutating = [QTMutating fromJSONDictionary:(id)_mutating];
9003- if (!_mutating && dict[@"mutating"] && ![dict[@"mutating"] isKindOfClass:NSNull.class]) return nil;
90049015 _obj3Goto = [QTGoto fromJSONDictionary:(id)_obj3Goto];
90059016 if (!_obj3Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil;
90069017 _obj3If = [QTIf fromJSONDictionary:(id)_obj3If];
@@ -9092,6 +9103,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
90929103 @"left": [_left JSONDictionary],
90939104 @"let": [_let JSONDictionary],
90949105 @"list": [_list JSONDictionary],
9106+ @"LocalDate": [_localDate JSONDictionary],
90959107 @"Locale": [_locale JSONDictionary],
90969108 @"lock": [_lock JSONDictionary],
90979109 @"LongNode": [_longNode JSONDictionary],
@@ -9100,8 +9112,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
91009112 @"MarshalJSON": [_marshalJSON JSONDictionary],
91019113 @"metadata_property_handling": [_metadataPropertyHandling JSONDictionary],
91029114 @"module": [_module JSONDictionary],
9103- @"mutable": [_mutable JSONDictionary],
9104- @"mutating": [_mutating JSONDictionary],
91059115 @"goto": [_obj3Goto JSONDictionary],
91069116 @"if": [_obj3If JSONDictionary],
91079117 @"inline": [_obj3Inline JSONDictionary],
@@ -11340,6 +11350,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1134011350 }
1134111351 @end
1134211352
11353+@implementation QTLocalDate
11354++ (NSDictionary<NSString *, NSString *> *)properties
11355+{
11356+ static NSDictionary<NSString *, NSString *> *properties;
11357+ return properties = properties ? properties : @{
11358+ @"LocalDate": @"localDate",
11359+ };
11360+}
11361+
11362++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11363+{
11364+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
11365+}
11366+
11367+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11368+{
11369+ if (self = [super init]) {
11370+ if (![dict[@"LocalDate"] isKindOfClass:NSNumber.class]) return nil;
11371+ if ([dict[@"LocalDate"] doubleValue] != [dict[@"LocalDate"] longLongValue]) return nil;
11372+ [self setValuesForKeysWithDictionary:dict];
11373+ }
11374+ return self;
11375+}
11376+
11377+- (void)setValue:(nullable id)value forKey:(NSString *)key
11378+{
11379+ id resolved = QTLocalDate.properties[key];
11380+ if (resolved) [super setValue:value forKey:resolved];
11381+}
11382+
11383+- (void)setNilValueForKey:(NSString *)key
11384+{
11385+ id resolved = QTLocalDate.properties[key];
11386+ if (resolved) [super setValue:@(0) forKey:resolved];
11387+}
11388+
11389+- (NSDictionary *)JSONDictionary
11390+{
11391+ id dict = [[self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues] mutableCopy];
11392+
11393+ for (id jsonName in QTLocalDate.properties) {
11394+ id propertyName = QTLocalDate.properties[jsonName];
11395+ if (![jsonName isEqualToString:propertyName]) {
11396+ dict[jsonName] = dict[propertyName];
11397+ [dict removeObjectForKey:propertyName];
11398+ }
11399+ }
11400+
11401+ return dict;
11402+}
11403+@end
11404+
1134311405 @implementation QTLocale
1134411406 + (NSDictionary<NSString *, NSString *> *)properties
1134511407 {
@@ -11726,90 +11788,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1172611788 }
1172711789 @end
1172811790
11729-@implementation QTMutable
11730-+ (NSDictionary<NSString *, NSString *> *)properties
11731-{
11732- static NSDictionary<NSString *, NSString *> *properties;
11733- return properties = properties ? properties : @{
11734- @"mutable": @"mutable",
11735- };
11736-}
11737-
11738-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11739-{
11740- return [dict isKindOfClass:NSDictionary.class] ? [[QTMutable alloc] initWithJSONDictionary:dict] : nil;
11741-}
11742-
11743-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11744-{
11745- if (self = [super init]) {
11746- if (![dict[@"mutable"] isKindOfClass:NSNumber.class]) return nil;
11747- if ([dict[@"mutable"] doubleValue] != [dict[@"mutable"] longLongValue]) return nil;
11748- [self setValuesForKeysWithDictionary:dict];
11749- }
11750- return self;
11751-}
11752-
11753-- (void)setValue:(nullable id)value forKey:(NSString *)key
11754-{
11755- id resolved = QTMutable.properties[key];
11756- if (resolved) [super setValue:value forKey:resolved];
11757-}
11758-
11759-- (void)setNilValueForKey:(NSString *)key
11760-{
11761- id resolved = QTMutable.properties[key];
11762- if (resolved) [super setValue:@(0) forKey:resolved];
11763-}
11764-
11765-- (NSDictionary *)JSONDictionary
11766-{
11767- return [self dictionaryWithValuesForKeys:QTMutable.properties.allValues];
11768-}
11769-@end
11770-
11771-@implementation QTMutating
11772-+ (NSDictionary<NSString *, NSString *> *)properties
11773-{
11774- static NSDictionary<NSString *, NSString *> *properties;
11775- return properties = properties ? properties : @{
11776- @"mutating": @"mutating",
11777- };
11778-}
11779-
11780-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11781-{
11782- return [dict isKindOfClass:NSDictionary.class] ? [[QTMutating alloc] initWithJSONDictionary:dict] : nil;
11783-}
11784-
11785-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11786-{
11787- if (self = [super init]) {
11788- if (![dict[@"mutating"] isKindOfClass:NSNumber.class]) return nil;
11789- if ([dict[@"mutating"] doubleValue] != [dict[@"mutating"] longLongValue]) return nil;
11790- [self setValuesForKeysWithDictionary:dict];
11791- }
11792- return self;
11793-}
11794-
11795-- (void)setValue:(nullable id)value forKey:(NSString *)key
11796-{
11797- id resolved = QTMutating.properties[key];
11798- if (resolved) [super setValue:value forKey:resolved];
11799-}
11800-
11801-- (void)setNilValueForKey:(NSString *)key
11802-{
11803- id resolved = QTMutating.properties[key];
11804- if (resolved) [super setValue:@(0) forKey:resolved];
11805-}
11806-
11807-- (NSDictionary *)JSONDictionary
11808-{
11809- return [self dictionaryWithValuesForKeys:QTMutating.properties.allValues];
11810-}
11811-@end
11812-
1181311791 @implementation QTGoto
1181411792 + (NSDictionary<NSString *, NSString *> *)properties
1181511793 {
@@ -12180,6 +12158,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1218012158 static NSDictionary<NSString *, NSString *> *properties;
1218112159 return properties = properties ? properties : @{
1218212160 @"dummy": @"dummy",
12161+ @"mutable": @"mutable",
12162+ @"mutating": @"mutating",
1218312163 @"namespace": @"namespace",
1218412164 @"native": @"native",
1218512165 @"newtonsoft": @"newtonsoft",
@@ -12210,6 +12190,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1221012190 @"ObjectReader": @"objectReader",
1221112191 @"ObjectWriter": @"objectWriter",
1221212192 @"of": @"of",
12193+ @"OffsetDateTime": @"offsetDateTime",
12194+ @"OffsetTime": @"offsetTime",
1221312195 @"oneway": @"oneway",
1221412196 @"open": @"open",
1221512197 @"operator": @"operator",
@@ -12239,10 +12221,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1223912221 @"ref": @"ref",
1224012222 @"RegExp": @"regExp",
1224112223 @"reinterpret_cast": @"reinterpretCast",
12242- @"repeat": @"repeat",
12243- @"require": @"require",
12244- @"required": @"required",
12245- @"requires": @"requires",
1224612224 @"new": @"theNew",
1224712225 };
1224812226 }
@@ -12257,6 +12235,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1225712235 if (self = [super init]) {
1225812236 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1225912237 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
12238+ if (![dict[@"mutable"] isKindOfClass:NSDictionary.class]) return nil;
12239+ if (![dict[@"mutating"] isKindOfClass:NSDictionary.class]) return nil;
1226012240 if (![dict[@"namespace"] isKindOfClass:NSDictionary.class]) return nil;
1226112241 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
1226212242 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12287,6 +12267,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1228712267 if (![dict[@"ObjectReader"] isKindOfClass:NSDictionary.class]) return nil;
1228812268 if (![dict[@"ObjectWriter"] isKindOfClass:NSDictionary.class]) return nil;
1228912269 if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil;
12270+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSDictionary.class]) return nil;
12271+ if (![dict[@"OffsetTime"] isKindOfClass:NSDictionary.class]) return nil;
1229012272 if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil;
1229112273 if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil;
1229212274 if (![dict[@"operator"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12316,12 +12298,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1231612298 if (![dict[@"ref"] isKindOfClass:NSDictionary.class]) return nil;
1231712299 if (![dict[@"RegExp"] isKindOfClass:NSDictionary.class]) return nil;
1231812300 if (![dict[@"reinterpret_cast"] isKindOfClass:NSDictionary.class]) return nil;
12319- if (![dict[@"repeat"] isKindOfClass:NSDictionary.class]) return nil;
12320- if (![dict[@"require"] isKindOfClass:NSDictionary.class]) return nil;
12321- if (![dict[@"required"] isKindOfClass:NSDictionary.class]) return nil;
12322- if (![dict[@"requires"] isKindOfClass:NSDictionary.class]) return nil;
1232312301 if (![dict[@"new"] isKindOfClass:NSDictionary.class]) return nil;
1232412302 [self setValuesForKeysWithDictionary:dict];
12303+ _mutable = [QTMutable fromJSONDictionary:(id)_mutable];
12304+ if (!_mutable && dict[@"mutable"] && ![dict[@"mutable"] isKindOfClass:NSNull.class]) return nil;
12305+ _mutating = [QTMutating fromJSONDictionary:(id)_mutating];
12306+ if (!_mutating && dict[@"mutating"] && ![dict[@"mutating"] isKindOfClass:NSNull.class]) return nil;
1232512307 _namespace = [QTNamespace fromJSONDictionary:(id)_namespace];
1232612308 if (!_namespace && dict[@"namespace"] && ![dict[@"namespace"] isKindOfClass:NSNull.class]) return nil;
1232712309 _native = [QTNative fromJSONDictionary:(id)_native];
@@ -12382,6 +12364,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1238212364 if (!_objectWriter && dict[@"ObjectWriter"] && ![dict[@"ObjectWriter"] isKindOfClass:NSNull.class]) return nil;
1238312365 _of = [QTOf fromJSONDictionary:(id)_of];
1238412366 if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil;
12367+ _offsetDateTime = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTime];
12368+ if (!_offsetDateTime && dict[@"OffsetDateTime"] && ![dict[@"OffsetDateTime"] isKindOfClass:NSNull.class]) return nil;
12369+ _offsetTime = [QTOffsetTime fromJSONDictionary:(id)_offsetTime];
12370+ if (!_offsetTime && dict[@"OffsetTime"] && ![dict[@"OffsetTime"] isKindOfClass:NSNull.class]) return nil;
1238512371 _oneway = [QTOneway fromJSONDictionary:(id)_oneway];
1238612372 if (!_oneway && dict[@"oneway"] && ![dict[@"oneway"] isKindOfClass:NSNull.class]) return nil;
1238712373 _open = [QTOpen fromJSONDictionary:(id)_open];
@@ -12440,14 +12426,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1244012426 if (!_regExp && dict[@"RegExp"] && ![dict[@"RegExp"] isKindOfClass:NSNull.class]) return nil;
1244112427 _reinterpretCast = [QTReinterpretCast fromJSONDictionary:(id)_reinterpretCast];
1244212428 if (!_reinterpretCast && dict[@"reinterpret_cast"] && ![dict[@"reinterpret_cast"] isKindOfClass:NSNull.class]) return nil;
12443- _repeat = [QTRepeat fromJSONDictionary:(id)_repeat];
12444- if (!_repeat && dict[@"repeat"] && ![dict[@"repeat"] isKindOfClass:NSNull.class]) return nil;
12445- _require = [QTRequire fromJSONDictionary:(id)_require];
12446- if (!_require && dict[@"require"] && ![dict[@"require"] isKindOfClass:NSNull.class]) return nil;
12447- _required = [QTRequired fromJSONDictionary:(id)_required];
12448- if (!_required && dict[@"required"] && ![dict[@"required"] isKindOfClass:NSNull.class]) return nil;
12449- _requires = [QTRequires fromJSONDictionary:(id)_requires];
12450- if (!_requires && dict[@"requires"] && ![dict[@"requires"] isKindOfClass:NSNull.class]) return nil;
1245112429 _theNew = [QTNew fromJSONDictionary:(id)_theNew];
1245212430 if (!_theNew && dict[@"new"] && ![dict[@"new"] isKindOfClass:NSNull.class]) return nil;
1245312431 }
@@ -12479,6 +12457,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1247912457 }
1248012458
1248112459 [dict addEntriesFromDictionary:@{
12460+ @"mutable": [_mutable JSONDictionary],
12461+ @"mutating": [_mutating JSONDictionary],
1248212462 @"namespace": [_namespace JSONDictionary],
1248312463 @"native": [_native JSONDictionary],
1248412464 @"newtonsoft": [_newtonsoft JSONDictionary],
@@ -12509,6 +12489,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1250912489 @"ObjectReader": [_objectReader JSONDictionary],
1251012490 @"ObjectWriter": [_objectWriter JSONDictionary],
1251112491 @"of": [_of JSONDictionary],
12492+ @"OffsetDateTime": [_offsetDateTime JSONDictionary],
12493+ @"OffsetTime": [_offsetTime JSONDictionary],
1251212494 @"oneway": [_oneway JSONDictionary],
1251312495 @"open": [_open JSONDictionary],
1251412496 @"operator": [_operator JSONDictionary],
@@ -12538,10 +12520,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1253812520 @"ref": [_ref JSONDictionary],
1253912521 @"RegExp": [_regExp JSONDictionary],
1254012522 @"reinterpret_cast": [_reinterpretCast JSONDictionary],
12541- @"repeat": [_repeat JSONDictionary],
12542- @"require": [_require JSONDictionary],
12543- @"required": [_required JSONDictionary],
12544- @"requires": [_requires JSONDictionary],
1254512523 @"new": [_theNew JSONDictionary],
1254612524 }];
1254712525
@@ -12549,6 +12527,90 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1254912527 }
1255012528 @end
1255112529
12530+@implementation QTMutable
12531++ (NSDictionary<NSString *, NSString *> *)properties
12532+{
12533+ static NSDictionary<NSString *, NSString *> *properties;
12534+ return properties = properties ? properties : @{
12535+ @"mutable": @"mutable",
12536+ };
12537+}
12538+
12539++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12540+{
12541+ return [dict isKindOfClass:NSDictionary.class] ? [[QTMutable alloc] initWithJSONDictionary:dict] : nil;
12542+}
12543+
12544+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12545+{
12546+ if (self = [super init]) {
12547+ if (![dict[@"mutable"] isKindOfClass:NSNumber.class]) return nil;
12548+ if ([dict[@"mutable"] doubleValue] != [dict[@"mutable"] longLongValue]) return nil;
12549+ [self setValuesForKeysWithDictionary:dict];
12550+ }
12551+ return self;
12552+}
12553+
12554+- (void)setValue:(nullable id)value forKey:(NSString *)key
12555+{
12556+ id resolved = QTMutable.properties[key];
12557+ if (resolved) [super setValue:value forKey:resolved];
12558+}
12559+
12560+- (void)setNilValueForKey:(NSString *)key
12561+{
12562+ id resolved = QTMutable.properties[key];
12563+ if (resolved) [super setValue:@(0) forKey:resolved];
12564+}
12565+
12566+- (NSDictionary *)JSONDictionary
12567+{
12568+ return [self dictionaryWithValuesForKeys:QTMutable.properties.allValues];
12569+}
12570+@end
12571+
12572+@implementation QTMutating
12573++ (NSDictionary<NSString *, NSString *> *)properties
12574+{
12575+ static NSDictionary<NSString *, NSString *> *properties;
12576+ return properties = properties ? properties : @{
12577+ @"mutating": @"mutating",
12578+ };
12579+}
12580+
12581++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12582+{
12583+ return [dict isKindOfClass:NSDictionary.class] ? [[QTMutating alloc] initWithJSONDictionary:dict] : nil;
12584+}
12585+
12586+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12587+{
12588+ if (self = [super init]) {
12589+ if (![dict[@"mutating"] isKindOfClass:NSNumber.class]) return nil;
12590+ if ([dict[@"mutating"] doubleValue] != [dict[@"mutating"] longLongValue]) return nil;
12591+ [self setValuesForKeysWithDictionary:dict];
12592+ }
12593+ return self;
12594+}
12595+
12596+- (void)setValue:(nullable id)value forKey:(NSString *)key
12597+{
12598+ id resolved = QTMutating.properties[key];
12599+ if (resolved) [super setValue:value forKey:resolved];
12600+}
12601+
12602+- (void)setNilValueForKey:(NSString *)key
12603+{
12604+ id resolved = QTMutating.properties[key];
12605+ if (resolved) [super setValue:@(0) forKey:resolved];
12606+}
12607+
12608+- (NSDictionary *)JSONDictionary
12609+{
12610+ return [self dictionaryWithValuesForKeys:QTMutating.properties.allValues];
12611+}
12612+@end
12613+
1255212614 @implementation QTNamespace
1255312615 + (NSDictionary<NSString *, NSString *> *)properties
1255412616 {
@@ -13959,6 +14021,110 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1395914021 }
1396014022 @end
1396114023
14024+@implementation QTOffsetDateTime
14025++ (NSDictionary<NSString *, NSString *> *)properties
14026+{
14027+ static NSDictionary<NSString *, NSString *> *properties;
14028+ return properties = properties ? properties : @{
14029+ @"OffsetDateTime": @"offsetDateTime",
14030+ };
14031+}
14032+
14033++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
14034+{
14035+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
14036+}
14037+
14038+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
14039+{
14040+ if (self = [super init]) {
14041+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSNumber.class]) return nil;
14042+ if ([dict[@"OffsetDateTime"] doubleValue] != [dict[@"OffsetDateTime"] longLongValue]) return nil;
14043+ [self setValuesForKeysWithDictionary:dict];
14044+ }
14045+ return self;
14046+}
14047+
14048+- (void)setValue:(nullable id)value forKey:(NSString *)key
14049+{
14050+ id resolved = QTOffsetDateTime.properties[key];
14051+ if (resolved) [super setValue:value forKey:resolved];
14052+}
14053+
14054+- (void)setNilValueForKey:(NSString *)key
14055+{
14056+ id resolved = QTOffsetDateTime.properties[key];
14057+ if (resolved) [super setValue:@(0) forKey:resolved];
14058+}
14059+
14060+- (NSDictionary *)JSONDictionary
14061+{
14062+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues] mutableCopy];
14063+
14064+ for (id jsonName in QTOffsetDateTime.properties) {
14065+ id propertyName = QTOffsetDateTime.properties[jsonName];
14066+ if (![jsonName isEqualToString:propertyName]) {
14067+ dict[jsonName] = dict[propertyName];
14068+ [dict removeObjectForKey:propertyName];
14069+ }
14070+ }
14071+
14072+ return dict;
14073+}
14074+@end
14075+
14076+@implementation QTOffsetTime
14077++ (NSDictionary<NSString *, NSString *> *)properties
14078+{
14079+ static NSDictionary<NSString *, NSString *> *properties;
14080+ return properties = properties ? properties : @{
14081+ @"OffsetTime": @"offsetTime",
14082+ };
14083+}
14084+
14085++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
14086+{
14087+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
14088+}
14089+
14090+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
14091+{
14092+ if (self = [super init]) {
14093+ if (![dict[@"OffsetTime"] isKindOfClass:NSNumber.class]) return nil;
14094+ if ([dict[@"OffsetTime"] doubleValue] != [dict[@"OffsetTime"] longLongValue]) return nil;
14095+ [self setValuesForKeysWithDictionary:dict];
14096+ }
14097+ return self;
14098+}
14099+
14100+- (void)setValue:(nullable id)value forKey:(NSString *)key
14101+{
14102+ id resolved = QTOffsetTime.properties[key];
14103+ if (resolved) [super setValue:value forKey:resolved];
14104+}
14105+
14106+- (void)setNilValueForKey:(NSString *)key
14107+{
14108+ id resolved = QTOffsetTime.properties[key];
14109+ if (resolved) [super setValue:@(0) forKey:resolved];
14110+}
14111+
14112+- (NSDictionary *)JSONDictionary
14113+{
14114+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues] mutableCopy];
14115+
14116+ for (id jsonName in QTOffsetTime.properties) {
14117+ id propertyName = QTOffsetTime.properties[jsonName];
14118+ if (![jsonName isEqualToString:propertyName]) {
14119+ dict[jsonName] = dict[propertyName];
14120+ [dict removeObjectForKey:propertyName];
14121+ }
14122+ }
14123+
14124+ return dict;
14125+}
14126+@end
14127+
1396214128 @implementation QTOneway
1396314129 + (NSDictionary<NSString *, NSString *> *)properties
1396414130 {
@@ -15217,25 +15383,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1521715383 }
1521815384 @end
1521915385
15220-@implementation QTRepeat
15386+@implementation QTNew
1522115387 + (NSDictionary<NSString *, NSString *> *)properties
1522215388 {
1522315389 static NSDictionary<NSString *, NSString *> *properties;
1522415390 return properties = properties ? properties : @{
15225- @"repeat": @"repeat",
15391+ @"new": @"theNew",
1522615392 };
1522715393 }
1522815394
1522915395 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1523015396 {
15231- return [dict isKindOfClass:NSDictionary.class] ? [[QTRepeat alloc] initWithJSONDictionary:dict] : nil;
15397+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNew alloc] initWithJSONDictionary:dict] : nil;
1523215398 }
1523315399
1523415400 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1523515401 {
1523615402 if (self = [super init]) {
15237- if (![dict[@"repeat"] isKindOfClass:NSNumber.class]) return nil;
15238- if ([dict[@"repeat"] doubleValue] != [dict[@"repeat"] longLongValue]) return nil;
15403+ if (![dict[@"new"] isKindOfClass:NSNumber.class]) return nil;
15404+ if ([dict[@"new"] doubleValue] != [dict[@"new"] longLongValue]) return nil;
1523915405 [self setValuesForKeysWithDictionary:dict];
1524015406 }
1524115407 return self;
@@ -15243,220 +15409,55 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1524315409
1524415410 - (void)setValue:(nullable id)value forKey:(NSString *)key
1524515411 {
15246- id resolved = QTRepeat.properties[key];
15412+ id resolved = QTNew.properties[key];
1524715413 if (resolved) [super setValue:value forKey:resolved];
1524815414 }
1524915415
1525015416 - (void)setNilValueForKey:(NSString *)key
1525115417 {
15252- id resolved = QTRepeat.properties[key];
15418+ id resolved = QTNew.properties[key];
1525315419 if (resolved) [super setValue:@(0) forKey:resolved];
1525415420 }
1525515421
1525615422 - (NSDictionary *)JSONDictionary
1525715423 {
15258- return [self dictionaryWithValuesForKeys:QTRepeat.properties.allValues];
15259-}
15260-@end
15261-
15262-@implementation QTRequire
15263-+ (NSDictionary<NSString *, NSString *> *)properties
15264-{
15265- static NSDictionary<NSString *, NSString *> *properties;
15266- return properties = properties ? properties : @{
15267- @"require": @"require",
15268- };
15269-}
15270-
15271-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15272-{
15273- return [dict isKindOfClass:NSDictionary.class] ? [[QTRequire alloc] initWithJSONDictionary:dict] : nil;
15274-}
15424+ id dict = [[self dictionaryWithValuesForKeys:QTNew.properties.allValues] mutableCopy];
1527515425
15276-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15277-{
15278- if (self = [super init]) {
15279- if (![dict[@"require"] isKindOfClass:NSNumber.class]) return nil;
15280- if ([dict[@"require"] doubleValue] != [dict[@"require"] longLongValue]) return nil;
15281- [self setValuesForKeysWithDictionary:dict];
15426+ for (id jsonName in QTNew.properties) {
15427+ id propertyName = QTNew.properties[jsonName];
15428+ if (![jsonName isEqualToString:propertyName]) {
15429+ dict[jsonName] = dict[propertyName];
15430+ [dict removeObjectForKey:propertyName];
15431+ }
1528215432 }
15283- return self;
15284-}
15285-
15286-- (void)setValue:(nullable id)value forKey:(NSString *)key
15287-{
15288- id resolved = QTRequire.properties[key];
15289- if (resolved) [super setValue:value forKey:resolved];
15290-}
15291-
15292-- (void)setNilValueForKey:(NSString *)key
15293-{
15294- id resolved = QTRequire.properties[key];
15295- if (resolved) [super setValue:@(0) forKey:resolved];
15296-}
1529715433
15298-- (NSDictionary *)JSONDictionary
15299-{
15300- return [self dictionaryWithValuesForKeys:QTRequire.properties.allValues];
15434+ return dict;
1530115435 }
1530215436 @end
1530315437
15304-@implementation QTRequired
15438+@implementation QTObj5
1530515439 + (NSDictionary<NSString *, NSString *> *)properties
1530615440 {
1530715441 static NSDictionary<NSString *, NSString *> *properties;
1530815442 return properties = properties ? properties : @{
15443+ @"dummy": @"dummy",
15444+ @"KSerializer": @"kSerializer",
15445+ @"restrict": @"obj5Restrict",
15446+ @"retain": @"obj5Retain",
15447+ @"return": @"obj5Return",
15448+ @"self": @"obj5Self",
15449+ @"short": @"obj5Short",
15450+ @"signed": @"obj5Signed",
15451+ @"sizeof": @"obj5Sizeof",
15452+ @"static": @"obj5Static",
15453+ @"struct": @"obj5Struct",
15454+ @"switch": @"obj5Switch",
15455+ @"True": @"obj5True",
15456+ @"PrimitiveKind": @"primitiveKind",
15457+ @"repeat": @"repeat",
15458+ @"require": @"require",
1530915459 @"required": @"required",
15310- };
15311-}
15312-
15313-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15314-{
15315- return [dict isKindOfClass:NSDictionary.class] ? [[QTRequired alloc] initWithJSONDictionary:dict] : nil;
15316-}
15317-
15318-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15319-{
15320- if (self = [super init]) {
15321- if (![dict[@"required"] isKindOfClass:NSNumber.class]) return nil;
15322- if ([dict[@"required"] doubleValue] != [dict[@"required"] longLongValue]) return nil;
15323- [self setValuesForKeysWithDictionary:dict];
15324- }
15325- return self;
15326-}
15327-
15328-- (void)setValue:(nullable id)value forKey:(NSString *)key
15329-{
15330- id resolved = QTRequired.properties[key];
15331- if (resolved) [super setValue:value forKey:resolved];
15332-}
15333-
15334-- (void)setNilValueForKey:(NSString *)key
15335-{
15336- id resolved = QTRequired.properties[key];
15337- if (resolved) [super setValue:@(0) forKey:resolved];
15338-}
15339-
15340-- (NSDictionary *)JSONDictionary
15341-{
15342- return [self dictionaryWithValuesForKeys:QTRequired.properties.allValues];
15343-}
15344-@end
15345-
15346-@implementation QTRequires
15347-+ (NSDictionary<NSString *, NSString *> *)properties
15348-{
15349- static NSDictionary<NSString *, NSString *> *properties;
15350- return properties = properties ? properties : @{
1535115460 @"requires": @"requires",
15352- };
15353-}
15354-
15355-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15356-{
15357- return [dict isKindOfClass:NSDictionary.class] ? [[QTRequires alloc] initWithJSONDictionary:dict] : nil;
15358-}
15359-
15360-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15361-{
15362- if (self = [super init]) {
15363- if (![dict[@"requires"] isKindOfClass:NSNumber.class]) return nil;
15364- if ([dict[@"requires"] doubleValue] != [dict[@"requires"] longLongValue]) return nil;
15365- [self setValuesForKeysWithDictionary:dict];
15366- }
15367- return self;
15368-}
15369-
15370-- (void)setValue:(nullable id)value forKey:(NSString *)key
15371-{
15372- id resolved = QTRequires.properties[key];
15373- if (resolved) [super setValue:value forKey:resolved];
15374-}
15375-
15376-- (void)setNilValueForKey:(NSString *)key
15377-{
15378- id resolved = QTRequires.properties[key];
15379- if (resolved) [super setValue:@(0) forKey:resolved];
15380-}
15381-
15382-- (NSDictionary *)JSONDictionary
15383-{
15384- return [self dictionaryWithValuesForKeys:QTRequires.properties.allValues];
15385-}
15386-@end
15387-
15388-@implementation QTNew
15389-+ (NSDictionary<NSString *, NSString *> *)properties
15390-{
15391- static NSDictionary<NSString *, NSString *> *properties;
15392- return properties = properties ? properties : @{
15393- @"new": @"theNew",
15394- };
15395-}
15396-
15397-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15398-{
15399- return [dict isKindOfClass:NSDictionary.class] ? [[QTNew alloc] initWithJSONDictionary:dict] : nil;
15400-}
15401-
15402-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15403-{
15404- if (self = [super init]) {
15405- if (![dict[@"new"] isKindOfClass:NSNumber.class]) return nil;
15406- if ([dict[@"new"] doubleValue] != [dict[@"new"] longLongValue]) return nil;
15407- [self setValuesForKeysWithDictionary:dict];
15408- }
15409- return self;
15410-}
15411-
15412-- (void)setValue:(nullable id)value forKey:(NSString *)key
15413-{
15414- id resolved = QTNew.properties[key];
15415- if (resolved) [super setValue:value forKey:resolved];
15416-}
15417-
15418-- (void)setNilValueForKey:(NSString *)key
15419-{
15420- id resolved = QTNew.properties[key];
15421- if (resolved) [super setValue:@(0) forKey:resolved];
15422-}
15423-
15424-- (NSDictionary *)JSONDictionary
15425-{
15426- id dict = [[self dictionaryWithValuesForKeys:QTNew.properties.allValues] mutableCopy];
15427-
15428- for (id jsonName in QTNew.properties) {
15429- id propertyName = QTNew.properties[jsonName];
15430- if (![jsonName isEqualToString:propertyName]) {
15431- dict[jsonName] = dict[propertyName];
15432- [dict removeObjectForKey:propertyName];
15433- }
15434- }
15435-
15436- return dict;
15437-}
15438-@end
15439-
15440-@implementation QTObj5
15441-+ (NSDictionary<NSString *, NSString *> *)properties
15442-{
15443- static NSDictionary<NSString *, NSString *> *properties;
15444- return properties = properties ? properties : @{
15445- @"dummy": @"dummy",
15446- @"KSerializer": @"kSerializer",
15447- @"restrict": @"obj5Restrict",
15448- @"retain": @"obj5Retain",
15449- @"return": @"obj5Return",
15450- @"self": @"obj5Self",
15451- @"short": @"obj5Short",
15452- @"signed": @"obj5Signed",
15453- @"sizeof": @"obj5Sizeof",
15454- @"static": @"obj5Static",
15455- @"struct": @"obj5Struct",
15456- @"switch": @"obj5Switch",
15457- @"True": @"obj5True",
15458- @"type": @"obj5Type",
15459- @"PrimitiveKind": @"primitiveKind",
1546015461 @"rethrows": @"rethrows",
1546115462 @"right": @"right",
1546215463 @"runtimeType": @"runtimeType",
@@ -15504,9 +15505,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1550415505 @"toString": @"toString",
1550515506 @"top_level": @"topLevel",
1550615507 @"transient": @"transient",
15507- @"try": @"try",
15508- @"Type": @"type",
15509- @"typealias": @"typealias",
1551015508 };
1551115509 }
1551215510
@@ -15532,8 +15530,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1553215530 if (![dict[@"struct"] isKindOfClass:NSDictionary.class]) return nil;
1553315531 if (![dict[@"switch"] isKindOfClass:NSDictionary.class]) return nil;
1553415532 if (![dict[@"True"] isKindOfClass:NSDictionary.class]) return nil;
15535- if (![dict[@"type"] isKindOfClass:NSDictionary.class]) return nil;
1553615533 if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil;
15534+ if (![dict[@"repeat"] isKindOfClass:NSDictionary.class]) return nil;
15535+ if (![dict[@"require"] isKindOfClass:NSDictionary.class]) return nil;
15536+ if (![dict[@"required"] isKindOfClass:NSDictionary.class]) return nil;
15537+ if (![dict[@"requires"] isKindOfClass:NSDictionary.class]) return nil;
1553715538 if (![dict[@"rethrows"] isKindOfClass:NSDictionary.class]) return nil;
1553815539 if (![dict[@"right"] isKindOfClass:NSDictionary.class]) return nil;
1553915540 if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15581,9 +15582,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1558115582 if (![dict[@"toString"] isKindOfClass:NSDictionary.class]) return nil;
1558215583 if (![dict[@"top_level"] isKindOfClass:NSDictionary.class]) return nil;
1558315584 if (![dict[@"transient"] isKindOfClass:NSDictionary.class]) return nil;
15584- if (![dict[@"try"] isKindOfClass:NSDictionary.class]) return nil;
15585- if (![dict[@"Type"] isKindOfClass:NSDictionary.class]) return nil;
15586- if (![dict[@"typealias"] isKindOfClass:NSDictionary.class]) return nil;
1558715585 [self setValuesForKeysWithDictionary:dict];
1558815586 _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer];
1558915587 if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil;
@@ -15609,10 +15607,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1560915607 if (!_obj5Switch && dict[@"switch"] && ![dict[@"switch"] isKindOfClass:NSNull.class]) return nil;
1561015608 _obj5True = [QTTrue fromJSONDictionary:(id)_obj5True];
1561115609 if (!_obj5True && dict[@"True"] && ![dict[@"True"] isKindOfClass:NSNull.class]) return nil;
15612- _obj5Type = [QTTypeClass fromJSONDictionary:(id)_obj5Type];
15613- if (!_obj5Type && dict[@"type"] && ![dict[@"type"] isKindOfClass:NSNull.class]) return nil;
1561415610 _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind];
1561515611 if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil;
15612+ _repeat = [QTRepeat fromJSONDictionary:(id)_repeat];
15613+ if (!_repeat && dict[@"repeat"] && ![dict[@"repeat"] isKindOfClass:NSNull.class]) return nil;
15614+ _require = [QTRequire fromJSONDictionary:(id)_require];
15615+ if (!_require && dict[@"require"] && ![dict[@"require"] isKindOfClass:NSNull.class]) return nil;
15616+ _required = [QTRequired fromJSONDictionary:(id)_required];
15617+ if (!_required && dict[@"required"] && ![dict[@"required"] isKindOfClass:NSNull.class]) return nil;
15618+ _requires = [QTRequires fromJSONDictionary:(id)_requires];
15619+ if (!_requires && dict[@"requires"] && ![dict[@"requires"] isKindOfClass:NSNull.class]) return nil;
1561615620 _rethrows = [QTRethrows fromJSONDictionary:(id)_rethrows];
1561715621 if (!_rethrows && dict[@"rethrows"] && ![dict[@"rethrows"] isKindOfClass:NSNull.class]) return nil;
1561815622 _right = [QTRight fromJSONDictionary:(id)_right];
@@ -15707,12 +15711,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1570715711 if (!_topLevel && dict[@"top_level"] && ![dict[@"top_level"] isKindOfClass:NSNull.class]) return nil;
1570815712 _transient = [QTTransient fromJSONDictionary:(id)_transient];
1570915713 if (!_transient && dict[@"transient"] && ![dict[@"transient"] isKindOfClass:NSNull.class]) return nil;
15710- _try = [QTTry fromJSONDictionary:(id)_try];
15711- if (!_try && dict[@"try"] && ![dict[@"try"] isKindOfClass:NSNull.class]) return nil;
15712- _type = [QTType fromJSONDictionary:(id)_type];
15713- if (!_type && dict[@"Type"] && ![dict[@"Type"] isKindOfClass:NSNull.class]) return nil;
15714- _typealias = [QTTypealias fromJSONDictionary:(id)_typealias];
15715- if (!_typealias && dict[@"typealias"] && ![dict[@"typealias"] isKindOfClass:NSNull.class]) return nil;
1571615714 }
1571715715 return self;
1571815716 }
@@ -15754,8 +15752,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1575415752 @"struct": [_obj5Struct JSONDictionary],
1575515753 @"switch": [_obj5Switch JSONDictionary],
1575615754 @"True": [_obj5True JSONDictionary],
15757- @"type": [_obj5Type JSONDictionary],
1575815755 @"PrimitiveKind": [_primitiveKind JSONDictionary],
15756+ @"repeat": [_repeat JSONDictionary],
15757+ @"require": [_require JSONDictionary],
15758+ @"required": [_required JSONDictionary],
15759+ @"requires": [_requires JSONDictionary],
1575915760 @"rethrows": [_rethrows JSONDictionary],
1576015761 @"right": [_right JSONDictionary],
1576115762 @"runtimeType": [_runtimeType JSONDictionary],
@@ -15803,9 +15804,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1580315804 @"toString": [_toString JSONDictionary],
1580415805 @"top_level": [_topLevel JSONDictionary],
1580515806 @"transient": [_transient JSONDictionary],
15806- @"try": [_try JSONDictionary],
15807- @"Type": [_type JSONDictionary],
15808- @"typealias": [_typealias JSONDictionary],
1580915807 }];
1581015808
1581115809 return dict;
@@ -16426,48 +16424,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1642616424 }
1642716425 @end
1642816426
16429-@implementation QTTypeClass
16430-+ (NSDictionary<NSString *, NSString *> *)properties
16431-{
16432- static NSDictionary<NSString *, NSString *> *properties;
16433- return properties = properties ? properties : @{
16434- @"type": @"type",
16435- };
16436-}
16437-
16438-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16439-{
16440- return [dict isKindOfClass:NSDictionary.class] ? [[QTTypeClass alloc] initWithJSONDictionary:dict] : nil;
16441-}
16442-
16443-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16444-{
16445- if (self = [super init]) {
16446- if (![dict[@"type"] isKindOfClass:NSNumber.class]) return nil;
16447- if ([dict[@"type"] doubleValue] != [dict[@"type"] longLongValue]) return nil;
16448- [self setValuesForKeysWithDictionary:dict];
16449- }
16450- return self;
16451-}
16452-
16453-- (void)setValue:(nullable id)value forKey:(NSString *)key
16454-{
16455- id resolved = QTTypeClass.properties[key];
16456- if (resolved) [super setValue:value forKey:resolved];
16457-}
16458-
16459-- (void)setNilValueForKey:(NSString *)key
16460-{
16461- id resolved = QTTypeClass.properties[key];
16462- if (resolved) [super setValue:@(0) forKey:resolved];
16463-}
16464-
16465-- (NSDictionary *)JSONDictionary
16466-{
16467- return [self dictionaryWithValuesForKeys:QTTypeClass.properties.allValues];
16468-}
16469-@end
16470-
1647116427 @implementation QTPrimitiveKind
1647216428 + (NSDictionary<NSString *, NSString *> *)properties
1647316429 {
@@ -16520,25 +16476,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1652016476 }
1652116477 @end
1652216478
16523-@implementation QTRethrows
16479+@implementation QTRepeat
1652416480 + (NSDictionary<NSString *, NSString *> *)properties
1652516481 {
1652616482 static NSDictionary<NSString *, NSString *> *properties;
1652716483 return properties = properties ? properties : @{
16528- @"rethrows": @"rethrows",
16484+ @"repeat": @"repeat",
1652916485 };
1653016486 }
1653116487
1653216488 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1653316489 {
16534- return [dict isKindOfClass:NSDictionary.class] ? [[QTRethrows alloc] initWithJSONDictionary:dict] : nil;
16490+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRepeat alloc] initWithJSONDictionary:dict] : nil;
1653516491 }
1653616492
1653716493 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1653816494 {
1653916495 if (self = [super init]) {
16540- if (![dict[@"rethrows"] isKindOfClass:NSNumber.class]) return nil;
16541- if ([dict[@"rethrows"] doubleValue] != [dict[@"rethrows"] longLongValue]) return nil;
16496+ if (![dict[@"repeat"] isKindOfClass:NSNumber.class]) return nil;
16497+ if ([dict[@"repeat"] doubleValue] != [dict[@"repeat"] longLongValue]) return nil;
1654216498 [self setValuesForKeysWithDictionary:dict];
1654316499 }
1654416500 return self;
@@ -16546,41 +16502,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1654616502
1654716503 - (void)setValue:(nullable id)value forKey:(NSString *)key
1654816504 {
16549- id resolved = QTRethrows.properties[key];
16505+ id resolved = QTRepeat.properties[key];
1655016506 if (resolved) [super setValue:value forKey:resolved];
1655116507 }
1655216508
1655316509 - (void)setNilValueForKey:(NSString *)key
1655416510 {
16555- id resolved = QTRethrows.properties[key];
16511+ id resolved = QTRepeat.properties[key];
1655616512 if (resolved) [super setValue:@(0) forKey:resolved];
1655716513 }
1655816514
1655916515 - (NSDictionary *)JSONDictionary
1656016516 {
16561- return [self dictionaryWithValuesForKeys:QTRethrows.properties.allValues];
16517+ return [self dictionaryWithValuesForKeys:QTRepeat.properties.allValues];
1656216518 }
1656316519 @end
1656416520
16565-@implementation QTRight
16521+@implementation QTRequire
1656616522 + (NSDictionary<NSString *, NSString *> *)properties
1656716523 {
1656816524 static NSDictionary<NSString *, NSString *> *properties;
1656916525 return properties = properties ? properties : @{
16570- @"right": @"right",
16526+ @"require": @"require",
1657116527 };
1657216528 }
1657316529
1657416530 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1657516531 {
16576- return [dict isKindOfClass:NSDictionary.class] ? [[QTRight alloc] initWithJSONDictionary:dict] : nil;
16532+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRequire alloc] initWithJSONDictionary:dict] : nil;
1657716533 }
1657816534
1657916535 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1658016536 {
1658116537 if (self = [super init]) {
16582- if (![dict[@"right"] isKindOfClass:NSNumber.class]) return nil;
16583- if ([dict[@"right"] doubleValue] != [dict[@"right"] longLongValue]) return nil;
16538+ if (![dict[@"require"] isKindOfClass:NSNumber.class]) return nil;
16539+ if ([dict[@"require"] doubleValue] != [dict[@"require"] longLongValue]) return nil;
1658416540 [self setValuesForKeysWithDictionary:dict];
1658516541 }
1658616542 return self;
@@ -16588,23 +16544,191 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1658816544
1658916545 - (void)setValue:(nullable id)value forKey:(NSString *)key
1659016546 {
16591- id resolved = QTRight.properties[key];
16547+ id resolved = QTRequire.properties[key];
1659216548 if (resolved) [super setValue:value forKey:resolved];
1659316549 }
1659416550
1659516551 - (void)setNilValueForKey:(NSString *)key
1659616552 {
16597- id resolved = QTRight.properties[key];
16553+ id resolved = QTRequire.properties[key];
1659816554 if (resolved) [super setValue:@(0) forKey:resolved];
1659916555 }
1660016556
1660116557 - (NSDictionary *)JSONDictionary
1660216558 {
16603- return [self dictionaryWithValuesForKeys:QTRight.properties.allValues];
16559+ return [self dictionaryWithValuesForKeys:QTRequire.properties.allValues];
1660416560 }
1660516561 @end
1660616562
16607-@implementation QTRuntimeType
16563+@implementation QTRequired
16564++ (NSDictionary<NSString *, NSString *> *)properties
16565+{
16566+ static NSDictionary<NSString *, NSString *> *properties;
16567+ return properties = properties ? properties : @{
16568+ @"required": @"required",
16569+ };
16570+}
16571+
16572++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16573+{
16574+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRequired alloc] initWithJSONDictionary:dict] : nil;
16575+}
16576+
16577+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16578+{
16579+ if (self = [super init]) {
16580+ if (![dict[@"required"] isKindOfClass:NSNumber.class]) return nil;
16581+ if ([dict[@"required"] doubleValue] != [dict[@"required"] longLongValue]) return nil;
16582+ [self setValuesForKeysWithDictionary:dict];
16583+ }
16584+ return self;
16585+}
16586+
16587+- (void)setValue:(nullable id)value forKey:(NSString *)key
16588+{
16589+ id resolved = QTRequired.properties[key];
16590+ if (resolved) [super setValue:value forKey:resolved];
16591+}
16592+
16593+- (void)setNilValueForKey:(NSString *)key
16594+{
16595+ id resolved = QTRequired.properties[key];
16596+ if (resolved) [super setValue:@(0) forKey:resolved];
16597+}
16598+
16599+- (NSDictionary *)JSONDictionary
16600+{
16601+ return [self dictionaryWithValuesForKeys:QTRequired.properties.allValues];
16602+}
16603+@end
16604+
16605+@implementation QTRequires
16606++ (NSDictionary<NSString *, NSString *> *)properties
16607+{
16608+ static NSDictionary<NSString *, NSString *> *properties;
16609+ return properties = properties ? properties : @{
16610+ @"requires": @"requires",
16611+ };
16612+}
16613+
16614++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16615+{
16616+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRequires alloc] initWithJSONDictionary:dict] : nil;
16617+}
16618+
16619+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16620+{
16621+ if (self = [super init]) {
16622+ if (![dict[@"requires"] isKindOfClass:NSNumber.class]) return nil;
16623+ if ([dict[@"requires"] doubleValue] != [dict[@"requires"] longLongValue]) return nil;
16624+ [self setValuesForKeysWithDictionary:dict];
16625+ }
16626+ return self;
16627+}
16628+
16629+- (void)setValue:(nullable id)value forKey:(NSString *)key
16630+{
16631+ id resolved = QTRequires.properties[key];
16632+ if (resolved) [super setValue:value forKey:resolved];
16633+}
16634+
16635+- (void)setNilValueForKey:(NSString *)key
16636+{
16637+ id resolved = QTRequires.properties[key];
16638+ if (resolved) [super setValue:@(0) forKey:resolved];
16639+}
16640+
16641+- (NSDictionary *)JSONDictionary
16642+{
16643+ return [self dictionaryWithValuesForKeys:QTRequires.properties.allValues];
16644+}
16645+@end
16646+
16647+@implementation QTRethrows
16648++ (NSDictionary<NSString *, NSString *> *)properties
16649+{
16650+ static NSDictionary<NSString *, NSString *> *properties;
16651+ return properties = properties ? properties : @{
16652+ @"rethrows": @"rethrows",
16653+ };
16654+}
16655+
16656++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16657+{
16658+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRethrows alloc] initWithJSONDictionary:dict] : nil;
16659+}
16660+
16661+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16662+{
16663+ if (self = [super init]) {
16664+ if (![dict[@"rethrows"] isKindOfClass:NSNumber.class]) return nil;
16665+ if ([dict[@"rethrows"] doubleValue] != [dict[@"rethrows"] longLongValue]) return nil;
16666+ [self setValuesForKeysWithDictionary:dict];
16667+ }
16668+ return self;
16669+}
16670+
16671+- (void)setValue:(nullable id)value forKey:(NSString *)key
16672+{
16673+ id resolved = QTRethrows.properties[key];
16674+ if (resolved) [super setValue:value forKey:resolved];
16675+}
16676+
16677+- (void)setNilValueForKey:(NSString *)key
16678+{
16679+ id resolved = QTRethrows.properties[key];
16680+ if (resolved) [super setValue:@(0) forKey:resolved];
16681+}
16682+
16683+- (NSDictionary *)JSONDictionary
16684+{
16685+ return [self dictionaryWithValuesForKeys:QTRethrows.properties.allValues];
16686+}
16687+@end
16688+
16689+@implementation QTRight
16690++ (NSDictionary<NSString *, NSString *> *)properties
16691+{
16692+ static NSDictionary<NSString *, NSString *> *properties;
16693+ return properties = properties ? properties : @{
16694+ @"right": @"right",
16695+ };
16696+}
16697+
16698++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16699+{
16700+ return [dict isKindOfClass:NSDictionary.class] ? [[QTRight alloc] initWithJSONDictionary:dict] : nil;
16701+}
16702+
16703+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16704+{
16705+ if (self = [super init]) {
16706+ if (![dict[@"right"] isKindOfClass:NSNumber.class]) return nil;
16707+ if ([dict[@"right"] doubleValue] != [dict[@"right"] longLongValue]) return nil;
16708+ [self setValuesForKeysWithDictionary:dict];
16709+ }
16710+ return self;
16711+}
16712+
16713+- (void)setValue:(nullable id)value forKey:(NSString *)key
16714+{
16715+ id resolved = QTRight.properties[key];
16716+ if (resolved) [super setValue:value forKey:resolved];
16717+}
16718+
16719+- (void)setNilValueForKey:(NSString *)key
16720+{
16721+ id resolved = QTRight.properties[key];
16722+ if (resolved) [super setValue:@(0) forKey:resolved];
16723+}
16724+
16725+- (NSDictionary *)JSONDictionary
16726+{
16727+ return [self dictionaryWithValuesForKeys:QTRight.properties.allValues];
16728+}
16729+@end
16730+
16731+@implementation QTRuntimeType
1660816732 + (NSDictionary<NSString *, NSString *> *)properties
1660916733 {
1661016734 static NSDictionary<NSString *, NSString *> *properties;
@@ -18724,148 +18848,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1872418848 }
1872518849 @end
1872618850
18727-@implementation QTTry
18728-+ (NSDictionary<NSString *, NSString *> *)properties
18729-{
18730- static NSDictionary<NSString *, NSString *> *properties;
18731- return properties = properties ? properties : @{
18732- @"try": @"try",
18733- };
18734-}
18735-
18736-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18737-{
18738- return [dict isKindOfClass:NSDictionary.class] ? [[QTTry alloc] initWithJSONDictionary:dict] : nil;
18739-}
18740-
18741-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18742-{
18743- if (self = [super init]) {
18744- if (![dict[@"try"] isKindOfClass:NSNumber.class]) return nil;
18745- if ([dict[@"try"] doubleValue] != [dict[@"try"] longLongValue]) return nil;
18746- [self setValuesForKeysWithDictionary:dict];
18747- }
18748- return self;
18749-}
18750-
18751-- (void)setValue:(nullable id)value forKey:(NSString *)key
18752-{
18753- id resolved = QTTry.properties[key];
18754- if (resolved) [super setValue:value forKey:resolved];
18755-}
18756-
18757-- (void)setNilValueForKey:(NSString *)key
18758-{
18759- id resolved = QTTry.properties[key];
18760- if (resolved) [super setValue:@(0) forKey:resolved];
18761-}
18762-
18763-- (NSDictionary *)JSONDictionary
18764-{
18765- return [self dictionaryWithValuesForKeys:QTTry.properties.allValues];
18766-}
18767-@end
18768-
18769-@implementation QTType
18770-+ (NSDictionary<NSString *, NSString *> *)properties
18771-{
18772- static NSDictionary<NSString *, NSString *> *properties;
18773- return properties = properties ? properties : @{
18774- @"Type": @"type",
18775- };
18776-}
18777-
18778-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18779-{
18780- return [dict isKindOfClass:NSDictionary.class] ? [[QTType alloc] initWithJSONDictionary:dict] : nil;
18781-}
18782-
18783-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18784-{
18785- if (self = [super init]) {
18786- if (![dict[@"Type"] isKindOfClass:NSNumber.class]) return nil;
18787- if ([dict[@"Type"] doubleValue] != [dict[@"Type"] longLongValue]) return nil;
18788- [self setValuesForKeysWithDictionary:dict];
18789- }
18790- return self;
18791-}
18792-
18793-- (void)setValue:(nullable id)value forKey:(NSString *)key
18794-{
18795- id resolved = QTType.properties[key];
18796- if (resolved) [super setValue:value forKey:resolved];
18797-}
18798-
18799-- (void)setNilValueForKey:(NSString *)key
18800-{
18801- id resolved = QTType.properties[key];
18802- if (resolved) [super setValue:@(0) forKey:resolved];
18803-}
18804-
18805-- (NSDictionary *)JSONDictionary
18806-{
18807- id dict = [[self dictionaryWithValuesForKeys:QTType.properties.allValues] mutableCopy];
18808-
18809- for (id jsonName in QTType.properties) {
18810- id propertyName = QTType.properties[jsonName];
18811- if (![jsonName isEqualToString:propertyName]) {
18812- dict[jsonName] = dict[propertyName];
18813- [dict removeObjectForKey:propertyName];
18814- }
18815- }
18816-
18817- return dict;
18818-}
18819-@end
18820-
18821-@implementation QTTypealias
18822-+ (NSDictionary<NSString *, NSString *> *)properties
18823-{
18824- static NSDictionary<NSString *, NSString *> *properties;
18825- return properties = properties ? properties : @{
18826- @"typealias": @"typealias",
18827- };
18828-}
18829-
18830-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18831-{
18832- return [dict isKindOfClass:NSDictionary.class] ? [[QTTypealias alloc] initWithJSONDictionary:dict] : nil;
18833-}
18834-
18835-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18836-{
18837- if (self = [super init]) {
18838- if (![dict[@"typealias"] isKindOfClass:NSNumber.class]) return nil;
18839- if ([dict[@"typealias"] doubleValue] != [dict[@"typealias"] longLongValue]) return nil;
18840- [self setValuesForKeysWithDictionary:dict];
18841- }
18842- return self;
18843-}
18844-
18845-- (void)setValue:(nullable id)value forKey:(NSString *)key
18846-{
18847- id resolved = QTTypealias.properties[key];
18848- if (resolved) [super setValue:value forKey:resolved];
18849-}
18850-
18851-- (void)setNilValueForKey:(NSString *)key
18852-{
18853- id resolved = QTTypealias.properties[key];
18854- if (resolved) [super setValue:@(0) forKey:resolved];
18855-}
18856-
18857-- (NSDictionary *)JSONDictionary
18858-{
18859- return [self dictionaryWithValuesForKeys:QTTypealias.properties.allValues];
18860-}
18861-@end
18862-
1886318851 @implementation QTObj6
1886418852 + (NSDictionary<NSString *, NSString *> *)properties
1886518853 {
1886618854 static NSDictionary<NSString *, NSString *> *properties;
1886718855 return properties = properties ? properties : @{
1886818856 @"dummy": @"dummy",
18857+ @"type": @"obj6Type",
1886918858 @"typedef": @"obj6Typedef",
1887018859 @"typeof": @"obj6Typeof",
1887118860 @"union": @"obj6Union",
@@ -18873,6 +18862,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1887318862 @"void": @"obj6Void",
1887418863 @"volatile": @"obj6Volatile",
1887518864 @"while": @"obj6While",
18865+ @"try": @"try",
18866+ @"Type": @"type",
18867+ @"typealias": @"typealias",
1887618868 @"typeid": @"typeid",
1887718869 @"typename": @"typename",
1887818870 @"uint": @"uint",
@@ -18912,6 +18904,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1891218904 if (self = [super init]) {
1891318905 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1891418906 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18907+ if (![dict[@"type"] isKindOfClass:NSDictionary.class]) return nil;
1891518908 if (![dict[@"typedef"] isKindOfClass:NSDictionary.class]) return nil;
1891618909 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
1891718910 if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
@@ -18919,6 +18912,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1891918912 if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
1892018913 if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
1892118914 if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18915+ if (![dict[@"try"] isKindOfClass:NSDictionary.class]) return nil;
18916+ if (![dict[@"Type"] isKindOfClass:NSDictionary.class]) return nil;
18917+ if (![dict[@"typealias"] isKindOfClass:NSDictionary.class]) return nil;
1892218918 if (![dict[@"typeid"] isKindOfClass:NSDictionary.class]) return nil;
1892318919 if (![dict[@"typename"] isKindOfClass:NSDictionary.class]) return nil;
1892418920 if (![dict[@"uint"] isKindOfClass:NSDictionary.class]) return nil;
@@ -18946,6 +18942,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1894618942 if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
1894718943 if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
1894818944 [self setValuesForKeysWithDictionary:dict];
18945+ _obj6Type = [QTTypeClass fromJSONDictionary:(id)_obj6Type];
18946+ if (!_obj6Type && dict[@"type"] && ![dict[@"type"] isKindOfClass:NSNull.class]) return nil;
1894918947 _obj6Typedef = [QTTypedef fromJSONDictionary:(id)_obj6Typedef];
1895018948 if (!_obj6Typedef && dict[@"typedef"] && ![dict[@"typedef"] isKindOfClass:NSNull.class]) return nil;
1895118949 _obj6Typeof = [QTTypeof fromJSONDictionary:(id)_obj6Typeof];
@@ -18960,6 +18958,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1896018958 if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
1896118959 _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
1896218960 if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18961+ _try = [QTTry fromJSONDictionary:(id)_try];
18962+ if (!_try && dict[@"try"] && ![dict[@"try"] isKindOfClass:NSNull.class]) return nil;
18963+ _type = [QTType fromJSONDictionary:(id)_type];
18964+ if (!_type && dict[@"Type"] && ![dict[@"Type"] isKindOfClass:NSNull.class]) return nil;
18965+ _typealias = [QTTypealias fromJSONDictionary:(id)_typealias];
18966+ if (!_typealias && dict[@"typealias"] && ![dict[@"typealias"] isKindOfClass:NSNull.class]) return nil;
1896318967 _typeid = [QTTypeid fromJSONDictionary:(id)_typeid];
1896418968 if (!_typeid && dict[@"typeid"] && ![dict[@"typeid"] isKindOfClass:NSNull.class]) return nil;
1896518969 _typename = [QTTypename fromJSONDictionary:(id)_typename];
@@ -19041,6 +19045,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1904119045 }
1904219046
1904319047 [dict addEntriesFromDictionary:@{
19048+ @"type": [_obj6Type JSONDictionary],
1904419049 @"typedef": [_obj6Typedef JSONDictionary],
1904519050 @"typeof": [_obj6Typeof JSONDictionary],
1904619051 @"union": [_obj6Union JSONDictionary],
@@ -19048,6 +19053,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1904819053 @"void": [_obj6Void JSONDictionary],
1904919054 @"volatile": [_obj6Volatile JSONDictionary],
1905019055 @"while": [_obj6While JSONDictionary],
19056+ @"try": [_try JSONDictionary],
19057+ @"Type": [_type JSONDictionary],
19058+ @"typealias": [_typealias JSONDictionary],
1905119059 @"typeid": [_typeid JSONDictionary],
1905219060 @"typename": [_typename JSONDictionary],
1905319061 @"uint": [_uint JSONDictionary],
@@ -19080,6 +19088,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1908019088 }
1908119089 @end
1908219090
19091+@implementation QTTypeClass
19092++ (NSDictionary<NSString *, NSString *> *)properties
19093+{
19094+ static NSDictionary<NSString *, NSString *> *properties;
19095+ return properties = properties ? properties : @{
19096+ @"type": @"type",
19097+ };
19098+}
19099+
19100++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19101+{
19102+ return [dict isKindOfClass:NSDictionary.class] ? [[QTTypeClass alloc] initWithJSONDictionary:dict] : nil;
19103+}
19104+
19105+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19106+{
19107+ if (self = [super init]) {
19108+ if (![dict[@"type"] isKindOfClass:NSNumber.class]) return nil;
19109+ if ([dict[@"type"] doubleValue] != [dict[@"type"] longLongValue]) return nil;
19110+ [self setValuesForKeysWithDictionary:dict];
19111+ }
19112+ return self;
19113+}
19114+
19115+- (void)setValue:(nullable id)value forKey:(NSString *)key
19116+{
19117+ id resolved = QTTypeClass.properties[key];
19118+ if (resolved) [super setValue:value forKey:resolved];
19119+}
19120+
19121+- (void)setNilValueForKey:(NSString *)key
19122+{
19123+ id resolved = QTTypeClass.properties[key];
19124+ if (resolved) [super setValue:@(0) forKey:resolved];
19125+}
19126+
19127+- (NSDictionary *)JSONDictionary
19128+{
19129+ return [self dictionaryWithValuesForKeys:QTTypeClass.properties.allValues];
19130+}
19131+@end
19132+
1908319133 @implementation QTTypedef
1908419134 + (NSDictionary<NSString *, NSString *> *)properties
1908519135 {
@@ -19444,6 +19494,142 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1944419494 }
1944519495 @end
1944619496
19497+@implementation QTTry
19498++ (NSDictionary<NSString *, NSString *> *)properties
19499+{
19500+ static NSDictionary<NSString *, NSString *> *properties;
19501+ return properties = properties ? properties : @{
19502+ @"try": @"try",
19503+ };
19504+}
19505+
19506++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19507+{
19508+ return [dict isKindOfClass:NSDictionary.class] ? [[QTTry alloc] initWithJSONDictionary:dict] : nil;
19509+}
19510+
19511+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19512+{
19513+ if (self = [super init]) {
19514+ if (![dict[@"try"] isKindOfClass:NSNumber.class]) return nil;
19515+ if ([dict[@"try"] doubleValue] != [dict[@"try"] longLongValue]) return nil;
19516+ [self setValuesForKeysWithDictionary:dict];
19517+ }
19518+ return self;
19519+}
19520+
19521+- (void)setValue:(nullable id)value forKey:(NSString *)key
19522+{
19523+ id resolved = QTTry.properties[key];
19524+ if (resolved) [super setValue:value forKey:resolved];
19525+}
19526+
19527+- (void)setNilValueForKey:(NSString *)key
19528+{
19529+ id resolved = QTTry.properties[key];
19530+ if (resolved) [super setValue:@(0) forKey:resolved];
19531+}
19532+
19533+- (NSDictionary *)JSONDictionary
19534+{
19535+ return [self dictionaryWithValuesForKeys:QTTry.properties.allValues];
19536+}
19537+@end
19538+
19539+@implementation QTType
19540++ (NSDictionary<NSString *, NSString *> *)properties
19541+{
19542+ static NSDictionary<NSString *, NSString *> *properties;
19543+ return properties = properties ? properties : @{
19544+ @"Type": @"type",
19545+ };
19546+}
19547+
19548++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19549+{
19550+ return [dict isKindOfClass:NSDictionary.class] ? [[QTType alloc] initWithJSONDictionary:dict] : nil;
19551+}
19552+
19553+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19554+{
19555+ if (self = [super init]) {
19556+ if (![dict[@"Type"] isKindOfClass:NSNumber.class]) return nil;
19557+ if ([dict[@"Type"] doubleValue] != [dict[@"Type"] longLongValue]) return nil;
19558+ [self setValuesForKeysWithDictionary:dict];
19559+ }
19560+ return self;
19561+}
19562+
19563+- (void)setValue:(nullable id)value forKey:(NSString *)key
19564+{
19565+ id resolved = QTType.properties[key];
19566+ if (resolved) [super setValue:value forKey:resolved];
19567+}
19568+
19569+- (void)setNilValueForKey:(NSString *)key
19570+{
19571+ id resolved = QTType.properties[key];
19572+ if (resolved) [super setValue:@(0) forKey:resolved];
19573+}
19574+
19575+- (NSDictionary *)JSONDictionary
19576+{
19577+ id dict = [[self dictionaryWithValuesForKeys:QTType.properties.allValues] mutableCopy];
19578+
19579+ for (id jsonName in QTType.properties) {
19580+ id propertyName = QTType.properties[jsonName];
19581+ if (![jsonName isEqualToString:propertyName]) {
19582+ dict[jsonName] = dict[propertyName];
19583+ [dict removeObjectForKey:propertyName];
19584+ }
19585+ }
19586+
19587+ return dict;
19588+}
19589+@end
19590+
19591+@implementation QTTypealias
19592++ (NSDictionary<NSString *, NSString *> *)properties
19593+{
19594+ static NSDictionary<NSString *, NSString *> *properties;
19595+ return properties = properties ? properties : @{
19596+ @"typealias": @"typealias",
19597+ };
19598+}
19599+
19600++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19601+{
19602+ return [dict isKindOfClass:NSDictionary.class] ? [[QTTypealias alloc] initWithJSONDictionary:dict] : nil;
19603+}
19604+
19605+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19606+{
19607+ if (self = [super init]) {
19608+ if (![dict[@"typealias"] isKindOfClass:NSNumber.class]) return nil;
19609+ if ([dict[@"typealias"] doubleValue] != [dict[@"typealias"] longLongValue]) return nil;
19610+ [self setValuesForKeysWithDictionary:dict];
19611+ }
19612+ return self;
19613+}
19614+
19615+- (void)setValue:(nullable id)value forKey:(NSString *)key
19616+{
19617+ id resolved = QTTypealias.properties[key];
19618+ if (resolved) [super setValue:value forKey:resolved];
19619+}
19620+
19621+- (void)setNilValueForKey:(NSString *)key
19622+{
19623+ id resolved = QTTypealias.properties[key];
19624+ if (resolved) [super setValue:@(0) forKey:resolved];
19625+}
19626+
19627+- (NSDictionary *)JSONDictionary
19628+{
19629+ return [self dictionaryWithValuesForKeys:QTTypealias.properties.allValues];
19630+}
19631+@end
19632+
1944719633 @implementation QTTypeid
1944819634 + (NSDictionary<NSString *, NSString *> *)properties
1944919635 {
Mphpdefault / TopLevel.php+2,188 −1,711
@@ -21130,6 +21130,7 @@ class Obj3 {
2113021130 private Left $left; // json:left Required
2113121131 private Let $let; // json:let Required
2113221132 private ListClass $list; // json:list Required
21133+ private LocalDate $localDate; // json:LocalDate Required
2113321134 private LocaleClass $locale; // json:Locale Required
2113421135 private Lock $lock; // json:lock Required
2113521136 private Long $long; // json:long Required
@@ -21139,8 +21140,6 @@ class Obj3 {
2113921140 private MarshalJSON $marshalJSON; // json:MarshalJSON Required
2114021141 private MetadataPropertyHandling $metadataPropertyHandling; // json:metadata_property_handling Required
2114121142 private Module $module; // json:module Required
21142- private Mutable $mutable; // json:mutable Required
21143- private Mutating $mutating; // json:mutating Required
2114421143
2114521144 /**
2114621145 * @param int $dummy
@@ -21198,6 +21197,7 @@ class Obj3 {
2119821197 * @param Left $left
2119921198 * @param Let $let
2120021199 * @param ListClass $list
21200+ * @param LocalDate $localDate
2120121201 * @param LocaleClass $locale
2120221202 * @param Lock $lock
2120321203 * @param Long $long
@@ -21207,10 +21207,8 @@ class Obj3 {
2120721207 * @param MarshalJSON $marshalJSON
2120821208 * @param MetadataPropertyHandling $metadataPropertyHandling
2120921209 * @param Module $module
21210- * @param Mutable $mutable
21211- * @param Mutating $mutating
2121221210 */
21213- public function __construct(int $dummy, FunctionClass $function, Get $get, GlobalClass $global, Go $go, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, IntNode $intNode, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocaleClass $locale, Lock $lock, Long $long, LongNode $longNode, Map $map, MapEntry $mapEntry, MarshalJSON $marshalJSON, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating) {
21211+ public function __construct(int $dummy, FunctionClass $function, Get $get, GlobalClass $global, Go $go, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, IntNode $intNode, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocalDate $localDate, LocaleClass $locale, Lock $lock, Long $long, LongNode $longNode, Map $map, MapEntry $mapEntry, MarshalJSON $marshalJSON, MetadataPropertyHandling $metadataPropertyHandling, Module $module) {
2121421212 $this->dummy = $dummy;
2121521213 $this->function = $function;
2121621214 $this->get = $get;
@@ -21266,6 +21264,7 @@ class Obj3 {
2126621264 $this->left = $left;
2126721265 $this->let = $let;
2126821266 $this->list = $list;
21267+ $this->localDate = $localDate;
2126921268 $this->locale = $locale;
2127021269 $this->lock = $lock;
2127121270 $this->long = $long;
@@ -21275,8 +21274,6 @@ class Obj3 {
2127521274 $this->marshalJSON = $marshalJSON;
2127621275 $this->metadataPropertyHandling = $metadataPropertyHandling;
2127721276 $this->module = $module;
21278- $this->mutable = $mutable;
21279- $this->mutating = $mutating;
2128021277 }
2128121278
2128221279 /**
@@ -23918,6 +23915,54 @@ class Obj3 {
2391823915 return ListClass::sample(); /*85:list*/
2391923916 }
2392023917
23918+ /**
23919+ * @param stdClass $value
23920+ * @throws Exception
23921+ * @return LocalDate
23922+ */
23923+ public static function fromLocalDate(stdClass $value): LocalDate {
23924+ return LocalDate::from($value); /*class*/
23925+ }
23926+
23927+ /**
23928+ * @throws Exception
23929+ * @return stdClass
23930+ */
23931+ public function toLocalDate(): stdClass {
23932+ if (Obj3::validateLocalDate($this->localDate)) {
23933+ return $this->localDate->to(); /*class*/
23934+ }
23935+ throw new Exception('never get to this Obj3::localDate');
23936+ }
23937+
23938+ /**
23939+ * @param LocalDate
23940+ * @return bool
23941+ * @throws Exception
23942+ */
23943+ public static function validateLocalDate(LocalDate $value): bool {
23944+ $value->validate();
23945+ return true;
23946+ }
23947+
23948+ /**
23949+ * @throws Exception
23950+ * @return LocalDate
23951+ */
23952+ public function getLocalDate(): LocalDate {
23953+ if (Obj3::validateLocalDate($this->localDate)) {
23954+ return $this->localDate;
23955+ }
23956+ throw new Exception('never get to getLocalDate Obj3::localDate');
23957+ }
23958+
23959+ /**
23960+ * @return LocalDate
23961+ */
23962+ public static function sampleLocalDate(): LocalDate {
23963+ return LocalDate::sample(); /*86:localDate*/
23964+ }
23965+
2392123966 /**
2392223967 * @param stdClass $value
2392323968 * @throws Exception
@@ -23963,7 +24008,7 @@ class Obj3 {
2396324008 * @return LocaleClass
2396424009 */
2396524010 public static function sampleLocale(): LocaleClass {
23966- return LocaleClass::sample(); /*86:locale*/
24011+ return LocaleClass::sample(); /*87:locale*/
2396724012 }
2396824013
2396924014 /**
@@ -24011,7 +24056,7 @@ class Obj3 {
2401124056 * @return Lock
2401224057 */
2401324058 public static function sampleLock(): Lock {
24014- return Lock::sample(); /*87:lock*/
24059+ return Lock::sample(); /*88:lock*/
2401524060 }
2401624061
2401724062 /**
@@ -24059,7 +24104,7 @@ class Obj3 {
2405924104 * @return Long
2406024105 */
2406124106 public static function sampleLong(): Long {
24062- return Long::sample(); /*88:long*/
24107+ return Long::sample(); /*89:long*/
2406324108 }
2406424109
2406524110 /**
@@ -24107,7 +24152,7 @@ class Obj3 {
2410724152 * @return LongNode
2410824153 */
2410924154 public static function sampleLongNode(): LongNode {
24110- return LongNode::sample(); /*89:longNode*/
24155+ return LongNode::sample(); /*90:longNode*/
2411124156 }
2411224157
2411324158 /**
@@ -24155,7 +24200,7 @@ class Obj3 {
2415524200 * @return Map
2415624201 */
2415724202 public static function sampleMap(): Map {
24158- return Map::sample(); /*90:map*/
24203+ return Map::sample(); /*91:map*/
2415924204 }
2416024205
2416124206 /**
@@ -24203,7 +24248,7 @@ class Obj3 {
2420324248 * @return MapEntry
2420424249 */
2420524250 public static function sampleMapEntry(): MapEntry {
24206- return MapEntry::sample(); /*91:mapEntry*/
24251+ return MapEntry::sample(); /*92:mapEntry*/
2420724252 }
2420824253
2420924254 /**
@@ -24251,7 +24296,7 @@ class Obj3 {
2425124296 * @return MarshalJSON
2425224297 */
2425324298 public static function sampleMarshalJSON(): MarshalJSON {
24254- return MarshalJSON::sample(); /*92:marshalJSON*/
24299+ return MarshalJSON::sample(); /*93:marshalJSON*/
2425524300 }
2425624301
2425724302 /**
@@ -24299,7 +24344,7 @@ class Obj3 {
2429924344 * @return MetadataPropertyHandling
2430024345 */
2430124346 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling {
24302- return MetadataPropertyHandling::sample(); /*93:metadataPropertyHandling*/
24347+ return MetadataPropertyHandling::sample(); /*94:metadataPropertyHandling*/
2430324348 }
2430424349
2430524350 /**
@@ -24347,103 +24392,7 @@ class Obj3 {
2434724392 * @return Module
2434824393 */
2434924394 public static function sampleModule(): Module {
24350- return Module::sample(); /*94:module*/
24351- }
24352-
24353- /**
24354- * @param stdClass $value
24355- * @throws Exception
24356- * @return Mutable
24357- */
24358- public static function fromMutable(stdClass $value): Mutable {
24359- return Mutable::from($value); /*class*/
24360- }
24361-
24362- /**
24363- * @throws Exception
24364- * @return stdClass
24365- */
24366- public function toMutable(): stdClass {
24367- if (Obj3::validateMutable($this->mutable)) {
24368- return $this->mutable->to(); /*class*/
24369- }
24370- throw new Exception('never get to this Obj3::mutable');
24371- }
24372-
24373- /**
24374- * @param Mutable
24375- * @return bool
24376- * @throws Exception
24377- */
24378- public static function validateMutable(Mutable $value): bool {
24379- $value->validate();
24380- return true;
24381- }
24382-
24383- /**
24384- * @throws Exception
24385- * @return Mutable
24386- */
24387- public function getMutable(): Mutable {
24388- if (Obj3::validateMutable($this->mutable)) {
24389- return $this->mutable;
24390- }
24391- throw new Exception('never get to getMutable Obj3::mutable');
24392- }
24393-
24394- /**
24395- * @return Mutable
24396- */
24397- public static function sampleMutable(): Mutable {
24398- return Mutable::sample(); /*95:mutable*/
24399- }
24400-
24401- /**
24402- * @param stdClass $value
24403- * @throws Exception
24404- * @return Mutating
24405- */
24406- public static function fromMutating(stdClass $value): Mutating {
24407- return Mutating::from($value); /*class*/
24408- }
24409-
24410- /**
24411- * @throws Exception
24412- * @return stdClass
24413- */
24414- public function toMutating(): stdClass {
24415- if (Obj3::validateMutating($this->mutating)) {
24416- return $this->mutating->to(); /*class*/
24417- }
24418- throw new Exception('never get to this Obj3::mutating');
24419- }
24420-
24421- /**
24422- * @param Mutating
24423- * @return bool
24424- * @throws Exception
24425- */
24426- public static function validateMutating(Mutating $value): bool {
24427- $value->validate();
24428- return true;
24429- }
24430-
24431- /**
24432- * @throws Exception
24433- * @return Mutating
24434- */
24435- public function getMutating(): Mutating {
24436- if (Obj3::validateMutating($this->mutating)) {
24437- return $this->mutating;
24438- }
24439- throw new Exception('never get to getMutating Obj3::mutating');
24440- }
24441-
24442- /**
24443- * @return Mutating
24444- */
24445- public static function sampleMutating(): Mutating {
24446- return Mutating::sample(); /*96:mutating*/
24395+ return Module::sample(); /*95:module*/
2444724396 }
2444824397
2444924398 /**
@@ -24506,6 +24455,7 @@ class Obj3 {
2450624455 || Obj3::validateLeft($this->left)
2450724456 || Obj3::validateLet($this->let)
2450824457 || Obj3::validateList($this->list)
24458+ || Obj3::validateLocalDate($this->localDate)
2450924459 || Obj3::validateLocale($this->locale)
2451024460 || Obj3::validateLock($this->lock)
2451124461 || Obj3::validateLong($this->long)
@@ -24514,9 +24464,7 @@ class Obj3 {
2451424464 || Obj3::validateMapEntry($this->mapEntry)
2451524465 || Obj3::validateMarshalJSON($this->marshalJSON)
2451624466 || Obj3::validateMetadataPropertyHandling($this->metadataPropertyHandling)
24517- || Obj3::validateModule($this->module)
24518- || Obj3::validateMutable($this->mutable)
24519- || Obj3::validateMutating($this->mutating);
24467+ || Obj3::validateModule($this->module);
2452024468 }
2452124469
2452224470 /**
@@ -24580,6 +24528,7 @@ class Obj3 {
2458024528 $out->{'left'} = $this->toLeft();
2458124529 $out->{'let'} = $this->toLet();
2458224530 $out->{'list'} = $this->toList();
24531+ $out->{'LocalDate'} = $this->toLocalDate();
2458324532 $out->{'Locale'} = $this->toLocale();
2458424533 $out->{'lock'} = $this->toLock();
2458524534 $out->{'long'} = $this->toLong();
@@ -24589,8 +24538,6 @@ class Obj3 {
2458924538 $out->{'MarshalJSON'} = $this->toMarshalJSON();
2459024539 $out->{'metadata_property_handling'} = $this->toMetadataPropertyHandling();
2459124540 $out->{'module'} = $this->toModule();
24592- $out->{'mutable'} = $this->toMutable();
24593- $out->{'mutating'} = $this->toMutating();
2459424541 return $out;
2459524542 }
2459624543
@@ -24765,6 +24712,9 @@ class Obj3 {
2476524712 if (!property_exists($obj, 'list')) {
2476624713 throw new Exception("Missing required property");
2476724714 }
24715+ if (!property_exists($obj, 'LocalDate')) {
24716+ throw new Exception("Missing required property");
24717+ }
2476824718 if (!property_exists($obj, 'Locale')) {
2476924719 throw new Exception("Missing required property");
2477024720 }
@@ -24792,12 +24742,6 @@ class Obj3 {
2479224742 if (!property_exists($obj, 'module')) {
2479324743 throw new Exception("Missing required property");
2479424744 }
24795- if (!property_exists($obj, 'mutable')) {
24796- throw new Exception("Missing required property");
24797- }
24798- if (!property_exists($obj, 'mutating')) {
24799- throw new Exception("Missing required property");
24800- }
2480124745 return new Obj3(
2480224746 Obj3::fromDummy($obj->{'dummy'})
2480324747 ,Obj3::fromFunction($obj->{'function'})
@@ -24854,6 +24798,7 @@ class Obj3 {
2485424798 ,Obj3::fromLeft($obj->{'left'})
2485524799 ,Obj3::fromLet($obj->{'let'})
2485624800 ,Obj3::fromList($obj->{'list'})
24801+ ,Obj3::fromLocalDate($obj->{'LocalDate'})
2485724802 ,Obj3::fromLocale($obj->{'Locale'})
2485824803 ,Obj3::fromLock($obj->{'lock'})
2485924804 ,Obj3::fromLong($obj->{'long'})
@@ -24863,8 +24808,6 @@ class Obj3 {
2486324808 ,Obj3::fromMarshalJSON($obj->{'MarshalJSON'})
2486424809 ,Obj3::fromMetadataPropertyHandling($obj->{'metadata_property_handling'})
2486524810 ,Obj3::fromModule($obj->{'module'})
24866- ,Obj3::fromMutable($obj->{'mutable'})
24867- ,Obj3::fromMutating($obj->{'mutating'})
2486824811 );
2486924812 }
2487024813
@@ -24928,6 +24871,7 @@ class Obj3 {
2492824871 ,Obj3::sampleLeft()
2492924872 ,Obj3::sampleLet()
2493024873 ,Obj3::sampleList()
24874+ ,Obj3::sampleLocalDate()
2493124875 ,Obj3::sampleLocale()
2493224876 ,Obj3::sampleLock()
2493324877 ,Obj3::sampleLong()
@@ -24937,8 +24881,6 @@ class Obj3 {
2493724881 ,Obj3::sampleMarshalJSON()
2493824882 ,Obj3::sampleMetadataPropertyHandling()
2493924883 ,Obj3::sampleModule()
24940- ,Obj3::sampleMutable()
24941- ,Obj3::sampleMutating()
2494224884 );
2494324885 }
2494424886 }
@@ -30400,6 +30342,107 @@ class ListClass {
3040030342 }
3040130343 }
3040230344
30345+// This is an autogenerated file:LocalDate
30346+
30347+class LocalDate {
30348+ private int $localDate; // json:LocalDate Required
30349+
30350+ /**
30351+ * @param int $localDate
30352+ */
30353+ public function __construct(int $localDate) {
30354+ $this->localDate = $localDate;
30355+ }
30356+
30357+ /**
30358+ * @param int $value
30359+ * @throws Exception
30360+ * @return int
30361+ */
30362+ public static function fromLocalDate(int $value): int {
30363+ return $value; /*int*/
30364+ }
30365+
30366+ /**
30367+ * @throws Exception
30368+ * @return int
30369+ */
30370+ public function toLocalDate(): int {
30371+ if (LocalDate::validateLocalDate($this->localDate)) {
30372+ return $this->localDate; /*int*/
30373+ }
30374+ throw new Exception('never get to this LocalDate::localDate');
30375+ }
30376+
30377+ /**
30378+ * @param int
30379+ * @return bool
30380+ * @throws Exception
30381+ */
30382+ public static function validateLocalDate(int $value): bool {
30383+ return true;
30384+ }
30385+
30386+ /**
30387+ * @throws Exception
30388+ * @return int
30389+ */
30390+ public function getLocalDate(): int {
30391+ if (LocalDate::validateLocalDate($this->localDate)) {
30392+ return $this->localDate;
30393+ }
30394+ throw new Exception('never get to getLocalDate LocalDate::localDate');
30395+ }
30396+
30397+ /**
30398+ * @return int
30399+ */
30400+ public static function sampleLocalDate(): int {
30401+ return 31; /*31:localDate*/
30402+ }
30403+
30404+ /**
30405+ * @throws Exception
30406+ * @return bool
30407+ */
30408+ public function validate(): bool {
30409+ return LocalDate::validateLocalDate($this->localDate);
30410+ }
30411+
30412+ /**
30413+ * @return stdClass
30414+ * @throws Exception
30415+ */
30416+ public function to(): stdClass {
30417+ $out = new stdClass();
30418+ $out->{'LocalDate'} = $this->toLocalDate();
30419+ return $out;
30420+ }
30421+
30422+ /**
30423+ * @param stdClass $obj
30424+ * @return LocalDate
30425+ * @throws Exception
30426+ */
30427+ public static function from(stdClass $obj): LocalDate {
30428+ if (!property_exists($obj, 'LocalDate')) {
30429+ throw new Exception("Missing required property");
30430+ }
30431+ return new LocalDate(
30432+ LocalDate::fromLocalDate($obj->{'LocalDate'})
30433+ );
30434+ }
30435+
30436+ /**
30437+ * @return LocalDate
30438+ */
30439+ public static function sample(): LocalDate {
30440+ return new LocalDate(
30441+ LocalDate::sampleLocalDate()
30442+ );
30443+ }
30444+}
30445+
3040330446 // This is an autogenerated file:LocaleClass
3040430447
3040530448 class LocaleClass {
@@ -31309,212 +31352,12 @@ class Module {
3130931352 }
3131031353 }
3131131354
31312-// This is an autogenerated file:Mutable
31313-
31314-class Mutable {
31315- private int $mutable; // json:mutable Required
31316-
31317- /**
31318- * @param int $mutable
31319- */
31320- public function __construct(int $mutable) {
31321- $this->mutable = $mutable;
31322- }
31323-
31324- /**
31325- * @param int $value
31326- * @throws Exception
31327- * @return int
31328- */
31329- public static function fromMutable(int $value): int {
31330- return $value; /*int*/
31331- }
31332-
31333- /**
31334- * @throws Exception
31335- * @return int
31336- */
31337- public function toMutable(): int {
31338- if (Mutable::validateMutable($this->mutable)) {
31339- return $this->mutable; /*int*/
31340- }
31341- throw new Exception('never get to this Mutable::mutable');
31342- }
31343-
31344- /**
31345- * @param int
31346- * @return bool
31347- * @throws Exception
31348- */
31349- public static function validateMutable(int $value): bool {
31350- return true;
31351- }
31352-
31353- /**
31354- * @throws Exception
31355- * @return int
31356- */
31357- public function getMutable(): int {
31358- if (Mutable::validateMutable($this->mutable)) {
31359- return $this->mutable;
31360- }
31361- throw new Exception('never get to getMutable Mutable::mutable');
31362- }
31363-
31364- /**
31365- * @return int
31366- */
31367- public static function sampleMutable(): int {
31368- return 31; /*31:mutable*/
31369- }
31370-
31371- /**
31372- * @throws Exception
31373- * @return bool
31374- */
31375- public function validate(): bool {
31376- return Mutable::validateMutable($this->mutable);
31377- }
31378-
31379- /**
31380- * @return stdClass
31381- * @throws Exception
31382- */
31383- public function to(): stdClass {
31384- $out = new stdClass();
31385- $out->{'mutable'} = $this->toMutable();
31386- return $out;
31387- }
31388-
31389- /**
31390- * @param stdClass $obj
31391- * @return Mutable
31392- * @throws Exception
31393- */
31394- public static function from(stdClass $obj): Mutable {
31395- if (!property_exists($obj, 'mutable')) {
31396- throw new Exception("Missing required property");
31397- }
31398- return new Mutable(
31399- Mutable::fromMutable($obj->{'mutable'})
31400- );
31401- }
31402-
31403- /**
31404- * @return Mutable
31405- */
31406- public static function sample(): Mutable {
31407- return new Mutable(
31408- Mutable::sampleMutable()
31409- );
31410- }
31411-}
31412-
31413-// This is an autogenerated file:Mutating
31414-
31415-class Mutating {
31416- private int $mutating; // json:mutating Required
31417-
31418- /**
31419- * @param int $mutating
31420- */
31421- public function __construct(int $mutating) {
31422- $this->mutating = $mutating;
31423- }
31424-
31425- /**
31426- * @param int $value
31427- * @throws Exception
31428- * @return int
31429- */
31430- public static function fromMutating(int $value): int {
31431- return $value; /*int*/
31432- }
31433-
31434- /**
31435- * @throws Exception
31436- * @return int
31437- */
31438- public function toMutating(): int {
31439- if (Mutating::validateMutating($this->mutating)) {
31440- return $this->mutating; /*int*/
31441- }
31442- throw new Exception('never get to this Mutating::mutating');
31443- }
31444-
31445- /**
31446- * @param int
31447- * @return bool
31448- * @throws Exception
31449- */
31450- public static function validateMutating(int $value): bool {
31451- return true;
31452- }
31453-
31454- /**
31455- * @throws Exception
31456- * @return int
31457- */
31458- public function getMutating(): int {
31459- if (Mutating::validateMutating($this->mutating)) {
31460- return $this->mutating;
31461- }
31462- throw new Exception('never get to getMutating Mutating::mutating');
31463- }
31464-
31465- /**
31466- * @return int
31467- */
31468- public static function sampleMutating(): int {
31469- return 31; /*31:mutating*/
31470- }
31471-
31472- /**
31473- * @throws Exception
31474- * @return bool
31475- */
31476- public function validate(): bool {
31477- return Mutating::validateMutating($this->mutating);
31478- }
31479-
31480- /**
31481- * @return stdClass
31482- * @throws Exception
31483- */
31484- public function to(): stdClass {
31485- $out = new stdClass();
31486- $out->{'mutating'} = $this->toMutating();
31487- return $out;
31488- }
31489-
31490- /**
31491- * @param stdClass $obj
31492- * @return Mutating
31493- * @throws Exception
31494- */
31495- public static function from(stdClass $obj): Mutating {
31496- if (!property_exists($obj, 'mutating')) {
31497- throw new Exception("Missing required property");
31498- }
31499- return new Mutating(
31500- Mutating::fromMutating($obj->{'mutating'})
31501- );
31502- }
31503-
31504- /**
31505- * @return Mutating
31506- */
31507- public static function sample(): Mutating {
31508- return new Mutating(
31509- Mutating::sampleMutating()
31510- );
31511- }
31512-}
31513-
3151431355 // This is an autogenerated file:Obj4
3151531356
3151631357 class Obj4 {
3151731358 private int $dummy; // json:dummy Required
31359+ private Mutable $mutable; // json:mutable Required
31360+ private Mutating $mutating; // json:mutating Required
3151831361 private NamespaceClass $namespace; // json:namespace Required
3151931362 private Native $native; // json:native Required
3152031363 private NewClass $new; // json:new Required
@@ -31545,6 +31388,8 @@ class Obj4 {
3154531388 private ObjectReader $objectReader; // json:ObjectReader Required
3154631389 private ObjectWriter $objectWriter; // json:ObjectWriter Required
3154731390 private Of $of; // json:of Required
31391+ private OffsetDateTime $offsetDateTime; // json:OffsetDateTime Required
31392+ private OffsetTime $offsetTime; // json:OffsetTime Required
3154831393 private Oneway $oneway; // json:oneway Required
3154931394 private Open $open; // json:open Required
3155031395 private Operator $operator; // json:operator Required
@@ -31575,13 +31420,11 @@ class Obj4 {
3157531420 private RegExp $regExp; // json:RegExp Required
3157631421 private Register $register; // json:register Required
3157731422 private ReinterpretCast $reinterpretCast; // json:reinterpret_cast Required
31578- private Repeat $repeat; // json:repeat Required
31579- private RequireClass $require; // json:require Required
31580- private Required $required; // json:required Required
31581- private Requires $requires; // json:requires Required
3158231423
3158331424 /**
3158431425 * @param int $dummy
31426+ * @param Mutable $mutable
31427+ * @param Mutating $mutating
3158531428 * @param NamespaceClass $namespace
3158631429 * @param Native $native
3158731430 * @param NewClass $new
@@ -31612,6 +31455,8 @@ class Obj4 {
3161231455 * @param ObjectReader $objectReader
3161331456 * @param ObjectWriter $objectWriter
3161431457 * @param Of $of
31458+ * @param OffsetDateTime $offsetDateTime
31459+ * @param OffsetTime $offsetTime
3161531460 * @param Oneway $oneway
3161631461 * @param Open $open
3161731462 * @param Operator $operator
@@ -31642,13 +31487,11 @@ class Obj4 {
3164231487 * @param RegExp $regExp
3164331488 * @param Register $register
3164431489 * @param ReinterpretCast $reinterpretCast
31645- * @param Repeat $repeat
31646- * @param RequireClass $require
31647- * @param Required $required
31648- * @param Requires $requires
3164931490 */
31650- public function __construct(int $dummy, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, NullNode $nullNode, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, ObjectNode $objectNode, ObjectReader $objectReader, ObjectWriter $objectWriter, Of $of, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires) {
31491+ public function __construct(int $dummy, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, NullNode $nullNode, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, ObjectNode $objectNode, ObjectReader $objectReader, ObjectWriter $objectWriter, Of $of, OffsetDateTime $offsetDateTime, OffsetTime $offsetTime, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast) {
3165131492 $this->dummy = $dummy;
31493+ $this->mutable = $mutable;
31494+ $this->mutating = $mutating;
3165231495 $this->namespace = $namespace;
3165331496 $this->native = $native;
3165431497 $this->new = $new;
@@ -31679,6 +31522,8 @@ class Obj4 {
3167931522 $this->objectReader = $objectReader;
3168031523 $this->objectWriter = $objectWriter;
3168131524 $this->of = $of;
31525+ $this->offsetDateTime = $offsetDateTime;
31526+ $this->offsetTime = $offsetTime;
3168231527 $this->oneway = $oneway;
3168331528 $this->open = $open;
3168431529 $this->operator = $operator;
@@ -31709,10 +31554,6 @@ class Obj4 {
3170931554 $this->regExp = $regExp;
3171031555 $this->register = $register;
3171131556 $this->reinterpretCast = $reinterpretCast;
31712- $this->repeat = $repeat;
31713- $this->require = $require;
31714- $this->required = $required;
31715- $this->requires = $requires;
3171631557 }
3171731558
3171831559 /**
@@ -31762,6 +31603,102 @@ class Obj4 {
3176231603 return 31; /*31:dummy*/
3176331604 }
3176431605
31606+ /**
31607+ * @param stdClass $value
31608+ * @throws Exception
31609+ * @return Mutable
31610+ */
31611+ public static function fromMutable(stdClass $value): Mutable {
31612+ return Mutable::from($value); /*class*/
31613+ }
31614+
31615+ /**
31616+ * @throws Exception
31617+ * @return stdClass
31618+ */
31619+ public function toMutable(): stdClass {
31620+ if (Obj4::validateMutable($this->mutable)) {
31621+ return $this->mutable->to(); /*class*/
31622+ }
31623+ throw new Exception('never get to this Obj4::mutable');
31624+ }
31625+
31626+ /**
31627+ * @param Mutable
31628+ * @return bool
31629+ * @throws Exception
31630+ */
31631+ public static function validateMutable(Mutable $value): bool {
31632+ $value->validate();
31633+ return true;
31634+ }
31635+
31636+ /**
31637+ * @throws Exception
31638+ * @return Mutable
31639+ */
31640+ public function getMutable(): Mutable {
31641+ if (Obj4::validateMutable($this->mutable)) {
31642+ return $this->mutable;
31643+ }
31644+ throw new Exception('never get to getMutable Obj4::mutable');
31645+ }
31646+
31647+ /**
31648+ * @return Mutable
31649+ */
31650+ public static function sampleMutable(): Mutable {
31651+ return Mutable::sample(); /*32:mutable*/
31652+ }
31653+
31654+ /**
31655+ * @param stdClass $value
31656+ * @throws Exception
31657+ * @return Mutating
31658+ */
31659+ public static function fromMutating(stdClass $value): Mutating {
31660+ return Mutating::from($value); /*class*/
31661+ }
31662+
31663+ /**
31664+ * @throws Exception
31665+ * @return stdClass
31666+ */
31667+ public function toMutating(): stdClass {
31668+ if (Obj4::validateMutating($this->mutating)) {
31669+ return $this->mutating->to(); /*class*/
31670+ }
31671+ throw new Exception('never get to this Obj4::mutating');
31672+ }
31673+
31674+ /**
31675+ * @param Mutating
31676+ * @return bool
31677+ * @throws Exception
31678+ */
31679+ public static function validateMutating(Mutating $value): bool {
31680+ $value->validate();
31681+ return true;
31682+ }
31683+
31684+ /**
31685+ * @throws Exception
31686+ * @return Mutating
31687+ */
31688+ public function getMutating(): Mutating {
31689+ if (Obj4::validateMutating($this->mutating)) {
31690+ return $this->mutating;
31691+ }
31692+ throw new Exception('never get to getMutating Obj4::mutating');
31693+ }
31694+
31695+ /**
31696+ * @return Mutating
31697+ */
31698+ public static function sampleMutating(): Mutating {
31699+ return Mutating::sample(); /*33:mutating*/
31700+ }
31701+
3176531702 /**
3176631703 * @param stdClass $value
3176731704 * @throws Exception
@@ -31807,7 +31744,7 @@ class Obj4 {
3180731744 * @return NamespaceClass
3180831745 */
3180931746 public static function sampleNamespace(): NamespaceClass {
31810- return NamespaceClass::sample(); /*32:namespace*/
31747+ return NamespaceClass::sample(); /*34:namespace*/
3181131748 }
3181231749
3181331750 /**
@@ -31855,7 +31792,7 @@ class Obj4 {
3185531792 * @return Native
3185631793 */
3185731794 public static function sampleNative(): Native {
31858- return Native::sample(); /*33:native*/
31795+ return Native::sample(); /*35:native*/
3185931796 }
3186031797
3186131798 /**
@@ -31903,7 +31840,7 @@ class Obj4 {
3190331840 * @return NewClass
3190431841 */
3190531842 public static function sampleNew(): NewClass {
31906- return NewClass::sample(); /*34:new*/
31843+ return NewClass::sample(); /*36:new*/
3190731844 }
3190831845
3190931846 /**
@@ -31951,7 +31888,7 @@ class Obj4 {
3195131888 * @return Newtonsoft
3195231889 */
3195331890 public static function sampleNewtonsoft(): Newtonsoft {
31954- return Newtonsoft::sample(); /*35:newtonsoft*/
31891+ return Newtonsoft::sample(); /*37:newtonsoft*/
3195531892 }
3195631893
3195731894 /**
@@ -31999,7 +31936,7 @@ class Obj4 {
3199931936 * @return Nil
3200031937 */
3200131938 public static function sampleNil(): Nil {
32002- return Nil::sample(); /*36:nil*/
31939+ return Nil::sample(); /*38:nil*/
3200331940 }
3200431941
3200531942 /**
@@ -32047,7 +31984,7 @@ class Obj4 {
3204731984 * @return No
3204831985 */
3204931986 public static function sampleNo(): No {
32050- return No::sample(); /*37:no*/
31987+ return No::sample(); /*39:no*/
3205131988 }
3205231989
3205331990 /**
@@ -32095,7 +32032,7 @@ class Obj4 {
3209532032 * @return NoSuchMethod
3209632033 */
3209732034 public static function sampleNoSuchMethod(): NoSuchMethod {
32098- return NoSuchMethod::sample(); /*38:noSuchMethod*/
32035+ return NoSuchMethod::sample(); /*40:noSuchMethod*/
3209932036 }
3210032037
3210132038 /**
@@ -32143,7 +32080,7 @@ class Obj4 {
3214332080 * @return Noexcept
3214432081 */
3214532082 public static function sampleNoexcept(): Noexcept {
32146- return Noexcept::sample(); /*39:noexcept*/
32083+ return Noexcept::sample(); /*41:noexcept*/
3214732084 }
3214832085
3214932086 /**
@@ -32191,7 +32128,7 @@ class Obj4 {
3219132128 * @return Nonatomic
3219232129 */
3219332130 public static function sampleNonatomic(): Nonatomic {
32194- return Nonatomic::sample(); /*40:nonatomic*/
32131+ return Nonatomic::sample(); /*42:nonatomic*/
3219532132 }
3219632133
3219732134 /**
@@ -32239,7 +32176,7 @@ class Obj4 {
3223932176 * @return None
3224032177 */
3224132178 public static function sampleNone(): None {
32242- return None::sample(); /*41:none*/
32179+ return None::sample(); /*43:none*/
3224332180 }
3224432181
3224532182 /**
@@ -32287,7 +32224,7 @@ class Obj4 {
3228732224 * @return Nonlocal
3228832225 */
3228932226 public static function sampleNonlocal(): Nonlocal {
32290- return Nonlocal::sample(); /*42:nonlocal*/
32227+ return Nonlocal::sample(); /*44:nonlocal*/
3229132228 }
3229232229
3229332230 /**
@@ -32335,7 +32272,7 @@ class Obj4 {
3233532272 * @return Nonmutating
3233632273 */
3233732274 public static function sampleNonmutating(): Nonmutating {
32338- return Nonmutating::sample(); /*43:nonmutating*/
32275+ return Nonmutating::sample(); /*45:nonmutating*/
3233932276 }
3234032277
3234132278 /**
@@ -32383,7 +32320,7 @@ class Obj4 {
3238332320 * @return Not
3238432321 */
3238532322 public static function sampleNot(): Not {
32386- return Not::sample(); /*44:not*/
32323+ return Not::sample(); /*46:not*/
3238732324 }
3238832325
3238932326 /**
@@ -32431,7 +32368,7 @@ class Obj4 {
3243132368 * @return NotEq
3243232369 */
3243332370 public static function sampleNotEq(): NotEq {
32434- return NotEq::sample(); /*45:notEq*/
32371+ return NotEq::sample(); /*47:notEq*/
3243532372 }
3243632373
3243732374 /**
@@ -32479,7 +32416,7 @@ class Obj4 {
3247932416 * @return NSError
3248032417 */
3248132418 public static function sampleNSError(): NSError {
32482- return NSError::sample(); /*46:nsError*/
32419+ return NSError::sample(); /*48:nsError*/
3248332420 }
3248432421
3248532422 /**
@@ -32527,7 +32464,7 @@ class Obj4 {
3252732464 * @return NSObject
3252832465 */
3252932466 public static function sampleNSObject(): NSObject {
32530- return NSObject::sample(); /*47:nsObject*/
32467+ return NSObject::sample(); /*49:nsObject*/
3253132468 }
3253232469
3253332470 /**
@@ -32575,7 +32512,7 @@ class Obj4 {
3257532512 * @return NSString
3257632513 */
3257732514 public static function sampleNSString(): NSString {
32578- return NSString::sample(); /*48:nsString*/
32515+ return NSString::sample(); /*50:nsString*/
3257932516 }
3258032517
3258132518 /**
@@ -32623,7 +32560,7 @@ class Obj4 {
3262332560 * @return NULLClass
3262432561 */
3262532562 public static function sampleNull(): NULLClass {
32626- return NULLClass::sample(); /*49:null*/
32563+ return NULLClass::sample(); /*51:null*/
3262732564 }
3262832565
3262932566 /**
@@ -32671,7 +32608,7 @@ class Obj4 {
3267132608 * @return NullNode
3267232609 */
3267332610 public static function sampleNullNode(): NullNode {
32674- return NullNode::sample(); /*50:nullNode*/
32611+ return NullNode::sample(); /*52:nullNode*/
3267532612 }
3267632613
3267732614 /**
@@ -32719,7 +32656,7 @@ class Obj4 {
3271932656 * @return Nullptr
3272032657 */
3272132658 public static function sampleNullptr(): Nullptr {
32722- return Nullptr::sample(); /*51:nullptr*/
32659+ return Nullptr::sample(); /*53:nullptr*/
3272332660 }
3272432661
3272532662 /**
@@ -32767,7 +32704,7 @@ class Obj4 {
3276732704 * @return Number
3276832705 */
3276932706 public static function sampleNumber(): Number {
32770- return Number::sample(); /*52:number*/
32707+ return Number::sample(); /*54:number*/
3277132708 }
3277232709
3277332710 /**
@@ -32815,7 +32752,7 @@ class Obj4 {
3281532752 * @return NoneClass
3281632753 */
3281732754 public static function sampleObj4None(): NoneClass {
32818- return NoneClass::sample(); /*53:obj4None*/
32755+ return NoneClass::sample(); /*55:obj4None*/
3281932756 }
3282032757
3282132758 /**
@@ -32863,7 +32800,7 @@ class Obj4 {
3286332800 * @return Obj4Null
3286432801 */
3286532802 public static function sampleObj4Null(): Obj4Null {
32866- return Obj4Null::sample(); /*54:obj4Null*/
32803+ return Obj4Null::sample(); /*56:obj4Null*/
3286732804 }
3286832805
3286932806 /**
@@ -32911,7 +32848,7 @@ class Obj4 {
3291132848 * @return ProtocolClass
3291232849 */
3291332850 public static function sampleObj4Protocol(): ProtocolClass {
32914- return ProtocolClass::sample(); /*55:obj4Protocol*/
32851+ return ProtocolClass::sample(); /*57:obj4Protocol*/
3291532852 }
3291632853
3291732854 /**
@@ -32959,7 +32896,7 @@ class Obj4 {
3295932896 * @return ObjectClass
3296032897 */
3296132898 public static function sampleObject(): ObjectClass {
32962- return ObjectClass::sample(); /*56:object*/
32899+ return ObjectClass::sample(); /*58:object*/
3296332900 }
3296432901
3296532902 /**
@@ -33007,7 +32944,7 @@ class Obj4 {
3300732944 * @return ObjectMapper
3300832945 */
3300932946 public static function sampleObjectMapper(): ObjectMapper {
33010- return ObjectMapper::sample(); /*57:objectMapper*/
32947+ return ObjectMapper::sample(); /*59:objectMapper*/
3301132948 }
3301232949
3301332950 /**
@@ -33055,7 +32992,7 @@ class Obj4 {
3305532992 * @return ObjectNode
3305632993 */
3305732994 public static function sampleObjectNode(): ObjectNode {
33058- return ObjectNode::sample(); /*58:objectNode*/
32995+ return ObjectNode::sample(); /*60:objectNode*/
3305932996 }
3306032997
3306132998 /**
@@ -33103,7 +33040,7 @@ class Obj4 {
3310333040 * @return ObjectReader
3310433041 */
3310533042 public static function sampleObjectReader(): ObjectReader {
33106- return ObjectReader::sample(); /*59:objectReader*/
33043+ return ObjectReader::sample(); /*61:objectReader*/
3310733044 }
3310833045
3310933046 /**
@@ -33151,7 +33088,7 @@ class Obj4 {
3315133088 * @return ObjectWriter
3315233089 */
3315333090 public static function sampleObjectWriter(): ObjectWriter {
33154- return ObjectWriter::sample(); /*60:objectWriter*/
33091+ return ObjectWriter::sample(); /*62:objectWriter*/
3315533092 }
3315633093
3315733094 /**
@@ -33199,7 +33136,103 @@ class Obj4 {
3319933136 * @return Of
3320033137 */
3320133138 public static function sampleOf(): Of {
33202- return Of::sample(); /*61:of*/
33139+ return Of::sample(); /*63:of*/
33140+ }
33141+
33142+ /**
33143+ * @param stdClass $value
33144+ * @throws Exception
33145+ * @return OffsetDateTime
33146+ */
33147+ public static function fromOffsetDateTime(stdClass $value): OffsetDateTime {
33148+ return OffsetDateTime::from($value); /*class*/
33149+ }
33150+
33151+ /**
33152+ * @throws Exception
33153+ * @return stdClass
33154+ */
33155+ public function toOffsetDateTime(): stdClass {
33156+ if (Obj4::validateOffsetDateTime($this->offsetDateTime)) {
33157+ return $this->offsetDateTime->to(); /*class*/
33158+ }
33159+ throw new Exception('never get to this Obj4::offsetDateTime');
33160+ }
33161+
33162+ /**
33163+ * @param OffsetDateTime
33164+ * @return bool
33165+ * @throws Exception
33166+ */
33167+ public static function validateOffsetDateTime(OffsetDateTime $value): bool {
33168+ $value->validate();
33169+ return true;
33170+ }
33171+
33172+ /**
33173+ * @throws Exception
33174+ * @return OffsetDateTime
33175+ */
33176+ public function getOffsetDateTime(): OffsetDateTime {
33177+ if (Obj4::validateOffsetDateTime($this->offsetDateTime)) {
33178+ return $this->offsetDateTime;
33179+ }
33180+ throw new Exception('never get to getOffsetDateTime Obj4::offsetDateTime');
33181+ }
33182+
33183+ /**
33184+ * @return OffsetDateTime
33185+ */
33186+ public static function sampleOffsetDateTime(): OffsetDateTime {
33187+ return OffsetDateTime::sample(); /*64:offsetDateTime*/
33188+ }
33189+
33190+ /**
33191+ * @param stdClass $value
33192+ * @throws Exception
33193+ * @return OffsetTime
33194+ */
33195+ public static function fromOffsetTime(stdClass $value): OffsetTime {
33196+ return OffsetTime::from($value); /*class*/
33197+ }
33198+
33199+ /**
33200+ * @throws Exception
33201+ * @return stdClass
33202+ */
33203+ public function toOffsetTime(): stdClass {
33204+ if (Obj4::validateOffsetTime($this->offsetTime)) {
33205+ return $this->offsetTime->to(); /*class*/
33206+ }
33207+ throw new Exception('never get to this Obj4::offsetTime');
33208+ }
33209+
33210+ /**
33211+ * @param OffsetTime
33212+ * @return bool
33213+ * @throws Exception
33214+ */
33215+ public static function validateOffsetTime(OffsetTime $value): bool {
33216+ $value->validate();
33217+ return true;
33218+ }
33219+
33220+ /**
33221+ * @throws Exception
33222+ * @return OffsetTime
33223+ */
33224+ public function getOffsetTime(): OffsetTime {
33225+ if (Obj4::validateOffsetTime($this->offsetTime)) {
33226+ return $this->offsetTime;
33227+ }
33228+ throw new Exception('never get to getOffsetTime Obj4::offsetTime');
33229+ }
33230+
33231+ /**
33232+ * @return OffsetTime
33233+ */
33234+ public static function sampleOffsetTime(): OffsetTime {
33235+ return OffsetTime::sample(); /*65:offsetTime*/
3320333236 }
3320433237
3320533238 /**
@@ -33247,7 +33280,7 @@ class Obj4 {
3324733280 * @return Oneway
3324833281 */
3324933282 public static function sampleOneway(): Oneway {
33250- return Oneway::sample(); /*62:oneway*/
33283+ return Oneway::sample(); /*66:oneway*/
3325133284 }
3325233285
3325333286 /**
@@ -33295,7 +33328,7 @@ class Obj4 {
3329533328 * @return Open
3329633329 */
3329733330 public static function sampleOpen(): Open {
33298- return Open::sample(); /*63:open*/
33331+ return Open::sample(); /*67:open*/
3329933332 }
3330033333
3330133334 /**
@@ -33343,7 +33376,7 @@ class Obj4 {
3334333376 * @return Operator
3334433377 */
3334533378 public static function sampleOperator(): Operator {
33346- return Operator::sample(); /*64:operator*/
33379+ return Operator::sample(); /*68:operator*/
3334733380 }
3334833381
3334933382 /**
@@ -33391,7 +33424,7 @@ class Obj4 {
3339133424 * @return Optional
3339233425 */
3339333426 public static function sampleOptional(): Optional {
33394- return Optional::sample(); /*65:optional*/
33427+ return Optional::sample(); /*69:optional*/
3339533428 }
3339633429
3339733430 /**
@@ -33439,7 +33472,7 @@ class Obj4 {
3343933472 * @return OrClass
3344033473 */
3344133474 public static function sampleOr(): OrClass {
33442- return OrClass::sample(); /*66:or*/
33475+ return OrClass::sample(); /*70:or*/
3344333476 }
3344433477
3344533478 /**
@@ -33487,7 +33520,7 @@ class Obj4 {
3348733520 * @return OrEq
3348833521 */
3348933522 public static function sampleOrEq(): OrEq {
33490- return OrEq::sample(); /*67:orEq*/
33523+ return OrEq::sample(); /*71:orEq*/
3349133524 }
3349233525
3349333526 /**
@@ -33535,7 +33568,7 @@ class Obj4 {
3353533568 * @return Out
3353633569 */
3353733570 public static function sampleOut(): Out {
33538- return Out::sample(); /*68:out*/
33571+ return Out::sample(); /*72:out*/
3353933572 }
3354033573
3354133574 /**
@@ -33583,7 +33616,7 @@ class Obj4 {
3358333616 * @return OverrideClass
3358433617 */
3358533618 public static function sampleOverride(): OverrideClass {
33586- return OverrideClass::sample(); /*69:override*/
33619+ return OverrideClass::sample(); /*73:override*/
3358733620 }
3358833621
3358933622 /**
@@ -33631,7 +33664,7 @@ class Obj4 {
3363133664 * @return Package
3363233665 */
3363333666 public static function samplePackage(): Package {
33634- return Package::sample(); /*70:package*/
33667+ return Package::sample(); /*74:package*/
3363533668 }
3363633669
3363733670 /**
@@ -33679,7 +33712,7 @@ class Obj4 {
3367933712 * @return Params
3368033713 */
3368133714 public static function sampleParams(): Params {
33682- return Params::sample(); /*71:params*/
33715+ return Params::sample(); /*75:params*/
3368333716 }
3368433717
3368533718 /**
@@ -33727,7 +33760,7 @@ class Obj4 {
3372733760 * @return Pass
3372833761 */
3372933762 public static function samplePass(): Pass {
33730- return Pass::sample(); /*72:pass*/
33763+ return Pass::sample(); /*76:pass*/
3373133764 }
3373233765
3373333766 /**
@@ -33775,7 +33808,7 @@ class Obj4 {
3377533808 * @return Port
3377633809 */
3377733810 public static function samplePort(): Port {
33778- return Port::sample(); /*73:port*/
33811+ return Port::sample(); /*77:port*/
3377933812 }
3378033813
3378133814 /**
@@ -33823,7 +33856,7 @@ class Obj4 {
3382333856 * @return Postfix
3382433857 */
3382533858 public static function samplePostfix(): Postfix {
33826- return Postfix::sample(); /*74:postfix*/
33859+ return Postfix::sample(); /*78:postfix*/
3382733860 }
3382833861
3382933862 /**
@@ -33871,7 +33904,7 @@ class Obj4 {
3387133904 * @return Precedence
3387233905 */
3387333906 public static function samplePrecedence(): Precedence {
33874- return Precedence::sample(); /*75:precedence*/
33907+ return Precedence::sample(); /*79:precedence*/
3387533908 }
3387633909
3387733910 /**
@@ -33919,7 +33952,7 @@ class Obj4 {
3391933952 * @return Prefix
3392033953 */
3392133954 public static function samplePrefix(): Prefix {
33922- return Prefix::sample(); /*76:prefix*/
33955+ return Prefix::sample(); /*80:prefix*/
3392333956 }
3392433957
3392533958 /**
@@ -33967,7 +34000,7 @@ class Obj4 {
3396734000 * @return PrintClass
3396834001 */
3396934002 public static function samplePrint(): PrintClass {
33970- return PrintClass::sample(); /*77:print*/
34003+ return PrintClass::sample(); /*81:print*/
3397134004 }
3397234005
3397334006 /**
@@ -34015,7 +34048,7 @@ class Obj4 {
3401534048 * @return PrintMembers
3401634049 */
3401734050 public static function samplePrintMembers(): PrintMembers {
34018- return PrintMembers::sample(); /*78:printMembers*/
34051+ return PrintMembers::sample(); /*82:printMembers*/
3401934052 }
3402034053
3402134054 /**
@@ -34063,7 +34096,7 @@ class Obj4 {
3406334096 * @return Printf
3406434097 */
3406534098 public static function samplePrintf(): Printf {
34066- return Printf::sample(); /*79:printf*/
34099+ return Printf::sample(); /*83:printf*/
3406734100 }
3406834101
3406934102 /**
@@ -34111,7 +34144,7 @@ class Obj4 {
3411134144 * @return PrivateClass
3411234145 */
3411334146 public static function samplePrivate(): PrivateClass {
34114- return PrivateClass::sample(); /*80:private*/
34147+ return PrivateClass::sample(); /*84:private*/
3411534148 }
3411634149
3411734150 /**
@@ -34159,7 +34192,7 @@ class Obj4 {
3415934192 * @return ProtectedClass
3416034193 */
3416134194 public static function sampleProtected(): ProtectedClass {
34162- return ProtectedClass::sample(); /*81:protected*/
34195+ return ProtectedClass::sample(); /*85:protected*/
3416334196 }
3416434197
3416534198 /**
@@ -34207,7 +34240,7 @@ class Obj4 {
3420734240 * @return Protocol
3420834241 */
3420934242 public static function sampleProtocol(): Protocol {
34210- return Protocol::sample(); /*82:protocol*/
34243+ return Protocol::sample(); /*86:protocol*/
3421134244 }
3421234245
3421334246 /**
@@ -34255,7 +34288,7 @@ class Obj4 {
3425534288 * @return PublicClass
3425634289 */
3425734290 public static function samplePublic(): PublicClass {
34258- return PublicClass::sample(); /*83:public*/
34291+ return PublicClass::sample(); /*87:public*/
3425934292 }
3426034293
3426134294 /**
@@ -34303,7 +34336,7 @@ class Obj4 {
3430334336 * @return Quicktype
3430434337 */
3430534338 public static function sampleQuicktype(): Quicktype {
34306- return Quicktype::sample(); /*84:quicktype*/
34339+ return Quicktype::sample(); /*88:quicktype*/
3430734340 }
3430834341
3430934342 /**
@@ -34351,7 +34384,7 @@ class Obj4 {
3435134384 * @return Raise
3435234385 */
3435334386 public static function sampleRaise(): Raise {
34354- return Raise::sample(); /*85:raise*/
34387+ return Raise::sample(); /*89:raise*/
3435534388 }
3435634389
3435734390 /**
@@ -34399,7 +34432,7 @@ class Obj4 {
3439934432 * @return Range
3440034433 */
3440134434 public static function sampleRange(): Range {
34402- return Range::sample(); /*86:range*/
34435+ return Range::sample(); /*90:range*/
3440334436 }
3440434437
3440534438 /**
@@ -34447,7 +34480,7 @@ class Obj4 {
3444734480 * @return ReadonlyClass
3444834481 */
3444934482 public static function sampleReadonly(): ReadonlyClass {
34450- return ReadonlyClass::sample(); /*87:readonly*/
34483+ return ReadonlyClass::sample(); /*91:readonly*/
3445134484 }
3445234485
3445334486 /**
@@ -34495,7 +34528,7 @@ class Obj4 {
3449534528 * @return Ref
3449634529 */
3449734530 public static function sampleRef(): Ref {
34498- return Ref::sample(); /*88:ref*/
34531+ return Ref::sample(); /*92:ref*/
3449934532 }
3450034533
3450134534 /**
@@ -34543,7 +34576,7 @@ class Obj4 {
3454334576 * @return RegExp
3454434577 */
3454534578 public static function sampleRegExp(): RegExp {
34546- return RegExp::sample(); /*89:regExp*/
34579+ return RegExp::sample(); /*93:regExp*/
3454734580 }
3454834581
3454934582 /**
@@ -34591,7 +34624,7 @@ class Obj4 {
3459134624 * @return Register
3459234625 */
3459334626 public static function sampleRegister(): Register {
34594- return Register::sample(); /*90:register*/
34627+ return Register::sample(); /*94:register*/
3459534628 }
3459634629
3459734630 /**
@@ -34639,199 +34672,7 @@ class Obj4 {
3463934672 * @return ReinterpretCast
3464034673 */
3464134674 public static function sampleReinterpretCast(): ReinterpretCast {
34642- return ReinterpretCast::sample(); /*91:reinterpretCast*/
34643- }
34644-
34645- /**
34646- * @param stdClass $value
34647- * @throws Exception
34648- * @return Repeat
34649- */
34650- public static function fromRepeat(stdClass $value): Repeat {
34651- return Repeat::from($value); /*class*/
34652- }
34653-
34654- /**
34655- * @throws Exception
34656- * @return stdClass
34657- */
34658- public function toRepeat(): stdClass {
34659- if (Obj4::validateRepeat($this->repeat)) {
34660- return $this->repeat->to(); /*class*/
34661- }
34662- throw new Exception('never get to this Obj4::repeat');
34663- }
34664-
34665- /**
34666- * @param Repeat
34667- * @return bool
34668- * @throws Exception
34669- */
34670- public static function validateRepeat(Repeat $value): bool {
34671- $value->validate();
34672- return true;
34673- }
34674-
34675- /**
34676- * @throws Exception
34677- * @return Repeat
34678- */
34679- public function getRepeat(): Repeat {
34680- if (Obj4::validateRepeat($this->repeat)) {
34681- return $this->repeat;
34682- }
34683- throw new Exception('never get to getRepeat Obj4::repeat');
34684- }
34685-
34686- /**
34687- * @return Repeat
34688- */
34689- public static function sampleRepeat(): Repeat {
34690- return Repeat::sample(); /*92:repeat*/
34691- }
34692-
34693- /**
34694- * @param stdClass $value
34695- * @throws Exception
34696- * @return RequireClass
34697- */
34698- public static function fromRequire(stdClass $value): RequireClass {
34699- return RequireClass::from($value); /*class*/
34700- }
34701-
34702- /**
34703- * @throws Exception
34704- * @return stdClass
34705- */
34706- public function toRequire(): stdClass {
34707- if (Obj4::validateRequire($this->require)) {
34708- return $this->require->to(); /*class*/
34709- }
34710- throw new Exception('never get to this Obj4::require');
34711- }
34712-
34713- /**
34714- * @param RequireClass
34715- * @return bool
34716- * @throws Exception
34717- */
34718- public static function validateRequire(RequireClass $value): bool {
34719- $value->validate();
34720- return true;
34721- }
34722-
34723- /**
34724- * @throws Exception
34725- * @return RequireClass
34726- */
34727- public function getRequire(): RequireClass {
34728- if (Obj4::validateRequire($this->require)) {
34729- return $this->require;
34730- }
34731- throw new Exception('never get to getRequire Obj4::require');
34732- }
34733-
34734- /**
34735- * @return RequireClass
34736- */
34737- public static function sampleRequire(): RequireClass {
34738- return RequireClass::sample(); /*93:require*/
34739- }
34740-
34741- /**
34742- * @param stdClass $value
34743- * @throws Exception
34744- * @return Required
34745- */
34746- public static function fromRequired(stdClass $value): Required {
34747- return Required::from($value); /*class*/
34748- }
34749-
34750- /**
34751- * @throws Exception
34752- * @return stdClass
34753- */
34754- public function toRequired(): stdClass {
34755- if (Obj4::validateRequired($this->required)) {
34756- return $this->required->to(); /*class*/
34757- }
34758- throw new Exception('never get to this Obj4::required');
34759- }
34760-
34761- /**
34762- * @param Required
34763- * @return bool
34764- * @throws Exception
34765- */
34766- public static function validateRequired(Required $value): bool {
34767- $value->validate();
34768- return true;
34769- }
34770-
34771- /**
34772- * @throws Exception
34773- * @return Required
34774- */
34775- public function getRequired(): Required {
34776- if (Obj4::validateRequired($this->required)) {
34777- return $this->required;
34778- }
34779- throw new Exception('never get to getRequired Obj4::required');
34780- }
34781-
34782- /**
34783- * @return Required
34784- */
34785- public static function sampleRequired(): Required {
34786- return Required::sample(); /*94:required*/
34787- }
34788-
34789- /**
34790- * @param stdClass $value
34791- * @throws Exception
34792- * @return Requires
34793- */
34794- public static function fromRequires(stdClass $value): Requires {
34795- return Requires::from($value); /*class*/
34796- }
34797-
34798- /**
34799- * @throws Exception
34800- * @return stdClass
34801- */
34802- public function toRequires(): stdClass {
34803- if (Obj4::validateRequires($this->requires)) {
34804- return $this->requires->to(); /*class*/
34805- }
34806- throw new Exception('never get to this Obj4::requires');
34807- }
34808-
34809- /**
34810- * @param Requires
34811- * @return bool
34812- * @throws Exception
34813- */
34814- public static function validateRequires(Requires $value): bool {
34815- $value->validate();
34816- return true;
34817- }
34818-
34819- /**
34820- * @throws Exception
34821- * @return Requires
34822- */
34823- public function getRequires(): Requires {
34824- if (Obj4::validateRequires($this->requires)) {
34825- return $this->requires;
34826- }
34827- throw new Exception('never get to getRequires Obj4::requires');
34828- }
34829-
34830- /**
34831- * @return Requires
34832- */
34833- public static function sampleRequires(): Requires {
34834- return Requires::sample(); /*95:requires*/
34675+ return ReinterpretCast::sample(); /*95:reinterpretCast*/
3483534676 }
3483634677
3483734678 /**
@@ -34840,6 +34681,8 @@ class Obj4 {
3484034681 */
3484134682 public function validate(): bool {
3484234683 return Obj4::validateDummy($this->dummy)
34684+ || Obj4::validateMutable($this->mutable)
34685+ || Obj4::validateMutating($this->mutating)
3484334686 || Obj4::validateNamespace($this->namespace)
3484434687 || Obj4::validateNative($this->native)
3484534688 || Obj4::validateNew($this->new)
@@ -34870,6 +34713,8 @@ class Obj4 {
3487034713 || Obj4::validateObjectReader($this->objectReader)
3487134714 || Obj4::validateObjectWriter($this->objectWriter)
3487234715 || Obj4::validateOf($this->of)
34716+ || Obj4::validateOffsetDateTime($this->offsetDateTime)
34717+ || Obj4::validateOffsetTime($this->offsetTime)
3487334718 || Obj4::validateOneway($this->oneway)
3487434719 || Obj4::validateOpen($this->open)
3487534720 || Obj4::validateOperator($this->operator)
@@ -34899,11 +34744,7 @@ class Obj4 {
3489934744 || Obj4::validateRef($this->ref)
3490034745 || Obj4::validateRegExp($this->regExp)
3490134746 || Obj4::validateRegister($this->register)
34902- || Obj4::validateReinterpretCast($this->reinterpretCast)
34903- || Obj4::validateRepeat($this->repeat)
34904- || Obj4::validateRequire($this->require)
34905- || Obj4::validateRequired($this->required)
34906- || Obj4::validateRequires($this->requires);
34747+ || Obj4::validateReinterpretCast($this->reinterpretCast);
3490734748 }
3490834749
3490934750 /**
@@ -34913,6 +34754,8 @@ class Obj4 {
3491334754 public function to(): stdClass {
3491434755 $out = new stdClass();
3491534756 $out->{'dummy'} = $this->toDummy();
34757+ $out->{'mutable'} = $this->toMutable();
34758+ $out->{'mutating'} = $this->toMutating();
3491634759 $out->{'namespace'} = $this->toNamespace();
3491734760 $out->{'native'} = $this->toNative();
3491834761 $out->{'new'} = $this->toNew();
@@ -34943,6 +34786,8 @@ class Obj4 {
3494334786 $out->{'ObjectReader'} = $this->toObjectReader();
3494434787 $out->{'ObjectWriter'} = $this->toObjectWriter();
3494534788 $out->{'of'} = $this->toOf();
34789+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
34790+ $out->{'OffsetTime'} = $this->toOffsetTime();
3494634791 $out->{'oneway'} = $this->toOneway();
3494734792 $out->{'open'} = $this->toOpen();
3494834793 $out->{'operator'} = $this->toOperator();
@@ -34973,10 +34818,6 @@ class Obj4 {
3497334818 $out->{'RegExp'} = $this->toRegExp();
3497434819 $out->{'register'} = $this->toRegister();
3497534820 $out->{'reinterpret_cast'} = $this->toReinterpretCast();
34976- $out->{'repeat'} = $this->toRepeat();
34977- $out->{'require'} = $this->toRequire();
34978- $out->{'required'} = $this->toRequired();
34979- $out->{'requires'} = $this->toRequires();
3498034821 return $out;
3498134822 }
3498234823
@@ -34989,6 +34830,12 @@ class Obj4 {
3498934830 if (!property_exists($obj, 'dummy')) {
3499034831 throw new Exception("Missing required property");
3499134832 }
34833+ if (!property_exists($obj, 'mutable')) {
34834+ throw new Exception("Missing required property");
34835+ }
34836+ if (!property_exists($obj, 'mutating')) {
34837+ throw new Exception("Missing required property");
34838+ }
3499234839 if (!property_exists($obj, 'namespace')) {
3499334840 throw new Exception("Missing required property");
3499434841 }
@@ -35079,6 +34926,12 @@ class Obj4 {
3507934926 if (!property_exists($obj, 'of')) {
3508034927 throw new Exception("Missing required property");
3508134928 }
34929+ if (!property_exists($obj, 'OffsetDateTime')) {
34930+ throw new Exception("Missing required property");
34931+ }
34932+ if (!property_exists($obj, 'OffsetTime')) {
34933+ throw new Exception("Missing required property");
34934+ }
3508234935 if (!property_exists($obj, 'oneway')) {
3508334936 throw new Exception("Missing required property");
3508434937 }
@@ -35169,20 +35022,10 @@ class Obj4 {
3516935022 if (!property_exists($obj, 'reinterpret_cast')) {
3517035023 throw new Exception("Missing required property");
3517135024 }
35172- if (!property_exists($obj, 'repeat')) {
35173- throw new Exception("Missing required property");
35174- }
35175- if (!property_exists($obj, 'require')) {
35176- throw new Exception("Missing required property");
35177- }
35178- if (!property_exists($obj, 'required')) {
35179- throw new Exception("Missing required property");
35180- }
35181- if (!property_exists($obj, 'requires')) {
35182- throw new Exception("Missing required property");
35183- }
3518435025 return new Obj4(
3518535026 Obj4::fromDummy($obj->{'dummy'})
35027+ ,Obj4::fromMutable($obj->{'mutable'})
35028+ ,Obj4::fromMutating($obj->{'mutating'})
3518635029 ,Obj4::fromNamespace($obj->{'namespace'})
3518735030 ,Obj4::fromNative($obj->{'native'})
3518835031 ,Obj4::fromNew($obj->{'new'})
@@ -35213,6 +35056,8 @@ class Obj4 {
3521335056 ,Obj4::fromObjectReader($obj->{'ObjectReader'})
3521435057 ,Obj4::fromObjectWriter($obj->{'ObjectWriter'})
3521535058 ,Obj4::fromOf($obj->{'of'})
35059+ ,Obj4::fromOffsetDateTime($obj->{'OffsetDateTime'})
35060+ ,Obj4::fromOffsetTime($obj->{'OffsetTime'})
3521635061 ,Obj4::fromOneway($obj->{'oneway'})
3521735062 ,Obj4::fromOpen($obj->{'open'})
3521835063 ,Obj4::fromOperator($obj->{'operator'})
@@ -35243,10 +35088,6 @@ class Obj4 {
3524335088 ,Obj4::fromRegExp($obj->{'RegExp'})
3524435089 ,Obj4::fromRegister($obj->{'register'})
3524535090 ,Obj4::fromReinterpretCast($obj->{'reinterpret_cast'})
35246- ,Obj4::fromRepeat($obj->{'repeat'})
35247- ,Obj4::fromRequire($obj->{'require'})
35248- ,Obj4::fromRequired($obj->{'required'})
35249- ,Obj4::fromRequires($obj->{'requires'})
3525035091 );
3525135092 }
3525235093
@@ -35256,6 +35097,8 @@ class Obj4 {
3525635097 public static function sample(): Obj4 {
3525735098 return new Obj4(
3525835099 Obj4::sampleDummy()
35100+ ,Obj4::sampleMutable()
35101+ ,Obj4::sampleMutating()
3525935102 ,Obj4::sampleNamespace()
3526035103 ,Obj4::sampleNative()
3526135104 ,Obj4::sampleNew()
@@ -35286,6 +35129,8 @@ class Obj4 {
3528635129 ,Obj4::sampleObjectReader()
3528735130 ,Obj4::sampleObjectWriter()
3528835131 ,Obj4::sampleOf()
35132+ ,Obj4::sampleOffsetDateTime()
35133+ ,Obj4::sampleOffsetTime()
3528935134 ,Obj4::sampleOneway()
3529035135 ,Obj4::sampleOpen()
3529135136 ,Obj4::sampleOperator()
@@ -35316,10 +35161,208 @@ class Obj4 {
3531635161 ,Obj4::sampleRegExp()
3531735162 ,Obj4::sampleRegister()
3531835163 ,Obj4::sampleReinterpretCast()
35319- ,Obj4::sampleRepeat()
35320- ,Obj4::sampleRequire()
35321- ,Obj4::sampleRequired()
35322- ,Obj4::sampleRequires()
35164+ );
35165+ }
35166+}
35167+
35168+// This is an autogenerated file:Mutable
35169+
35170+class Mutable {
35171+ private int $mutable; // json:mutable Required
35172+
35173+ /**
35174+ * @param int $mutable
35175+ */
35176+ public function __construct(int $mutable) {
35177+ $this->mutable = $mutable;
35178+ }
35179+
35180+ /**
35181+ * @param int $value
35182+ * @throws Exception
35183+ * @return int
35184+ */
35185+ public static function fromMutable(int $value): int {
35186+ return $value; /*int*/
35187+ }
35188+
35189+ /**
35190+ * @throws Exception
35191+ * @return int
35192+ */
35193+ public function toMutable(): int {
35194+ if (Mutable::validateMutable($this->mutable)) {
35195+ return $this->mutable; /*int*/
35196+ }
35197+ throw new Exception('never get to this Mutable::mutable');
35198+ }
35199+
35200+ /**
35201+ * @param int
35202+ * @return bool
35203+ * @throws Exception
35204+ */
35205+ public static function validateMutable(int $value): bool {
35206+ return true;
35207+ }
35208+
35209+ /**
35210+ * @throws Exception
35211+ * @return int
35212+ */
35213+ public function getMutable(): int {
35214+ if (Mutable::validateMutable($this->mutable)) {
35215+ return $this->mutable;
35216+ }
35217+ throw new Exception('never get to getMutable Mutable::mutable');
35218+ }
35219+
35220+ /**
35221+ * @return int
35222+ */
35223+ public static function sampleMutable(): int {
35224+ return 31; /*31:mutable*/
35225+ }
35226+
35227+ /**
35228+ * @throws Exception
35229+ * @return bool
35230+ */
35231+ public function validate(): bool {
35232+ return Mutable::validateMutable($this->mutable);
35233+ }
35234+
35235+ /**
35236+ * @return stdClass
35237+ * @throws Exception
35238+ */
35239+ public function to(): stdClass {
35240+ $out = new stdClass();
35241+ $out->{'mutable'} = $this->toMutable();
35242+ return $out;
35243+ }
35244+
35245+ /**
35246+ * @param stdClass $obj
35247+ * @return Mutable
35248+ * @throws Exception
35249+ */
35250+ public static function from(stdClass $obj): Mutable {
35251+ if (!property_exists($obj, 'mutable')) {
35252+ throw new Exception("Missing required property");
35253+ }
35254+ return new Mutable(
35255+ Mutable::fromMutable($obj->{'mutable'})
35256+ );
35257+ }
35258+
35259+ /**
35260+ * @return Mutable
35261+ */
35262+ public static function sample(): Mutable {
35263+ return new Mutable(
35264+ Mutable::sampleMutable()
35265+ );
35266+ }
35267+}
35268+
35269+// This is an autogenerated file:Mutating
35270+
35271+class Mutating {
35272+ private int $mutating; // json:mutating Required
35273+
35274+ /**
35275+ * @param int $mutating
35276+ */
35277+ public function __construct(int $mutating) {
35278+ $this->mutating = $mutating;
35279+ }
35280+
35281+ /**
35282+ * @param int $value
35283+ * @throws Exception
35284+ * @return int
35285+ */
35286+ public static function fromMutating(int $value): int {
35287+ return $value; /*int*/
35288+ }
35289+
35290+ /**
35291+ * @throws Exception
35292+ * @return int
35293+ */
35294+ public function toMutating(): int {
35295+ if (Mutating::validateMutating($this->mutating)) {
35296+ return $this->mutating; /*int*/
35297+ }
35298+ throw new Exception('never get to this Mutating::mutating');
35299+ }
35300+
35301+ /**
35302+ * @param int
35303+ * @return bool
35304+ * @throws Exception
35305+ */
35306+ public static function validateMutating(int $value): bool {
35307+ return true;
35308+ }
35309+
35310+ /**
35311+ * @throws Exception
35312+ * @return int
35313+ */
35314+ public function getMutating(): int {
35315+ if (Mutating::validateMutating($this->mutating)) {
35316+ return $this->mutating;
35317+ }
35318+ throw new Exception('never get to getMutating Mutating::mutating');
35319+ }
35320+
35321+ /**
35322+ * @return int
35323+ */
35324+ public static function sampleMutating(): int {
35325+ return 31; /*31:mutating*/
35326+ }
35327+
35328+ /**
35329+ * @throws Exception
35330+ * @return bool
35331+ */
35332+ public function validate(): bool {
35333+ return Mutating::validateMutating($this->mutating);
35334+ }
35335+
35336+ /**
35337+ * @return stdClass
35338+ * @throws Exception
35339+ */
35340+ public function to(): stdClass {
35341+ $out = new stdClass();
35342+ $out->{'mutating'} = $this->toMutating();
35343+ return $out;
35344+ }
35345+
35346+ /**
35347+ * @param stdClass $obj
35348+ * @return Mutating
35349+ * @throws Exception
35350+ */
35351+ public static function from(stdClass $obj): Mutating {
35352+ if (!property_exists($obj, 'mutating')) {
35353+ throw new Exception("Missing required property");
35354+ }
35355+ return new Mutating(
35356+ Mutating::fromMutating($obj->{'mutating'})
35357+ );
35358+ }
35359+
35360+ /**
35361+ * @return Mutating
35362+ */
35363+ public static function sample(): Mutating {
35364+ return new Mutating(
35365+ Mutating::sampleMutating()
3532335366 );
3532435367 }
3532535368 }
@@ -38354,6 +38397,208 @@ class Of {
3835438397 }
3835538398 }
3835638399
38400+// This is an autogenerated file:OffsetDateTime
38401+
38402+class OffsetDateTime {
38403+ private int $offsetDateTime; // json:OffsetDateTime Required
38404+
38405+ /**
38406+ * @param int $offsetDateTime
38407+ */
38408+ public function __construct(int $offsetDateTime) {
38409+ $this->offsetDateTime = $offsetDateTime;
38410+ }
38411+
38412+ /**
38413+ * @param int $value
38414+ * @throws Exception
38415+ * @return int
38416+ */
38417+ public static function fromOffsetDateTime(int $value): int {
38418+ return $value; /*int*/
38419+ }
38420+
38421+ /**
38422+ * @throws Exception
38423+ * @return int
38424+ */
38425+ public function toOffsetDateTime(): int {
38426+ if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) {
38427+ return $this->offsetDateTime; /*int*/
38428+ }
38429+ throw new Exception('never get to this OffsetDateTime::offsetDateTime');
38430+ }
38431+
38432+ /**
38433+ * @param int
38434+ * @return bool
38435+ * @throws Exception
38436+ */
38437+ public static function validateOffsetDateTime(int $value): bool {
38438+ return true;
38439+ }
38440+
38441+ /**
38442+ * @throws Exception
38443+ * @return int
38444+ */
38445+ public function getOffsetDateTime(): int {
38446+ if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) {
38447+ return $this->offsetDateTime;
38448+ }
38449+ throw new Exception('never get to getOffsetDateTime OffsetDateTime::offsetDateTime');
38450+ }
38451+
38452+ /**
38453+ * @return int
38454+ */
38455+ public static function sampleOffsetDateTime(): int {
38456+ return 31; /*31:offsetDateTime*/
38457+ }
38458+
38459+ /**
38460+ * @throws Exception
38461+ * @return bool
38462+ */
38463+ public function validate(): bool {
38464+ return OffsetDateTime::validateOffsetDateTime($this->offsetDateTime);
38465+ }
38466+
38467+ /**
38468+ * @return stdClass
38469+ * @throws Exception
38470+ */
38471+ public function to(): stdClass {
38472+ $out = new stdClass();
38473+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
38474+ return $out;
38475+ }
38476+
38477+ /**
38478+ * @param stdClass $obj
38479+ * @return OffsetDateTime
38480+ * @throws Exception
38481+ */
38482+ public static function from(stdClass $obj): OffsetDateTime {
38483+ if (!property_exists($obj, 'OffsetDateTime')) {
38484+ throw new Exception("Missing required property");
38485+ }
38486+ return new OffsetDateTime(
38487+ OffsetDateTime::fromOffsetDateTime($obj->{'OffsetDateTime'})
38488+ );
38489+ }
38490+
38491+ /**
38492+ * @return OffsetDateTime
38493+ */
38494+ public static function sample(): OffsetDateTime {
38495+ return new OffsetDateTime(
38496+ OffsetDateTime::sampleOffsetDateTime()
38497+ );
38498+ }
38499+}
38500+
38501+// This is an autogenerated file:OffsetTime
38502+
38503+class OffsetTime {
38504+ private int $offsetTime; // json:OffsetTime Required
38505+
38506+ /**
38507+ * @param int $offsetTime
38508+ */
38509+ public function __construct(int $offsetTime) {
38510+ $this->offsetTime = $offsetTime;
38511+ }
38512+
38513+ /**
38514+ * @param int $value
38515+ * @throws Exception
38516+ * @return int
38517+ */
38518+ public static function fromOffsetTime(int $value): int {
38519+ return $value; /*int*/
38520+ }
38521+
38522+ /**
38523+ * @throws Exception
38524+ * @return int
38525+ */
38526+ public function toOffsetTime(): int {
38527+ if (OffsetTime::validateOffsetTime($this->offsetTime)) {
38528+ return $this->offsetTime; /*int*/
38529+ }
38530+ throw new Exception('never get to this OffsetTime::offsetTime');
38531+ }
38532+
38533+ /**
38534+ * @param int
38535+ * @return bool
38536+ * @throws Exception
38537+ */
38538+ public static function validateOffsetTime(int $value): bool {
38539+ return true;
38540+ }
38541+
38542+ /**
38543+ * @throws Exception
38544+ * @return int
38545+ */
38546+ public function getOffsetTime(): int {
38547+ if (OffsetTime::validateOffsetTime($this->offsetTime)) {
38548+ return $this->offsetTime;
38549+ }
38550+ throw new Exception('never get to getOffsetTime OffsetTime::offsetTime');
38551+ }
38552+
38553+ /**
38554+ * @return int
38555+ */
38556+ public static function sampleOffsetTime(): int {
38557+ return 31; /*31:offsetTime*/
38558+ }
38559+
38560+ /**
38561+ * @throws Exception
38562+ * @return bool
38563+ */
38564+ public function validate(): bool {
38565+ return OffsetTime::validateOffsetTime($this->offsetTime);
38566+ }
38567+
38568+ /**
38569+ * @return stdClass
38570+ * @throws Exception
38571+ */
38572+ public function to(): stdClass {
38573+ $out = new stdClass();
38574+ $out->{'OffsetTime'} = $this->toOffsetTime();
38575+ return $out;
38576+ }
38577+
38578+ /**
38579+ * @param stdClass $obj
38580+ * @return OffsetTime
38581+ * @throws Exception
38582+ */
38583+ public static function from(stdClass $obj): OffsetTime {
38584+ if (!property_exists($obj, 'OffsetTime')) {
38585+ throw new Exception("Missing required property");
38586+ }
38587+ return new OffsetTime(
38588+ OffsetTime::fromOffsetTime($obj->{'OffsetTime'})
38589+ );
38590+ }
38591+
38592+ /**
38593+ * @return OffsetTime
38594+ */
38595+ public static function sample(): OffsetTime {
38596+ return new OffsetTime(
38597+ OffsetTime::sampleOffsetTime()
38598+ );
38599+ }
38600+}
38601+
3835738602 // This is an autogenerated file:Oneway
3835838603
3835938604 class Oneway {
@@ -41387,410 +41632,6 @@ class ReinterpretCast {
4138741632 }
4138841633 }
4138941634
41390-// This is an autogenerated file:Repeat
41391-
41392-class Repeat {
41393- private int $repeat; // json:repeat Required
41394-
41395- /**
41396- * @param int $repeat
41397- */
41398- public function __construct(int $repeat) {
41399- $this->repeat = $repeat;
41400- }
41401-
41402- /**
41403- * @param int $value
41404- * @throws Exception
41405- * @return int
41406- */
41407- public static function fromRepeat(int $value): int {
41408- return $value; /*int*/
41409- }
41410-
41411- /**
41412- * @throws Exception
41413- * @return int
41414- */
41415- public function toRepeat(): int {
41416- if (Repeat::validateRepeat($this->repeat)) {
41417- return $this->repeat; /*int*/
41418- }
41419- throw new Exception('never get to this Repeat::repeat');
41420- }
41421-
41422- /**
41423- * @param int
41424- * @return bool
41425- * @throws Exception
41426- */
41427- public static function validateRepeat(int $value): bool {
41428- return true;
41429- }
41430-
41431- /**
41432- * @throws Exception
41433- * @return int
41434- */
41435- public function getRepeat(): int {
41436- if (Repeat::validateRepeat($this->repeat)) {
41437- return $this->repeat;
41438- }
41439- throw new Exception('never get to getRepeat Repeat::repeat');
41440- }
41441-
41442- /**
41443- * @return int
41444- */
41445- public static function sampleRepeat(): int {
41446- return 31; /*31:repeat*/
41447- }
41448-
41449- /**
41450- * @throws Exception
41451- * @return bool
41452- */
41453- public function validate(): bool {
41454- return Repeat::validateRepeat($this->repeat);
41455- }
41456-
41457- /**
41458- * @return stdClass
41459- * @throws Exception
41460- */
41461- public function to(): stdClass {
41462- $out = new stdClass();
41463- $out->{'repeat'} = $this->toRepeat();
41464- return $out;
41465- }
41466-
41467- /**
41468- * @param stdClass $obj
41469- * @return Repeat
41470- * @throws Exception
41471- */
41472- public static function from(stdClass $obj): Repeat {
41473- if (!property_exists($obj, 'repeat')) {
41474- throw new Exception("Missing required property");
41475- }
41476- return new Repeat(
41477- Repeat::fromRepeat($obj->{'repeat'})
41478- );
41479- }
41480-
41481- /**
41482- * @return Repeat
41483- */
41484- public static function sample(): Repeat {
41485- return new Repeat(
41486- Repeat::sampleRepeat()
41487- );
41488- }
41489-}
41490-
41491-// This is an autogenerated file:RequireClass
41492-
41493-class RequireClass {
41494- private int $require; // json:require Required
41495-
41496- /**
41497- * @param int $require
41498- */
41499- public function __construct(int $require) {
41500- $this->require = $require;
41501- }
41502-
41503- /**
41504- * @param int $value
41505- * @throws Exception
41506- * @return int
41507- */
41508- public static function fromRequire(int $value): int {
41509- return $value; /*int*/
41510- }
41511-
41512- /**
41513- * @throws Exception
41514- * @return int
41515- */
41516- public function toRequire(): int {
41517- if (RequireClass::validateRequire($this->require)) {
41518- return $this->require; /*int*/
41519- }
41520- throw new Exception('never get to this RequireClass::require');
41521- }
41522-
41523- /**
41524- * @param int
41525- * @return bool
41526- * @throws Exception
41527- */
41528- public static function validateRequire(int $value): bool {
41529- return true;
41530- }
41531-
41532- /**
41533- * @throws Exception
41534- * @return int
41535- */
41536- public function getRequire(): int {
41537- if (RequireClass::validateRequire($this->require)) {
41538- return $this->require;
41539- }
41540- throw new Exception('never get to getRequire RequireClass::require');
41541- }
41542-
41543- /**
41544- * @return int
41545- */
41546- public static function sampleRequire(): int {
41547- return 31; /*31:require*/
41548- }
41549-
41550- /**
41551- * @throws Exception
41552- * @return bool
41553- */
41554- public function validate(): bool {
41555- return RequireClass::validateRequire($this->require);
41556- }
41557-
41558- /**
41559- * @return stdClass
41560- * @throws Exception
41561- */
41562- public function to(): stdClass {
41563- $out = new stdClass();
41564- $out->{'require'} = $this->toRequire();
41565- return $out;
41566- }
41567-
41568- /**
41569- * @param stdClass $obj
41570- * @return RequireClass
41571- * @throws Exception
41572- */
41573- public static function from(stdClass $obj): RequireClass {
41574- if (!property_exists($obj, 'require')) {
41575- throw new Exception("Missing required property");
41576- }
41577- return new RequireClass(
41578- RequireClass::fromRequire($obj->{'require'})
41579- );
41580- }
41581-
41582- /**
41583- * @return RequireClass
41584- */
41585- public static function sample(): RequireClass {
41586- return new RequireClass(
41587- RequireClass::sampleRequire()
41588- );
41589- }
41590-}
41591-
41592-// This is an autogenerated file:Required
41593-
41594-class Required {
41595- private int $required; // json:required Required
41596-
41597- /**
41598- * @param int $required
41599- */
41600- public function __construct(int $required) {
41601- $this->required = $required;
41602- }
41603-
41604- /**
41605- * @param int $value
41606- * @throws Exception
41607- * @return int
41608- */
41609- public static function fromRequired(int $value): int {
41610- return $value; /*int*/
41611- }
41612-
41613- /**
41614- * @throws Exception
41615- * @return int
41616- */
41617- public function toRequired(): int {
41618- if (Required::validateRequired($this->required)) {
41619- return $this->required; /*int*/
41620- }
41621- throw new Exception('never get to this Required::required');
41622- }
41623-
41624- /**
41625- * @param int
41626- * @return bool
41627- * @throws Exception
41628- */
41629- public static function validateRequired(int $value): bool {
41630- return true;
41631- }
41632-
41633- /**
41634- * @throws Exception
41635- * @return int
41636- */
41637- public function getRequired(): int {
41638- if (Required::validateRequired($this->required)) {
41639- return $this->required;
41640- }
41641- throw new Exception('never get to getRequired Required::required');
41642- }
41643-
41644- /**
41645- * @return int
41646- */
41647- public static function sampleRequired(): int {
41648- return 31; /*31:required*/
41649- }
41650-
41651- /**
41652- * @throws Exception
41653- * @return bool
41654- */
41655- public function validate(): bool {
41656- return Required::validateRequired($this->required);
41657- }
41658-
41659- /**
41660- * @return stdClass
41661- * @throws Exception
41662- */
41663- public function to(): stdClass {
41664- $out = new stdClass();
41665- $out->{'required'} = $this->toRequired();
41666- return $out;
41667- }
41668-
41669- /**
41670- * @param stdClass $obj
41671- * @return Required
41672- * @throws Exception
41673- */
41674- public static function from(stdClass $obj): Required {
41675- if (!property_exists($obj, 'required')) {
41676- throw new Exception("Missing required property");
41677- }
41678- return new Required(
41679- Required::fromRequired($obj->{'required'})
41680- );
41681- }
41682-
41683- /**
41684- * @return Required
41685- */
41686- public static function sample(): Required {
41687- return new Required(
41688- Required::sampleRequired()
41689- );
41690- }
41691-}
41692-
41693-// This is an autogenerated file:Requires
41694-
41695-class Requires {
41696- private int $requires; // json:requires Required
41697-
41698- /**
41699- * @param int $requires
41700- */
41701- public function __construct(int $requires) {
41702- $this->requires = $requires;
41703- }
41704-
41705- /**
41706- * @param int $value
41707- * @throws Exception
41708- * @return int
41709- */
41710- public static function fromRequires(int $value): int {
41711- return $value; /*int*/
41712- }
41713-
41714- /**
41715- * @throws Exception
41716- * @return int
41717- */
41718- public function toRequires(): int {
41719- if (Requires::validateRequires($this->requires)) {
41720- return $this->requires; /*int*/
41721- }
41722- throw new Exception('never get to this Requires::requires');
41723- }
41724-
41725- /**
41726- * @param int
41727- * @return bool
41728- * @throws Exception
41729- */
41730- public static function validateRequires(int $value): bool {
41731- return true;
41732- }
41733-
41734- /**
41735- * @throws Exception
41736- * @return int
41737- */
41738- public function getRequires(): int {
41739- if (Requires::validateRequires($this->requires)) {
41740- return $this->requires;
41741- }
41742- throw new Exception('never get to getRequires Requires::requires');
41743- }
41744-
41745- /**
41746- * @return int
41747- */
41748- public static function sampleRequires(): int {
41749- return 31; /*31:requires*/
41750- }
41751-
41752- /**
41753- * @throws Exception
41754- * @return bool
41755- */
41756- public function validate(): bool {
41757- return Requires::validateRequires($this->requires);
41758- }
41759-
41760- /**
41761- * @return stdClass
41762- * @throws Exception
41763- */
41764- public function to(): stdClass {
41765- $out = new stdClass();
41766- $out->{'requires'} = $this->toRequires();
41767- return $out;
41768- }
41769-
41770- /**
41771- * @param stdClass $obj
41772- * @return Requires
41773- * @throws Exception
41774- */
41775- public static function from(stdClass $obj): Requires {
41776- if (!property_exists($obj, 'requires')) {
41777- throw new Exception("Missing required property");
41778- }
41779- return new Requires(
41780- Requires::fromRequires($obj->{'requires'})
41781- );
41782- }
41783-
41784- /**
41785- * @return Requires
41786- */
41787- public static function sample(): Requires {
41788- return new Requires(
41789- Requires::sampleRequires()
41790- );
41791- }
41792-}
41793-
4179441635 // This is an autogenerated file:Obj5
4179541636
4179641637 class Obj5 {
@@ -41799,8 +41640,11 @@ class Obj5 {
4179941640 private Obj5Self $obj5Self; // json:self Required
4180041641 private This $obj5This; // json:this Required
4180141642 private Obj5True $obj5True; // json:true Required
41802- private TypeClass $obj5Type; // json:type Required
4180341643 private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required
41644+ private Repeat $repeat; // json:repeat Required
41645+ private RequireClass $require; // json:require Required
41646+ private Required $required; // json:required Required
41647+ private Requires $requires; // json:requires Required
4180441648 private Restrict $restrict; // json:restrict Required
4180541649 private Retain $retain; // json:retain Required
4180641650 private Rethrows $rethrows; // json:rethrows Required
@@ -41856,9 +41700,6 @@ class Obj5 {
4185641700 private TopLevelClass $topLevel; // json:top_level Required
4185741701 private Transient $transient; // json:transient Required
4185841702 private TrueClass $true; // json:True Required
41859- private TryClass $try; // json:try Required
41860- private Type $type; // json:Type Required
41861- private Typealias $typealias; // json:typealias Required
4186241703
4186341704 /**
4186441705 * @param int $dummy
@@ -41866,8 +41707,11 @@ class Obj5 {
4186641707 * @param Obj5Self $obj5Self
4186741708 * @param This $obj5This
4186841709 * @param Obj5True $obj5True
41869- * @param TypeClass $obj5Type
4187041710 * @param PrimitiveKind $primitiveKind
41711+ * @param Repeat $repeat
41712+ * @param RequireClass $require
41713+ * @param Required $required
41714+ * @param Requires $requires
4187141715 * @param Restrict $restrict
4187241716 * @param Retain $retain
4187341717 * @param Rethrows $rethrows
@@ -41923,18 +41767,18 @@ class Obj5 {
4192341767 * @param TopLevelClass $topLevel
4192441768 * @param Transient $transient
4192541769 * @param TrueClass $true
41926- * @param TryClass $try
41927- * @param Type $type
41928- * @param Typealias $typealias
4192941770 */
41930- public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, SerializationFeature $serializationFeature, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, TextNode $textNode, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToDict $toDict, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias) {
41771+ public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, PrimitiveKind $primitiveKind, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, SerializationFeature $serializationFeature, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, TextNode $textNode, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToDict $toDict, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true) {
4193141772 $this->dummy = $dummy;
4193241773 $this->kSerializer = $kSerializer;
4193341774 $this->obj5Self = $obj5Self;
4193441775 $this->obj5This = $obj5This;
4193541776 $this->obj5True = $obj5True;
41936- $this->obj5Type = $obj5Type;
4193741777 $this->primitiveKind = $primitiveKind;
41778+ $this->repeat = $repeat;
41779+ $this->require = $require;
41780+ $this->required = $required;
41781+ $this->requires = $requires;
4193841782 $this->restrict = $restrict;
4193941783 $this->retain = $retain;
4194041784 $this->rethrows = $rethrows;
@@ -41990,9 +41834,6 @@ class Obj5 {
4199041834 $this->topLevel = $topLevel;
4199141835 $this->transient = $transient;
4199241836 $this->true = $true;
41993- $this->try = $try;
41994- $this->type = $type;
41995- $this->typealias = $typealias;
4199641837 }
4199741838
4199841839 /**
@@ -42234,54 +42075,6 @@ class Obj5 {
4223442075 return Obj5True::sample(); /*35:obj5True*/
4223542076 }
4223642077
42237- /**
42238- * @param stdClass $value
42239- * @throws Exception
42240- * @return TypeClass
42241- */
42242- public static function fromObj5Type(stdClass $value): TypeClass {
42243- return TypeClass::from($value); /*class*/
42244- }
42245-
42246- /**
42247- * @throws Exception
42248- * @return stdClass
42249- */
42250- public function toObj5Type(): stdClass {
42251- if (Obj5::validateObj5Type($this->obj5Type)) {
42252- return $this->obj5Type->to(); /*class*/
42253- }
42254- throw new Exception('never get to this Obj5::obj5Type');
42255- }
42256-
42257- /**
42258- * @param TypeClass
42259- * @return bool
42260- * @throws Exception
42261- */
42262- public static function validateObj5Type(TypeClass $value): bool {
42263- $value->validate();
42264- return true;
42265- }
42266-
42267- /**
42268- * @throws Exception
42269- * @return TypeClass
42270- */
42271- public function getObj5Type(): TypeClass {
42272- if (Obj5::validateObj5Type($this->obj5Type)) {
42273- return $this->obj5Type;
42274- }
42275- throw new Exception('never get to getObj5Type Obj5::obj5Type');
42276- }
42277-
42278- /**
42279- * @return TypeClass
42280- */
42281- public static function sampleObj5Type(): TypeClass {
42282- return TypeClass::sample(); /*36:obj5Type*/
42283- }
42284-
4228542078 /**
4228642079 * @param stdClass $value
4228742080 * @throws Exception
@@ -42327,7 +42120,199 @@ class Obj5 {
4232742120 * @return PrimitiveKind
4232842121 */
4232942122 public static function samplePrimitiveKind(): PrimitiveKind {
42330- return PrimitiveKind::sample(); /*37:primitiveKind*/
42123+ return PrimitiveKind::sample(); /*36:primitiveKind*/
42124+ }
42125+
42126+ /**
42127+ * @param stdClass $value
42128+ * @throws Exception
42129+ * @return Repeat
42130+ */
42131+ public static function fromRepeat(stdClass $value): Repeat {
42132+ return Repeat::from($value); /*class*/
42133+ }
42134+
42135+ /**
42136+ * @throws Exception
42137+ * @return stdClass
42138+ */
42139+ public function toRepeat(): stdClass {
42140+ if (Obj5::validateRepeat($this->repeat)) {
42141+ return $this->repeat->to(); /*class*/
42142+ }
42143+ throw new Exception('never get to this Obj5::repeat');
42144+ }
42145+
42146+ /**
42147+ * @param Repeat
42148+ * @return bool
42149+ * @throws Exception
42150+ */
42151+ public static function validateRepeat(Repeat $value): bool {
42152+ $value->validate();
42153+ return true;
42154+ }
42155+
42156+ /**
42157+ * @throws Exception
42158+ * @return Repeat
42159+ */
42160+ public function getRepeat(): Repeat {
42161+ if (Obj5::validateRepeat($this->repeat)) {
42162+ return $this->repeat;
42163+ }
42164+ throw new Exception('never get to getRepeat Obj5::repeat');
42165+ }
42166+
42167+ /**
42168+ * @return Repeat
42169+ */
42170+ public static function sampleRepeat(): Repeat {
42171+ return Repeat::sample(); /*37:repeat*/
42172+ }
42173+
42174+ /**
42175+ * @param stdClass $value
42176+ * @throws Exception
42177+ * @return RequireClass
42178+ */
42179+ public static function fromRequire(stdClass $value): RequireClass {
42180+ return RequireClass::from($value); /*class*/
42181+ }
42182+
42183+ /**
42184+ * @throws Exception
42185+ * @return stdClass
42186+ */
42187+ public function toRequire(): stdClass {
42188+ if (Obj5::validateRequire($this->require)) {
42189+ return $this->require->to(); /*class*/
42190+ }
42191+ throw new Exception('never get to this Obj5::require');
42192+ }
42193+
42194+ /**
42195+ * @param RequireClass
42196+ * @return bool
42197+ * @throws Exception
42198+ */
42199+ public static function validateRequire(RequireClass $value): bool {
42200+ $value->validate();
42201+ return true;
42202+ }
42203+
42204+ /**
42205+ * @throws Exception
42206+ * @return RequireClass
42207+ */
42208+ public function getRequire(): RequireClass {
42209+ if (Obj5::validateRequire($this->require)) {
42210+ return $this->require;
42211+ }
42212+ throw new Exception('never get to getRequire Obj5::require');
42213+ }
42214+
42215+ /**
42216+ * @return RequireClass
42217+ */
42218+ public static function sampleRequire(): RequireClass {
42219+ return RequireClass::sample(); /*38:require*/
42220+ }
42221+
42222+ /**
42223+ * @param stdClass $value
42224+ * @throws Exception
42225+ * @return Required
42226+ */
42227+ public static function fromRequired(stdClass $value): Required {
42228+ return Required::from($value); /*class*/
42229+ }
42230+
42231+ /**
42232+ * @throws Exception
42233+ * @return stdClass
42234+ */
42235+ public function toRequired(): stdClass {
42236+ if (Obj5::validateRequired($this->required)) {
42237+ return $this->required->to(); /*class*/
42238+ }
42239+ throw new Exception('never get to this Obj5::required');
42240+ }
42241+
42242+ /**
42243+ * @param Required
42244+ * @return bool
42245+ * @throws Exception
42246+ */
42247+ public static function validateRequired(Required $value): bool {
42248+ $value->validate();
42249+ return true;
42250+ }
42251+
42252+ /**
42253+ * @throws Exception
42254+ * @return Required
42255+ */
42256+ public function getRequired(): Required {
42257+ if (Obj5::validateRequired($this->required)) {
42258+ return $this->required;
42259+ }
42260+ throw new Exception('never get to getRequired Obj5::required');
42261+ }
42262+
42263+ /**
42264+ * @return Required
42265+ */
42266+ public static function sampleRequired(): Required {
42267+ return Required::sample(); /*39:required*/
42268+ }
42269+
42270+ /**
42271+ * @param stdClass $value
42272+ * @throws Exception
42273+ * @return Requires
42274+ */
42275+ public static function fromRequires(stdClass $value): Requires {
42276+ return Requires::from($value); /*class*/
42277+ }
42278+
42279+ /**
42280+ * @throws Exception
42281+ * @return stdClass
42282+ */
42283+ public function toRequires(): stdClass {
42284+ if (Obj5::validateRequires($this->requires)) {
42285+ return $this->requires->to(); /*class*/
42286+ }
42287+ throw new Exception('never get to this Obj5::requires');
42288+ }
42289+
42290+ /**
42291+ * @param Requires
42292+ * @return bool
42293+ * @throws Exception
42294+ */
42295+ public static function validateRequires(Requires $value): bool {
42296+ $value->validate();
42297+ return true;
42298+ }
42299+
42300+ /**
42301+ * @throws Exception
42302+ * @return Requires
42303+ */
42304+ public function getRequires(): Requires {
42305+ if (Obj5::validateRequires($this->requires)) {
42306+ return $this->requires;
42307+ }
42308+ throw new Exception('never get to getRequires Obj5::requires');
42309+ }
42310+
42311+ /**
42312+ * @return Requires
42313+ */
42314+ public static function sampleRequires(): Requires {
42315+ return Requires::sample(); /*40:requires*/
4233142316 }
4233242317
4233342318 /**
@@ -42375,7 +42360,7 @@ class Obj5 {
4237542360 * @return Restrict
4237642361 */
4237742362 public static function sampleRestrict(): Restrict {
42378- return Restrict::sample(); /*38:restrict*/
42363+ return Restrict::sample(); /*41:restrict*/
4237942364 }
4238042365
4238142366 /**
@@ -42423,7 +42408,7 @@ class Obj5 {
4242342408 * @return Retain
4242442409 */
4242542410 public static function sampleRetain(): Retain {
42426- return Retain::sample(); /*39:retain*/
42411+ return Retain::sample(); /*42:retain*/
4242742412 }
4242842413
4242942414 /**
@@ -42471,7 +42456,7 @@ class Obj5 {
4247142456 * @return Rethrows
4247242457 */
4247342458 public static function sampleRethrows(): Rethrows {
42474- return Rethrows::sample(); /*40:rethrows*/
42459+ return Rethrows::sample(); /*43:rethrows*/
4247542460 }
4247642461
4247742462 /**
@@ -42519,7 +42504,7 @@ class Obj5 {
4251942504 * @return ReturnClass
4252042505 */
4252142506 public static function sampleReturn(): ReturnClass {
42522- return ReturnClass::sample(); /*41:return*/
42507+ return ReturnClass::sample(); /*44:return*/
4252342508 }
4252442509
4252542510 /**
@@ -42567,7 +42552,7 @@ class Obj5 {
4256742552 * @return Right
4256842553 */
4256942554 public static function sampleRight(): Right {
42570- return Right::sample(); /*42:right*/
42555+ return Right::sample(); /*45:right*/
4257142556 }
4257242557
4257342558 /**
@@ -42615,7 +42600,7 @@ class Obj5 {
4261542600 * @return RuntimeType
4261642601 */
4261742602 public static function sampleRuntimeType(): RuntimeType {
42618- return RuntimeType::sample(); /*43:runtimeType*/
42603+ return RuntimeType::sample(); /*46:runtimeType*/
4261942604 }
4262042605
4262142606 /**
@@ -42663,7 +42648,7 @@ class Obj5 {
4266342648 * @return S
4266442649 */
4266542650 public static function sampleS(): S {
42666- return S::sample(); /*44:s*/
42651+ return S::sample(); /*47:s*/
4266742652 }
4266842653
4266942654 /**
@@ -42711,7 +42696,7 @@ class Obj5 {
4271142696 * @return Sbyte
4271242697 */
4271342698 public static function sampleSbyte(): Sbyte {
42714- return Sbyte::sample(); /*45:sbyte*/
42699+ return Sbyte::sample(); /*48:sbyte*/
4271542700 }
4271642701
4271742702 /**
@@ -42759,7 +42744,7 @@ class Obj5 {
4275942744 * @return Sealed
4276042745 */
4276142746 public static function sampleSealed(): Sealed {
42762- return Sealed::sample(); /*46:sealed*/
42747+ return Sealed::sample(); /*49:sealed*/
4276342748 }
4276442749
4276542750 /**
@@ -42807,7 +42792,7 @@ class Obj5 {
4280742792 * @return Sel
4280842793 */
4280942794 public static function sampleSel(): Sel {
42810- return Sel::sample(); /*47:sel*/
42795+ return Sel::sample(); /*50:sel*/
4281142796 }
4281242797
4281342798 /**
@@ -42855,7 +42840,7 @@ class Obj5 {
4285542840 * @return Select
4285642841 */
4285742842 public static function sampleSelect(): Select {
42858- return Select::sample(); /*48:select*/
42843+ return Select::sample(); /*51:select*/
4285942844 }
4286042845
4286142846 /**
@@ -42903,7 +42888,7 @@ class Obj5 {
4290342888 * @return SelfClass
4290442889 */
4290542890 public static function sampleSelf(): SelfClass {
42906- return SelfClass::sample(); /*49:self*/
42891+ return SelfClass::sample(); /*52:self*/
4290742892 }
4290842893
4290942894 /**
@@ -42951,7 +42936,7 @@ class Obj5 {
4295142936 * @return Sendable
4295242937 */
4295342938 public static function sampleSendable(): Sendable {
42954- return Sendable::sample(); /*50:sendable*/
42939+ return Sendable::sample(); /*53:sendable*/
4295542940 }
4295642941
4295742942 /**
@@ -42999,7 +42984,7 @@ class Obj5 {
4299942984 * @return SerialDescriptor
4300042985 */
4300142986 public static function sampleSerialDescriptor(): SerialDescriptor {
43002- return SerialDescriptor::sample(); /*51:serialDescriptor*/
42987+ return SerialDescriptor::sample(); /*54:serialDescriptor*/
4300342988 }
4300442989
4300542990 /**
@@ -43047,7 +43032,7 @@ class Obj5 {
4304743032 * @return SerialName
4304843033 */
4304943034 public static function sampleSerialName(): SerialName {
43050- return SerialName::sample(); /*52:serialName*/
43035+ return SerialName::sample(); /*55:serialName*/
4305143036 }
4305243037
4305343038 /**
@@ -43095,7 +43080,7 @@ class Obj5 {
4309543080 * @return SerializableClass
4309643081 */
4309743082 public static function sampleSerializable(): SerializableClass {
43098- return SerializableClass::sample(); /*53:serializable*/
43083+ return SerializableClass::sample(); /*56:serializable*/
4309943084 }
4310043085
4310143086 /**
@@ -43143,7 +43128,7 @@ class Obj5 {
4314343128 * @return SerializationFeature
4314443129 */
4314543130 public static function sampleSerializationFeature(): SerializationFeature {
43146- return SerializationFeature::sample(); /*54:serializationFeature*/
43131+ return SerializationFeature::sample(); /*57:serializationFeature*/
4314743132 }
4314843133
4314943134 /**
@@ -43191,7 +43176,7 @@ class Obj5 {
4319143176 * @return Serialize
4319243177 */
4319343178 public static function sampleSerialize(): Serialize {
43194- return Serialize::sample(); /*55:serialize*/
43179+ return Serialize::sample(); /*58:serialize*/
4319543180 }
4319643181
4319743182 /**
@@ -43239,7 +43224,7 @@ class Obj5 {
4323943224 * @return SerializerProvider
4324043225 */
4324143226 public static function sampleSerializerProvider(): SerializerProvider {
43242- return SerializerProvider::sample(); /*56:serializerProvider*/
43227+ return SerializerProvider::sample(); /*59:serializerProvider*/
4324343228 }
4324443229
4324543230 /**
@@ -43287,7 +43272,7 @@ class Obj5 {
4328743272 * @return Set
4328843273 */
4328943274 public static function sampleSet(): Set {
43290- return Set::sample(); /*57:set*/
43275+ return Set::sample(); /*60:set*/
4329143276 }
4329243277
4329343278 /**
@@ -43335,7 +43320,7 @@ class Obj5 {
4333543320 * @return Short
4333643321 */
4333743322 public static function sampleShort(): Short {
43338- return Short::sample(); /*58:short*/
43323+ return Short::sample(); /*61:short*/
4333943324 }
4334043325
4334143326 /**
@@ -43383,7 +43368,7 @@ class Obj5 {
4338343368 * @return Signed
4338443369 */
4338543370 public static function sampleSigned(): Signed {
43386- return Signed::sample(); /*59:signed*/
43371+ return Signed::sample(); /*62:signed*/
4338743372 }
4338843373
4338943374 /**
@@ -43431,7 +43416,7 @@ class Obj5 {
4343143416 * @return SimpleModule
4343243417 */
4343343418 public static function sampleSimpleModule(): SimpleModule {
43434- return SimpleModule::sample(); /*60:simpleModule*/
43419+ return SimpleModule::sample(); /*63:simpleModule*/
4343543420 }
4343643421
4343743422 /**
@@ -43479,7 +43464,7 @@ class Obj5 {
4347943464 * @return Sizeof
4348043465 */
4348143466 public static function sampleSizeof(): Sizeof {
43482- return Sizeof::sample(); /*61:sizeof*/
43467+ return Sizeof::sample(); /*64:sizeof*/
4348343468 }
4348443469
4348543470 /**
@@ -43527,7 +43512,7 @@ class Obj5 {
4352743512 * @return Stackalloc
4352843513 */
4352943514 public static function sampleStackalloc(): Stackalloc {
43530- return Stackalloc::sample(); /*62:stackalloc*/
43515+ return Stackalloc::sample(); /*65:stackalloc*/
4353143516 }
4353243517
4353343518 /**
@@ -43575,7 +43560,7 @@ class Obj5 {
4357543560 * @return Standards
4357643561 */
4357743562 public static function sampleStandards(): Standards {
43578- return Standards::sample(); /*63:standards*/
43563+ return Standards::sample(); /*66:standards*/
4357943564 }
4358043565
4358143566 /**
@@ -43623,7 +43608,7 @@ class Obj5 {
4362343608 * @return StaticClass
4362443609 */
4362543610 public static function sampleStatic(): StaticClass {
43626- return StaticClass::sample(); /*64:static*/
43611+ return StaticClass::sample(); /*67:static*/
4362743612 }
4362843613
4362943614 /**
@@ -43671,7 +43656,7 @@ class Obj5 {
4367143656 * @return StaticAssert
4367243657 */
4367343658 public static function sampleStaticAssert(): StaticAssert {
43674- return StaticAssert::sample(); /*65:staticAssert*/
43659+ return StaticAssert::sample(); /*68:staticAssert*/
4367543660 }
4367643661
4367743662 /**
@@ -43719,7 +43704,7 @@ class Obj5 {
4371943704 * @return StaticCast
4372043705 */
4372143706 public static function sampleStaticCast(): StaticCast {
43722- return StaticCast::sample(); /*66:staticCast*/
43707+ return StaticCast::sample(); /*69:staticCast*/
4372343708 }
4372443709
4372543710 /**
@@ -43767,7 +43752,7 @@ class Obj5 {
4376743752 * @return StdDeserializer
4376843753 */
4376943754 public static function sampleStdDeserializer(): StdDeserializer {
43770- return StdDeserializer::sample(); /*67:stdDeserializer*/
43755+ return StdDeserializer::sample(); /*70:stdDeserializer*/
4377143756 }
4377243757
4377343758 /**
@@ -43815,7 +43800,7 @@ class Obj5 {
4381543800 * @return StdSerializer
4381643801 */
4381743802 public static function sampleStdSerializer(): StdSerializer {
43818- return StdSerializer::sample(); /*68:stdSerializer*/
43803+ return StdSerializer::sample(); /*71:stdSerializer*/
4381943804 }
4382043805
4382143806 /**
@@ -43863,7 +43848,7 @@ class Obj5 {
4386343848 * @return Strictfp
4386443849 */
4386543850 public static function sampleStrictfp(): Strictfp {
43866- return Strictfp::sample(); /*69:strictfp*/
43851+ return Strictfp::sample(); /*72:strictfp*/
4386743852 }
4386843853
4386943854 /**
@@ -43911,7 +43896,7 @@ class Obj5 {
4391143896 * @return StringClass
4391243897 */
4391343898 public static function sampleString(): StringClass {
43914- return StringClass::sample(); /*70:string*/
43899+ return StringClass::sample(); /*73:string*/
4391543900 }
4391643901
4391743902 /**
@@ -43959,7 +43944,7 @@ class Obj5 {
4395943944 * @return Struct
4396043945 */
4396143946 public static function sampleStruct(): Struct {
43962- return Struct::sample(); /*71:struct*/
43947+ return Struct::sample(); /*74:struct*/
4396343948 }
4396443949
4396543950 /**
@@ -44007,7 +43992,7 @@ class Obj5 {
4400743992 * @return Subscript
4400843993 */
4400943994 public static function sampleSubscript(): Subscript {
44010- return Subscript::sample(); /*72:subscript*/
43995+ return Subscript::sample(); /*75:subscript*/
4401143996 }
4401243997
4401343998 /**
@@ -44055,7 +44040,7 @@ class Obj5 {
4405544040 * @return Super
4405644041 */
4405744042 public static function sampleSuper(): Super {
44058- return Super::sample(); /*73:super*/
44043+ return Super::sample(); /*76:super*/
4405944044 }
4406044045
4406144046 /**
@@ -44103,7 +44088,7 @@ class Obj5 {
4410344088 * @return SwitchClass
4410444089 */
4410544090 public static function sampleSwitch(): SwitchClass {
44106- return SwitchClass::sample(); /*74:switch*/
44091+ return SwitchClass::sample(); /*77:switch*/
4410744092 }
4410844093
4410944094 /**
@@ -44151,7 +44136,7 @@ class Obj5 {
4415144136 * @return Symbol
4415244137 */
4415344138 public static function sampleSymbol(): Symbol {
44154- return Symbol::sample(); /*75:symbol*/
44139+ return Symbol::sample(); /*78:symbol*/
4415544140 }
4415644141
4415744142 /**
@@ -44199,7 +44184,7 @@ class Obj5 {
4419944184 * @return Synchronized
4420044185 */
4420144186 public static function sampleSynchronized(): Synchronized {
44202- return Synchronized::sample(); /*76:synchronized*/
44187+ return Synchronized::sample(); /*79:synchronized*/
4420344188 }
4420444189
4420544190 /**
@@ -44247,7 +44232,7 @@ class Obj5 {
4424744232 * @return System
4424844233 */
4424944234 public static function sampleSystem(): System {
44250- return System::sample(); /*77:system*/
44235+ return System::sample(); /*80:system*/
4425144236 }
4425244237
4425344238 /**
@@ -44295,7 +44280,7 @@ class Obj5 {
4429544280 * @return Template
4429644281 */
4429744282 public static function sampleTemplate(): Template {
44298- return Template::sample(); /*78:template*/
44283+ return Template::sample(); /*81:template*/
4429944284 }
4430044285
4430144286 /**
@@ -44343,7 +44328,7 @@ class Obj5 {
4434344328 * @return TextNode
4434444329 */
4434544330 public static function sampleTextNode(): TextNode {
44346- return TextNode::sample(); /*79:textNode*/
44331+ return TextNode::sample(); /*82:textNode*/
4434744332 }
4434844333
4434944334 /**
@@ -44391,7 +44376,7 @@ class Obj5 {
4439144376 * @return Then
4439244377 */
4439344378 public static function sampleThen(): Then {
44394- return Then::sample(); /*80:then*/
44379+ return Then::sample(); /*83:then*/
4439544380 }
4439644381
4439744382 /**
@@ -44439,7 +44424,7 @@ class Obj5 {
4443944424 * @return ThreadLocal
4444044425 */
4444144426 public static function sampleThreadLocal(): ThreadLocal {
44442- return ThreadLocal::sample(); /*81:threadLocal*/
44427+ return ThreadLocal::sample(); /*84:threadLocal*/
4444344428 }
4444444429
4444544430 /**
@@ -44487,7 +44472,7 @@ class Obj5 {
4448744472 * @return ThrowClass
4448844473 */
4448944474 public static function sampleThrow(): ThrowClass {
44490- return ThrowClass::sample(); /*82:throw*/
44475+ return ThrowClass::sample(); /*85:throw*/
4449144476 }
4449244477
4449344478 /**
@@ -44535,7 +44520,7 @@ class Obj5 {
4453544520 * @return Throws
4453644521 */
4453744522 public static function sampleThrows(): Throws {
44538- return Throws::sample(); /*83:throws*/
44523+ return Throws::sample(); /*86:throws*/
4453944524 }
4454044525
4454144526 /**
@@ -44583,7 +44568,7 @@ class Obj5 {
4458344568 * @return TimeOnly
4458444569 */
4458544570 public static function sampleTimeOnly(): TimeOnly {
44586- return TimeOnly::sample(); /*84:timeOnly*/
44571+ return TimeOnly::sample(); /*87:timeOnly*/
4458744572 }
4458844573
4458944574 /**
@@ -44631,7 +44616,7 @@ class Obj5 {
4463144616 * @return TimeOnlyConverter
4463244617 */
4463344618 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
44634- return TimeOnlyConverter::sample(); /*85:timeOnlyConverter*/
44619+ return TimeOnlyConverter::sample(); /*88:timeOnlyConverter*/
4463544620 }
4463644621
4463744622 /**
@@ -44679,7 +44664,7 @@ class Obj5 {
4467944664 * @return TimeZone
4468044665 */
4468144666 public static function sampleTimeZone(): TimeZone {
44682- return TimeZone::sample(); /*86:timeZone*/
44667+ return TimeZone::sample(); /*89:timeZone*/
4468344668 }
4468444669
4468544670 /**
@@ -44727,7 +44712,7 @@ class Obj5 {
4472744712 * @return ToDict
4472844713 */
4472944714 public static function sampleToDict(): ToDict {
44730- return ToDict::sample(); /*87:toDict*/
44715+ return ToDict::sample(); /*90:toDict*/
4473144716 }
4473244717
4473344718 /**
@@ -44775,7 +44760,7 @@ class Obj5 {
4477544760 * @return ToJSON
4477644761 */
4477744762 public static function sampleToJSON(): ToJSON {
44778- return ToJSON::sample(); /*88:toJSON*/
44763+ return ToJSON::sample(); /*91:toJSON*/
4477944764 }
4478044765
4478144766 /**
@@ -44823,7 +44808,7 @@ class Obj5 {
4482344808 * @return ToString
4482444809 */
4482544810 public static function sampleToString(): ToString {
44826- return ToString::sample(); /*89:toString*/
44811+ return ToString::sample(); /*92:toString*/
4482744812 }
4482844813
4482944814 /**
@@ -44871,7 +44856,7 @@ class Obj5 {
4487144856 * @return TopLevelClass
4487244857 */
4487344858 public static function sampleTopLevel(): TopLevelClass {
44874- return TopLevelClass::sample(); /*90:topLevel*/
44859+ return TopLevelClass::sample(); /*93:topLevel*/
4487544860 }
4487644861
4487744862 /**
@@ -44919,7 +44904,7 @@ class Obj5 {
4491944904 * @return Transient
4492044905 */
4492144906 public static function sampleTransient(): Transient {
44922- return Transient::sample(); /*91:transient*/
44907+ return Transient::sample(); /*94:transient*/
4492344908 }
4492444909
4492544910 /**
@@ -44967,151 +44952,7 @@ class Obj5 {
4496744952 * @return TrueClass
4496844953 */
4496944954 public static function sampleTrue(): TrueClass {
44970- return TrueClass::sample(); /*92:true*/
44971- }
44972-
44973- /**
44974- * @param stdClass $value
44975- * @throws Exception
44976- * @return TryClass
44977- */
44978- public static function fromTry(stdClass $value): TryClass {
44979- return TryClass::from($value); /*class*/
44980- }
44981-
44982- /**
44983- * @throws Exception
44984- * @return stdClass
44985- */
44986- public function toTry(): stdClass {
44987- if (Obj5::validateTry($this->try)) {
44988- return $this->try->to(); /*class*/
44989- }
44990- throw new Exception('never get to this Obj5::try');
44991- }
44992-
44993- /**
44994- * @param TryClass
44995- * @return bool
44996- * @throws Exception
44997- */
44998- public static function validateTry(TryClass $value): bool {
44999- $value->validate();
45000- return true;
45001- }
45002-
45003- /**
45004- * @throws Exception
45005- * @return TryClass
45006- */
45007- public function getTry(): TryClass {
45008- if (Obj5::validateTry($this->try)) {
45009- return $this->try;
45010- }
45011- throw new Exception('never get to getTry Obj5::try');
45012- }
45013-
45014- /**
45015- * @return TryClass
45016- */
45017- public static function sampleTry(): TryClass {
45018- return TryClass::sample(); /*93:try*/
45019- }
45020-
45021- /**
45022- * @param stdClass $value
45023- * @throws Exception
45024- * @return Type
45025- */
45026- public static function fromType(stdClass $value): Type {
45027- return Type::from($value); /*class*/
45028- }
45029-
45030- /**
45031- * @throws Exception
45032- * @return stdClass
45033- */
45034- public function toType(): stdClass {
45035- if (Obj5::validateType($this->type)) {
45036- return $this->type->to(); /*class*/
45037- }
45038- throw new Exception('never get to this Obj5::type');
45039- }
45040-
45041- /**
45042- * @param Type
45043- * @return bool
45044- * @throws Exception
45045- */
45046- public static function validateType(Type $value): bool {
45047- $value->validate();
45048- return true;
45049- }
45050-
45051- /**
45052- * @throws Exception
45053- * @return Type
45054- */
45055- public function getType(): Type {
45056- if (Obj5::validateType($this->type)) {
45057- return $this->type;
45058- }
45059- throw new Exception('never get to getType Obj5::type');
45060- }
45061-
45062- /**
45063- * @return Type
45064- */
45065- public static function sampleType(): Type {
45066- return Type::sample(); /*94:type*/
45067- }
45068-
45069- /**
45070- * @param stdClass $value
45071- * @throws Exception
45072- * @return Typealias
45073- */
45074- public static function fromTypealias(stdClass $value): Typealias {
45075- return Typealias::from($value); /*class*/
45076- }
45077-
45078- /**
45079- * @throws Exception
45080- * @return stdClass
45081- */
45082- public function toTypealias(): stdClass {
45083- if (Obj5::validateTypealias($this->typealias)) {
45084- return $this->typealias->to(); /*class*/
45085- }
45086- throw new Exception('never get to this Obj5::typealias');
45087- }
45088-
45089- /**
45090- * @param Typealias
45091- * @return bool
45092- * @throws Exception
45093- */
45094- public static function validateTypealias(Typealias $value): bool {
45095- $value->validate();
45096- return true;
45097- }
45098-
45099- /**
45100- * @throws Exception
45101- * @return Typealias
45102- */
45103- public function getTypealias(): Typealias {
45104- if (Obj5::validateTypealias($this->typealias)) {
45105- return $this->typealias;
45106- }
45107- throw new Exception('never get to getTypealias Obj5::typealias');
45108- }
45109-
45110- /**
45111- * @return Typealias
45112- */
45113- public static function sampleTypealias(): Typealias {
45114- return Typealias::sample(); /*95:typealias*/
44955+ return TrueClass::sample(); /*95:true*/
4511544956 }
4511644957
4511744958 /**
@@ -45124,8 +44965,11 @@ class Obj5 {
4512444965 || Obj5::validateObj5Self($this->obj5Self)
4512544966 || Obj5::validateObj5This($this->obj5This)
4512644967 || Obj5::validateObj5True($this->obj5True)
45127- || Obj5::validateObj5Type($this->obj5Type)
4512844968 || Obj5::validatePrimitiveKind($this->primitiveKind)
44969+ || Obj5::validateRepeat($this->repeat)
44970+ || Obj5::validateRequire($this->require)
44971+ || Obj5::validateRequired($this->required)
44972+ || Obj5::validateRequires($this->requires)
4512944973 || Obj5::validateRestrict($this->restrict)
4513044974 || Obj5::validateRetain($this->retain)
4513144975 || Obj5::validateRethrows($this->rethrows)
@@ -45180,10 +45024,7 @@ class Obj5 {
4518045024 || Obj5::validateToString($this->toString)
4518145025 || Obj5::validateTopLevel($this->topLevel)
4518245026 || Obj5::validateTransient($this->transient)
45183- || Obj5::validateTrue($this->true)
45184- || Obj5::validateTry($this->try)
45185- || Obj5::validateType($this->type)
45186- || Obj5::validateTypealias($this->typealias);
45027+ || Obj5::validateTrue($this->true);
4518745028 }
4518845029
4518945030 /**
@@ -45197,8 +45038,11 @@ class Obj5 {
4519745038 $out->{'self'} = $this->toObj5Self();
4519845039 $out->{'this'} = $this->toObj5This();
4519945040 $out->{'true'} = $this->toObj5True();
45200- $out->{'type'} = $this->toObj5Type();
4520145041 $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
45042+ $out->{'repeat'} = $this->toRepeat();
45043+ $out->{'require'} = $this->toRequire();
45044+ $out->{'required'} = $this->toRequired();
45045+ $out->{'requires'} = $this->toRequires();
4520245046 $out->{'restrict'} = $this->toRestrict();
4520345047 $out->{'retain'} = $this->toRetain();
4520445048 $out->{'rethrows'} = $this->toRethrows();
@@ -45254,9 +45098,6 @@ class Obj5 {
4525445098 $out->{'top_level'} = $this->toTopLevel();
4525545099 $out->{'transient'} = $this->toTransient();
4525645100 $out->{'True'} = $this->toTrue();
45257- $out->{'try'} = $this->toTry();
45258- $out->{'Type'} = $this->toType();
45259- $out->{'typealias'} = $this->toTypealias();
4526045101 return $out;
4526145102 }
4526245103
@@ -45281,10 +45122,19 @@ class Obj5 {
4528145122 if (!property_exists($obj, 'true')) {
4528245123 throw new Exception("Missing required property");
4528345124 }
45284- if (!property_exists($obj, 'type')) {
45125+ if (!property_exists($obj, 'PrimitiveKind')) {
4528545126 throw new Exception("Missing required property");
4528645127 }
45287- if (!property_exists($obj, 'PrimitiveKind')) {
45128+ if (!property_exists($obj, 'repeat')) {
45129+ throw new Exception("Missing required property");
45130+ }
45131+ if (!property_exists($obj, 'require')) {
45132+ throw new Exception("Missing required property");
45133+ }
45134+ if (!property_exists($obj, 'required')) {
45135+ throw new Exception("Missing required property");
45136+ }
45137+ if (!property_exists($obj, 'requires')) {
4528845138 throw new Exception("Missing required property");
4528945139 }
4529045140 if (!property_exists($obj, 'restrict')) {
@@ -45452,23 +45302,17 @@ class Obj5 {
4545245302 if (!property_exists($obj, 'True')) {
4545345303 throw new Exception("Missing required property");
4545445304 }
45455- if (!property_exists($obj, 'try')) {
45456- throw new Exception("Missing required property");
45457- }
45458- if (!property_exists($obj, 'Type')) {
45459- throw new Exception("Missing required property");
45460- }
45461- if (!property_exists($obj, 'typealias')) {
45462- throw new Exception("Missing required property");
45463- }
4546445305 return new Obj5(
4546545306 Obj5::fromDummy($obj->{'dummy'})
4546645307 ,Obj5::fromKSerializer($obj->{'KSerializer'})
4546745308 ,Obj5::fromObj5Self($obj->{'self'})
4546845309 ,Obj5::fromObj5This($obj->{'this'})
4546945310 ,Obj5::fromObj5True($obj->{'true'})
45470- ,Obj5::fromObj5Type($obj->{'type'})
4547145311 ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'})
45312+ ,Obj5::fromRepeat($obj->{'repeat'})
45313+ ,Obj5::fromRequire($obj->{'require'})
45314+ ,Obj5::fromRequired($obj->{'required'})
45315+ ,Obj5::fromRequires($obj->{'requires'})
4547245316 ,Obj5::fromRestrict($obj->{'restrict'})
4547345317 ,Obj5::fromRetain($obj->{'retain'})
4547445318 ,Obj5::fromRethrows($obj->{'rethrows'})
@@ -45524,9 +45368,6 @@ class Obj5 {
4552445368 ,Obj5::fromTopLevel($obj->{'top_level'})
4552545369 ,Obj5::fromTransient($obj->{'transient'})
4552645370 ,Obj5::fromTrue($obj->{'True'})
45527- ,Obj5::fromTry($obj->{'try'})
45528- ,Obj5::fromType($obj->{'Type'})
45529- ,Obj5::fromTypealias($obj->{'typealias'})
4553045371 );
4553145372 }
4553245373
@@ -45540,8 +45381,11 @@ class Obj5 {
4554045381 ,Obj5::sampleObj5Self()
4554145382 ,Obj5::sampleObj5This()
4554245383 ,Obj5::sampleObj5True()
45543- ,Obj5::sampleObj5Type()
4554445384 ,Obj5::samplePrimitiveKind()
45385+ ,Obj5::sampleRepeat()
45386+ ,Obj5::sampleRequire()
45387+ ,Obj5::sampleRequired()
45388+ ,Obj5::sampleRequires()
4554545389 ,Obj5::sampleRestrict()
4554645390 ,Obj5::sampleRetain()
4554745391 ,Obj5::sampleRethrows()
@@ -45597,9 +45441,6 @@ class Obj5 {
4559745441 ,Obj5::sampleTopLevel()
4559845442 ,Obj5::sampleTransient()
4559945443 ,Obj5::sampleTrue()
45600- ,Obj5::sampleTry()
45601- ,Obj5::sampleType()
45602- ,Obj5::sampleTypealias()
4560345444 );
4560445445 }
4560545446 }
@@ -46008,16 +45849,16 @@ class Obj5True {
4600845849 }
4600945850 }
4601045851
46011-// This is an autogenerated file:TypeClass
45852+// This is an autogenerated file:PrimitiveKind
4601245853
46013-class TypeClass {
46014- private int $type; // json:type Required
45854+class PrimitiveKind {
45855+ private int $primitiveKind; // json:PrimitiveKind Required
4601545856
4601645857 /**
46017- * @param int $type
45858+ * @param int $primitiveKind
4601845859 */
46019- public function __construct(int $type) {
46020- $this->type = $type;
45860+ public function __construct(int $primitiveKind) {
45861+ $this->primitiveKind = $primitiveKind;
4602145862 }
4602245863
4602345864 /**
@@ -46025,7 +45866,7 @@ class TypeClass {
4602545866 * @throws Exception
4602645867 * @return int
4602745868 */
46028- public static function fromType(int $value): int {
45869+ public static function fromPrimitiveKind(int $value): int {
4602945870 return $value; /*int*/
4603045871 }
4603145872
@@ -46033,11 +45874,11 @@ class TypeClass {
4603345874 * @throws Exception
4603445875 * @return int
4603545876 */
46036- public function toType(): int {
46037- if (TypeClass::validateType($this->type)) {
46038- return $this->type; /*int*/
45877+ public function toPrimitiveKind(): int {
45878+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
45879+ return $this->primitiveKind; /*int*/
4603945880 }
46040- throw new Exception('never get to this TypeClass::type');
45881+ throw new Exception('never get to this PrimitiveKind::primitiveKind');
4604145882 }
4604245883
4604345884 /**
@@ -46045,7 +45886,7 @@ class TypeClass {
4604545886 * @return bool
4604645887 * @throws Exception
4604745888 */
46048- public static function validateType(int $value): bool {
45889+ public static function validatePrimitiveKind(int $value): bool {
4604945890 return true;
4605045891 }
4605145892
@@ -46053,18 +45894,18 @@ class TypeClass {
4605345894 * @throws Exception
4605445895 * @return int
4605545896 */
46056- public function getType(): int {
46057- if (TypeClass::validateType($this->type)) {
46058- return $this->type;
45897+ public function getPrimitiveKind(): int {
45898+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
45899+ return $this->primitiveKind;
4605945900 }
46060- throw new Exception('never get to getType TypeClass::type');
45901+ throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
4606145902 }
4606245903
4606345904 /**
4606445905 * @return int
4606545906 */
46066- public static function sampleType(): int {
46067- return 31; /*31:type*/
45907+ public static function samplePrimitiveKind(): int {
45908+ return 31; /*31:primitiveKind*/
4606845909 }
4606945910
4607045911 /**
@@ -46072,7 +45913,7 @@ class TypeClass {
4607245913 * @return bool
4607345914 */
4607445915 public function validate(): bool {
46075- return TypeClass::validateType($this->type);
45916+ return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
4607645917 }
4607745918
4607845919 /**
@@ -46081,44 +45922,44 @@ class TypeClass {
4608145922 */
4608245923 public function to(): stdClass {
4608345924 $out = new stdClass();
46084- $out->{'type'} = $this->toType();
45925+ $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
4608545926 return $out;
4608645927 }
4608745928
4608845929 /**
4608945930 * @param stdClass $obj
46090- * @return TypeClass
45931+ * @return PrimitiveKind
4609145932 * @throws Exception
4609245933 */
46093- public static function from(stdClass $obj): TypeClass {
46094- if (!property_exists($obj, 'type')) {
45934+ public static function from(stdClass $obj): PrimitiveKind {
45935+ if (!property_exists($obj, 'PrimitiveKind')) {
4609545936 throw new Exception("Missing required property");
4609645937 }
46097- return new TypeClass(
46098- TypeClass::fromType($obj->{'type'})
45938+ return new PrimitiveKind(
45939+ PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
4609945940 );
4610045941 }
4610145942
4610245943 /**
46103- * @return TypeClass
45944+ * @return PrimitiveKind
4610445945 */
46105- public static function sample(): TypeClass {
46106- return new TypeClass(
46107- TypeClass::sampleType()
45946+ public static function sample(): PrimitiveKind {
45947+ return new PrimitiveKind(
45948+ PrimitiveKind::samplePrimitiveKind()
4610845949 );
4610945950 }
4611045951 }
4611145952
46112-// This is an autogenerated file:PrimitiveKind
45953+// This is an autogenerated file:Repeat
4611345954
46114-class PrimitiveKind {
46115- private int $primitiveKind; // json:PrimitiveKind Required
45955+class Repeat {
45956+ private int $repeat; // json:repeat Required
4611645957
4611745958 /**
46118- * @param int $primitiveKind
45959+ * @param int $repeat
4611945960 */
46120- public function __construct(int $primitiveKind) {
46121- $this->primitiveKind = $primitiveKind;
45961+ public function __construct(int $repeat) {
45962+ $this->repeat = $repeat;
4612245963 }
4612345964
4612445965 /**
@@ -46126,7 +45967,7 @@ class PrimitiveKind {
4612645967 * @throws Exception
4612745968 * @return int
4612845969 */
46129- public static function fromPrimitiveKind(int $value): int {
45970+ public static function fromRepeat(int $value): int {
4613045971 return $value; /*int*/
4613145972 }
4613245973
@@ -46134,11 +45975,11 @@ class PrimitiveKind {
4613445975 * @throws Exception
4613545976 * @return int
4613645977 */
46137- public function toPrimitiveKind(): int {
46138- if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46139- return $this->primitiveKind; /*int*/
45978+ public function toRepeat(): int {
45979+ if (Repeat::validateRepeat($this->repeat)) {
45980+ return $this->repeat; /*int*/
4614045981 }
46141- throw new Exception('never get to this PrimitiveKind::primitiveKind');
45982+ throw new Exception('never get to this Repeat::repeat');
4614245983 }
4614345984
4614445985 /**
@@ -46146,7 +45987,7 @@ class PrimitiveKind {
4614645987 * @return bool
4614745988 * @throws Exception
4614845989 */
46149- public static function validatePrimitiveKind(int $value): bool {
45990+ public static function validateRepeat(int $value): bool {
4615045991 return true;
4615145992 }
4615245993
@@ -46154,18 +45995,18 @@ class PrimitiveKind {
4615445995 * @throws Exception
4615545996 * @return int
4615645997 */
46157- public function getPrimitiveKind(): int {
46158- if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46159- return $this->primitiveKind;
45998+ public function getRepeat(): int {
45999+ if (Repeat::validateRepeat($this->repeat)) {
46000+ return $this->repeat;
4616046001 }
46161- throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
46002+ throw new Exception('never get to getRepeat Repeat::repeat');
4616246003 }
4616346004
4616446005 /**
4616546006 * @return int
4616646007 */
46167- public static function samplePrimitiveKind(): int {
46168- return 31; /*31:primitiveKind*/
46008+ public static function sampleRepeat(): int {
46009+ return 31; /*31:repeat*/
4616946010 }
4617046011
4617146012 /**
@@ -46173,7 +46014,7 @@ class PrimitiveKind {
4617346014 * @return bool
4617446015 */
4617546016 public function validate(): bool {
46176- return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
46017+ return Repeat::validateRepeat($this->repeat);
4617746018 }
4617846019
4617946020 /**
@@ -46182,30 +46023,333 @@ class PrimitiveKind {
4618246023 */
4618346024 public function to(): stdClass {
4618446025 $out = new stdClass();
46185- $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
46026+ $out->{'repeat'} = $this->toRepeat();
4618646027 return $out;
4618746028 }
4618846029
4618946030 /**
4619046031 * @param stdClass $obj
46191- * @return PrimitiveKind
46032+ * @return Repeat
4619246033 * @throws Exception
4619346034 */
46194- public static function from(stdClass $obj): PrimitiveKind {
46195- if (!property_exists($obj, 'PrimitiveKind')) {
46035+ public static function from(stdClass $obj): Repeat {
46036+ if (!property_exists($obj, 'repeat')) {
4619646037 throw new Exception("Missing required property");
4619746038 }
46198- return new PrimitiveKind(
46199- PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
46039+ return new Repeat(
46040+ Repeat::fromRepeat($obj->{'repeat'})
4620046041 );
4620146042 }
4620246043
4620346044 /**
46204- * @return PrimitiveKind
46045+ * @return Repeat
4620546046 */
46206- public static function sample(): PrimitiveKind {
46207- return new PrimitiveKind(
46208- PrimitiveKind::samplePrimitiveKind()
46047+ public static function sample(): Repeat {
46048+ return new Repeat(
46049+ Repeat::sampleRepeat()
46050+ );
46051+ }
46052+}
46053+
46054+// This is an autogenerated file:RequireClass
46055+
46056+class RequireClass {
46057+ private int $require; // json:require Required
46058+
46059+ /**
46060+ * @param int $require
46061+ */
46062+ public function __construct(int $require) {
46063+ $this->require = $require;
46064+ }
46065+
46066+ /**
46067+ * @param int $value
46068+ * @throws Exception
46069+ * @return int
46070+ */
46071+ public static function fromRequire(int $value): int {
46072+ return $value; /*int*/
46073+ }
46074+
46075+ /**
46076+ * @throws Exception
46077+ * @return int
46078+ */
46079+ public function toRequire(): int {
46080+ if (RequireClass::validateRequire($this->require)) {
46081+ return $this->require; /*int*/
46082+ }
46083+ throw new Exception('never get to this RequireClass::require');
46084+ }
46085+
46086+ /**
46087+ * @param int
46088+ * @return bool
46089+ * @throws Exception
46090+ */
46091+ public static function validateRequire(int $value): bool {
46092+ return true;
46093+ }
46094+
46095+ /**
46096+ * @throws Exception
46097+ * @return int
46098+ */
46099+ public function getRequire(): int {
46100+ if (RequireClass::validateRequire($this->require)) {
46101+ return $this->require;
46102+ }
46103+ throw new Exception('never get to getRequire RequireClass::require');
46104+ }
46105+
46106+ /**
46107+ * @return int
46108+ */
46109+ public static function sampleRequire(): int {
46110+ return 31; /*31:require*/
46111+ }
46112+
46113+ /**
46114+ * @throws Exception
46115+ * @return bool
46116+ */
46117+ public function validate(): bool {
46118+ return RequireClass::validateRequire($this->require);
46119+ }
46120+
46121+ /**
46122+ * @return stdClass
46123+ * @throws Exception
46124+ */
46125+ public function to(): stdClass {
46126+ $out = new stdClass();
46127+ $out->{'require'} = $this->toRequire();
46128+ return $out;
46129+ }
46130+
46131+ /**
46132+ * @param stdClass $obj
46133+ * @return RequireClass
46134+ * @throws Exception
46135+ */
46136+ public static function from(stdClass $obj): RequireClass {
46137+ if (!property_exists($obj, 'require')) {
46138+ throw new Exception("Missing required property");
46139+ }
46140+ return new RequireClass(
46141+ RequireClass::fromRequire($obj->{'require'})
46142+ );
46143+ }
46144+
46145+ /**
46146+ * @return RequireClass
46147+ */
46148+ public static function sample(): RequireClass {
46149+ return new RequireClass(
46150+ RequireClass::sampleRequire()
46151+ );
46152+ }
46153+}
46154+
46155+// This is an autogenerated file:Required
46156+
46157+class Required {
46158+ private int $required; // json:required Required
46159+
46160+ /**
46161+ * @param int $required
46162+ */
46163+ public function __construct(int $required) {
46164+ $this->required = $required;
46165+ }
46166+
46167+ /**
46168+ * @param int $value
46169+ * @throws Exception
46170+ * @return int
46171+ */
46172+ public static function fromRequired(int $value): int {
46173+ return $value; /*int*/
46174+ }
46175+
46176+ /**
46177+ * @throws Exception
46178+ * @return int
46179+ */
46180+ public function toRequired(): int {
46181+ if (Required::validateRequired($this->required)) {
46182+ return $this->required; /*int*/
46183+ }
46184+ throw new Exception('never get to this Required::required');
46185+ }
46186+
46187+ /**
46188+ * @param int
46189+ * @return bool
46190+ * @throws Exception
46191+ */
46192+ public static function validateRequired(int $value): bool {
46193+ return true;
46194+ }
46195+
46196+ /**
46197+ * @throws Exception
46198+ * @return int
46199+ */
46200+ public function getRequired(): int {
46201+ if (Required::validateRequired($this->required)) {
46202+ return $this->required;
46203+ }
46204+ throw new Exception('never get to getRequired Required::required');
46205+ }
46206+
46207+ /**
46208+ * @return int
46209+ */
46210+ public static function sampleRequired(): int {
46211+ return 31; /*31:required*/
46212+ }
46213+
46214+ /**
46215+ * @throws Exception
46216+ * @return bool
46217+ */
46218+ public function validate(): bool {
46219+ return Required::validateRequired($this->required);
46220+ }
46221+
46222+ /**
46223+ * @return stdClass
46224+ * @throws Exception
46225+ */
46226+ public function to(): stdClass {
46227+ $out = new stdClass();
46228+ $out->{'required'} = $this->toRequired();
46229+ return $out;
46230+ }
46231+
46232+ /**
46233+ * @param stdClass $obj
46234+ * @return Required
46235+ * @throws Exception
46236+ */
46237+ public static function from(stdClass $obj): Required {
46238+ if (!property_exists($obj, 'required')) {
46239+ throw new Exception("Missing required property");
46240+ }
46241+ return new Required(
46242+ Required::fromRequired($obj->{'required'})
46243+ );
46244+ }
46245+
46246+ /**
46247+ * @return Required
46248+ */
46249+ public static function sample(): Required {
46250+ return new Required(
46251+ Required::sampleRequired()
46252+ );
46253+ }
46254+}
46255+
46256+// This is an autogenerated file:Requires
46257+
46258+class Requires {
46259+ private int $requires; // json:requires Required
46260+
46261+ /**
46262+ * @param int $requires
46263+ */
46264+ public function __construct(int $requires) {
46265+ $this->requires = $requires;
46266+ }
46267+
46268+ /**
46269+ * @param int $value
46270+ * @throws Exception
46271+ * @return int
46272+ */
46273+ public static function fromRequires(int $value): int {
46274+ return $value; /*int*/
46275+ }
46276+
46277+ /**
46278+ * @throws Exception
46279+ * @return int
46280+ */
46281+ public function toRequires(): int {
46282+ if (Requires::validateRequires($this->requires)) {
46283+ return $this->requires; /*int*/
46284+ }
46285+ throw new Exception('never get to this Requires::requires');
46286+ }
46287+
46288+ /**
46289+ * @param int
46290+ * @return bool
46291+ * @throws Exception
46292+ */
46293+ public static function validateRequires(int $value): bool {
46294+ return true;
46295+ }
46296+
46297+ /**
46298+ * @throws Exception
46299+ * @return int
46300+ */
46301+ public function getRequires(): int {
46302+ if (Requires::validateRequires($this->requires)) {
46303+ return $this->requires;
46304+ }
46305+ throw new Exception('never get to getRequires Requires::requires');
46306+ }
46307+
46308+ /**
46309+ * @return int
46310+ */
46311+ public static function sampleRequires(): int {
46312+ return 31; /*31:requires*/
46313+ }
46314+
46315+ /**
46316+ * @throws Exception
46317+ * @return bool
46318+ */
46319+ public function validate(): bool {
46320+ return Requires::validateRequires($this->requires);
46321+ }
46322+
46323+ /**
46324+ * @return stdClass
46325+ * @throws Exception
46326+ */
46327+ public function to(): stdClass {
46328+ $out = new stdClass();
46329+ $out->{'requires'} = $this->toRequires();
46330+ return $out;
46331+ }
46332+
46333+ /**
46334+ * @param stdClass $obj
46335+ * @return Requires
46336+ * @throws Exception
46337+ */
46338+ public static function from(stdClass $obj): Requires {
46339+ if (!property_exists($obj, 'requires')) {
46340+ throw new Exception("Missing required property");
46341+ }
46342+ return new Requires(
46343+ Requires::fromRequires($obj->{'requires'})
46344+ );
46345+ }
46346+
46347+ /**
46348+ * @return Requires
46349+ */
46350+ public static function sample(): Requires {
46351+ return new Requires(
46352+ Requires::sampleRequires()
4620946353 );
4621046354 }
4621146355 }
@@ -51765,313 +51909,14 @@ class TrueClass {
5176551909 }
5176651910 }
5176751911
51768-// This is an autogenerated file:TryClass
51769-
51770-class TryClass {
51771- private int $try; // json:try Required
51772-
51773- /**
51774- * @param int $try
51775- */
51776- public function __construct(int $try) {
51777- $this->try = $try;
51778- }
51779-
51780- /**
51781- * @param int $value
51782- * @throws Exception
51783- * @return int
51784- */
51785- public static function fromTry(int $value): int {
51786- return $value; /*int*/
51787- }
51788-
51789- /**
51790- * @throws Exception
51791- * @return int
51792- */
51793- public function toTry(): int {
51794- if (TryClass::validateTry($this->try)) {
51795- return $this->try; /*int*/
51796- }
51797- throw new Exception('never get to this TryClass::try');
51798- }
51799-
51800- /**
51801- * @param int
51802- * @return bool
51803- * @throws Exception
51804- */
51805- public static function validateTry(int $value): bool {
51806- return true;
51807- }
51808-
51809- /**
51810- * @throws Exception
51811- * @return int
51812- */
51813- public function getTry(): int {
51814- if (TryClass::validateTry($this->try)) {
51815- return $this->try;
51816- }
51817- throw new Exception('never get to getTry TryClass::try');
51818- }
51819-
51820- /**
51821- * @return int
51822- */
51823- public static function sampleTry(): int {
51824- return 31; /*31:try*/
51825- }
51826-
51827- /**
51828- * @throws Exception
51829- * @return bool
51830- */
51831- public function validate(): bool {
51832- return TryClass::validateTry($this->try);
51833- }
51834-
51835- /**
51836- * @return stdClass
51837- * @throws Exception
51838- */
51839- public function to(): stdClass {
51840- $out = new stdClass();
51841- $out->{'try'} = $this->toTry();
51842- return $out;
51843- }
51844-
51845- /**
51846- * @param stdClass $obj
51847- * @return TryClass
51848- * @throws Exception
51849- */
51850- public static function from(stdClass $obj): TryClass {
51851- if (!property_exists($obj, 'try')) {
51852- throw new Exception("Missing required property");
51853- }
51854- return new TryClass(
51855- TryClass::fromTry($obj->{'try'})
51856- );
51857- }
51858-
51859- /**
51860- * @return TryClass
51861- */
51862- public static function sample(): TryClass {
51863- return new TryClass(
51864- TryClass::sampleTry()
51865- );
51866- }
51867-}
51868-
51869-// This is an autogenerated file:Type
51870-
51871-class Type {
51872- private int $type; // json:Type Required
51873-
51874- /**
51875- * @param int $type
51876- */
51877- public function __construct(int $type) {
51878- $this->type = $type;
51879- }
51880-
51881- /**
51882- * @param int $value
51883- * @throws Exception
51884- * @return int
51885- */
51886- public static function fromType(int $value): int {
51887- return $value; /*int*/
51888- }
51889-
51890- /**
51891- * @throws Exception
51892- * @return int
51893- */
51894- public function toType(): int {
51895- if (Type::validateType($this->type)) {
51896- return $this->type; /*int*/
51897- }
51898- throw new Exception('never get to this Type::type');
51899- }
51900-
51901- /**
51902- * @param int
51903- * @return bool
51904- * @throws Exception
51905- */
51906- public static function validateType(int $value): bool {
51907- return true;
51908- }
51909-
51910- /**
51911- * @throws Exception
51912- * @return int
51913- */
51914- public function getType(): int {
51915- if (Type::validateType($this->type)) {
51916- return $this->type;
51917- }
51918- throw new Exception('never get to getType Type::type');
51919- }
51920-
51921- /**
51922- * @return int
51923- */
51924- public static function sampleType(): int {
51925- return 31; /*31:type*/
51926- }
51927-
51928- /**
51929- * @throws Exception
51930- * @return bool
51931- */
51932- public function validate(): bool {
51933- return Type::validateType($this->type);
51934- }
51935-
51936- /**
51937- * @return stdClass
51938- * @throws Exception
51939- */
51940- public function to(): stdClass {
51941- $out = new stdClass();
51942- $out->{'Type'} = $this->toType();
51943- return $out;
51944- }
51945-
51946- /**
51947- * @param stdClass $obj
51948- * @return Type
51949- * @throws Exception
51950- */
51951- public static function from(stdClass $obj): Type {
51952- if (!property_exists($obj, 'Type')) {
51953- throw new Exception("Missing required property");
51954- }
51955- return new Type(
51956- Type::fromType($obj->{'Type'})
51957- );
51958- }
51959-
51960- /**
51961- * @return Type
51962- */
51963- public static function sample(): Type {
51964- return new Type(
51965- Type::sampleType()
51966- );
51967- }
51968-}
51969-
51970-// This is an autogenerated file:Typealias
51971-
51972-class Typealias {
51973- private int $typealias; // json:typealias Required
51974-
51975- /**
51976- * @param int $typealias
51977- */
51978- public function __construct(int $typealias) {
51979- $this->typealias = $typealias;
51980- }
51981-
51982- /**
51983- * @param int $value
51984- * @throws Exception
51985- * @return int
51986- */
51987- public static function fromTypealias(int $value): int {
51988- return $value; /*int*/
51989- }
51990-
51991- /**
51992- * @throws Exception
51993- * @return int
51994- */
51995- public function toTypealias(): int {
51996- if (Typealias::validateTypealias($this->typealias)) {
51997- return $this->typealias; /*int*/
51998- }
51999- throw new Exception('never get to this Typealias::typealias');
52000- }
52001-
52002- /**
52003- * @param int
52004- * @return bool
52005- * @throws Exception
52006- */
52007- public static function validateTypealias(int $value): bool {
52008- return true;
52009- }
52010-
52011- /**
52012- * @throws Exception
52013- * @return int
52014- */
52015- public function getTypealias(): int {
52016- if (Typealias::validateTypealias($this->typealias)) {
52017- return $this->typealias;
52018- }
52019- throw new Exception('never get to getTypealias Typealias::typealias');
52020- }
52021-
52022- /**
52023- * @return int
52024- */
52025- public static function sampleTypealias(): int {
52026- return 31; /*31:typealias*/
52027- }
52028-
52029- /**
52030- * @throws Exception
52031- * @return bool
52032- */
52033- public function validate(): bool {
52034- return Typealias::validateTypealias($this->typealias);
52035- }
52036-
52037- /**
52038- * @return stdClass
52039- * @throws Exception
52040- */
52041- public function to(): stdClass {
52042- $out = new stdClass();
52043- $out->{'typealias'} = $this->toTypealias();
52044- return $out;
52045- }
52046-
52047- /**
52048- * @param stdClass $obj
52049- * @return Typealias
52050- * @throws Exception
52051- */
52052- public static function from(stdClass $obj): Typealias {
52053- if (!property_exists($obj, 'typealias')) {
52054- throw new Exception("Missing required property");
52055- }
52056- return new Typealias(
52057- Typealias::fromTypealias($obj->{'typealias'})
52058- );
52059- }
52060-
52061- /**
52062- * @return Typealias
52063- */
52064- public static function sample(): Typealias {
52065- return new Typealias(
52066- Typealias::sampleTypealias()
52067- );
52068- }
52069-}
52070-
5207151912 // This is an autogenerated file:Obj6
5207251913
5207351914 class Obj6 {
5207451915 private int $dummy; // json:dummy Required
51916+ private TypeClass $obj6Type; // json:type Required
51917+ private TryClass $try; // json:try Required
51918+ private Type $type; // json:Type Required
51919+ private Typealias $typealias; // json:typealias Required
5207551920 private Typedef $typedef; // json:typedef Required
5207651921 private Typeid $typeid; // json:typeid Required
5207751922 private Typename $typename; // json:typename Required
@@ -52108,6 +51953,10 @@ class Obj6 {
5210851953
5210951954 /**
5211051955 * @param int $dummy
51956+ * @param TypeClass $obj6Type
51957+ * @param TryClass $try
51958+ * @param Type $type
51959+ * @param Typealias $typealias
5211151960 * @param Typedef $typedef
5211251961 * @param Typeid $typeid
5211351962 * @param Typename $typename
@@ -52142,8 +51991,12 @@ class Obj6 {
5214251991 * @param Yes $yes
5214351992 * @param YieldClass $yield
5214451993 */
52145- public function __construct(int $dummy, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, UnmarshalJSON $unmarshalJSON, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, UseSerializers $useSerializers, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
51994+ public function __construct(int $dummy, TypeClass $obj6Type, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, UnmarshalJSON $unmarshalJSON, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, UseSerializers $useSerializers, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
5214651995 $this->dummy = $dummy;
51996+ $this->obj6Type = $obj6Type;
51997+ $this->try = $try;
51998+ $this->type = $type;
51999+ $this->typealias = $typealias;
5214752000 $this->typedef = $typedef;
5214852001 $this->typeid = $typeid;
5214952002 $this->typename = $typename;
@@ -52226,6 +52079,198 @@ class Obj6 {
5222652079 return 31; /*31:dummy*/
5222752080 }
5222852081
52082+ /**
52083+ * @param stdClass $value
52084+ * @throws Exception
52085+ * @return TypeClass
52086+ */
52087+ public static function fromObj6Type(stdClass $value): TypeClass {
52088+ return TypeClass::from($value); /*class*/
52089+ }
52090+
52091+ /**
52092+ * @throws Exception
52093+ * @return stdClass
52094+ */
52095+ public function toObj6Type(): stdClass {
52096+ if (Obj6::validateObj6Type($this->obj6Type)) {
52097+ return $this->obj6Type->to(); /*class*/
52098+ }
52099+ throw new Exception('never get to this Obj6::obj6Type');
52100+ }
52101+
52102+ /**
52103+ * @param TypeClass
52104+ * @return bool
52105+ * @throws Exception
52106+ */
52107+ public static function validateObj6Type(TypeClass $value): bool {
52108+ $value->validate();
52109+ return true;
52110+ }
52111+
52112+ /**
52113+ * @throws Exception
52114+ * @return TypeClass
52115+ */
52116+ public function getObj6Type(): TypeClass {
52117+ if (Obj6::validateObj6Type($this->obj6Type)) {
52118+ return $this->obj6Type;
52119+ }
52120+ throw new Exception('never get to getObj6Type Obj6::obj6Type');
52121+ }
52122+
52123+ /**
52124+ * @return TypeClass
52125+ */
52126+ public static function sampleObj6Type(): TypeClass {
52127+ return TypeClass::sample(); /*32:obj6Type*/
52128+ }
52129+
52130+ /**
52131+ * @param stdClass $value
52132+ * @throws Exception
52133+ * @return TryClass
52134+ */
52135+ public static function fromTry(stdClass $value): TryClass {
52136+ return TryClass::from($value); /*class*/
52137+ }
52138+
52139+ /**
52140+ * @throws Exception
52141+ * @return stdClass
52142+ */
52143+ public function toTry(): stdClass {
52144+ if (Obj6::validateTry($this->try)) {
52145+ return $this->try->to(); /*class*/
52146+ }
52147+ throw new Exception('never get to this Obj6::try');
52148+ }
52149+
52150+ /**
52151+ * @param TryClass
52152+ * @return bool
52153+ * @throws Exception
52154+ */
52155+ public static function validateTry(TryClass $value): bool {
52156+ $value->validate();
52157+ return true;
52158+ }
52159+
52160+ /**
52161+ * @throws Exception
52162+ * @return TryClass
52163+ */
52164+ public function getTry(): TryClass {
52165+ if (Obj6::validateTry($this->try)) {
52166+ return $this->try;
52167+ }
52168+ throw new Exception('never get to getTry Obj6::try');
52169+ }
52170+
52171+ /**
52172+ * @return TryClass
52173+ */
52174+ public static function sampleTry(): TryClass {
52175+ return TryClass::sample(); /*33:try*/
52176+ }
52177+
52178+ /**
52179+ * @param stdClass $value
52180+ * @throws Exception
52181+ * @return Type
52182+ */
52183+ public static function fromType(stdClass $value): Type {
52184+ return Type::from($value); /*class*/
52185+ }
52186+
52187+ /**
52188+ * @throws Exception
52189+ * @return stdClass
52190+ */
52191+ public function toType(): stdClass {
52192+ if (Obj6::validateType($this->type)) {
52193+ return $this->type->to(); /*class*/
52194+ }
52195+ throw new Exception('never get to this Obj6::type');
52196+ }
52197+
52198+ /**
52199+ * @param Type
52200+ * @return bool
52201+ * @throws Exception
52202+ */
52203+ public static function validateType(Type $value): bool {
52204+ $value->validate();
52205+ return true;
52206+ }
52207+
52208+ /**
52209+ * @throws Exception
52210+ * @return Type
52211+ */
52212+ public function getType(): Type {
52213+ if (Obj6::validateType($this->type)) {
52214+ return $this->type;
52215+ }
52216+ throw new Exception('never get to getType Obj6::type');
52217+ }
52218+
52219+ /**
52220+ * @return Type
52221+ */
52222+ public static function sampleType(): Type {
52223+ return Type::sample(); /*34:type*/
52224+ }
52225+
52226+ /**
52227+ * @param stdClass $value
52228+ * @throws Exception
52229+ * @return Typealias
52230+ */
52231+ public static function fromTypealias(stdClass $value): Typealias {
52232+ return Typealias::from($value); /*class*/
52233+ }
52234+
52235+ /**
52236+ * @throws Exception
52237+ * @return stdClass
52238+ */
52239+ public function toTypealias(): stdClass {
52240+ if (Obj6::validateTypealias($this->typealias)) {
52241+ return $this->typealias->to(); /*class*/
52242+ }
52243+ throw new Exception('never get to this Obj6::typealias');
52244+ }
52245+
52246+ /**
52247+ * @param Typealias
52248+ * @return bool
52249+ * @throws Exception
52250+ */
52251+ public static function validateTypealias(Typealias $value): bool {
52252+ $value->validate();
52253+ return true;
52254+ }
52255+
52256+ /**
52257+ * @throws Exception
52258+ * @return Typealias
52259+ */
52260+ public function getTypealias(): Typealias {
52261+ if (Obj6::validateTypealias($this->typealias)) {
52262+ return $this->typealias;
52263+ }
52264+ throw new Exception('never get to getTypealias Obj6::typealias');
52265+ }
52266+
52267+ /**
52268+ * @return Typealias
52269+ */
52270+ public static function sampleTypealias(): Typealias {
52271+ return Typealias::sample(); /*35:typealias*/
52272+ }
52273+
5222952274 /**
5223052275 * @param stdClass $value
5223152276 * @throws Exception
@@ -52271,7 +52316,7 @@ class Obj6 {
5227152316 * @return Typedef
5227252317 */
5227352318 public static function sampleTypedef(): Typedef {
52274- return Typedef::sample(); /*32:typedef*/
52319+ return Typedef::sample(); /*36:typedef*/
5227552320 }
5227652321
5227752322 /**
@@ -52319,7 +52364,7 @@ class Obj6 {
5231952364 * @return Typeid
5232052365 */
5232152366 public static function sampleTypeid(): Typeid {
52322- return Typeid::sample(); /*33:typeid*/
52367+ return Typeid::sample(); /*37:typeid*/
5232352368 }
5232452369
5232552370 /**
@@ -52367,7 +52412,7 @@ class Obj6 {
5236752412 * @return Typename
5236852413 */
5236952414 public static function sampleTypename(): Typename {
52370- return Typename::sample(); /*34:typename*/
52415+ return Typename::sample(); /*38:typename*/
5237152416 }
5237252417
5237352418 /**
@@ -52415,7 +52460,7 @@ class Obj6 {
5241552460 * @return Typeof
5241652461 */
5241752462 public static function sampleTypeof(): Typeof {
52418- return Typeof::sample(); /*35:typeof*/
52463+ return Typeof::sample(); /*39:typeof*/
5241952464 }
5242052465
5242152466 /**
@@ -52463,7 +52508,7 @@ class Obj6 {
5246352508 * @return Uint
5246452509 */
5246552510 public static function sampleUint(): Uint {
52466- return Uint::sample(); /*36:uint*/
52511+ return Uint::sample(); /*40:uint*/
5246752512 }
5246852513
5246952514 /**
@@ -52511,7 +52556,7 @@ class Obj6 {
5251152556 * @return Ulong
5251252557 */
5251352558 public static function sampleUlong(): Ulong {
52514- return Ulong::sample(); /*37:ulong*/
52559+ return Ulong::sample(); /*41:ulong*/
5251552560 }
5251652561
5251752562 /**
@@ -52559,7 +52604,7 @@ class Obj6 {
5255952604 * @return Unchecked
5256052605 */
5256152606 public static function sampleUnchecked(): Unchecked {
52562- return Unchecked::sample(); /*38:unchecked*/
52607+ return Unchecked::sample(); /*42:unchecked*/
5256352608 }
5256452609
5256552610 /**
@@ -52607,7 +52652,7 @@ class Obj6 {
5260752652 * @return Undefined
5260852653 */
5260952654 public static function sampleUndefined(): Undefined {
52610- return Undefined::sample(); /*39:undefined*/
52655+ return Undefined::sample(); /*43:undefined*/
5261152656 }
5261252657
5261352658 /**
@@ -52655,7 +52700,7 @@ class Obj6 {
5265552700 * @return Union
5265652701 */
5265752702 public static function sampleUnion(): Union {
52658- return Union::sample(); /*40:union*/
52703+ return Union::sample(); /*44:union*/
5265952704 }
5266052705
5266152706 /**
@@ -52703,7 +52748,7 @@ class Obj6 {
5270352748 * @return UnmarshalJSON
5270452749 */
5270552750 public static function sampleUnmarshalJSON(): UnmarshalJSON {
52706- return UnmarshalJSON::sample(); /*41:unmarshalJSON*/
52751+ return UnmarshalJSON::sample(); /*45:unmarshalJSON*/
5270752752 }
5270852753
5270952754 /**
@@ -52751,7 +52796,7 @@ class Obj6 {
5275152796 * @return Unowned
5275252797 */
5275352798 public static function sampleUnowned(): Unowned {
52754- return Unowned::sample(); /*42:unowned*/
52799+ return Unowned::sample(); /*46:unowned*/
5275552800 }
5275652801
5275752802 /**
@@ -52799,7 +52844,7 @@ class Obj6 {
5279952844 * @return Unsafe
5280052845 */
5280152846 public static function sampleUnsafe(): Unsafe {
52802- return Unsafe::sample(); /*43:unsafe*/
52847+ return Unsafe::sample(); /*47:unsafe*/
5280352848 }
5280452849
5280552850 /**
@@ -52847,7 +52892,7 @@ class Obj6 {
5284752892 * @return Unsigned
5284852893 */
5284952894 public static function sampleUnsigned(): Unsigned {
52850- return Unsigned::sample(); /*44:unsigned*/
52895+ return Unsigned::sample(); /*48:unsigned*/
5285152896 }
5285252897
5285352898 /**
@@ -52895,7 +52940,7 @@ class Obj6 {
5289552940 * @return UseSerializers
5289652941 */
5289752942 public static function sampleUseSerializers(): UseSerializers {
52898- return UseSerializers::sample(); /*45:useSerializers*/
52943+ return UseSerializers::sample(); /*49:useSerializers*/
5289952944 }
5290052945
5290152946 /**
@@ -52943,7 +52988,7 @@ class Obj6 {
5294352988 * @return Ushort
5294452989 */
5294552990 public static function sampleUshort(): Ushort {
52946- return Ushort::sample(); /*46:ushort*/
52991+ return Ushort::sample(); /*50:ushort*/
5294752992 }
5294852993
5294952994 /**
@@ -52991,7 +53036,7 @@ class Obj6 {
5299153036 * @return Using
5299253037 */
5299353038 public static function sampleUsing(): Using {
52994- return Using::sample(); /*47:using*/
53039+ return Using::sample(); /*51:using*/
5299553040 }
5299653041
5299753042 /**
@@ -53039,7 +53084,7 @@ class Obj6 {
5303953084 * @return Utf8JSONReader
5304053085 */
5304153086 public static function sampleUtf8JSONReader(): Utf8JSONReader {
53042- return Utf8JSONReader::sample(); /*48:utf8JSONReader*/
53087+ return Utf8JSONReader::sample(); /*52:utf8JSONReader*/
5304353088 }
5304453089
5304553090 /**
@@ -53087,7 +53132,7 @@ class Obj6 {
5308753132 * @return Utf8JSONWriter
5308853133 */
5308953134 public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
53090- return Utf8JSONWriter::sample(); /*49:utf8JSONWriter*/
53135+ return Utf8JSONWriter::sample(); /*53:utf8JSONWriter*/
5309153136 }
5309253137
5309353138 /**
@@ -53135,7 +53180,7 @@ class Obj6 {
5313553180 * @return UUID
5313653181 */
5313753182 public static function sampleUUID(): UUID {
53138- return UUID::sample(); /*50:uuid*/
53183+ return UUID::sample(); /*54:uuid*/
5313953184 }
5314053185
5314153186 /**
@@ -53183,7 +53228,7 @@ class Obj6 {
5318353228 * @return VarClass
5318453229 */
5318553230 public static function sampleVar(): VarClass {
53186- return VarClass::sample(); /*51:var*/
53231+ return VarClass::sample(); /*55:var*/
5318753232 }
5318853233
5318953234 /**
@@ -53231,7 +53276,7 @@ class Obj6 {
5323153276 * @return Virtual
5323253277 */
5323353278 public static function sampleVirtual(): Virtual {
53234- return Virtual::sample(); /*52:virtual*/
53279+ return Virtual::sample(); /*56:virtual*/
5323553280 }
5323653281
5323753282 /**
@@ -53279,7 +53324,7 @@ class Obj6 {
5327953324 * @return VoidClass
5328053325 */
5328153326 public static function sampleVoid(): VoidClass {
53282- return VoidClass::sample(); /*53:void*/
53327+ return VoidClass::sample(); /*57:void*/
5328353328 }
5328453329
5328553330 /**
@@ -53327,7 +53372,7 @@ class Obj6 {
5332753372 * @return Volatile
5332853373 */
5332953374 public static function sampleVolatile(): Volatile {
53330- return Volatile::sample(); /*54:volatile*/
53375+ return Volatile::sample(); /*58:volatile*/
5333153376 }
5333253377
5333353378 /**
@@ -53375,7 +53420,7 @@ class Obj6 {
5337553420 * @return WcharT
5337653421 */
5337753422 public static function sampleWcharT(): WcharT {
53378- return WcharT::sample(); /*55:wcharT*/
53423+ return WcharT::sample(); /*59:wcharT*/
5337953424 }
5338053425
5338153426 /**
@@ -53423,7 +53468,7 @@ class Obj6 {
5342353468 * @return Weak
5342453469 */
5342553470 public static function sampleWeak(): Weak {
53426- return Weak::sample(); /*56:weak*/
53471+ return Weak::sample(); /*60:weak*/
5342753472 }
5342853473
5342953474 /**
@@ -53471,7 +53516,7 @@ class Obj6 {
5347153516 * @return Where
5347253517 */
5347353518 public static function sampleWhere(): Where {
53474- return Where::sample(); /*57:where*/
53519+ return Where::sample(); /*61:where*/
5347553520 }
5347653521
5347753522 /**
@@ -53519,7 +53564,7 @@ class Obj6 {
5351953564 * @return WhileClass
5352053565 */
5352153566 public static function sampleWhile(): WhileClass {
53522- return WhileClass::sample(); /*58:while*/
53567+ return WhileClass::sample(); /*62:while*/
5352353568 }
5352453569
5352553570 /**
@@ -53567,7 +53612,7 @@ class Obj6 {
5356753612 * @return WillSet
5356853613 */
5356953614 public static function sampleWillSet(): WillSet {
53570- return WillSet::sample(); /*59:willSet*/
53615+ return WillSet::sample(); /*63:willSet*/
5357153616 }
5357253617
5357353618 /**
@@ -53615,7 +53660,7 @@ class Obj6 {
5361553660 * @return With
5361653661 */
5361753662 public static function sampleWith(): With {
53618- return With::sample(); /*60:with*/
53663+ return With::sample(); /*64:with*/
5361953664 }
5362053665
5362153666 /**
@@ -53663,7 +53708,7 @@ class Obj6 {
5366353708 * @return XorClass
5366453709 */
5366553710 public static function sampleXor(): XorClass {
53666- return XorClass::sample(); /*61:xor*/
53711+ return XorClass::sample(); /*65:xor*/
5366753712 }
5366853713
5366953714 /**
@@ -53711,7 +53756,7 @@ class Obj6 {
5371153756 * @return XorEq
5371253757 */
5371353758 public static function sampleXorEq(): XorEq {
53714- return XorEq::sample(); /*62:xorEq*/
53759+ return XorEq::sample(); /*66:xorEq*/
5371553760 }
5371653761
5371753762 /**
@@ -53759,7 +53804,7 @@ class Obj6 {
5375953804 * @return Yes
5376053805 */
5376153806 public static function sampleYes(): Yes {
53762- return Yes::sample(); /*63:yes*/
53807+ return Yes::sample(); /*67:yes*/
5376353808 }
5376453809
5376553810 /**
@@ -53807,7 +53852,7 @@ class Obj6 {
5380753852 * @return YieldClass
5380853853 */
5380953854 public static function sampleYield(): YieldClass {
53810- return YieldClass::sample(); /*64:yield*/
53855+ return YieldClass::sample(); /*68:yield*/
5381153856 }
5381253857
5381353858 /**
@@ -53816,6 +53861,10 @@ class Obj6 {
5381653861 */
5381753862 public function validate(): bool {
5381853863 return Obj6::validateDummy($this->dummy)
53864+ || Obj6::validateObj6Type($this->obj6Type)
53865+ || Obj6::validateTry($this->try)
53866+ || Obj6::validateType($this->type)
53867+ || Obj6::validateTypealias($this->typealias)
5381953868 || Obj6::validateTypedef($this->typedef)
5382053869 || Obj6::validateTypeid($this->typeid)
5382153870 || Obj6::validateTypename($this->typename)
@@ -53858,6 +53907,10 @@ class Obj6 {
5385853907 public function to(): stdClass {
5385953908 $out = new stdClass();
5386053909 $out->{'dummy'} = $this->toDummy();
53910+ $out->{'type'} = $this->toObj6Type();
53911+ $out->{'try'} = $this->toTry();
53912+ $out->{'Type'} = $this->toType();
53913+ $out->{'typealias'} = $this->toTypealias();
5386153914 $out->{'typedef'} = $this->toTypedef();
5386253915 $out->{'typeid'} = $this->toTypeid();
5386353916 $out->{'typename'} = $this->toTypename();
@@ -53903,6 +53956,18 @@ class Obj6 {
5390353956 if (!property_exists($obj, 'dummy')) {
5390453957 throw new Exception("Missing required property");
5390553958 }
53959+ if (!property_exists($obj, 'type')) {
53960+ throw new Exception("Missing required property");
53961+ }
53962+ if (!property_exists($obj, 'try')) {
53963+ throw new Exception("Missing required property");
53964+ }
53965+ if (!property_exists($obj, 'Type')) {
53966+ throw new Exception("Missing required property");
53967+ }
53968+ if (!property_exists($obj, 'typealias')) {
53969+ throw new Exception("Missing required property");
53970+ }
5390653971 if (!property_exists($obj, 'typedef')) {
5390753972 throw new Exception("Missing required property");
5390853973 }
@@ -54004,6 +54069,10 @@ class Obj6 {
5400454069 }
5400554070 return new Obj6(
5400654071 Obj6::fromDummy($obj->{'dummy'})
54072+ ,Obj6::fromObj6Type($obj->{'type'})
54073+ ,Obj6::fromTry($obj->{'try'})
54074+ ,Obj6::fromType($obj->{'Type'})
54075+ ,Obj6::fromTypealias($obj->{'typealias'})
5400754076 ,Obj6::fromTypedef($obj->{'typedef'})
5400854077 ,Obj6::fromTypeid($obj->{'typeid'})
5400954078 ,Obj6::fromTypename($obj->{'typename'})
@@ -54046,6 +54115,10 @@ class Obj6 {
5404654115 public static function sample(): Obj6 {
5404754116 return new Obj6(
5404854117 Obj6::sampleDummy()
54118+ ,Obj6::sampleObj6Type()
54119+ ,Obj6::sampleTry()
54120+ ,Obj6::sampleType()
54121+ ,Obj6::sampleTypealias()
5404954122 ,Obj6::sampleTypedef()
5405054123 ,Obj6::sampleTypeid()
5405154124 ,Obj6::sampleTypename()
@@ -54083,6 +54156,410 @@ class Obj6 {
5408354156 }
5408454157 }
5408554158
54159+// This is an autogenerated file:TypeClass
54160+
54161+class TypeClass {
54162+ private int $type; // json:type Required
54163+
54164+ /**
54165+ * @param int $type
54166+ */
54167+ public function __construct(int $type) {
54168+ $this->type = $type;
54169+ }
54170+
54171+ /**
54172+ * @param int $value
54173+ * @throws Exception
54174+ * @return int
54175+ */
54176+ public static function fromType(int $value): int {
54177+ return $value; /*int*/
54178+ }
54179+
54180+ /**
54181+ * @throws Exception
54182+ * @return int
54183+ */
54184+ public function toType(): int {
54185+ if (TypeClass::validateType($this->type)) {
54186+ return $this->type; /*int*/
54187+ }
54188+ throw new Exception('never get to this TypeClass::type');
54189+ }
54190+
54191+ /**
54192+ * @param int
54193+ * @return bool
54194+ * @throws Exception
54195+ */
54196+ public static function validateType(int $value): bool {
54197+ return true;
54198+ }
54199+
54200+ /**
54201+ * @throws Exception
54202+ * @return int
54203+ */
54204+ public function getType(): int {
54205+ if (TypeClass::validateType($this->type)) {
54206+ return $this->type;
54207+ }
54208+ throw new Exception('never get to getType TypeClass::type');
54209+ }
54210+
54211+ /**
54212+ * @return int
54213+ */
54214+ public static function sampleType(): int {
54215+ return 31; /*31:type*/
54216+ }
54217+
54218+ /**
54219+ * @throws Exception
54220+ * @return bool
54221+ */
54222+ public function validate(): bool {
54223+ return TypeClass::validateType($this->type);
54224+ }
54225+
54226+ /**
54227+ * @return stdClass
54228+ * @throws Exception
54229+ */
54230+ public function to(): stdClass {
54231+ $out = new stdClass();
54232+ $out->{'type'} = $this->toType();
54233+ return $out;
54234+ }
54235+
54236+ /**
54237+ * @param stdClass $obj
54238+ * @return TypeClass
54239+ * @throws Exception
54240+ */
54241+ public static function from(stdClass $obj): TypeClass {
54242+ if (!property_exists($obj, 'type')) {
54243+ throw new Exception("Missing required property");
54244+ }
54245+ return new TypeClass(
54246+ TypeClass::fromType($obj->{'type'})
54247+ );
54248+ }
54249+
54250+ /**
54251+ * @return TypeClass
54252+ */
54253+ public static function sample(): TypeClass {
54254+ return new TypeClass(
54255+ TypeClass::sampleType()
54256+ );
54257+ }
54258+}
54259+
54260+// This is an autogenerated file:TryClass
54261+
54262+class TryClass {
54263+ private int $try; // json:try Required
54264+
54265+ /**
54266+ * @param int $try
54267+ */
54268+ public function __construct(int $try) {
54269+ $this->try = $try;
54270+ }
54271+
54272+ /**
54273+ * @param int $value
54274+ * @throws Exception
54275+ * @return int
54276+ */
54277+ public static function fromTry(int $value): int {
54278+ return $value; /*int*/
54279+ }
54280+
54281+ /**
54282+ * @throws Exception
54283+ * @return int
54284+ */
54285+ public function toTry(): int {
54286+ if (TryClass::validateTry($this->try)) {
54287+ return $this->try; /*int*/
54288+ }
54289+ throw new Exception('never get to this TryClass::try');
54290+ }
54291+
54292+ /**
54293+ * @param int
54294+ * @return bool
54295+ * @throws Exception
54296+ */
54297+ public static function validateTry(int $value): bool {
54298+ return true;
54299+ }
54300+
54301+ /**
54302+ * @throws Exception
54303+ * @return int
54304+ */
54305+ public function getTry(): int {
54306+ if (TryClass::validateTry($this->try)) {
54307+ return $this->try;
54308+ }
54309+ throw new Exception('never get to getTry TryClass::try');
54310+ }
54311+
54312+ /**
54313+ * @return int
54314+ */
54315+ public static function sampleTry(): int {
54316+ return 31; /*31:try*/
54317+ }
54318+
54319+ /**
54320+ * @throws Exception
54321+ * @return bool
54322+ */
54323+ public function validate(): bool {
54324+ return TryClass::validateTry($this->try);
54325+ }
54326+
54327+ /**
54328+ * @return stdClass
54329+ * @throws Exception
54330+ */
54331+ public function to(): stdClass {
54332+ $out = new stdClass();
54333+ $out->{'try'} = $this->toTry();
54334+ return $out;
54335+ }
54336+
54337+ /**
54338+ * @param stdClass $obj
54339+ * @return TryClass
54340+ * @throws Exception
54341+ */
54342+ public static function from(stdClass $obj): TryClass {
54343+ if (!property_exists($obj, 'try')) {
54344+ throw new Exception("Missing required property");
54345+ }
54346+ return new TryClass(
54347+ TryClass::fromTry($obj->{'try'})
54348+ );
54349+ }
54350+
54351+ /**
54352+ * @return TryClass
54353+ */
54354+ public static function sample(): TryClass {
54355+ return new TryClass(
54356+ TryClass::sampleTry()
54357+ );
54358+ }
54359+}
54360+
54361+// This is an autogenerated file:Type
54362+
54363+class Type {
54364+ private int $type; // json:Type Required
54365+
54366+ /**
54367+ * @param int $type
54368+ */
54369+ public function __construct(int $type) {
54370+ $this->type = $type;
54371+ }
54372+
54373+ /**
54374+ * @param int $value
54375+ * @throws Exception
54376+ * @return int
54377+ */
54378+ public static function fromType(int $value): int {
54379+ return $value; /*int*/
54380+ }
54381+
54382+ /**
54383+ * @throws Exception
54384+ * @return int
54385+ */
54386+ public function toType(): int {
54387+ if (Type::validateType($this->type)) {
54388+ return $this->type; /*int*/
54389+ }
54390+ throw new Exception('never get to this Type::type');
54391+ }
54392+
54393+ /**
54394+ * @param int
54395+ * @return bool
54396+ * @throws Exception
54397+ */
54398+ public static function validateType(int $value): bool {
54399+ return true;
54400+ }
54401+
54402+ /**
54403+ * @throws Exception
54404+ * @return int
54405+ */
54406+ public function getType(): int {
54407+ if (Type::validateType($this->type)) {
54408+ return $this->type;
54409+ }
54410+ throw new Exception('never get to getType Type::type');
54411+ }
54412+
54413+ /**
54414+ * @return int
54415+ */
54416+ public static function sampleType(): int {
54417+ return 31; /*31:type*/
54418+ }
54419+
54420+ /**
54421+ * @throws Exception
54422+ * @return bool
54423+ */
54424+ public function validate(): bool {
54425+ return Type::validateType($this->type);
54426+ }
54427+
54428+ /**
54429+ * @return stdClass
54430+ * @throws Exception
54431+ */
54432+ public function to(): stdClass {
54433+ $out = new stdClass();
54434+ $out->{'Type'} = $this->toType();
54435+ return $out;
54436+ }
54437+
54438+ /**
54439+ * @param stdClass $obj
54440+ * @return Type
54441+ * @throws Exception
54442+ */
54443+ public static function from(stdClass $obj): Type {
54444+ if (!property_exists($obj, 'Type')) {
54445+ throw new Exception("Missing required property");
54446+ }
54447+ return new Type(
54448+ Type::fromType($obj->{'Type'})
54449+ );
54450+ }
54451+
54452+ /**
54453+ * @return Type
54454+ */
54455+ public static function sample(): Type {
54456+ return new Type(
54457+ Type::sampleType()
54458+ );
54459+ }
54460+}
54461+
54462+// This is an autogenerated file:Typealias
54463+
54464+class Typealias {
54465+ private int $typealias; // json:typealias Required
54466+
54467+ /**
54468+ * @param int $typealias
54469+ */
54470+ public function __construct(int $typealias) {
54471+ $this->typealias = $typealias;
54472+ }
54473+
54474+ /**
54475+ * @param int $value
54476+ * @throws Exception
54477+ * @return int
54478+ */
54479+ public static function fromTypealias(int $value): int {
54480+ return $value; /*int*/
54481+ }
54482+
54483+ /**
54484+ * @throws Exception
54485+ * @return int
54486+ */
54487+ public function toTypealias(): int {
54488+ if (Typealias::validateTypealias($this->typealias)) {
54489+ return $this->typealias; /*int*/
54490+ }
54491+ throw new Exception('never get to this Typealias::typealias');
54492+ }
54493+
54494+ /**
54495+ * @param int
54496+ * @return bool
54497+ * @throws Exception
54498+ */
54499+ public static function validateTypealias(int $value): bool {
54500+ return true;
54501+ }
54502+
54503+ /**
54504+ * @throws Exception
54505+ * @return int
54506+ */
54507+ public function getTypealias(): int {
54508+ if (Typealias::validateTypealias($this->typealias)) {
54509+ return $this->typealias;
54510+ }
54511+ throw new Exception('never get to getTypealias Typealias::typealias');
54512+ }
54513+
54514+ /**
54515+ * @return int
54516+ */
54517+ public static function sampleTypealias(): int {
54518+ return 31; /*31:typealias*/
54519+ }
54520+
54521+ /**
54522+ * @throws Exception
54523+ * @return bool
54524+ */
54525+ public function validate(): bool {
54526+ return Typealias::validateTypealias($this->typealias);
54527+ }
54528+
54529+ /**
54530+ * @return stdClass
54531+ * @throws Exception
54532+ */
54533+ public function to(): stdClass {
54534+ $out = new stdClass();
54535+ $out->{'typealias'} = $this->toTypealias();
54536+ return $out;
54537+ }
54538+
54539+ /**
54540+ * @param stdClass $obj
54541+ * @return Typealias
54542+ * @throws Exception
54543+ */
54544+ public static function from(stdClass $obj): Typealias {
54545+ if (!property_exists($obj, 'typealias')) {
54546+ throw new Exception("Missing required property");
54547+ }
54548+ return new Typealias(
54549+ Typealias::fromTypealias($obj->{'typealias'})
54550+ );
54551+ }
54552+
54553+ /**
54554+ * @return Typealias
54555+ */
54556+ public static function sample(): Typealias {
54557+ return new Typealias(
54558+ Typealias::sampleTypealias()
54559+ );
54560+ }
54561+}
54562+
5408654563 // This is an autogenerated file:Typedef
5408754564
5408854565 class Typedef {
Mpikedefault / TopLevel.pmod+318 −243
@@ -3355,6 +3355,7 @@ class Obj3 {
33553355 Left left; // json: "left"
33563356 Let let; // json: "let"
33573357 List list; // json: "list"
3358+ LocalDate local_date; // json: "LocalDate"
33583359 Locale locale; // json: "Locale"
33593360 Lock lock; // json: "lock"
33603361 Long long; // json: "long"
@@ -3364,8 +3365,6 @@ class Obj3 {
33643365 MarshalJson marshal_json; // json: "MarshalJSON"
33653366 MetadataPropertyHandling metadata_property_handling; // json: "metadata_property_handling"
33663367 Module module; // json: "module"
3367- Mutable mutable; // json: "mutable"
3368- Mutating mutating; // json: "mutating"
33693368 Function obj3_function; // json: "function"
33703369 Global obj3_global; // json: "global"
33713370 If obj3_if; // json: "if"
@@ -3424,6 +3423,7 @@ class Obj3 {
34243423 "left" : left,
34253424 "let" : let,
34263425 "list" : list,
3426+ "LocalDate" : local_date,
34273427 "Locale" : locale,
34283428 "lock" : lock,
34293429 "long" : long,
@@ -3433,8 +3433,6 @@ class Obj3 {
34333433 "MarshalJSON" : marshal_json,
34343434 "metadata_property_handling" : metadata_property_handling,
34353435 "module" : module,
3436- "mutable" : mutable,
3437- "mutating" : mutating,
34383436 "function" : obj3_function,
34393437 "global" : obj3_global,
34403438 "if" : obj3_if,
@@ -3547,6 +3545,8 @@ Obj3 Obj3_from_JSON(mixed json) {
35473545 retval.let = json["let"];
35483546 if (!mappingp(json["list"])) error("Expected object");
35493547 retval.list = json["list"];
3548+ if (!mappingp(json["LocalDate"])) error("Expected object");
3549+ retval.local_date = json["LocalDate"];
35503550 if (!mappingp(json["Locale"])) error("Expected object");
35513551 retval.locale = json["Locale"];
35523552 if (!mappingp(json["lock"])) error("Expected object");
@@ -3565,10 +3565,6 @@ Obj3 Obj3_from_JSON(mixed json) {
35653565 retval.metadata_property_handling = json["metadata_property_handling"];
35663566 if (!mappingp(json["module"])) error("Expected object");
35673567 retval.module = json["module"];
3568- if (!mappingp(json["mutable"])) error("Expected object");
3569- retval.mutable = json["mutable"];
3570- if (!mappingp(json["mutating"])) error("Expected object");
3571- retval.mutating = json["mutating"];
35723568 if (!mappingp(json["function"])) error("Expected object");
35733569 retval.obj3_function = json["function"];
35743570 if (!mappingp(json["global"])) error("Expected object");
@@ -4573,6 +4569,27 @@ List List_from_JSON(mixed json) {
45734569 return retval;
45744570 }
45754571
4572+class LocalDate {
4573+ int local_date; // json: "LocalDate"
4574+
4575+ string encode_json() {
4576+ mapping(string:mixed) json = ([
4577+ "LocalDate" : local_date,
4578+ ]);
4579+
4580+ return Standards.JSON.encode(json);
4581+ }
4582+}
4583+
4584+LocalDate LocalDate_from_JSON(mixed json) {
4585+ LocalDate retval = LocalDate();
4586+
4587+ if (!intp(json["LocalDate"])) error("Expected integer");
4588+ retval.local_date = json["LocalDate"];
4589+
4590+ return retval;
4591+}
4592+
45764593 class Locale {
45774594 int locale; // json: "Locale"
45784595
@@ -4762,48 +4779,6 @@ Module Module_from_JSON(mixed json) {
47624779 return retval;
47634780 }
47644781
4765-class Mutable {
4766- int mutable; // json: "mutable"
4767-
4768- string encode_json() {
4769- mapping(string:mixed) json = ([
4770- "mutable" : mutable,
4771- ]);
4772-
4773- return Standards.JSON.encode(json);
4774- }
4775-}
4776-
4777-Mutable Mutable_from_JSON(mixed json) {
4778- Mutable retval = Mutable();
4779-
4780- if (!intp(json["mutable"])) error("Expected integer");
4781- retval.mutable = json["mutable"];
4782-
4783- return retval;
4784-}
4785-
4786-class Mutating {
4787- int mutating; // json: "mutating"
4788-
4789- string encode_json() {
4790- mapping(string:mixed) json = ([
4791- "mutating" : mutating,
4792- ]);
4793-
4794- return Standards.JSON.encode(json);
4795- }
4796-}
4797-
4798-Mutating Mutating_from_JSON(mixed json) {
4799- Mutating retval = Mutating();
4800-
4801- if (!intp(json["mutating"])) error("Expected integer");
4802- retval.mutating = json["mutating"];
4803-
4804- return retval;
4805-}
4806-
48074782 class Function {
48084783 int function_function; // json: "function"
48094784
@@ -4953,6 +4928,8 @@ Lambda Lambda_from_JSON(mixed json) {
49534928
49544929 class Obj4 {
49554930 int dummy; // json: "dummy"
4931+ Mutable mutable; // json: "mutable"
4932+ Mutating mutating; // json: "mutating"
49564933 Namespace namespace; // json: "namespace"
49574934 Native native; // json: "native"
49584935 New new; // json: "new"
@@ -4987,6 +4964,8 @@ class Obj4 {
49874964 ObjectReader object_reader; // json: "ObjectReader"
49884965 ObjectWriter object_writer; // json: "ObjectWriter"
49894966 Of of; // json: "of"
4967+ OffsetDateTime offset_date_time; // json: "OffsetDateTime"
4968+ OffsetTime offset_time; // json: "OffsetTime"
49904969 Oneway oneway; // json: "oneway"
49914970 Open open; // json: "open"
49924971 Operator operator; // json: "operator"
@@ -5013,14 +4992,12 @@ class Obj4 {
50134992 RegExp reg_exp; // json: "RegExp"
50144993 Register register; // json: "register"
50154994 ReinterpretCast reinterpret_cast; // json: "reinterpret_cast"
5016- Repeat repeat; // json: "repeat"
5017- Require require; // json: "require"
5018- Required required; // json: "required"
5019- Requires requires; // json: "requires"
50204995
50214996 string encode_json() {
50224997 mapping(string:mixed) json = ([
50234998 "dummy" : dummy,
4999+ "mutable" : mutable,
5000+ "mutating" : mutating,
50245001 "namespace" : namespace,
50255002 "native" : native,
50265003 "new" : new,
@@ -5055,6 +5032,8 @@ class Obj4 {
50555032 "ObjectReader" : object_reader,
50565033 "ObjectWriter" : object_writer,
50575034 "of" : of,
5035+ "OffsetDateTime" : offset_date_time,
5036+ "OffsetTime" : offset_time,
50585037 "oneway" : oneway,
50595038 "open" : open,
50605039 "operator" : operator,
@@ -5081,10 +5060,6 @@ class Obj4 {
50815060 "RegExp" : reg_exp,
50825061 "register" : register,
50835062 "reinterpret_cast" : reinterpret_cast,
5084- "repeat" : repeat,
5085- "require" : require,
5086- "required" : required,
5087- "requires" : requires,
50885063 ]);
50895064
50905065 return Standards.JSON.encode(json);
@@ -5096,6 +5071,10 @@ Obj4 Obj4_from_JSON(mixed json) {
50965071
50975072 if (!intp(json["dummy"])) error("Expected integer");
50985073 retval.dummy = json["dummy"];
5074+ if (!mappingp(json["mutable"])) error("Expected object");
5075+ retval.mutable = json["mutable"];
5076+ if (!mappingp(json["mutating"])) error("Expected object");
5077+ retval.mutating = json["mutating"];
50995078 if (!mappingp(json["namespace"])) error("Expected object");
51005079 retval.namespace = json["namespace"];
51015080 if (!mappingp(json["native"])) error("Expected object");
@@ -5164,6 +5143,10 @@ Obj4 Obj4_from_JSON(mixed json) {
51645143 retval.object_writer = json["ObjectWriter"];
51655144 if (!mappingp(json["of"])) error("Expected object");
51665145 retval.of = json["of"];
5146+ if (!mappingp(json["OffsetDateTime"])) error("Expected object");
5147+ retval.offset_date_time = json["OffsetDateTime"];
5148+ if (!mappingp(json["OffsetTime"])) error("Expected object");
5149+ retval.offset_time = json["OffsetTime"];
51675150 if (!mappingp(json["oneway"])) error("Expected object");
51685151 retval.oneway = json["oneway"];
51695152 if (!mappingp(json["open"])) error("Expected object");
@@ -5216,14 +5199,48 @@ Obj4 Obj4_from_JSON(mixed json) {
52165199 retval.register = json["register"];
52175200 if (!mappingp(json["reinterpret_cast"])) error("Expected object");
52185201 retval.reinterpret_cast = json["reinterpret_cast"];
5219- if (!mappingp(json["repeat"])) error("Expected object");
5220- retval.repeat = json["repeat"];
5221- if (!mappingp(json["require"])) error("Expected object");
5222- retval.require = json["require"];
5223- if (!mappingp(json["required"])) error("Expected object");
5224- retval.required = json["required"];
5225- if (!mappingp(json["requires"])) error("Expected object");
5226- retval.requires = json["requires"];
5202+
5203+ return retval;
5204+}
5205+
5206+class Mutable {
5207+ int mutable; // json: "mutable"
5208+
5209+ string encode_json() {
5210+ mapping(string:mixed) json = ([
5211+ "mutable" : mutable,
5212+ ]);
5213+
5214+ return Standards.JSON.encode(json);
5215+ }
5216+}
5217+
5218+Mutable Mutable_from_JSON(mixed json) {
5219+ Mutable retval = Mutable();
5220+
5221+ if (!intp(json["mutable"])) error("Expected integer");
5222+ retval.mutable = json["mutable"];
5223+
5224+ return retval;
5225+}
5226+
5227+class Mutating {
5228+ int mutating; // json: "mutating"
5229+
5230+ string encode_json() {
5231+ mapping(string:mixed) json = ([
5232+ "mutating" : mutating,
5233+ ]);
5234+
5235+ return Standards.JSON.encode(json);
5236+ }
5237+}
5238+
5239+Mutating Mutating_from_JSON(mixed json) {
5240+ Mutating retval = Mutating();
5241+
5242+ if (!intp(json["mutating"])) error("Expected integer");
5243+ retval.mutating = json["mutating"];
52275244
52285245 return retval;
52295246 }
@@ -5942,6 +5959,48 @@ Of Of_from_JSON(mixed json) {
59425959 return retval;
59435960 }
59445961
5962+class OffsetDateTime {
5963+ int offset_date_time; // json: "OffsetDateTime"
5964+
5965+ string encode_json() {
5966+ mapping(string:mixed) json = ([
5967+ "OffsetDateTime" : offset_date_time,
5968+ ]);
5969+
5970+ return Standards.JSON.encode(json);
5971+ }
5972+}
5973+
5974+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5975+ OffsetDateTime retval = OffsetDateTime();
5976+
5977+ if (!intp(json["OffsetDateTime"])) error("Expected integer");
5978+ retval.offset_date_time = json["OffsetDateTime"];
5979+
5980+ return retval;
5981+}
5982+
5983+class OffsetTime {
5984+ int offset_time; // json: "OffsetTime"
5985+
5986+ string encode_json() {
5987+ mapping(string:mixed) json = ([
5988+ "OffsetTime" : offset_time,
5989+ ]);
5990+
5991+ return Standards.JSON.encode(json);
5992+ }
5993+}
5994+
5995+OffsetTime OffsetTime_from_JSON(mixed json) {
5996+ OffsetTime retval = OffsetTime();
5997+
5998+ if (!intp(json["OffsetTime"])) error("Expected integer");
5999+ retval.offset_time = json["OffsetTime"];
6000+
6001+ return retval;
6002+}
6003+
59456004 class Oneway {
59466005 int oneway; // json: "oneway"
59476006
@@ -6487,90 +6546,6 @@ ReinterpretCast ReinterpretCast_from_JSON(mixed json) {
64876546 return retval;
64886547 }
64896548
6490-class Repeat {
6491- int repeat; // json: "repeat"
6492-
6493- string encode_json() {
6494- mapping(string:mixed) json = ([
6495- "repeat" : repeat,
6496- ]);
6497-
6498- return Standards.JSON.encode(json);
6499- }
6500-}
6501-
6502-Repeat Repeat_from_JSON(mixed json) {
6503- Repeat retval = Repeat();
6504-
6505- if (!intp(json["repeat"])) error("Expected integer");
6506- retval.repeat = json["repeat"];
6507-
6508- return retval;
6509-}
6510-
6511-class Require {
6512- int require; // json: "require"
6513-
6514- string encode_json() {
6515- mapping(string:mixed) json = ([
6516- "require" : require,
6517- ]);
6518-
6519- return Standards.JSON.encode(json);
6520- }
6521-}
6522-
6523-Require Require_from_JSON(mixed json) {
6524- Require retval = Require();
6525-
6526- if (!intp(json["require"])) error("Expected integer");
6527- retval.require = json["require"];
6528-
6529- return retval;
6530-}
6531-
6532-class Required {
6533- int required; // json: "required"
6534-
6535- string encode_json() {
6536- mapping(string:mixed) json = ([
6537- "required" : required,
6538- ]);
6539-
6540- return Standards.JSON.encode(json);
6541- }
6542-}
6543-
6544-Required Required_from_JSON(mixed json) {
6545- Required retval = Required();
6546-
6547- if (!intp(json["required"])) error("Expected integer");
6548- retval.required = json["required"];
6549-
6550- return retval;
6551-}
6552-
6553-class Requires {
6554- int requires; // json: "requires"
6555-
6556- string encode_json() {
6557- mapping(string:mixed) json = ([
6558- "requires" : requires,
6559- ]);
6560-
6561- return Standards.JSON.encode(json);
6562- }
6563-}
6564-
6565-Requires Requires_from_JSON(mixed json) {
6566- Requires retval = Requires();
6567-
6568- if (!intp(json["requires"])) error("Expected integer");
6569- retval.requires = json["requires"];
6570-
6571- return retval;
6572-}
6573-
65746549 class Obj5 {
65756550 int dummy; // json: "dummy"
65766551 KSerializer k_serializer; // json: "KSerializer"
@@ -6580,8 +6555,11 @@ class Obj5 {
65806555 String obj5_string; // json: "string"
65816556 Switch obj5_switch; // json: "switch"
65826557 TrueClass obj5_true; // json: "true"
6583- TypeClass obj5_type; // json: "type"
65846558 PrimitiveKind primitive_kind; // json: "PrimitiveKind"
6559+ Repeat repeat; // json: "repeat"
6560+ Require require; // json: "require"
6561+ Required required; // json: "required"
6562+ Requires requires; // json: "requires"
65856563 Restrict restrict; // json: "restrict"
65866564 Retain retain; // json: "retain"
65876565 Rethrows rethrows; // json: "rethrows"
@@ -6634,9 +6612,6 @@ class Obj5 {
66346612 TopLevelClass top_level; // json: "top_level"
66356613 Transient transient; // json: "transient"
66366614 True true; // json: "True"
6637- Try try; // json: "try"
6638- Type type; // json: "Type"
6639- Typealias typealias; // json: "typealias"
66406615
66416616 string encode_json() {
66426617 mapping(string:mixed) json = ([
@@ -6648,8 +6623,11 @@ class Obj5 {
66486623 "string" : obj5_string,
66496624 "switch" : obj5_switch,
66506625 "true" : obj5_true,
6651- "type" : obj5_type,
66526626 "PrimitiveKind" : primitive_kind,
6627+ "repeat" : repeat,
6628+ "require" : require,
6629+ "required" : required,
6630+ "requires" : requires,
66536631 "restrict" : restrict,
66546632 "retain" : retain,
66556633 "rethrows" : rethrows,
@@ -6702,9 +6680,6 @@ class Obj5 {
67026680 "top_level" : top_level,
67036681 "transient" : transient,
67046682 "True" : true,
6705- "try" : try,
6706- "Type" : type,
6707- "typealias" : typealias,
67086683 ]);
67096684
67106685 return Standards.JSON.encode(json);
@@ -6730,10 +6705,16 @@ Obj5 Obj5_from_JSON(mixed json) {
67306705 retval.obj5_switch = json["switch"];
67316706 if (!mappingp(json["true"])) error("Expected object");
67326707 retval.obj5_true = json["true"];
6733- if (!mappingp(json["type"])) error("Expected object");
6734- retval.obj5_type = json["type"];
67356708 if (!mappingp(json["PrimitiveKind"])) error("Expected object");
67366709 retval.primitive_kind = json["PrimitiveKind"];
6710+ if (!mappingp(json["repeat"])) error("Expected object");
6711+ retval.repeat = json["repeat"];
6712+ if (!mappingp(json["require"])) error("Expected object");
6713+ retval.require = json["require"];
6714+ if (!mappingp(json["required"])) error("Expected object");
6715+ retval.required = json["required"];
6716+ if (!mappingp(json["requires"])) error("Expected object");
6717+ retval.requires = json["requires"];
67376718 if (!mappingp(json["restrict"])) error("Expected object");
67386719 retval.restrict = json["restrict"];
67396720 if (!mappingp(json["retain"])) error("Expected object");
@@ -6838,12 +6819,6 @@ Obj5 Obj5_from_JSON(mixed json) {
68386819 retval.transient = json["transient"];
68396820 if (!mappingp(json["True"])) error("Expected object");
68406821 retval.true = json["True"];
6841- if (!mappingp(json["try"])) error("Expected object");
6842- retval.try = json["try"];
6843- if (!mappingp(json["Type"])) error("Expected object");
6844- retval.type = json["Type"];
6845- if (!mappingp(json["typealias"])) error("Expected object");
6846- retval.typealias = json["typealias"];
68476822
68486823 return retval;
68496824 }
@@ -6995,44 +6970,107 @@ TrueClass TrueClass_from_JSON(mixed json) {
69956970 return retval;
69966971 }
69976972
6998-class TypeClass {
6999- int type; // json: "type"
6973+class PrimitiveKind {
6974+ int primitive_kind; // json: "PrimitiveKind"
70006975
70016976 string encode_json() {
70026977 mapping(string:mixed) json = ([
7003- "type" : type,
6978+ "PrimitiveKind" : primitive_kind,
70046979 ]);
70056980
70066981 return Standards.JSON.encode(json);
70076982 }
70086983 }
70096984
7010-TypeClass TypeClass_from_JSON(mixed json) {
7011- TypeClass retval = TypeClass();
6985+PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
6986+ PrimitiveKind retval = PrimitiveKind();
70126987
7013- if (!intp(json["type"])) error("Expected integer");
7014- retval.type = json["type"];
6988+ if (!intp(json["PrimitiveKind"])) error("Expected integer");
6989+ retval.primitive_kind = json["PrimitiveKind"];
70156990
70166991 return retval;
70176992 }
70186993
7019-class PrimitiveKind {
7020- int primitive_kind; // json: "PrimitiveKind"
6994+class Repeat {
6995+ int repeat; // json: "repeat"
70216996
70226997 string encode_json() {
70236998 mapping(string:mixed) json = ([
7024- "PrimitiveKind" : primitive_kind,
6999+ "repeat" : repeat,
70257000 ]);
70267001
70277002 return Standards.JSON.encode(json);
70287003 }
70297004 }
70307005
7031-PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
7032- PrimitiveKind retval = PrimitiveKind();
7006+Repeat Repeat_from_JSON(mixed json) {
7007+ Repeat retval = Repeat();
70337008
7034- if (!intp(json["PrimitiveKind"])) error("Expected integer");
7035- retval.primitive_kind = json["PrimitiveKind"];
7009+ if (!intp(json["repeat"])) error("Expected integer");
7010+ retval.repeat = json["repeat"];
7011+
7012+ return retval;
7013+}
7014+
7015+class Require {
7016+ int require; // json: "require"
7017+
7018+ string encode_json() {
7019+ mapping(string:mixed) json = ([
7020+ "require" : require,
7021+ ]);
7022+
7023+ return Standards.JSON.encode(json);
7024+ }
7025+}
7026+
7027+Require Require_from_JSON(mixed json) {
7028+ Require retval = Require();
7029+
7030+ if (!intp(json["require"])) error("Expected integer");
7031+ retval.require = json["require"];
7032+
7033+ return retval;
7034+}
7035+
7036+class Required {
7037+ int required; // json: "required"
7038+
7039+ string encode_json() {
7040+ mapping(string:mixed) json = ([
7041+ "required" : required,
7042+ ]);
7043+
7044+ return Standards.JSON.encode(json);
7045+ }
7046+}
7047+
7048+Required Required_from_JSON(mixed json) {
7049+ Required retval = Required();
7050+
7051+ if (!intp(json["required"])) error("Expected integer");
7052+ retval.required = json["required"];
7053+
7054+ return retval;
7055+}
7056+
7057+class Requires {
7058+ int requires; // json: "requires"
7059+
7060+ string encode_json() {
7061+ mapping(string:mixed) json = ([
7062+ "requires" : requires,
7063+ ]);
7064+
7065+ return Standards.JSON.encode(json);
7066+ }
7067+}
7068+
7069+Requires Requires_from_JSON(mixed json) {
7070+ Requires retval = Requires();
7071+
7072+ if (!intp(json["requires"])) error("Expected integer");
7073+ retval.requires = json["requires"];
70367074
70377075 return retval;
70387076 }
@@ -8129,75 +8167,16 @@ True True_from_JSON(mixed json) {
81298167 return retval;
81308168 }
81318169
8132-class Try {
8133- int try; // json: "try"
8134-
8135- string encode_json() {
8136- mapping(string:mixed) json = ([
8137- "try" : try,
8138- ]);
8139-
8140- return Standards.JSON.encode(json);
8141- }
8142-}
8143-
8144-Try Try_from_JSON(mixed json) {
8145- Try retval = Try();
8146-
8147- if (!intp(json["try"])) error("Expected integer");
8148- retval.try = json["try"];
8149-
8150- return retval;
8151-}
8152-
8153-class Type {
8154- int type; // json: "Type"
8155-
8156- string encode_json() {
8157- mapping(string:mixed) json = ([
8158- "Type" : type,
8159- ]);
8160-
8161- return Standards.JSON.encode(json);
8162- }
8163-}
8164-
8165-Type Type_from_JSON(mixed json) {
8166- Type retval = Type();
8167-
8168- if (!intp(json["Type"])) error("Expected integer");
8169- retval.type = json["Type"];
8170-
8171- return retval;
8172-}
8173-
8174-class Typealias {
8175- int typealias; // json: "typealias"
8176-
8177- string encode_json() {
8178- mapping(string:mixed) json = ([
8179- "typealias" : typealias,
8180- ]);
8181-
8182- return Standards.JSON.encode(json);
8183- }
8184-}
8185-
8186-Typealias Typealias_from_JSON(mixed json) {
8187- Typealias retval = Typealias();
8188-
8189- if (!intp(json["typealias"])) error("Expected integer");
8190- retval.typealias = json["typealias"];
8191-
8192- return retval;
8193-}
8194-
81958170 class Obj6 {
81968171 int dummy; // json: "dummy"
8172+ TypeClass obj6_type; // json: "type"
81978173 Typedef obj6_typedef; // json: "typedef"
81988174 Typeof obj6_typeof; // json: "typeof"
81998175 Void obj6_void; // json: "void"
82008176 While obj6_while; // json: "while"
8177+ Try try; // json: "try"
8178+ Type type; // json: "Type"
8179+ Typealias typealias; // json: "typealias"
82018180 Typeid typeid; // json: "typeid"
82028181 Typename typename; // json: "typename"
82038182 Uint uint; // json: "uint"
@@ -8231,10 +8210,14 @@ class Obj6 {
82318210 string encode_json() {
82328211 mapping(string:mixed) json = ([
82338212 "dummy" : dummy,
8213+ "type" : obj6_type,
82348214 "typedef" : obj6_typedef,
82358215 "typeof" : obj6_typeof,
82368216 "void" : obj6_void,
82378217 "while" : obj6_while,
8218+ "try" : try,
8219+ "Type" : type,
8220+ "typealias" : typealias,
82388221 "typeid" : typeid,
82398222 "typename" : typename,
82408223 "uint" : uint,
@@ -8275,6 +8258,8 @@ Obj6 Obj6_from_JSON(mixed json) {
82758258
82768259 if (!intp(json["dummy"])) error("Expected integer");
82778260 retval.dummy = json["dummy"];
8261+ if (!mappingp(json["type"])) error("Expected object");
8262+ retval.obj6_type = json["type"];
82788263 if (!mappingp(json["typedef"])) error("Expected object");
82798264 retval.obj6_typedef = json["typedef"];
82808265 if (!mappingp(json["typeof"])) error("Expected object");
@@ -8283,6 +8268,12 @@ Obj6 Obj6_from_JSON(mixed json) {
82838268 retval.obj6_void = json["void"];
82848269 if (!mappingp(json["while"])) error("Expected object");
82858270 retval.obj6_while = json["while"];
8271+ if (!mappingp(json["try"])) error("Expected object");
8272+ retval.try = json["try"];
8273+ if (!mappingp(json["Type"])) error("Expected object");
8274+ retval.type = json["Type"];
8275+ if (!mappingp(json["typealias"])) error("Expected object");
8276+ retval.typealias = json["typealias"];
82868277 if (!mappingp(json["typeid"])) error("Expected object");
82878278 retval.typeid = json["typeid"];
82888279 if (!mappingp(json["typename"])) error("Expected object");
@@ -8345,6 +8336,27 @@ Obj6 Obj6_from_JSON(mixed json) {
83458336 return retval;
83468337 }
83478338
8339+class TypeClass {
8340+ int type; // json: "type"
8341+
8342+ string encode_json() {
8343+ mapping(string:mixed) json = ([
8344+ "type" : type,
8345+ ]);
8346+
8347+ return Standards.JSON.encode(json);
8348+ }
8349+}
8350+
8351+TypeClass TypeClass_from_JSON(mixed json) {
8352+ TypeClass retval = TypeClass();
8353+
8354+ if (!intp(json["type"])) error("Expected integer");
8355+ retval.type = json["type"];
8356+
8357+ return retval;
8358+}
8359+
83488360 class Typedef {
83498361 int typedef_typedef; // json: "typedef"
83508362
@@ -8429,6 +8441,69 @@ While While_from_JSON(mixed json) {
84298441 return retval;
84308442 }
84318443
8444+class Try {
8445+ int try; // json: "try"
8446+
8447+ string encode_json() {
8448+ mapping(string:mixed) json = ([
8449+ "try" : try,
8450+ ]);
8451+
8452+ return Standards.JSON.encode(json);
8453+ }
8454+}
8455+
8456+Try Try_from_JSON(mixed json) {
8457+ Try retval = Try();
8458+
8459+ if (!intp(json["try"])) error("Expected integer");
8460+ retval.try = json["try"];
8461+
8462+ return retval;
8463+}
8464+
8465+class Type {
8466+ int type; // json: "Type"
8467+
8468+ string encode_json() {
8469+ mapping(string:mixed) json = ([
8470+ "Type" : type,
8471+ ]);
8472+
8473+ return Standards.JSON.encode(json);
8474+ }
8475+}
8476+
8477+Type Type_from_JSON(mixed json) {
8478+ Type retval = Type();
8479+
8480+ if (!intp(json["Type"])) error("Expected integer");
8481+ retval.type = json["Type"];
8482+
8483+ return retval;
8484+}
8485+
8486+class Typealias {
8487+ int typealias; // json: "typealias"
8488+
8489+ string encode_json() {
8490+ mapping(string:mixed) json = ([
8491+ "typealias" : typealias,
8492+ ]);
8493+
8494+ return Standards.JSON.encode(json);
8495+ }
8496+}
8497+
8498+Typealias Typealias_from_JSON(mixed json) {
8499+ Typealias retval = Typealias();
8500+
8501+ if (!intp(json["typealias"])) error("Expected integer");
8502+ retval.typealias = json["typealias"];
8503+
8504+ return retval;
8505+}
8506+
84328507 class Typeid {
84338508 int typeid; // json: "typeid"
Mpythondefault / quicktype.py+243 −186
@@ -3260,6 +3260,22 @@ class ListClass:
32603260 return result
32613261
32623262
3263+@dataclass
3264+class LocalDate:
3265+ local_date: int
3266+
3267+ @staticmethod
3268+ def from_dict(obj: Any) -> 'LocalDate':
3269+ assert isinstance(obj, dict)
3270+ local_date = from_int(obj["LocalDate"])
3271+ return LocalDate(local_date)
3272+
3273+ def to_dict(self) -> dict:
3274+ result: dict = {}
3275+ result["LocalDate"] = from_int(self.local_date)
3276+ return result
3277+
3278+
32633279 @dataclass
32643280 class Locale:
32653281 locale: int
@@ -3404,38 +3420,6 @@ class Module:
34043420 return result
34053421
34063422
3407-@dataclass
3408-class Mutable:
3409- mutable: int
3410-
3411- @staticmethod
3412- def from_dict(obj: Any) -> 'Mutable':
3413- assert isinstance(obj, dict)
3414- mutable = from_int(obj["mutable"])
3415- return Mutable(mutable)
3416-
3417- def to_dict(self) -> dict:
3418- result: dict = {}
3419- result["mutable"] = from_int(self.mutable)
3420- return result
3421-
3422-
3423-@dataclass
3424-class Mutating:
3425- mutating: int
3426-
3427- @staticmethod
3428- def from_dict(obj: Any) -> 'Mutating':
3429- assert isinstance(obj, dict)
3430- mutating = from_int(obj["mutating"])
3431- return Mutating(mutating)
3432-
3433- def to_dict(self) -> dict:
3434- result: dict = {}
3435- result["mutating"] = from_int(self.mutating)
3436- return result
3437-
3438-
34393423 @dataclass
34403424 class Global:
34413425 global_global: int
@@ -3566,6 +3550,7 @@ class Obj3:
35663550 json_parser: JSONParser
35673551 json_reader: JSONReader
35683552 json_token_type: JSONTokenType
3553+ local_date: LocalDate
35693554 locale: Locale
35703555 long_node: LongNode
35713556 map_entry: MapEntry
@@ -3614,8 +3599,6 @@ class Obj3:
36143599 map: Map
36153600 metadata_property_handling: MetadataPropertyHandling
36163601 module: Module
3617- mutable: Mutable
3618- mutating: Mutating
36193602
36203603 @staticmethod
36213604 def from_dict(obj: Any) -> 'Obj3':
@@ -3636,6 +3619,7 @@ class Obj3:
36363619 json_parser = JSONParser.from_dict(obj["JsonParser"])
36373620 json_reader = JSONReader.from_dict(obj["JsonReader"])
36383621 json_token_type = JSONTokenType.from_dict(obj["JsonTokenType"])
3622+ local_date = LocalDate.from_dict(obj["LocalDate"])
36393623 locale = Locale.from_dict(obj["Locale"])
36403624 long_node = LongNode.from_dict(obj["LongNode"])
36413625 map_entry = MapEntry.from_dict(obj["MapEntry"])
@@ -3684,9 +3668,7 @@ class Obj3:
36843668 map = Map.from_dict(obj["map"])
36853669 metadata_property_handling = MetadataPropertyHandling.from_dict(obj["metadata_property_handling"])
36863670 module = Module.from_dict(obj["module"])
3687- mutable = Mutable.from_dict(obj["mutable"])
3688- mutating = Mutating.from_dict(obj["mutating"])
3689- return Obj3(hashable, hasher, imp, int_node, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, locale, long_node, map_entry, marshal_json, dummy, function, get, obj3_global, go, goto, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating)
3671+ return Obj3(hashable, hasher, imp, int_node, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, local_date, locale, long_node, map_entry, marshal_json, dummy, function, get, obj3_global, go, goto, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module)
36903672
36913673 def to_dict(self) -> dict:
36923674 result: dict = {}
@@ -3706,6 +3688,7 @@ class Obj3:
37063688 result["JsonParser"] = to_class(JSONParser, self.json_parser)
37073689 result["JsonReader"] = to_class(JSONReader, self.json_reader)
37083690 result["JsonTokenType"] = to_class(JSONTokenType, self.json_token_type)
3691+ result["LocalDate"] = to_class(LocalDate, self.local_date)
37093692 result["Locale"] = to_class(Locale, self.locale)
37103693 result["LongNode"] = to_class(LongNode, self.long_node)
37113694 result["MapEntry"] = to_class(MapEntry, self.map_entry)
@@ -3754,8 +3737,38 @@ class Obj3:
37543737 result["map"] = to_class(Map, self.map)
37553738 result["metadata_property_handling"] = to_class(MetadataPropertyHandling, self.metadata_property_handling)
37563739 result["module"] = to_class(Module, self.module)
3757- result["mutable"] = to_class(Mutable, self.mutable)
3758- result["mutating"] = to_class(Mutating, self.mutating)
3740+ return result
3741+
3742+
3743+@dataclass
3744+class Mutable:
3745+ mutable: int
3746+
3747+ @staticmethod
3748+ def from_dict(obj: Any) -> 'Mutable':
3749+ assert isinstance(obj, dict)
3750+ mutable = from_int(obj["mutable"])
3751+ return Mutable(mutable)
3752+
3753+ def to_dict(self) -> dict:
3754+ result: dict = {}
3755+ result["mutable"] = from_int(self.mutable)
3756+ return result
3757+
3758+
3759+@dataclass
3760+class Mutating:
3761+ mutating: int
3762+
3763+ @staticmethod
3764+ def from_dict(obj: Any) -> 'Mutating':
3765+ assert isinstance(obj, dict)
3766+ mutating = from_int(obj["mutating"])
3767+ return Mutating(mutating)
3768+
3769+ def to_dict(self) -> dict:
3770+ result: dict = {}
3771+ result["mutating"] = from_int(self.mutating)
37593772 return result
37603773
37613774
@@ -4303,6 +4316,38 @@ class Of:
43034316 return result
43044317
43054318
4319+@dataclass
4320+class OffsetDateTime:
4321+ offset_date_time: int
4322+
4323+ @staticmethod
4324+ def from_dict(obj: Any) -> 'OffsetDateTime':
4325+ assert isinstance(obj, dict)
4326+ offset_date_time = from_int(obj["OffsetDateTime"])
4327+ return OffsetDateTime(offset_date_time)
4328+
4329+ def to_dict(self) -> dict:
4330+ result: dict = {}
4331+ result["OffsetDateTime"] = from_int(self.offset_date_time)
4332+ return result
4333+
4334+
4335+@dataclass
4336+class OffsetTime:
4337+ offset_time: int
4338+
4339+ @staticmethod
4340+ def from_dict(obj: Any) -> 'OffsetTime':
4341+ assert isinstance(obj, dict)
4342+ offset_time = from_int(obj["OffsetTime"])
4343+ return OffsetTime(offset_time)
4344+
4345+ def to_dict(self) -> dict:
4346+ result: dict = {}
4347+ result["OffsetTime"] = from_int(self.offset_time)
4348+ return result
4349+
4350+
43064351 @dataclass
43074352 class Oneway:
43084353 oneway: int
@@ -4719,70 +4764,6 @@ class ReinterpretCast:
47194764 return result
47204765
47214766
4722-@dataclass
4723-class Repeat:
4724- repeat: int
4725-
4726- @staticmethod
4727- def from_dict(obj: Any) -> 'Repeat':
4728- assert isinstance(obj, dict)
4729- repeat = from_int(obj["repeat"])
4730- return Repeat(repeat)
4731-
4732- def to_dict(self) -> dict:
4733- result: dict = {}
4734- result["repeat"] = from_int(self.repeat)
4735- return result
4736-
4737-
4738-@dataclass
4739-class Require:
4740- require: int
4741-
4742- @staticmethod
4743- def from_dict(obj: Any) -> 'Require':
4744- assert isinstance(obj, dict)
4745- require = from_int(obj["require"])
4746- return Require(require)
4747-
4748- def to_dict(self) -> dict:
4749- result: dict = {}
4750- result["require"] = from_int(self.require)
4751- return result
4752-
4753-
4754-@dataclass
4755-class Required:
4756- required: int
4757-
4758- @staticmethod
4759- def from_dict(obj: Any) -> 'Required':
4760- assert isinstance(obj, dict)
4761- required = from_int(obj["required"])
4762- return Required(required)
4763-
4764- def to_dict(self) -> dict:
4765- result: dict = {}
4766- result["required"] = from_int(self.required)
4767- return result
4768-
4769-
4770-@dataclass
4771-class Requires:
4772- requires: int
4773-
4774- @staticmethod
4775- def from_dict(obj: Any) -> 'Requires':
4776- assert isinstance(obj, dict)
4777- requires = from_int(obj["requires"])
4778- return Requires(requires)
4779-
4780- def to_dict(self) -> dict:
4781- result: dict = {}
4782- result["requires"] = from_int(self.requires)
4783- return result
4784-
4785-
47864767 @dataclass
47874768 class Obj4:
47884769 no: No
@@ -4796,9 +4777,13 @@ class Obj4:
47964777 object_node: ObjectNode
47974778 object_reader: ObjectReader
47984779 object_writer: ObjectWriter
4780+ offset_date_time: OffsetDateTime
4781+ offset_time: OffsetTime
47994782 protocol: Protocol
48004783 reg_exp: RegExp
48014784 dummy: int
4785+ mutable: Mutable
4786+ mutating: Mutating
48024787 namespace: Namespace
48034788 native: Native
48044789 new: New
@@ -4846,10 +4831,6 @@ class Obj4:
48464831 ref: Ref
48474832 register: Register
48484833 reinterpret_cast: ReinterpretCast
4849- repeat: Repeat
4850- require: Require
4851- required: Required
4852- requires: Requires
48534834
48544835 @staticmethod
48554836 def from_dict(obj: Any) -> 'Obj4':
@@ -4865,9 +4846,13 @@ class Obj4:
48654846 object_node = ObjectNode.from_dict(obj["ObjectNode"])
48664847 object_reader = ObjectReader.from_dict(obj["ObjectReader"])
48674848 object_writer = ObjectWriter.from_dict(obj["ObjectWriter"])
4849+ offset_date_time = OffsetDateTime.from_dict(obj["OffsetDateTime"])
4850+ offset_time = OffsetTime.from_dict(obj["OffsetTime"])
48684851 protocol = Protocol.from_dict(obj["Protocol"])
48694852 reg_exp = RegExp.from_dict(obj["RegExp"])
48704853 dummy = from_int(obj["dummy"])
4854+ mutable = Mutable.from_dict(obj["mutable"])
4855+ mutating = Mutating.from_dict(obj["mutating"])
48714856 namespace = Namespace.from_dict(obj["namespace"])
48724857 native = Native.from_dict(obj["native"])
48734858 new = New.from_dict(obj["new"])
@@ -4915,11 +4900,7 @@ class Obj4:
49154900 ref = Ref.from_dict(obj["ref"])
49164901 register = Register.from_dict(obj["register"])
49174902 reinterpret_cast = ReinterpretCast.from_dict(obj["reinterpret_cast"])
4918- repeat = Repeat.from_dict(obj["repeat"])
4919- require = Require.from_dict(obj["require"])
4920- required = Required.from_dict(obj["required"])
4921- requires = Requires.from_dict(obj["requires"])
4922- return Obj4(no, ns_error, ns_object, ns_string, null, none, null_node, object_mapper, object_node, object_reader, object_writer, protocol, reg_exp, dummy, namespace, native, new, newtonsoft, nil, no_such_method, noexcept, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires)
4903+ return Obj4(no, ns_error, ns_object, ns_string, null, none, null_node, object_mapper, object_node, object_reader, object_writer, offset_date_time, offset_time, protocol, reg_exp, dummy, mutable, mutating, namespace, native, new, newtonsoft, nil, no_such_method, noexcept, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast)
49234904
49244905 def to_dict(self) -> dict:
49254906 result: dict = {}
@@ -4934,9 +4915,13 @@ class Obj4:
49344915 result["ObjectNode"] = to_class(ObjectNode, self.object_node)
49354916 result["ObjectReader"] = to_class(ObjectReader, self.object_reader)
49364917 result["ObjectWriter"] = to_class(ObjectWriter, self.object_writer)
4918+ result["OffsetDateTime"] = to_class(OffsetDateTime, self.offset_date_time)
4919+ result["OffsetTime"] = to_class(OffsetTime, self.offset_time)
49374920 result["Protocol"] = to_class(Protocol, self.protocol)
49384921 result["RegExp"] = to_class(RegExp, self.reg_exp)
49394922 result["dummy"] = from_int(self.dummy)
4923+ result["mutable"] = to_class(Mutable, self.mutable)
4924+ result["mutating"] = to_class(Mutating, self.mutating)
49404925 result["namespace"] = to_class(Namespace, self.namespace)
49414926 result["native"] = to_class(Native, self.native)
49424927 result["new"] = to_class(New, self.new)
@@ -4984,10 +4969,6 @@ class Obj4:
49844969 result["ref"] = to_class(Ref, self.ref)
49854970 result["register"] = to_class(Register, self.register)
49864971 result["reinterpret_cast"] = to_class(ReinterpretCast, self.reinterpret_cast)
4987- result["repeat"] = to_class(Repeat, self.repeat)
4988- result["require"] = to_class(Require, self.require)
4989- result["required"] = to_class(Required, self.required)
4990- result["requires"] = to_class(Requires, self.requires)
49914972 return result
49924973
49934974
@@ -5072,66 +5053,98 @@ class Obj5True:
50725053
50735054
50745055 @dataclass
5075-class Try:
5076- try_try: int
5056+class PrimitiveKind:
5057+ primitive_kind: int
50775058
50785059 @staticmethod
5079- def from_dict(obj: Any) -> 'Try':
5060+ def from_dict(obj: Any) -> 'PrimitiveKind':
50805061 assert isinstance(obj, dict)
5081- try_try = from_int(obj["try"])
5082- return Try(try_try)
5062+ primitive_kind = from_int(obj["PrimitiveKind"])
5063+ return PrimitiveKind(primitive_kind)
50835064
50845065 def to_dict(self) -> dict:
50855066 result: dict = {}
5086- result["try"] = from_int(self.try_try)
5067+ result["PrimitiveKind"] = from_int(self.primitive_kind)
50875068 return result
50885069
50895070
50905071 @dataclass
5091-class Obj5Type:
5092- type: int
5072+class SelfClass:
5073+ self_self: int
50935074
50945075 @staticmethod
5095- def from_dict(obj: Any) -> 'Obj5Type':
5076+ def from_dict(obj: Any) -> 'SelfClass':
50965077 assert isinstance(obj, dict)
5097- type = from_int(obj["type"])
5098- return Obj5Type(type)
5078+ self_self = from_int(obj["self"])
5079+ return SelfClass(self_self)
50995080
51005081 def to_dict(self) -> dict:
51015082 result: dict = {}
5102- result["type"] = from_int(self.type)
5083+ result["self"] = from_int(self.self_self)
51035084 return result
51045085
51055086
51065087 @dataclass
5107-class PrimitiveKind:
5108- primitive_kind: int
5088+class Repeat:
5089+ repeat: int
51095090
51105091 @staticmethod
5111- def from_dict(obj: Any) -> 'PrimitiveKind':
5092+ def from_dict(obj: Any) -> 'Repeat':
51125093 assert isinstance(obj, dict)
5113- primitive_kind = from_int(obj["PrimitiveKind"])
5114- return PrimitiveKind(primitive_kind)
5094+ repeat = from_int(obj["repeat"])
5095+ return Repeat(repeat)
51155096
51165097 def to_dict(self) -> dict:
51175098 result: dict = {}
5118- result["PrimitiveKind"] = from_int(self.primitive_kind)
5099+ result["repeat"] = from_int(self.repeat)
51195100 return result
51205101
51215102
51225103 @dataclass
5123-class SelfClass:
5124- self_self: int
5104+class Require:
5105+ require: int
51255106
51265107 @staticmethod
5127- def from_dict(obj: Any) -> 'SelfClass':
5108+ def from_dict(obj: Any) -> 'Require':
51285109 assert isinstance(obj, dict)
5129- self_self = from_int(obj["self"])
5130- return SelfClass(self_self)
5110+ require = from_int(obj["require"])
5111+ return Require(require)
51315112
51325113 def to_dict(self) -> dict:
51335114 result: dict = {}
5134- result["self"] = from_int(self.self_self)
5115+ result["require"] = from_int(self.require)
5116+ return result
5117+
5118+
5119+@dataclass
5120+class Required:
5121+ required: int
5122+
5123+ @staticmethod
5124+ def from_dict(obj: Any) -> 'Required':
5125+ assert isinstance(obj, dict)
5126+ required = from_int(obj["required"])
5127+ return Required(required)
5128+
5129+ def to_dict(self) -> dict:
5130+ result: dict = {}
5131+ result["required"] = from_int(self.required)
5132+ return result
5133+
5134+
5135+@dataclass
5136+class Requires:
5137+ requires: int
5138+
5139+ @staticmethod
5140+ def from_dict(obj: Any) -> 'Requires':
5141+ assert isinstance(obj, dict)
5142+ requires = from_int(obj["requires"])
5143+ return Requires(requires)
5144+
5145+ def to_dict(self) -> dict:
5146+ result: dict = {}
5147+ result["requires"] = from_int(self.requires)
51355148 return result
51365149
51375150
@@ -5983,38 +5996,6 @@ class TrueClass:
59835996 return result
59845997
59855998
5986-@dataclass
5987-class TypeClass:
5988- type: int
5989-
5990- @staticmethod
5991- def from_dict(obj: Any) -> 'TypeClass':
5992- assert isinstance(obj, dict)
5993- type = from_int(obj["Type"])
5994- return TypeClass(type)
5995-
5996- def to_dict(self) -> dict:
5997- result: dict = {}
5998- result["Type"] = from_int(self.type)
5999- return result
6000-
6001-
6002-@dataclass
6003-class Typealias:
6004- typealias: int
6005-
6006- @staticmethod
6007- def from_dict(obj: Any) -> 'Typealias':
6008- assert isinstance(obj, dict)
6009- typealias = from_int(obj["typealias"])
6010- return Typealias(typealias)
6011-
6012- def to_dict(self) -> dict:
6013- result: dict = {}
6014- result["typealias"] = from_int(self.typealias)
6015- return result
6016-
6017-
60185999 @dataclass
60196000 class Obj5:
60206001 k_serializer: KSerializer
@@ -6036,8 +6017,11 @@ class Obj5:
60366017 time_only_converter: TimeOnlyConverter
60376018 time_zone: TimeZone
60386019 true: TrueClass
6039- type: TypeClass
60406020 dummy: int
6021+ repeat: Repeat
6022+ require: Require
6023+ required: Required
6024+ requires: Requires
60416025 restrict: Restrict
60426026 retain: Retain
60436027 rethrows: Rethrows
@@ -6079,9 +6063,6 @@ class Obj5:
60796063 top_level: TopLevelClass
60806064 transient: Transient
60816065 obj5_true: Obj5True
6082- obj5_try: Try
6083- obj5_type: Obj5Type
6084- typealias: Typealias
60856066
60866067 @staticmethod
60876068 def from_dict(obj: Any) -> 'Obj5':
@@ -6105,8 +6086,11 @@ class Obj5:
61056086 time_only_converter = TimeOnlyConverter.from_dict(obj["TimeOnlyConverter"])
61066087 time_zone = TimeZone.from_dict(obj["TimeZone"])
61076088 true = TrueClass.from_dict(obj["True"])
6108- type = TypeClass.from_dict(obj["Type"])
61096089 dummy = from_int(obj["dummy"])
6090+ repeat = Repeat.from_dict(obj["repeat"])
6091+ require = Require.from_dict(obj["require"])
6092+ required = Required.from_dict(obj["required"])
6093+ requires = Requires.from_dict(obj["requires"])
61106094 restrict = Restrict.from_dict(obj["restrict"])
61116095 retain = Retain.from_dict(obj["retain"])
61126096 rethrows = Rethrows.from_dict(obj["rethrows"])
@@ -6148,10 +6132,7 @@ class Obj5:
61486132 top_level = TopLevelClass.from_dict(obj["top_level"])
61496133 transient = Transient.from_dict(obj["transient"])
61506134 obj5_true = Obj5True.from_dict(obj["true"])
6151- obj5_try = Try.from_dict(obj["try"])
6152- obj5_type = Obj5Type.from_dict(obj["type"])
6153- typealias = Typealias.from_dict(obj["typealias"])
6154- return Obj5(k_serializer, primitive_kind, sel, obj5_self, sendable, serial_descriptor, serial_name, serializable, serialization_feature, serializer_provider, simple_module, standards, std_deserializer, std_serializer, text_node, time_only, time_only_converter, time_zone, true, type, dummy, restrict, retain, rethrows, obj5_return, right, runtime_type, 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_string, obj5_to_dict, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias)
6135+ return Obj5(k_serializer, primitive_kind, sel, obj5_self, sendable, serial_descriptor, serial_name, serializable, serialization_feature, serializer_provider, simple_module, standards, std_deserializer, std_serializer, text_node, time_only, time_only_converter, time_zone, true, dummy, repeat, require, required, requires, restrict, retain, rethrows, obj5_return, right, runtime_type, 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_string, obj5_to_dict, to_json, top_level, transient, obj5_true)
61556136
61566137 def to_dict(self) -> dict:
61576138 result: dict = {}
@@ -6174,8 +6155,11 @@ class Obj5:
61746155 result["TimeOnlyConverter"] = to_class(TimeOnlyConverter, self.time_only_converter)
61756156 result["TimeZone"] = to_class(TimeZone, self.time_zone)
61766157 result["True"] = to_class(TrueClass, self.true)
6177- result["Type"] = to_class(TypeClass, self.type)
61786158 result["dummy"] = from_int(self.dummy)
6159+ result["repeat"] = to_class(Repeat, self.repeat)
6160+ result["require"] = to_class(Require, self.require)
6161+ result["required"] = to_class(Required, self.required)
6162+ result["requires"] = to_class(Requires, self.requires)
61796163 result["restrict"] = to_class(Restrict, self.restrict)
61806164 result["retain"] = to_class(Retain, self.retain)
61816165 result["rethrows"] = to_class(Rethrows, self.rethrows)
@@ -6217,9 +6201,38 @@ class Obj5:
62176201 result["top_level"] = to_class(TopLevelClass, self.top_level)
62186202 result["transient"] = to_class(Transient, self.transient)
62196203 result["true"] = to_class(Obj5True, self.obj5_true)
6220- result["try"] = to_class(Try, self.obj5_try)
6221- result["type"] = to_class(Obj5Type, self.obj5_type)
6222- result["typealias"] = to_class(Typealias, self.typealias)
6204+ return result
6205+
6206+
6207+@dataclass
6208+class Try:
6209+ try_try: int
6210+
6211+ @staticmethod
6212+ def from_dict(obj: Any) -> 'Try':
6213+ assert isinstance(obj, dict)
6214+ try_try = from_int(obj["try"])
6215+ return Try(try_try)
6216+
6217+ def to_dict(self) -> dict:
6218+ result: dict = {}
6219+ result["try"] = from_int(self.try_try)
6220+ return result
6221+
6222+
6223+@dataclass
6224+class Obj6Type:
6225+ type: int
6226+
6227+ @staticmethod
6228+ def from_dict(obj: Any) -> 'Obj6Type':
6229+ assert isinstance(obj, dict)
6230+ type = from_int(obj["type"])
6231+ return Obj6Type(type)
6232+
6233+ def to_dict(self) -> dict:
6234+ result: dict = {}
6235+ result["type"] = from_int(self.type)
62236236 return result
62246237
62256238
@@ -6271,6 +6284,38 @@ class Yield:
62716284 return result
62726285
62736286
6287+@dataclass
6288+class TypeClass:
6289+ type: int
6290+
6291+ @staticmethod
6292+ def from_dict(obj: Any) -> 'TypeClass':
6293+ assert isinstance(obj, dict)
6294+ type = from_int(obj["Type"])
6295+ return TypeClass(type)
6296+
6297+ def to_dict(self) -> dict:
6298+ result: dict = {}
6299+ result["Type"] = from_int(self.type)
6300+ return result
6301+
6302+
6303+@dataclass
6304+class Typealias:
6305+ typealias: int
6306+
6307+ @staticmethod
6308+ def from_dict(obj: Any) -> 'Typealias':
6309+ assert isinstance(obj, dict)
6310+ typealias = from_int(obj["typealias"])
6311+ return Typealias(typealias)
6312+
6313+ def to_dict(self) -> dict:
6314+ result: dict = {}
6315+ result["typealias"] = from_int(self.typealias)
6316+ return result
6317+
6318+
62746319 @dataclass
62756320 class Typedef:
62766321 typedef: int
@@ -6753,6 +6798,7 @@ class Yes:
67536798
67546799 @dataclass
67556800 class Obj6:
6801+ type: TypeClass
67566802 uuid: UUIDClass
67576803 unmarshal_json: UnmarshalJSON
67586804 use_serializers: UseSerializers
@@ -6760,6 +6806,9 @@ class Obj6:
67606806 utf8_json_writer: Utf8JSONWriter
67616807 yes: Yes
67626808 dummy: int
6809+ obj6_try: Try
6810+ obj6_type: Obj6Type
6811+ typealias: Typealias
67636812 typedef: Typedef
67646813 typeid: Typeid
67656814 typename: Typename
@@ -6791,6 +6840,7 @@ class Obj6:
67916840 @staticmethod
67926841 def from_dict(obj: Any) -> 'Obj6':
67936842 assert isinstance(obj, dict)
6843+ type = TypeClass.from_dict(obj["Type"])
67946844 uuid = UUIDClass.from_dict(obj["UUID"])
67956845 unmarshal_json = UnmarshalJSON.from_dict(obj["UnmarshalJSON"])
67966846 use_serializers = UseSerializers.from_dict(obj["UseSerializers"])
@@ -6798,6 +6848,9 @@ class Obj6:
67986848 utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
67996849 yes = Yes.from_dict(obj["YES"])
68006850 dummy = from_int(obj["dummy"])
6851+ obj6_try = Try.from_dict(obj["try"])
6852+ obj6_type = Obj6Type.from_dict(obj["type"])
6853+ typealias = Typealias.from_dict(obj["typealias"])
68016854 typedef = Typedef.from_dict(obj["typedef"])
68026855 typeid = Typeid.from_dict(obj["typeid"])
68036856 typename = Typename.from_dict(obj["typename"])
@@ -6825,10 +6878,11 @@ class Obj6:
68256878 xor = Xor.from_dict(obj["xor"])
68266879 xor_eq = XorEq.from_dict(obj["xor_eq"])
68276880 obj6_yield = Yield.from_dict(obj["yield"])
6828- return Obj6(uuid, unmarshal_json, use_serializers, utf8_json_reader, utf8_json_writer, yes, dummy, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
6881+ return Obj6(type, uuid, unmarshal_json, use_serializers, utf8_json_reader, utf8_json_writer, yes, dummy, obj6_try, obj6_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
68296882
68306883 def to_dict(self) -> dict:
68316884 result: dict = {}
6885+ result["Type"] = to_class(TypeClass, self.type)
68326886 result["UUID"] = to_class(UUIDClass, self.uuid)
68336887 result["UnmarshalJSON"] = to_class(UnmarshalJSON, self.unmarshal_json)
68346888 result["UseSerializers"] = to_class(UseSerializers, self.use_serializers)
@@ -6836,6 +6890,9 @@ class Obj6:
68366890 result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
68376891 result["YES"] = to_class(Yes, self.yes)
68386892 result["dummy"] = from_int(self.dummy)
6893+ result["try"] = to_class(Try, self.obj6_try)
6894+ result["type"] = to_class(Obj6Type, self.obj6_type)
6895+ result["typealias"] = to_class(Typealias, self.typealias)
68396896 result["typedef"] = to_class(Typedef, self.typedef)
68406897 result["typeid"] = to_class(Typeid, self.typeid)
68416898 result["typename"] = to_class(Typename, self.typename)
Mrubydefault / TopLevel.rb+326 −242
@@ -4936,6 +4936,31 @@ class List < Dry::Struct
49364936 end
49374937 end
49384938
4939+class LocalDate < Dry::Struct
4940+ attribute :local_date, Types::Integer
4941+
4942+ def self.from_dynamic!(d)
4943+ d = Types::Hash[d]
4944+ new(
4945+ local_date: d.fetch("LocalDate"),
4946+ )
4947+ end
4948+
4949+ def self.from_json!(json)
4950+ from_dynamic!(JSON.parse(json))
4951+ end
4952+
4953+ def to_dynamic
4954+ {
4955+ "LocalDate" => local_date,
4956+ }
4957+ end
4958+
4959+ def to_json(options = nil)
4960+ JSON.generate(to_dynamic, options)
4961+ end
4962+end
4963+
49394964 class Locale < Dry::Struct
49404965 attribute :locale, Types::Integer
49414966
@@ -5136,56 +5161,6 @@ class MetadataPropertyHandling < Dry::Struct
51365161 end
51375162 end
51385163
5139-class Mutable < Dry::Struct
5140- attribute :mutable, Types::Integer
5141-
5142- def self.from_dynamic!(d)
5143- d = Types::Hash[d]
5144- new(
5145- mutable: d.fetch("mutable"),
5146- )
5147- end
5148-
5149- def self.from_json!(json)
5150- from_dynamic!(JSON.parse(json))
5151- end
5152-
5153- def to_dynamic
5154- {
5155- "mutable" => mutable,
5156- }
5157- end
5158-
5159- def to_json(options = nil)
5160- JSON.generate(to_dynamic, options)
5161- end
5162-end
5163-
5164-class Mutating < Dry::Struct
5165- attribute :mutating, Types::Integer
5166-
5167- def self.from_dynamic!(d)
5168- d = Types::Hash[d]
5169- new(
5170- mutating: d.fetch("mutating"),
5171- )
5172- end
5173-
5174- def self.from_json!(json)
5175- from_dynamic!(JSON.parse(json))
5176- end
5177-
5178- def to_dynamic
5179- {
5180- "mutating" => mutating,
5181- }
5182- end
5183-
5184- def to_json(options = nil)
5185- JSON.generate(to_dynamic, options)
5186- end
5187-end
5188-
51895164 class If < Dry::Struct
51905165 attribute :if_if, Types::Integer
51915166
@@ -5339,6 +5314,7 @@ class Obj3 < Dry::Struct
53395314 attribute :left, Left
53405315 attribute :let, Let
53415316 attribute :list, List
5317+ attribute :local_date, LocalDate
53425318 attribute :locale, Locale
53435319 attribute :lock, Lock
53445320 attribute :long, Long
@@ -5347,8 +5323,6 @@ class Obj3 < Dry::Struct
53475323 attribute :map_entry, MapEntry
53485324 attribute :marshal_json, MarshalJSON
53495325 attribute :metadata_property_handling, MetadataPropertyHandling
5350- attribute :mutable, Mutable
5351- attribute :mutating, Mutating
53525326 attribute :obj3_if, If
53535327 attribute :obj3_in, In
53545328 attribute :obj3_lambda, Lambda
@@ -5409,6 +5383,7 @@ class Obj3 < Dry::Struct
54095383 left: Left.from_dynamic!(d.fetch("left")),
54105384 let: Let.from_dynamic!(d.fetch("let")),
54115385 list: List.from_dynamic!(d.fetch("list")),
5386+ local_date: LocalDate.from_dynamic!(d.fetch("LocalDate")),
54125387 locale: Locale.from_dynamic!(d.fetch("Locale")),
54135388 lock: Lock.from_dynamic!(d.fetch("lock")),
54145389 long: Long.from_dynamic!(d.fetch("long")),
@@ -5417,8 +5392,6 @@ class Obj3 < Dry::Struct
54175392 map_entry: MapEntry.from_dynamic!(d.fetch("MapEntry")),
54185393 marshal_json: MarshalJSON.from_dynamic!(d.fetch("MarshalJSON")),
54195394 metadata_property_handling: MetadataPropertyHandling.from_dynamic!(d.fetch("metadata_property_handling")),
5420- mutable: Mutable.from_dynamic!(d.fetch("mutable")),
5421- mutating: Mutating.from_dynamic!(d.fetch("mutating")),
54225395 obj3_if: If.from_dynamic!(d.fetch("if")),
54235396 obj3_in: In.from_dynamic!(d.fetch("in")),
54245397 obj3_lambda: Lambda.from_dynamic!(d.fetch("lambda")),
@@ -5484,6 +5457,7 @@ class Obj3 < Dry::Struct
54845457 "left" => left.to_dynamic,
54855458 "let" => let.to_dynamic,
54865459 "list" => list.to_dynamic,
5460+ "LocalDate" => local_date.to_dynamic,
54875461 "Locale" => locale.to_dynamic,
54885462 "lock" => lock.to_dynamic,
54895463 "long" => long.to_dynamic,
@@ -5492,8 +5466,6 @@ class Obj3 < Dry::Struct
54925466 "MapEntry" => map_entry.to_dynamic,
54935467 "MarshalJSON" => marshal_json.to_dynamic,
54945468 "metadata_property_handling" => metadata_property_handling.to_dynamic,
5495- "mutable" => mutable.to_dynamic,
5496- "mutating" => mutating.to_dynamic,
54975469 "if" => obj3_if.to_dynamic,
54985470 "in" => obj3_in.to_dynamic,
54995471 "lambda" => obj3_lambda.to_dynamic,
@@ -5506,6 +5478,56 @@ class Obj3 < Dry::Struct
55065478 end
55075479 end
55085480
5481+class Mutable < Dry::Struct
5482+ attribute :mutable, Types::Integer
5483+
5484+ def self.from_dynamic!(d)
5485+ d = Types::Hash[d]
5486+ new(
5487+ mutable: d.fetch("mutable"),
5488+ )
5489+ end
5490+
5491+ def self.from_json!(json)
5492+ from_dynamic!(JSON.parse(json))
5493+ end
5494+
5495+ def to_dynamic
5496+ {
5497+ "mutable" => mutable,
5498+ }
5499+ end
5500+
5501+ def to_json(options = nil)
5502+ JSON.generate(to_dynamic, options)
5503+ end
5504+end
5505+
5506+class Mutating < Dry::Struct
5507+ attribute :mutating, Types::Integer
5508+
5509+ def self.from_dynamic!(d)
5510+ d = Types::Hash[d]
5511+ new(
5512+ mutating: d.fetch("mutating"),
5513+ )
5514+ end
5515+
5516+ def self.from_json!(json)
5517+ from_dynamic!(JSON.parse(json))
5518+ end
5519+
5520+ def to_dynamic
5521+ {
5522+ "mutating" => mutating,
5523+ }
5524+ end
5525+
5526+ def to_json(options = nil)
5527+ JSON.generate(to_dynamic, options)
5528+ end
5529+end
5530+
55095531 class Namespace < Dry::Struct
55105532 attribute :namespace, Types::Integer
55115533
@@ -6256,31 +6278,6 @@ class Raise < Dry::Struct
62566278 end
62576279 end
62586280
6259-class Require < Dry::Struct
6260- attribute :require_require, Types::Integer
6261-
6262- def self.from_dynamic!(d)
6263- d = Types::Hash[d]
6264- new(
6265- require_require: d.fetch("require"),
6266- )
6267- end
6268-
6269- def self.from_json!(json)
6270- from_dynamic!(JSON.parse(json))
6271- end
6272-
6273- def to_dynamic
6274- {
6275- "require" => require_require,
6276- }
6277- end
6278-
6279- def to_json(options = nil)
6280- JSON.generate(to_dynamic, options)
6281- end
6282-end
6283-
62846281 class ObjectClass < Dry::Struct
62856282 attribute :object, Types::Integer
62866283
@@ -6431,6 +6428,56 @@ class Of < Dry::Struct
64316428 end
64326429 end
64336430
6431+class OffsetDateTime < Dry::Struct
6432+ attribute :offset_date_time, Types::Integer
6433+
6434+ def self.from_dynamic!(d)
6435+ d = Types::Hash[d]
6436+ new(
6437+ offset_date_time: d.fetch("OffsetDateTime"),
6438+ )
6439+ end
6440+
6441+ def self.from_json!(json)
6442+ from_dynamic!(JSON.parse(json))
6443+ end
6444+
6445+ def to_dynamic
6446+ {
6447+ "OffsetDateTime" => offset_date_time,
6448+ }
6449+ end
6450+
6451+ def to_json(options = nil)
6452+ JSON.generate(to_dynamic, options)
6453+ end
6454+end
6455+
6456+class OffsetTime < Dry::Struct
6457+ attribute :offset_time, Types::Integer
6458+
6459+ def self.from_dynamic!(d)
6460+ d = Types::Hash[d]
6461+ new(
6462+ offset_time: d.fetch("OffsetTime"),
6463+ )
6464+ end
6465+
6466+ def self.from_json!(json)
6467+ from_dynamic!(JSON.parse(json))
6468+ end
6469+
6470+ def to_dynamic
6471+ {
6472+ "OffsetTime" => offset_time,
6473+ }
6474+ end
6475+
6476+ def to_json(options = nil)
6477+ JSON.generate(to_dynamic, options)
6478+ end
6479+end
6480+
64346481 class Oneway < Dry::Struct
64356482 attribute :oneway, Types::Integer
64366483
@@ -7031,83 +7078,10 @@ class ReinterpretCast < Dry::Struct
70317078 end
70327079 end
70337080
7034-class Repeat < Dry::Struct
7035- attribute :repeat, Types::Integer
7036-
7037- def self.from_dynamic!(d)
7038- d = Types::Hash[d]
7039- new(
7040- repeat: d.fetch("repeat"),
7041- )
7042- end
7043-
7044- def self.from_json!(json)
7045- from_dynamic!(JSON.parse(json))
7046- end
7047-
7048- def to_dynamic
7049- {
7050- "repeat" => repeat,
7051- }
7052- end
7053-
7054- def to_json(options = nil)
7055- JSON.generate(to_dynamic, options)
7056- end
7057-end
7058-
7059-class Required < Dry::Struct
7060- attribute :required, Types::Integer
7061-
7062- def self.from_dynamic!(d)
7063- d = Types::Hash[d]
7064- new(
7065- required: d.fetch("required"),
7066- )
7067- end
7068-
7069- def self.from_json!(json)
7070- from_dynamic!(JSON.parse(json))
7071- end
7072-
7073- def to_dynamic
7074- {
7075- "required" => required,
7076- }
7077- end
7078-
7079- def to_json(options = nil)
7080- JSON.generate(to_dynamic, options)
7081- end
7082-end
7083-
7084-class Requires < Dry::Struct
7085- attribute :requires, Types::Integer
7086-
7087- def self.from_dynamic!(d)
7088- d = Types::Hash[d]
7089- new(
7090- requires: d.fetch("requires"),
7091- )
7092- end
7093-
7094- def self.from_json!(json)
7095- from_dynamic!(JSON.parse(json))
7096- end
7097-
7098- def to_dynamic
7099- {
7100- "requires" => requires,
7101- }
7102- end
7103-
7104- def to_json(options = nil)
7105- JSON.generate(to_dynamic, options)
7106- end
7107-end
7108-
71097081 class Obj4 < Dry::Struct
71107082 attribute :dummy, Types::Integer
7083+ attribute :mutable, Mutable
7084+ attribute :mutating, Mutating
71117085 attribute :namespace, Namespace
71127086 attribute :native, Native
71137087 attribute :newtonsoft, Newtonsoft
@@ -7138,13 +7112,14 @@ class Obj4 < Dry::Struct
71387112 attribute :obj4_printf, Printf
71397113 attribute :obj4_protocol, ProtocolClass
71407114 attribute :obj4_raise, Raise
7141- attribute :obj4_require, Require
71427115 attribute :object, ObjectClass
71437116 attribute :object_mapper, ObjectMapper
71447117 attribute :object_node, ObjectNode
71457118 attribute :object_reader, ObjectReader
71467119 attribute :object_writer, ObjectWriter
71477120 attribute :of, Of
7121+ attribute :offset_date_time, OffsetDateTime
7122+ attribute :offset_time, OffsetTime
71487123 attribute :oneway, Oneway
71497124 attribute :operator, Operator
71507125 attribute :or_eq, OrEq
@@ -7169,14 +7144,13 @@ class Obj4 < Dry::Struct
71697144 attribute :reg_exp, RegExp
71707145 attribute :register, Register
71717146 attribute :reinterpret_cast, ReinterpretCast
7172- attribute :repeat, Repeat
7173- attribute :required, Required
7174- attribute :requires, Requires
71757147
71767148 def self.from_dynamic!(d)
71777149 d = Types::Hash[d]
71787150 new(
71797151 dummy: d.fetch("dummy"),
7152+ mutable: Mutable.from_dynamic!(d.fetch("mutable")),
7153+ mutating: Mutating.from_dynamic!(d.fetch("mutating")),
71807154 namespace: Namespace.from_dynamic!(d.fetch("namespace")),
71817155 native: Native.from_dynamic!(d.fetch("native")),
71827156 newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")),
@@ -7207,13 +7181,14 @@ class Obj4 < Dry::Struct
72077181 obj4_printf: Printf.from_dynamic!(d.fetch("printf")),
72087182 obj4_protocol: ProtocolClass.from_dynamic!(d.fetch("protocol")),
72097183 obj4_raise: Raise.from_dynamic!(d.fetch("raise")),
7210- obj4_require: Require.from_dynamic!(d.fetch("require")),
72117184 object: ObjectClass.from_dynamic!(d.fetch("object")),
72127185 object_mapper: ObjectMapper.from_dynamic!(d.fetch("ObjectMapper")),
72137186 object_node: ObjectNode.from_dynamic!(d.fetch("ObjectNode")),
72147187 object_reader: ObjectReader.from_dynamic!(d.fetch("ObjectReader")),
72157188 object_writer: ObjectWriter.from_dynamic!(d.fetch("ObjectWriter")),
72167189 of: Of.from_dynamic!(d.fetch("of")),
7190+ offset_date_time: OffsetDateTime.from_dynamic!(d.fetch("OffsetDateTime")),
7191+ offset_time: OffsetTime.from_dynamic!(d.fetch("OffsetTime")),
72177192 oneway: Oneway.from_dynamic!(d.fetch("oneway")),
72187193 operator: Operator.from_dynamic!(d.fetch("operator")),
72197194 or_eq: OrEq.from_dynamic!(d.fetch("or_eq")),
@@ -7238,9 +7213,6 @@ class Obj4 < Dry::Struct
72387213 reg_exp: RegExp.from_dynamic!(d.fetch("RegExp")),
72397214 register: Register.from_dynamic!(d.fetch("register")),
72407215 reinterpret_cast: ReinterpretCast.from_dynamic!(d.fetch("reinterpret_cast")),
7241- repeat: Repeat.from_dynamic!(d.fetch("repeat")),
7242- required: Required.from_dynamic!(d.fetch("required")),
7243- requires: Requires.from_dynamic!(d.fetch("requires")),
72447216 )
72457217 end
72467218
@@ -7251,6 +7223,8 @@ class Obj4 < Dry::Struct
72517223 def to_dynamic
72527224 {
72537225 "dummy" => dummy,
7226+ "mutable" => mutable.to_dynamic,
7227+ "mutating" => mutating.to_dynamic,
72547228 "namespace" => namespace.to_dynamic,
72557229 "native" => native.to_dynamic,
72567230 "newtonsoft" => newtonsoft.to_dynamic,
@@ -7281,13 +7255,14 @@ class Obj4 < Dry::Struct
72817255 "printf" => obj4_printf.to_dynamic,
72827256 "protocol" => obj4_protocol.to_dynamic,
72837257 "raise" => obj4_raise.to_dynamic,
7284- "require" => obj4_require.to_dynamic,
72857258 "object" => object.to_dynamic,
72867259 "ObjectMapper" => object_mapper.to_dynamic,
72877260 "ObjectNode" => object_node.to_dynamic,
72887261 "ObjectReader" => object_reader.to_dynamic,
72897262 "ObjectWriter" => object_writer.to_dynamic,
72907263 "of" => of.to_dynamic,
7264+ "OffsetDateTime" => offset_date_time.to_dynamic,
7265+ "OffsetTime" => offset_time.to_dynamic,
72917266 "oneway" => oneway.to_dynamic,
72927267 "operator" => operator.to_dynamic,
72937268 "or_eq" => or_eq.to_dynamic,
@@ -7312,9 +7287,6 @@ class Obj4 < Dry::Struct
73127287 "RegExp" => reg_exp.to_dynamic,
73137288 "register" => register.to_dynamic,
73147289 "reinterpret_cast" => reinterpret_cast.to_dynamic,
7315- "repeat" => repeat.to_dynamic,
7316- "required" => required.to_dynamic,
7317- "requires" => requires.to_dynamic,
73187290 }
73197291 end
73207292
@@ -7348,6 +7320,31 @@ class KSerializer < Dry::Struct
73487320 end
73497321 end
73507322
7323+class Require < Dry::Struct
7324+ attribute :require_require, Types::Integer
7325+
7326+ def self.from_dynamic!(d)
7327+ d = Types::Hash[d]
7328+ new(
7329+ require_require: d.fetch("require"),
7330+ )
7331+ end
7332+
7333+ def self.from_json!(json)
7334+ from_dynamic!(JSON.parse(json))
7335+ end
7336+
7337+ def to_dynamic
7338+ {
7339+ "require" => require_require,
7340+ }
7341+ end
7342+
7343+ def to_json(options = nil)
7344+ JSON.generate(to_dynamic, options)
7345+ end
7346+end
7347+
73517348 class Return < Dry::Struct
73527349 attribute :return_return, Types::Integer
73537350
@@ -7573,13 +7570,13 @@ class True < Dry::Struct
75737570 end
75747571 end
75757572
7576-class Try < Dry::Struct
7577- attribute :try_try, Types::Integer
7573+class PrimitiveKind < Dry::Struct
7574+ attribute :primitive_kind, Types::Integer
75787575
75797576 def self.from_dynamic!(d)
75807577 d = Types::Hash[d]
75817578 new(
7582- try_try: d.fetch("try"),
7579+ primitive_kind: d.fetch("PrimitiveKind"),
75837580 )
75847581 end
75857582
@@ -7589,7 +7586,7 @@ class Try < Dry::Struct
75897586
75907587 def to_dynamic
75917588 {
7592- "try" => try_try,
7589+ "PrimitiveKind" => primitive_kind,
75937590 }
75947591 end
75957592
@@ -7598,13 +7595,13 @@ class Try < Dry::Struct
75987595 end
75997596 end
76007597
7601-class Type < Dry::Struct
7602- attribute :type_type, Types::Integer
7598+class Repeat < Dry::Struct
7599+ attribute :repeat, Types::Integer
76037600
76047601 def self.from_dynamic!(d)
76057602 d = Types::Hash[d]
76067603 new(
7607- type_type: d.fetch("Type"),
7604+ repeat: d.fetch("repeat"),
76087605 )
76097606 end
76107607
@@ -7614,7 +7611,7 @@ class Type < Dry::Struct
76147611
76157612 def to_dynamic
76167613 {
7617- "Type" => type_type,
7614+ "repeat" => repeat,
76187615 }
76197616 end
76207617
@@ -7623,13 +7620,13 @@ class Type < Dry::Struct
76237620 end
76247621 end
76257622
7626-class PrimitiveKind < Dry::Struct
7627- attribute :primitive_kind, Types::Integer
7623+class Required < Dry::Struct
7624+ attribute :required, Types::Integer
76287625
76297626 def self.from_dynamic!(d)
76307627 d = Types::Hash[d]
76317628 new(
7632- primitive_kind: d.fetch("PrimitiveKind"),
7629+ required: d.fetch("required"),
76337630 )
76347631 end
76357632
@@ -7639,7 +7636,32 @@ class PrimitiveKind < Dry::Struct
76397636
76407637 def to_dynamic
76417638 {
7642- "PrimitiveKind" => primitive_kind,
7639+ "required" => required,
7640+ }
7641+ end
7642+
7643+ def to_json(options = nil)
7644+ JSON.generate(to_dynamic, options)
7645+ end
7646+end
7647+
7648+class Requires < Dry::Struct
7649+ attribute :requires, Types::Integer
7650+
7651+ def self.from_dynamic!(d)
7652+ d = Types::Hash[d]
7653+ new(
7654+ requires: d.fetch("requires"),
7655+ )
7656+ end
7657+
7658+ def self.from_json!(json)
7659+ from_dynamic!(JSON.parse(json))
7660+ end
7661+
7662+ def to_dynamic
7663+ {
7664+ "requires" => requires,
76437665 }
76447666 end
76457667
@@ -8873,59 +8895,10 @@ class Obj5True < Dry::Struct
88738895 end
88748896 end
88758897
8876-class TypeClass < Dry::Struct
8877- attribute :type_type, Types::Integer
8878-
8879- def self.from_dynamic!(d)
8880- d = Types::Hash[d]
8881- new(
8882- type_type: d.fetch("type"),
8883- )
8884- end
8885-
8886- def self.from_json!(json)
8887- from_dynamic!(JSON.parse(json))
8888- end
8889-
8890- def to_dynamic
8891- {
8892- "type" => type_type,
8893- }
8894- end
8895-
8896- def to_json(options = nil)
8897- JSON.generate(to_dynamic, options)
8898- end
8899-end
8900-
8901-class Typealias < Dry::Struct
8902- attribute :typealias, Types::Integer
8903-
8904- def self.from_dynamic!(d)
8905- d = Types::Hash[d]
8906- new(
8907- typealias: d.fetch("typealias"),
8908- )
8909- end
8910-
8911- def self.from_json!(json)
8912- from_dynamic!(JSON.parse(json))
8913- end
8914-
8915- def to_dynamic
8916- {
8917- "typealias" => typealias,
8918- }
8919- end
8920-
8921- def to_json(options = nil)
8922- JSON.generate(to_dynamic, options)
8923- end
8924-end
8925-
89268898 class Obj5 < Dry::Struct
89278899 attribute :dummy, Types::Integer
89288900 attribute :k_serializer, KSerializer
8901+ attribute :obj5_require, Require
89298902 attribute :obj5_return, Return
89308903 attribute :obj5_select, Select
89318904 attribute :obj5_self, SelfClass
@@ -8935,9 +8908,10 @@ class Obj5 < Dry::Struct
89358908 attribute :obj5_throw, Throw
89368909 attribute :obj5_to_json, ToJSON
89378910 attribute :obj5_true, True
8938- attribute :obj5_try, Try
8939- attribute :obj5_type, Type
89408911 attribute :primitive_kind, PrimitiveKind
8912+ attribute :repeat, Repeat
8913+ attribute :required, Required
8914+ attribute :requires, Requires
89418915 attribute :restrict, Restrict
89428916 attribute :retain, Retain
89438917 attribute :rethrows, Rethrows
@@ -8987,14 +8961,13 @@ class Obj5 < Dry::Struct
89878961 attribute :top_level, TopLevelClass
89888962 attribute :transient, Transient
89898963 attribute :true_1, Obj5True
8990- attribute :type_1, TypeClass
8991- attribute :typealias, Typealias
89928964
89938965 def self.from_dynamic!(d)
89948966 d = Types::Hash[d]
89958967 new(
89968968 dummy: d.fetch("dummy"),
89978969 k_serializer: KSerializer.from_dynamic!(d.fetch("KSerializer")),
8970+ obj5_require: Require.from_dynamic!(d.fetch("require")),
89988971 obj5_return: Return.from_dynamic!(d.fetch("return")),
89998972 obj5_select: Select.from_dynamic!(d.fetch("select")),
90008973 obj5_self: SelfClass.from_dynamic!(d.fetch("Self")),
@@ -9004,9 +8977,10 @@ class Obj5 < Dry::Struct
90048977 obj5_throw: Throw.from_dynamic!(d.fetch("throw")),
90058978 obj5_to_json: ToJSON.from_dynamic!(d.fetch("to_json")),
90068979 obj5_true: True.from_dynamic!(d.fetch("True")),
9007- obj5_try: Try.from_dynamic!(d.fetch("try")),
9008- obj5_type: Type.from_dynamic!(d.fetch("Type")),
90098980 primitive_kind: PrimitiveKind.from_dynamic!(d.fetch("PrimitiveKind")),
8981+ repeat: Repeat.from_dynamic!(d.fetch("repeat")),
8982+ required: Required.from_dynamic!(d.fetch("required")),
8983+ requires: Requires.from_dynamic!(d.fetch("requires")),
90108984 restrict: Restrict.from_dynamic!(d.fetch("restrict")),
90118985 retain: Retain.from_dynamic!(d.fetch("retain")),
90128986 rethrows: Rethrows.from_dynamic!(d.fetch("rethrows")),
@@ -9056,8 +9030,6 @@ class Obj5 < Dry::Struct
90569030 top_level: TopLevelClass.from_dynamic!(d.fetch("top_level")),
90579031 transient: Transient.from_dynamic!(d.fetch("transient")),
90589032 true_1: Obj5True.from_dynamic!(d.fetch("true")),
9059- type_1: TypeClass.from_dynamic!(d.fetch("type")),
9060- typealias: Typealias.from_dynamic!(d.fetch("typealias")),
90619033 )
90629034 end
90639035
@@ -9069,6 +9041,7 @@ class Obj5 < Dry::Struct
90699041 {
90709042 "dummy" => dummy,
90719043 "KSerializer" => k_serializer.to_dynamic,
9044+ "require" => obj5_require.to_dynamic,
90729045 "return" => obj5_return.to_dynamic,
90739046 "select" => obj5_select.to_dynamic,
90749047 "Self" => obj5_self.to_dynamic,
@@ -9078,9 +9051,10 @@ class Obj5 < Dry::Struct
90789051 "throw" => obj5_throw.to_dynamic,
90799052 "to_json" => obj5_to_json.to_dynamic,
90809053 "True" => obj5_true.to_dynamic,
9081- "try" => obj5_try.to_dynamic,
9082- "Type" => obj5_type.to_dynamic,
90839054 "PrimitiveKind" => primitive_kind.to_dynamic,
9055+ "repeat" => repeat.to_dynamic,
9056+ "required" => required.to_dynamic,
9057+ "requires" => requires.to_dynamic,
90849058 "restrict" => restrict.to_dynamic,
90859059 "retain" => retain.to_dynamic,
90869060 "rethrows" => rethrows.to_dynamic,
@@ -9130,8 +9104,56 @@ class Obj5 < Dry::Struct
91309104 "top_level" => top_level.to_dynamic,
91319105 "transient" => transient.to_dynamic,
91329106 "true" => true_1.to_dynamic,
9133- "type" => type_1.to_dynamic,
9134- "typealias" => typealias.to_dynamic,
9107+ }
9108+ end
9109+
9110+ def to_json(options = nil)
9111+ JSON.generate(to_dynamic, options)
9112+ end
9113+end
9114+
9115+class Try < Dry::Struct
9116+ attribute :try_try, Types::Integer
9117+
9118+ def self.from_dynamic!(d)
9119+ d = Types::Hash[d]
9120+ new(
9121+ try_try: d.fetch("try"),
9122+ )
9123+ end
9124+
9125+ def self.from_json!(json)
9126+ from_dynamic!(JSON.parse(json))
9127+ end
9128+
9129+ def to_dynamic
9130+ {
9131+ "try" => try_try,
9132+ }
9133+ end
9134+
9135+ def to_json(options = nil)
9136+ JSON.generate(to_dynamic, options)
9137+ end
9138+end
9139+
9140+class Type < Dry::Struct
9141+ attribute :type_type, Types::Integer
9142+
9143+ def self.from_dynamic!(d)
9144+ d = Types::Hash[d]
9145+ new(
9146+ type_type: d.fetch("Type"),
9147+ )
9148+ end
9149+
9150+ def self.from_json!(json)
9151+ from_dynamic!(JSON.parse(json))
9152+ end
9153+
9154+ def to_dynamic
9155+ {
9156+ "Type" => type_type,
91359157 }
91369158 end
91379159
@@ -9215,6 +9237,56 @@ class Yield < Dry::Struct
92159237 end
92169238 end
92179239
9240+class TypeClass < Dry::Struct
9241+ attribute :type_type, Types::Integer
9242+
9243+ def self.from_dynamic!(d)
9244+ d = Types::Hash[d]
9245+ new(
9246+ type_type: d.fetch("type"),
9247+ )
9248+ end
9249+
9250+ def self.from_json!(json)
9251+ from_dynamic!(JSON.parse(json))
9252+ end
9253+
9254+ def to_dynamic
9255+ {
9256+ "type" => type_type,
9257+ }
9258+ end
9259+
9260+ def to_json(options = nil)
9261+ JSON.generate(to_dynamic, options)
9262+ end
9263+end
9264+
9265+class Typealias < Dry::Struct
9266+ attribute :typealias, Types::Integer
9267+
9268+ def self.from_dynamic!(d)
9269+ d = Types::Hash[d]
9270+ new(
9271+ typealias: d.fetch("typealias"),
9272+ )
9273+ end
9274+
9275+ def self.from_json!(json)
9276+ from_dynamic!(JSON.parse(json))
9277+ end
9278+
9279+ def to_dynamic
9280+ {
9281+ "typealias" => typealias,
9282+ }
9283+ end
9284+
9285+ def to_json(options = nil)
9286+ JSON.generate(to_dynamic, options)
9287+ end
9288+end
9289+
92189290 class Typedef < Dry::Struct
92199291 attribute :typedef, Types::Integer
92209292
@@ -9967,9 +10039,13 @@ end
996710039
996810040 class Obj6 < Dry::Struct
996910041 attribute :dummy, Types::Integer
10042+ attribute :obj6_try, Try
10043+ attribute :obj6_type, Type
997010044 attribute :obj6_while, While
997110045 attribute :obj6_with, With
997210046 attribute :obj6_yield, Yield
10047+ attribute :type_1, TypeClass
10048+ attribute :typealias, Typealias
997310049 attribute :typedef, Typedef
997410050 attribute :typeid, Typeid
997510051 attribute :typename, Typename
@@ -10005,9 +10081,13 @@ class Obj6 < Dry::Struct
1000510081 d = Types::Hash[d]
1000610082 new(
1000710083 dummy: d.fetch("dummy"),
10084+ obj6_try: Try.from_dynamic!(d.fetch("try")),
10085+ obj6_type: Type.from_dynamic!(d.fetch("Type")),
1000810086 obj6_while: While.from_dynamic!(d.fetch("while")),
1000910087 obj6_with: With.from_dynamic!(d.fetch("with")),
1001010088 obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
10089+ type_1: TypeClass.from_dynamic!(d.fetch("type")),
10090+ typealias: Typealias.from_dynamic!(d.fetch("typealias")),
1001110091 typedef: Typedef.from_dynamic!(d.fetch("typedef")),
1001210092 typeid: Typeid.from_dynamic!(d.fetch("typeid")),
1001310093 typename: Typename.from_dynamic!(d.fetch("typename")),
@@ -10048,9 +10128,13 @@ class Obj6 < Dry::Struct
1004810128 def to_dynamic
1004910129 {
1005010130 "dummy" => dummy,
10131+ "try" => obj6_try.to_dynamic,
10132+ "Type" => obj6_type.to_dynamic,
1005110133 "while" => obj6_while.to_dynamic,
1005210134 "with" => obj6_with.to_dynamic,
1005310135 "yield" => obj6_yield.to_dynamic,
10136+ "type" => type_1.to_dynamic,
10137+ "typealias" => typealias.to_dynamic,
1005410138 "typedef" => typedef.to_dynamic,
1005510139 "typeid" => typeid.to_dynamic,
1005610140 "typename" => typename.to_dynamic,
Mrustdefault / module_under_test.rs+96 −69
@@ -1164,6 +1164,9 @@ pub struct Obj3 {
11641164
11651165 pub list: List,
11661166
1167+ #[serde(rename = "LocalDate")]
1168+ pub local_date: LocalDate,
1169+
11671170 #[serde(rename = "Locale")]
11681171 pub locale: Locale,
11691172
@@ -1186,10 +1189,6 @@ pub struct Obj3 {
11861189
11871190 pub module: Module,
11881191
1189- pub mutable: Mutable,
1190-
1191- pub mutating: Mutating,
1192-
11931192 #[serde(rename = "if")]
11941193 pub obj3_if: If,
11951194
@@ -1478,6 +1477,12 @@ pub struct List {
14781477 pub list: i64,
14791478 }
14801479
1480+#[derive(Debug, Clone, Serialize, Deserialize)]
1481+#[serde(rename_all = "PascalCase")]
1482+pub struct LocalDate {
1483+ pub local_date: i64,
1484+}
1485+
14811486 #[derive(Debug, Clone, Serialize, Deserialize)]
14821487 #[serde(rename_all = "PascalCase")]
14831488 pub struct Locale {
@@ -1528,16 +1533,6 @@ pub struct Module {
15281533 pub module: i64,
15291534 }
15301535
1531-#[derive(Debug, Clone, Serialize, Deserialize)]
1532-pub struct Mutable {
1533- pub mutable: i64,
1534-}
1535-
1536-#[derive(Debug, Clone, Serialize, Deserialize)]
1537-pub struct Mutating {
1538- pub mutating: i64,
1539-}
1540-
15411536 #[derive(Debug, Clone, Serialize, Deserialize)]
15421537 pub struct If {
15431538 #[serde(rename = "if")]
@@ -1560,6 +1555,10 @@ pub struct Let {
15601555 pub struct Obj4 {
15611556 pub dummy: i64,
15621557
1558+ pub mutable: Mutable,
1559+
1560+ pub mutating: Mutating,
1561+
15631562 pub namespace: Namespace,
15641563
15651564 pub native: Native,
@@ -1641,6 +1640,12 @@ pub struct Obj4 {
16411640
16421641 pub of: Of,
16431642
1643+ #[serde(rename = "OffsetDateTime")]
1644+ pub offset_date_time: OffsetDateTime,
1645+
1646+ #[serde(rename = "OffsetTime")]
1647+ pub offset_time: OffsetTime,
1648+
16441649 pub oneway: Oneway,
16451650
16461651 pub open: Open,
@@ -1699,14 +1704,16 @@ pub struct Obj4 {
16991704 pub register: Register,
17001705
17011706 pub reinterpret_cast: ReinterpretCast,
1707+}
17021708
1703- pub repeat: Repeat,
1704-
1705- pub require: Require,
1706-
1707- pub required: Required,
1709+#[derive(Debug, Clone, Serialize, Deserialize)]
1710+pub struct Mutable {
1711+ pub mutable: i64,
1712+}
17081713
1709- pub requires: Requires,
1714+#[derive(Debug, Clone, Serialize, Deserialize)]
1715+pub struct Mutating {
1716+ pub mutating: i64,
17101717 }
17111718
17121719 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -1886,6 +1893,18 @@ pub struct Of {
18861893 pub of: i64,
18871894 }
18881895
1896+#[derive(Debug, Clone, Serialize, Deserialize)]
1897+#[serde(rename_all = "PascalCase")]
1898+pub struct OffsetDateTime {
1899+ pub offset_date_time: i64,
1900+}
1901+
1902+#[derive(Debug, Clone, Serialize, Deserialize)]
1903+#[serde(rename_all = "PascalCase")]
1904+pub struct OffsetTime {
1905+ pub offset_time: i64,
1906+}
1907+
18891908 #[derive(Debug, Clone, Serialize, Deserialize)]
18901909 pub struct Oneway {
18911910 pub oneway: i64,
@@ -2029,26 +2048,6 @@ pub struct ReinterpretCast {
20292048 pub reinterpret_cast: i64,
20302049 }
20312050
2032-#[derive(Debug, Clone, Serialize, Deserialize)]
2033-pub struct Repeat {
2034- pub repeat: i64,
2035-}
2036-
2037-#[derive(Debug, Clone, Serialize, Deserialize)]
2038-pub struct Require {
2039- pub require: i64,
2040-}
2041-
2042-#[derive(Debug, Clone, Serialize, Deserialize)]
2043-pub struct Required {
2044- pub required: i64,
2045-}
2046-
2047-#[derive(Debug, Clone, Serialize, Deserialize)]
2048-pub struct Requires {
2049- pub requires: i64,
2050-}
2051-
20522051 #[derive(Debug, Clone, Serialize, Deserialize)]
20532052 pub struct Obj5 {
20542053 pub dummy: i64,
@@ -2077,9 +2076,6 @@ pub struct Obj5 {
20772076 #[serde(rename = "True")]
20782077 pub obj5_true: True,
20792078
2080- #[serde(rename = "Type")]
2081- pub obj5_type: Type,
2082-
20832079 #[serde(rename = "PrimitiveKind")]
20842080 pub primitive_kind: PrimitiveKind,
20852081
@@ -2089,8 +2085,13 @@ pub struct Obj5 {
20892085 #[serde(rename = "true")]
20902086 pub purple_true: TrueClass,
20912087
2092- #[serde(rename = "type")]
2093- pub purple_type: TypeClass,
2088+ pub repeat: Repeat,
2089+
2090+ pub require: Require,
2091+
2092+ pub required: Required,
2093+
2094+ pub requires: Requires,
20942095
20952096 pub restrict: Restrict,
20962097
@@ -2206,10 +2207,6 @@ pub struct Obj5 {
22062207 pub top_level: TopLevelClass,
22072208
22082209 pub transient: Transient,
2209-
2210- pub try: Try,
2211-
2212- pub typealias: Typealias,
22132210 }
22142211
22152212 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2262,13 +2259,6 @@ pub struct True {
22622259 pub true_true: i64,
22632260 }
22642261
2265-#[derive(Debug, Clone, Serialize, Deserialize)]
2266-#[serde(rename_all = "PascalCase")]
2267-pub struct Type {
2268- #[serde(rename = "Type")]
2269- pub type_type: i64,
2270-}
2271-
22722262 #[derive(Debug, Clone, Serialize, Deserialize)]
22732263 #[serde(rename_all = "PascalCase")]
22742264 pub struct PrimitiveKind {
@@ -2288,9 +2278,23 @@ pub struct TrueClass {
22882278 }
22892279
22902280 #[derive(Debug, Clone, Serialize, Deserialize)]
2291-pub struct TypeClass {
2292- #[serde(rename = "type")]
2293- pub type_type: i64,
2281+pub struct Repeat {
2282+ pub repeat: i64,
2283+}
2284+
2285+#[derive(Debug, Clone, Serialize, Deserialize)]
2286+pub struct Require {
2287+ pub require: i64,
2288+}
2289+
2290+#[derive(Debug, Clone, Serialize, Deserialize)]
2291+pub struct Required {
2292+ pub required: i64,
2293+}
2294+
2295+#[derive(Debug, Clone, Serialize, Deserialize)]
2296+pub struct Requires {
2297+ pub requires: i64,
22942298 }
22952299
22962300 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2555,20 +2559,13 @@ pub struct Transient {
25552559 pub transient: i64,
25562560 }
25572561
2558-#[derive(Debug, Clone, Serialize, Deserialize)]
2559-pub struct Try {
2560- pub try: i64,
2561-}
2562-
2563-#[derive(Debug, Clone, Serialize, Deserialize)]
2564-pub struct Typealias {
2565- pub typealias: i64,
2566-}
2567-
25682562 #[derive(Debug, Clone, Serialize, Deserialize)]
25692563 pub struct Obj6 {
25702564 pub dummy: i64,
25712565
2566+ #[serde(rename = "Type")]
2567+ pub obj6_type: Type,
2568+
25722569 #[serde(rename = "typeof")]
25732570 pub obj6_typeof: Typeof,
25742571
@@ -2590,6 +2587,13 @@ pub struct Obj6 {
25902587 #[serde(rename = "yield")]
25912588 pub obj6_yield: Yield,
25922589
2590+ #[serde(rename = "type")]
2591+ pub purple_type: TypeClass,
2592+
2593+ pub try: Try,
2594+
2595+ pub typealias: Typealias,
2596+
25932597 pub typedef: Typedef,
25942598
25952599 pub typeid: Typeid,
@@ -2650,6 +2654,13 @@ pub struct Obj6 {
26502654 pub yes: Yes,
26512655 }
26522656
2657+#[derive(Debug, Clone, Serialize, Deserialize)]
2658+#[serde(rename_all = "PascalCase")]
2659+pub struct Type {
2660+ #[serde(rename = "Type")]
2661+ pub type_type: i64,
2662+}
2663+
26532664 #[derive(Debug, Clone, Serialize, Deserialize)]
26542665 pub struct Typeof {
26552666 #[serde(rename = "typeof")]
@@ -2692,6 +2703,22 @@ pub struct Yield {
26922703 pub yield_yield: i64,
26932704 }
26942705
2706+#[derive(Debug, Clone, Serialize, Deserialize)]
2707+pub struct TypeClass {
2708+ #[serde(rename = "type")]
2709+ pub type_type: i64,
2710+}
2711+
2712+#[derive(Debug, Clone, Serialize, Deserialize)]
2713+pub struct Try {
2714+ pub try: i64,
2715+}
2716+
2717+#[derive(Debug, Clone, Serialize, Deserialize)]
2718+pub struct Typealias {
2719+ pub typealias: i64,
2720+}
2721+
26952722 #[derive(Debug, Clone, Serialize, Deserialize)]
26962723 pub struct Typedef {
26972724 pub typedef: i64,
Mscala3-upickledefault / TopLevel.scala+65 −50
@@ -809,6 +809,7 @@ case class Obj3 (
809809 val left : Left,
810810 val let : Let,
811811 val list : ListClass,
812+ val LocalDate : LocalDate,
812813 val Locale : Locale,
813814 val lock : Lock,
814815 val long : LongClass,
@@ -818,8 +819,6 @@ case class Obj3 (
818819 val MarshalJSON : MarshalJSON,
819820 val metadata_property_handling : MetadataPropertyHandling,
820821 val module : Module,
821- val mutable : Mutable,
822- val mutating : Mutating,
823822 val `if` : If,
824823 val `implicit` : Implicit,
825824 val `import` : Import,
@@ -1027,6 +1026,10 @@ case class ListClass (
10271026 val list : Long
10281027 ) derives OptionPickler.ReadWriter
10291028
1029+case class LocalDate (
1030+ val LocalDate : Long
1031+) derives OptionPickler.ReadWriter
1032+
10301033 case class Locale (
10311034 val Locale : Long
10321035 ) derives OptionPickler.ReadWriter
@@ -1063,14 +1066,6 @@ case class Module (
10631066 val module : Long
10641067 ) derives OptionPickler.ReadWriter
10651068
1066-case class Mutable (
1067- val mutable : Long
1068-) derives OptionPickler.ReadWriter
1069-
1070-case class Mutating (
1071- val mutating : Long
1072-) derives OptionPickler.ReadWriter
1073-
10741069 case class If (
10751070 val `if` : Long
10761071 ) derives OptionPickler.ReadWriter
@@ -1089,6 +1084,8 @@ case class Lazy (
10891084
10901085 case class Obj4 (
10911086 val dummy : Long,
1087+ val mutable : Mutable,
1088+ val mutating : Mutating,
10921089 val namespace : Namespace,
10931090 val native : Native,
10941091 val newtonsoft : Newtonsoft,
@@ -1123,6 +1120,8 @@ case class Obj4 (
11231120 val ObjectReader : ObjectReader,
11241121 val ObjectWriter : ObjectWriter,
11251122 val of : Of,
1123+ val OffsetDateTime : OffsetDateTime,
1124+ val OffsetTime : OffsetTime,
11261125 val oneway : Oneway,
11271126 val open : Open,
11281127 val operator : Operator,
@@ -1148,11 +1147,15 @@ case class Obj4 (
11481147 val ref : Ref,
11491148 val RegExp : RegExp,
11501149 val register : Register,
1151- val reinterpret_cast : ReinterpretCast,
1152- val repeat : Repeat,
1153- val require : Require,
1154- val required : Required,
1155- val requires : Requires
1150+ val reinterpret_cast : ReinterpretCast
1151+) derives OptionPickler.ReadWriter
1152+
1153+case class Mutable (
1154+ val mutable : Long
1155+) derives OptionPickler.ReadWriter
1156+
1157+case class Mutating (
1158+ val mutating : Long
11561159 ) derives OptionPickler.ReadWriter
11571160
11581161 case class Namespace (
@@ -1291,6 +1294,14 @@ case class Of (
12911294 val of : Long
12921295 ) derives OptionPickler.ReadWriter
12931296
1297+case class OffsetDateTime (
1298+ val OffsetDateTime : Long
1299+) derives OptionPickler.ReadWriter
1300+
1301+case class OffsetTime (
1302+ val OffsetTime : Long
1303+) derives OptionPickler.ReadWriter
1304+
12941305 case class Oneway (
12951306 val oneway : Long
12961307 ) derives OptionPickler.ReadWriter
@@ -1395,22 +1406,6 @@ case class ReinterpretCast (
13951406 val reinterpret_cast : Long
13961407 ) derives OptionPickler.ReadWriter
13971408
1398-case class Repeat (
1399- val repeat : Long
1400-) derives OptionPickler.ReadWriter
1401-
1402-case class Require (
1403- val require : Long
1404-) derives OptionPickler.ReadWriter
1405-
1406-case class Required (
1407- val required : Long
1408-) derives OptionPickler.ReadWriter
1409-
1410-case class Requires (
1411- val requires : Long
1412-) derives OptionPickler.ReadWriter
1413-
14141409 case class Obj5 (
14151410 val dummy : Long,
14161411 val KSerializer : KSerializer,
@@ -1422,11 +1417,12 @@ case class Obj5 (
14221417 val `this` : This,
14231418 val `throw` : Throw,
14241419 val True : True,
1425- val `try` : Try,
1426- val Type : Type,
14271420 val PrimitiveKind : PrimitiveKind,
14281421 val `true` : TrueClass,
1429- val `type` : TypeClass,
1422+ val repeat : Repeat,
1423+ val require : Require,
1424+ val required : Required,
1425+ val requires : Requires,
14301426 val restrict : Restrict,
14311427 val retain : Retain,
14321428 val rethrows : Rethrows,
@@ -1477,8 +1473,7 @@ case class Obj5 (
14771473 @upickle.implicits.key("toString")
14781474 val toStringValue : ToString,
14791475 val top_level : TopLevelClass,
1480- val transient : Transient,
1481- val typealias : Typealias
1476+ val transient : Transient
14821477 ) derives OptionPickler.ReadWriter
14831478
14841479 case class KSerializer (
@@ -1517,14 +1512,6 @@ case class True (
15171512 val True : Long
15181513 ) derives OptionPickler.ReadWriter
15191514
1520-case class Try (
1521- val `try` : Long
1522-) derives OptionPickler.ReadWriter
1523-
1524-case class Type (
1525- val Type : Long
1526-) derives OptionPickler.ReadWriter
1527-
15281515 case class PrimitiveKind (
15291516 val PrimitiveKind : Long
15301517 ) derives OptionPickler.ReadWriter
@@ -1533,8 +1520,20 @@ case class TrueClass (
15331520 val `true` : Long
15341521 ) derives OptionPickler.ReadWriter
15351522
1536-case class TypeClass (
1537- val `type` : Long
1523+case class Repeat (
1524+ val repeat : Long
1525+) derives OptionPickler.ReadWriter
1526+
1527+case class Require (
1528+ val require : Long
1529+) derives OptionPickler.ReadWriter
1530+
1531+case class Required (
1532+ val required : Long
1533+) derives OptionPickler.ReadWriter
1534+
1535+case class Requires (
1536+ val requires : Long
15381537 ) derives OptionPickler.ReadWriter
15391538
15401539 case class Restrict (
@@ -1735,16 +1734,16 @@ case class Transient (
17351734 val transient : Long
17361735 ) derives OptionPickler.ReadWriter
17371736
1738-case class Typealias (
1739- val typealias : Long
1740-) derives OptionPickler.ReadWriter
1741-
17421737 case class Obj6 (
17431738 val dummy : Long,
1739+ val `try` : Try,
1740+ val Type : Type,
17441741 val `var` : Var,
17451742 val `while` : While,
17461743 val `with` : With,
17471744 val `yield` : Yield,
1745+ val `type` : TypeClass,
1746+ val typealias : Typealias,
17481747 val typedef : Typedef,
17491748 val typeid : Typeid,
17501749 val typename : Typename,
@@ -1776,6 +1775,14 @@ case class Obj6 (
17761775 val YES : Yes
17771776 ) derives OptionPickler.ReadWriter
17781777
1778+case class Try (
1779+ val `try` : Long
1780+) derives OptionPickler.ReadWriter
1781+
1782+case class Type (
1783+ val Type : Long
1784+) derives OptionPickler.ReadWriter
1785+
17791786 case class Var (
17801787 val `var` : Long
17811788 ) derives OptionPickler.ReadWriter
@@ -1792,6 +1799,14 @@ case class Yield (
17921799 val `yield` : Long
17931800 ) derives OptionPickler.ReadWriter
17941801
1802+case class TypeClass (
1803+ val `type` : Long
1804+) derives OptionPickler.ReadWriter
1805+
1806+case class Typealias (
1807+ val typealias : Long
1808+) derives OptionPickler.ReadWriter
1809+
17951810 case class Typedef (
17961811 val typedef : Long
17971812 ) derives OptionPickler.ReadWriter
Mscala3default / TopLevel.scala+65 −50
@@ -759,6 +759,7 @@ case class Obj3 (
759759 val left : Left,
760760 val let : Let,
761761 val list : ListClass,
762+ val LocalDate : LocalDate,
762763 val Locale : Locale,
763764 val lock : Lock,
764765 val long : LongClass,
@@ -768,8 +769,6 @@ case class Obj3 (
768769 val MarshalJSON : MarshalJSON,
769770 val metadata_property_handling : MetadataPropertyHandling,
770771 val module : Module,
771- val mutable : Mutable,
772- val mutating : Mutating,
773772 val `if` : If,
774773 val `implicit` : Implicit,
775774 val `import` : Import,
@@ -994,6 +993,10 @@ case class ListClass (
994993 val list : Long
995994 ) derives Encoder.AsObject, Decoder
996995
996+case class LocalDate (
997+ val LocalDate : Long
998+) derives Encoder.AsObject, Decoder
999+
9971000 case class Locale (
9981001 val Locale : Long
9991002 ) derives Encoder.AsObject, Decoder
@@ -1030,14 +1033,6 @@ case class Module (
10301033 val module : Long
10311034 ) derives Encoder.AsObject, Decoder
10321035
1033-case class Mutable (
1034- val mutable : Long
1035-) derives Encoder.AsObject, Decoder
1036-
1037-case class Mutating (
1038- val mutating : Long
1039-) derives Encoder.AsObject, Decoder
1040-
10411036 case class If (
10421037 val `if` : Long
10431038 ) derives Encoder.AsObject, Decoder
@@ -1056,6 +1051,8 @@ case class Lazy (
10561051
10571052 case class Obj4 (
10581053 val dummy : Long,
1054+ val mutable : Mutable,
1055+ val mutating : Mutating,
10591056 val namespace : Namespace,
10601057 val native : Native,
10611058 val newtonsoft : Newtonsoft,
@@ -1090,6 +1087,8 @@ case class Obj4 (
10901087 val ObjectReader : ObjectReader,
10911088 val ObjectWriter : ObjectWriter,
10921089 val of : Of,
1090+ val OffsetDateTime : OffsetDateTime,
1091+ val OffsetTime : OffsetTime,
10931092 val oneway : Oneway,
10941093 val open : Open,
10951094 val operator : Operator,
@@ -1115,11 +1114,15 @@ case class Obj4 (
11151114 val ref : Ref,
11161115 val RegExp : RegExp,
11171116 val register : Register,
1118- val reinterpret_cast : ReinterpretCast,
1119- val repeat : Repeat,
1120- val require : Require,
1121- val required : Required,
1122- val requires : Requires
1117+ val reinterpret_cast : ReinterpretCast
1118+) derives Encoder.AsObject, Decoder
1119+
1120+case class Mutable (
1121+ val mutable : Long
1122+) derives Encoder.AsObject, Decoder
1123+
1124+case class Mutating (
1125+ val mutating : Long
11231126 ) derives Encoder.AsObject, Decoder
11241127
11251128 case class Namespace (
@@ -1258,6 +1261,14 @@ case class Of (
12581261 val of : Long
12591262 ) derives Encoder.AsObject, Decoder
12601263
1264+case class OffsetDateTime (
1265+ val OffsetDateTime : Long
1266+) derives Encoder.AsObject, Decoder
1267+
1268+case class OffsetTime (
1269+ val OffsetTime : Long
1270+) derives Encoder.AsObject, Decoder
1271+
12611272 case class Oneway (
12621273 val oneway : Long
12631274 ) derives Encoder.AsObject, Decoder
@@ -1362,22 +1373,6 @@ case class ReinterpretCast (
13621373 val reinterpret_cast : Long
13631374 ) derives Encoder.AsObject, Decoder
13641375
1365-case class Repeat (
1366- val repeat : Long
1367-) derives Encoder.AsObject, Decoder
1368-
1369-case class Require (
1370- val require : Long
1371-) derives Encoder.AsObject, Decoder
1372-
1373-case class Required (
1374- val required : Long
1375-) derives Encoder.AsObject, Decoder
1376-
1377-case class Requires (
1378- val requires : Long
1379-) derives Encoder.AsObject, Decoder
1380-
13811376 case class Obj5 (
13821377 val dummy : Long,
13831378 val KSerializer : KSerializer,
@@ -1389,11 +1384,12 @@ case class Obj5 (
13891384 val `this` : This,
13901385 val `throw` : Throw,
13911386 val True : True,
1392- val `try` : Try,
1393- val Type : Type,
13941387 val PrimitiveKind : PrimitiveKind,
13951388 val `true` : TrueClass,
1396- val `type` : TypeClass,
1389+ val repeat : Repeat,
1390+ val require : Require,
1391+ val required : Required,
1392+ val requires : Requires,
13971393 val restrict : Restrict,
13981394 val retain : Retain,
13991395 val rethrows : Rethrows,
@@ -1442,8 +1438,7 @@ case class Obj5 (
14421438 val to_json : ToJSON,
14431439 val toStringValue : ToString,
14441440 val top_level : TopLevelClass,
1445- val transient : Transient,
1446- val typealias : Typealias
1441+ val transient : Transient
14471442 )
14481443
14491444 object Obj5:
@@ -1492,14 +1487,6 @@ case class True (
14921487 val True : Long
14931488 ) derives Encoder.AsObject, Decoder
14941489
1495-case class Try (
1496- val `try` : Long
1497-) derives Encoder.AsObject, Decoder
1498-
1499-case class Type (
1500- val Type : Long
1501-) derives Encoder.AsObject, Decoder
1502-
15031490 case class PrimitiveKind (
15041491 val PrimitiveKind : Long
15051492 ) derives Encoder.AsObject, Decoder
@@ -1508,8 +1495,20 @@ case class TrueClass (
15081495 val `true` : Long
15091496 ) derives Encoder.AsObject, Decoder
15101497
1511-case class TypeClass (
1512- val `type` : Long
1498+case class Repeat (
1499+ val repeat : Long
1500+) derives Encoder.AsObject, Decoder
1501+
1502+case class Require (
1503+ val require : Long
1504+) derives Encoder.AsObject, Decoder
1505+
1506+case class Required (
1507+ val required : Long
1508+) derives Encoder.AsObject, Decoder
1509+
1510+case class Requires (
1511+ val requires : Long
15131512 ) derives Encoder.AsObject, Decoder
15141513
15151514 case class Restrict (
@@ -1726,16 +1725,16 @@ case class Transient (
17261725 val transient : Long
17271726 ) derives Encoder.AsObject, Decoder
17281727
1729-case class Typealias (
1730- val typealias : Long
1731-) derives Encoder.AsObject, Decoder
1732-
17331728 case class Obj6 (
17341729 val dummy : Long,
1730+ val `try` : Try,
1731+ val Type : Type,
17351732 val `var` : Var,
17361733 val `while` : While,
17371734 val `with` : With,
17381735 val `yield` : Yield,
1736+ val `type` : TypeClass,
1737+ val typealias : Typealias,
17391738 val typedef : Typedef,
17401739 val typeid : Typeid,
17411740 val typename : Typename,
@@ -1767,6 +1766,14 @@ case class Obj6 (
17671766 val YES : Yes
17681767 ) derives Encoder.AsObject, Decoder
17691768
1769+case class Try (
1770+ val `try` : Long
1771+) derives Encoder.AsObject, Decoder
1772+
1773+case class Type (
1774+ val Type : Long
1775+) derives Encoder.AsObject, Decoder
1776+
17701777 case class Var (
17711778 val `var` : Long
17721779 ) derives Encoder.AsObject, Decoder
@@ -1783,6 +1790,14 @@ case class Yield (
17831790 val `yield` : Long
17841791 ) derives Encoder.AsObject, Decoder
17851792
1793+case class TypeClass (
1794+ val `type` : Long
1795+) derives Encoder.AsObject, Decoder
1796+
1797+case class Typealias (
1798+ val typealias : Long
1799+) derives Encoder.AsObject, Decoder
1800+
17861801 case class Typedef (
17871802 val typedef : Long
17881803 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+597 −453
@@ -6352,6 +6352,7 @@ struct Obj3: Codable {
63526352 let jsonWriter: JSONWriter
63536353 let lambda: Lambda
63546354 let list: List
6355+ let localDate: LocalDate
63556356 let locale: LocaleClass
63566357 let lock: Lock
63576358 let long: Long
@@ -6361,7 +6362,6 @@ struct Obj3: Codable {
63616362 let marshalJSON: MarshalJSON
63626363 let metadataPropertyHandling: MetadataPropertyHandling
63636364 let module: Module
6364- let mutable: Mutable
63656365 let obj3Get: Get
63666366 let obj3Guard: Guard
63676367 let obj3If: If
@@ -6377,7 +6377,6 @@ struct Obj3: Codable {
63776377 let obj3Lazy: Lazy
63786378 let obj3Left: Left
63796379 let obj3Let: Let
6380- let obj3Mutating: Mutating
63816380
63826381 enum CodingKeys: String, CodingKey {
63836382 case dummy = "dummy"
@@ -6420,6 +6419,7 @@ struct Obj3: Codable {
64206419 case jsonWriter = "json_writer"
64216420 case lambda = "lambda"
64226421 case list = "list"
6422+ case localDate = "LocalDate"
64236423 case locale = "Locale"
64246424 case lock = "lock"
64256425 case long = "long"
@@ -6429,7 +6429,6 @@ struct Obj3: Codable {
64296429 case marshalJSON = "MarshalJSON"
64306430 case metadataPropertyHandling = "metadata_property_handling"
64316431 case module = "module"
6432- case mutable = "mutable"
64336432 case obj3Get = "get"
64346433 case obj3Guard = "guard"
64356434 case obj3If = "if"
@@ -6445,7 +6444,6 @@ struct Obj3: Codable {
64456444 case obj3Lazy = "lazy"
64466445 case obj3Left = "left"
64476446 case obj3Let = "let"
6448- case obj3Mutating = "mutating"
64496447 }
64506448 }
64516449
@@ -6508,6 +6506,7 @@ extension Obj3 {
65086506 jsonWriter: JSONWriter? = nil,
65096507 lambda: Lambda? = nil,
65106508 list: List? = nil,
6509+ localDate: LocalDate? = nil,
65116510 locale: LocaleClass? = nil,
65126511 lock: Lock? = nil,
65136512 long: Long? = nil,
@@ -6517,7 +6516,6 @@ extension Obj3 {
65176516 marshalJSON: MarshalJSON? = nil,
65186517 metadataPropertyHandling: MetadataPropertyHandling? = nil,
65196518 module: Module? = nil,
6520- mutable: Mutable? = nil,
65216519 obj3Get: Get? = nil,
65226520 obj3Guard: Guard? = nil,
65236521 obj3If: If? = nil,
@@ -6532,8 +6530,7 @@ extension Obj3 {
65326530 obj3JSON: JSON? = nil,
65336531 obj3Lazy: Lazy? = nil,
65346532 obj3Left: Left? = nil,
6535- obj3Let: Let? = nil,
6536- obj3Mutating: Mutating? = nil
6533+ obj3Let: Let? = nil
65376534 ) -> Obj3 {
65386535 return Obj3(
65396536 dummy: dummy ?? self.dummy,
@@ -6576,6 +6573,7 @@ extension Obj3 {
65766573 jsonWriter: jsonWriter ?? self.jsonWriter,
65776574 lambda: lambda ?? self.lambda,
65786575 list: list ?? self.list,
6576+ localDate: localDate ?? self.localDate,
65796577 locale: locale ?? self.locale,
65806578 lock: lock ?? self.lock,
65816579 long: long ?? self.long,
@@ -6585,7 +6583,6 @@ extension Obj3 {
65856583 marshalJSON: marshalJSON ?? self.marshalJSON,
65866584 metadataPropertyHandling: metadataPropertyHandling ?? self.metadataPropertyHandling,
65876585 module: module ?? self.module,
6588- mutable: mutable ?? self.mutable,
65896586 obj3Get: obj3Get ?? self.obj3Get,
65906587 obj3Guard: obj3Guard ?? self.obj3Guard,
65916588 obj3If: obj3If ?? self.obj3If,
@@ -6600,8 +6597,7 @@ extension Obj3 {
66006597 obj3JSON: obj3JSON ?? self.obj3JSON,
66016598 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
66026599 obj3Left: obj3Left ?? self.obj3Left,
6603- obj3Let: obj3Let ?? self.obj3Let,
6604- obj3Mutating: obj3Mutating ?? self.obj3Mutating
6600+ obj3Let: obj3Let ?? self.obj3Let
66056601 )
66066602 }
66076603
@@ -8330,6 +8326,50 @@ extension List {
83308326 }
83318327 }
83328328
8329+// MARK: - LocalDate
8330+struct LocalDate: Codable {
8331+ let localDate: Int
8332+
8333+ enum CodingKeys: String, CodingKey {
8334+ case localDate = "LocalDate"
8335+ }
8336+}
8337+
8338+// MARK: LocalDate convenience initializers and mutators
8339+
8340+extension LocalDate {
8341+ init(data: Data) throws {
8342+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
8343+ }
8344+
8345+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8346+ guard let data = json.data(using: encoding) else {
8347+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8348+ }
8349+ try self.init(data: data)
8350+ }
8351+
8352+ init(fromURL url: URL) throws {
8353+ try self.init(data: try Data(contentsOf: url))
8354+ }
8355+
8356+ func with(
8357+ localDate: Int? = nil
8358+ ) -> LocalDate {
8359+ return LocalDate(
8360+ localDate: localDate ?? self.localDate
8361+ )
8362+ }
8363+
8364+ func jsonData() throws -> Data {
8365+ return try newJSONEncoder().encode(self)
8366+ }
8367+
8368+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8369+ return String(data: try self.jsonData(), encoding: encoding)
8370+ }
8371+}
8372+
83338373 // MARK: - LocaleClass
83348374 struct LocaleClass: Codable {
83358375 let locale: Int
@@ -8726,50 +8766,6 @@ extension Module {
87268766 }
87278767 }
87288768
8729-// MARK: - Mutable
8730-struct Mutable: Codable {
8731- let mutable: Int
8732-
8733- enum CodingKeys: String, CodingKey {
8734- case mutable = "mutable"
8735- }
8736-}
8737-
8738-// MARK: Mutable convenience initializers and mutators
8739-
8740-extension Mutable {
8741- init(data: Data) throws {
8742- self = try newJSONDecoder().decode(Mutable.self, from: data)
8743- }
8744-
8745- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8746- guard let data = json.data(using: encoding) else {
8747- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8748- }
8749- try self.init(data: data)
8750- }
8751-
8752- init(fromURL url: URL) throws {
8753- try self.init(data: try Data(contentsOf: url))
8754- }
8755-
8756- func with(
8757- mutable: Int? = nil
8758- ) -> Mutable {
8759- return Mutable(
8760- mutable: mutable ?? self.mutable
8761- )
8762- }
8763-
8764- func jsonData() throws -> Data {
8765- return try newJSONEncoder().encode(self)
8766- }
8767-
8768- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8769- return String(data: try self.jsonData(), encoding: encoding)
8770- }
8771-}
8772-
87738769 // MARK: - Get
87748770 struct Get: Codable {
87758771 let getGet: Int
@@ -9430,53 +9426,10 @@ extension Let {
94309426 }
94319427 }
94329428
9433-// MARK: - Mutating
9434-struct Mutating: Codable {
9435- let mutatingMutating: Int
9436-
9437- enum CodingKeys: String, CodingKey {
9438- case mutatingMutating = "mutating"
9439- }
9440-}
9441-
9442-// MARK: Mutating convenience initializers and mutators
9443-
9444-extension Mutating {
9445- init(data: Data) throws {
9446- self = try newJSONDecoder().decode(Mutating.self, from: data)
9447- }
9448-
9449- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9450- guard let data = json.data(using: encoding) else {
9451- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9452- }
9453- try self.init(data: data)
9454- }
9455-
9456- init(fromURL url: URL) throws {
9457- try self.init(data: try Data(contentsOf: url))
9458- }
9459-
9460- func with(
9461- mutatingMutating: Int? = nil
9462- ) -> Mutating {
9463- return Mutating(
9464- mutatingMutating: mutatingMutating ?? self.mutatingMutating
9465- )
9466- }
9467-
9468- func jsonData() throws -> Data {
9469- return try newJSONEncoder().encode(self)
9470- }
9471-
9472- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9473- return String(data: try self.jsonData(), encoding: encoding)
9474- }
9475-}
9476-
94779429 // MARK: - Obj4
94789430 struct Obj4: Codable {
94799431 let dummy: Int
9432+ let mutable: Mutable
94809433 let namespace: Namespace
94819434 let native: Native
94829435 let new: New
@@ -9496,6 +9449,7 @@ struct Obj4: Codable {
94969449 let nullNode: NullNode
94979450 let nullptr: Nullptr
94989451 let number: Number
9452+ let obj4Mutating: Mutating
94999453 let obj4Nil: Nil
95009454 let obj4None: NoneClass
95019455 let obj4Nonmutating: Nonmutating
@@ -9510,14 +9464,14 @@ struct Obj4: Codable {
95109464 let obj4Private: Private
95119465 let obj4Protocol: ProtocolClass
95129466 let obj4Public: Public
9513- let obj4Repeat: Repeat
9514- let obj4Required: Required
95159467 let object: Object
95169468 let objectMapper: ObjectMapper
95179469 let objectNode: ObjectNode
95189470 let objectReader: ObjectReader
95199471 let objectWriter: ObjectWriter
95209472 let of: Of
9473+ let offsetDateTime: OffsetDateTime
9474+ let offsetTime: OffsetTime
95219475 let oneway: Oneway
95229476 let or: Or
95239477 let orEq: OrEq
@@ -9539,11 +9493,10 @@ struct Obj4: Codable {
95399493 let regExp: RegExp
95409494 let register: Register
95419495 let reinterpretCast: ReinterpretCast
9542- let require: Require
9543- let requires: Requires
95449496
95459497 enum CodingKeys: String, CodingKey {
95469498 case dummy = "dummy"
9499+ case mutable = "mutable"
95479500 case namespace = "namespace"
95489501 case native = "native"
95499502 case new = "new"
@@ -9563,6 +9516,7 @@ struct Obj4: Codable {
95639516 case nullNode = "NullNode"
95649517 case nullptr = "nullptr"
95659518 case number = "number"
9519+ case obj4Mutating = "mutating"
95669520 case obj4Nil = "nil"
95679521 case obj4None = "none"
95689522 case obj4Nonmutating = "nonmutating"
@@ -9577,14 +9531,14 @@ struct Obj4: Codable {
95779531 case obj4Private = "private"
95789532 case obj4Protocol = "Protocol"
95799533 case obj4Public = "public"
9580- case obj4Repeat = "repeat"
9581- case obj4Required = "required"
95829534 case object = "object"
95839535 case objectMapper = "ObjectMapper"
95849536 case objectNode = "ObjectNode"
95859537 case objectReader = "ObjectReader"
95869538 case objectWriter = "ObjectWriter"
95879539 case of = "of"
9540+ case offsetDateTime = "OffsetDateTime"
9541+ case offsetTime = "OffsetTime"
95889542 case oneway = "oneway"
95899543 case or = "or"
95909544 case orEq = "or_eq"
@@ -9606,8 +9560,6 @@ struct Obj4: Codable {
96069560 case regExp = "RegExp"
96079561 case register = "register"
96089562 case reinterpretCast = "reinterpret_cast"
9609- case require = "require"
9610- case requires = "requires"
96119563 }
96129564 }
96139565
@@ -9631,6 +9583,7 @@ extension Obj4 {
96319583
96329584 func with(
96339585 dummy: Int? = nil,
9586+ mutable: Mutable? = nil,
96349587 namespace: Namespace? = nil,
96359588 native: Native? = nil,
96369589 new: New? = nil,
@@ -9650,6 +9603,7 @@ extension Obj4 {
96509603 nullNode: NullNode? = nil,
96519604 nullptr: Nullptr? = nil,
96529605 number: Number? = nil,
9606+ obj4Mutating: Mutating? = nil,
96539607 obj4Nil: Nil? = nil,
96549608 obj4None: NoneClass? = nil,
96559609 obj4Nonmutating: Nonmutating? = nil,
@@ -9664,14 +9618,14 @@ extension Obj4 {
96649618 obj4Private: Private? = nil,
96659619 obj4Protocol: ProtocolClass? = nil,
96669620 obj4Public: Public? = nil,
9667- obj4Repeat: Repeat? = nil,
9668- obj4Required: Required? = nil,
96699621 object: Object? = nil,
96709622 objectMapper: ObjectMapper? = nil,
96719623 objectNode: ObjectNode? = nil,
96729624 objectReader: ObjectReader? = nil,
96739625 objectWriter: ObjectWriter? = nil,
96749626 of: Of? = nil,
9627+ offsetDateTime: OffsetDateTime? = nil,
9628+ offsetTime: OffsetTime? = nil,
96759629 oneway: Oneway? = nil,
96769630 or: Or? = nil,
96779631 orEq: OrEq? = nil,
@@ -9692,12 +9646,11 @@ extension Obj4 {
96929646 ref: Ref? = nil,
96939647 regExp: RegExp? = nil,
96949648 register: Register? = nil,
9695- reinterpretCast: ReinterpretCast? = nil,
9696- require: Require? = nil,
9697- requires: Requires? = nil
9649+ reinterpretCast: ReinterpretCast? = nil
96989650 ) -> Obj4 {
96999651 return Obj4(
97009652 dummy: dummy ?? self.dummy,
9653+ mutable: mutable ?? self.mutable,
97019654 namespace: namespace ?? self.namespace,
97029655 native: native ?? self.native,
97039656 new: new ?? self.new,
@@ -9717,6 +9670,7 @@ extension Obj4 {
97179670 nullNode: nullNode ?? self.nullNode,
97189671 nullptr: nullptr ?? self.nullptr,
97199672 number: number ?? self.number,
9673+ obj4Mutating: obj4Mutating ?? self.obj4Mutating,
97209674 obj4Nil: obj4Nil ?? self.obj4Nil,
97219675 obj4None: obj4None ?? self.obj4None,
97229676 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
@@ -9731,14 +9685,14 @@ extension Obj4 {
97319685 obj4Private: obj4Private ?? self.obj4Private,
97329686 obj4Protocol: obj4Protocol ?? self.obj4Protocol,
97339687 obj4Public: obj4Public ?? self.obj4Public,
9734- obj4Repeat: obj4Repeat ?? self.obj4Repeat,
9735- obj4Required: obj4Required ?? self.obj4Required,
97369688 object: object ?? self.object,
97379689 objectMapper: objectMapper ?? self.objectMapper,
97389690 objectNode: objectNode ?? self.objectNode,
97399691 objectReader: objectReader ?? self.objectReader,
97409692 objectWriter: objectWriter ?? self.objectWriter,
97419693 of: of ?? self.of,
9694+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
9695+ offsetTime: offsetTime ?? self.offsetTime,
97429696 oneway: oneway ?? self.oneway,
97439697 or: or ?? self.or,
97449698 orEq: orEq ?? self.orEq,
@@ -9759,9 +9713,51 @@ extension Obj4 {
97599713 ref: ref ?? self.ref,
97609714 regExp: regExp ?? self.regExp,
97619715 register: register ?? self.register,
9762- reinterpretCast: reinterpretCast ?? self.reinterpretCast,
9763- require: require ?? self.require,
9764- requires: requires ?? self.requires
9716+ reinterpretCast: reinterpretCast ?? self.reinterpretCast
9717+ )
9718+ }
9719+
9720+ func jsonData() throws -> Data {
9721+ return try newJSONEncoder().encode(self)
9722+ }
9723+
9724+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9725+ return String(data: try self.jsonData(), encoding: encoding)
9726+ }
9727+}
9728+
9729+// MARK: - Mutable
9730+struct Mutable: Codable {
9731+ let mutable: Int
9732+
9733+ enum CodingKeys: String, CodingKey {
9734+ case mutable = "mutable"
9735+ }
9736+}
9737+
9738+// MARK: Mutable convenience initializers and mutators
9739+
9740+extension Mutable {
9741+ init(data: Data) throws {
9742+ self = try newJSONDecoder().decode(Mutable.self, from: data)
9743+ }
9744+
9745+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9746+ guard let data = json.data(using: encoding) else {
9747+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9748+ }
9749+ try self.init(data: data)
9750+ }
9751+
9752+ init(fromURL url: URL) throws {
9753+ try self.init(data: try Data(contentsOf: url))
9754+ }
9755+
9756+ func with(
9757+ mutable: Int? = nil
9758+ ) -> Mutable {
9759+ return Mutable(
9760+ mutable: mutable ?? self.mutable
97659761 )
97669762 }
97679763
@@ -10610,6 +10606,50 @@ extension Number {
1061010606 }
1061110607 }
1061210608
10609+// MARK: - Mutating
10610+struct Mutating: Codable {
10611+ let mutatingMutating: Int
10612+
10613+ enum CodingKeys: String, CodingKey {
10614+ case mutatingMutating = "mutating"
10615+ }
10616+}
10617+
10618+// MARK: Mutating convenience initializers and mutators
10619+
10620+extension Mutating {
10621+ init(data: Data) throws {
10622+ self = try newJSONDecoder().decode(Mutating.self, from: data)
10623+ }
10624+
10625+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10626+ guard let data = json.data(using: encoding) else {
10627+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10628+ }
10629+ try self.init(data: data)
10630+ }
10631+
10632+ init(fromURL url: URL) throws {
10633+ try self.init(data: try Data(contentsOf: url))
10634+ }
10635+
10636+ func with(
10637+ mutatingMutating: Int? = nil
10638+ ) -> Mutating {
10639+ return Mutating(
10640+ mutatingMutating: mutatingMutating ?? self.mutatingMutating
10641+ )
10642+ }
10643+
10644+ func jsonData() throws -> Data {
10645+ return try newJSONEncoder().encode(self)
10646+ }
10647+
10648+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10649+ return String(data: try self.jsonData(), encoding: encoding)
10650+ }
10651+}
10652+
1061310653 // MARK: - Nil
1061410654 struct Nil: Codable {
1061510655 let nilNil: Int
@@ -11226,20 +11266,20 @@ extension Public {
1122611266 }
1122711267 }
1122811268
11229-// MARK: - Repeat
11230-struct Repeat: Codable {
11231- let repeatRepeat: Int
11269+// MARK: - Object
11270+struct Object: Codable {
11271+ let object: Int
1123211272
1123311273 enum CodingKeys: String, CodingKey {
11234- case repeatRepeat = "repeat"
11274+ case object = "object"
1123511275 }
1123611276 }
1123711277
11238-// MARK: Repeat convenience initializers and mutators
11278+// MARK: Object convenience initializers and mutators
1123911279
11240-extension Repeat {
11280+extension Object {
1124111281 init(data: Data) throws {
11242- self = try newJSONDecoder().decode(Repeat.self, from: data)
11282+ self = try newJSONDecoder().decode(Object.self, from: data)
1124311283 }
1124411284
1124511285 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11254,10 +11294,10 @@ extension Repeat {
1125411294 }
1125511295
1125611296 func with(
11257- repeatRepeat: Int? = nil
11258- ) -> Repeat {
11259- return Repeat(
11260- repeatRepeat: repeatRepeat ?? self.repeatRepeat
11297+ object: Int? = nil
11298+ ) -> Object {
11299+ return Object(
11300+ object: object ?? self.object
1126111301 )
1126211302 }
1126311303
@@ -11270,20 +11310,20 @@ extension Repeat {
1127011310 }
1127111311 }
1127211312
11273-// MARK: - Required
11274-struct Required: Codable {
11275- let requiredRequired: Int
11313+// MARK: - ObjectMapper
11314+struct ObjectMapper: Codable {
11315+ let objectMapper: Int
1127611316
1127711317 enum CodingKeys: String, CodingKey {
11278- case requiredRequired = "required"
11318+ case objectMapper = "ObjectMapper"
1127911319 }
1128011320 }
1128111321
11282-// MARK: Required convenience initializers and mutators
11322+// MARK: ObjectMapper convenience initializers and mutators
1128311323
11284-extension Required {
11324+extension ObjectMapper {
1128511325 init(data: Data) throws {
11286- self = try newJSONDecoder().decode(Required.self, from: data)
11326+ self = try newJSONDecoder().decode(ObjectMapper.self, from: data)
1128711327 }
1128811328
1128911329 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11298,10 +11338,10 @@ extension Required {
1129811338 }
1129911339
1130011340 func with(
11301- requiredRequired: Int? = nil
11302- ) -> Required {
11303- return Required(
11304- requiredRequired: requiredRequired ?? self.requiredRequired
11341+ objectMapper: Int? = nil
11342+ ) -> ObjectMapper {
11343+ return ObjectMapper(
11344+ objectMapper: objectMapper ?? self.objectMapper
1130511345 )
1130611346 }
1130711347
@@ -11314,20 +11354,20 @@ extension Required {
1131411354 }
1131511355 }
1131611356
11317-// MARK: - Object
11318-struct Object: Codable {
11319- let object: Int
11357+// MARK: - ObjectNode
11358+struct ObjectNode: Codable {
11359+ let objectNode: Int
1132011360
1132111361 enum CodingKeys: String, CodingKey {
11322- case object = "object"
11362+ case objectNode = "ObjectNode"
1132311363 }
1132411364 }
1132511365
11326-// MARK: Object convenience initializers and mutators
11366+// MARK: ObjectNode convenience initializers and mutators
1132711367
11328-extension Object {
11368+extension ObjectNode {
1132911369 init(data: Data) throws {
11330- self = try newJSONDecoder().decode(Object.self, from: data)
11370+ self = try newJSONDecoder().decode(ObjectNode.self, from: data)
1133111371 }
1133211372
1133311373 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11342,10 +11382,10 @@ extension Object {
1134211382 }
1134311383
1134411384 func with(
11345- object: Int? = nil
11346- ) -> Object {
11347- return Object(
11348- object: object ?? self.object
11385+ objectNode: Int? = nil
11386+ ) -> ObjectNode {
11387+ return ObjectNode(
11388+ objectNode: objectNode ?? self.objectNode
1134911389 )
1135011390 }
1135111391
@@ -11358,20 +11398,20 @@ extension Object {
1135811398 }
1135911399 }
1136011400
11361-// MARK: - ObjectMapper
11362-struct ObjectMapper: Codable {
11363- let objectMapper: Int
11401+// MARK: - ObjectReader
11402+struct ObjectReader: Codable {
11403+ let objectReader: Int
1136411404
1136511405 enum CodingKeys: String, CodingKey {
11366- case objectMapper = "ObjectMapper"
11406+ case objectReader = "ObjectReader"
1136711407 }
1136811408 }
1136911409
11370-// MARK: ObjectMapper convenience initializers and mutators
11410+// MARK: ObjectReader convenience initializers and mutators
1137111411
11372-extension ObjectMapper {
11412+extension ObjectReader {
1137311413 init(data: Data) throws {
11374- self = try newJSONDecoder().decode(ObjectMapper.self, from: data)
11414+ self = try newJSONDecoder().decode(ObjectReader.self, from: data)
1137511415 }
1137611416
1137711417 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11386,10 +11426,10 @@ extension ObjectMapper {
1138611426 }
1138711427
1138811428 func with(
11389- objectMapper: Int? = nil
11390- ) -> ObjectMapper {
11391- return ObjectMapper(
11392- objectMapper: objectMapper ?? self.objectMapper
11429+ objectReader: Int? = nil
11430+ ) -> ObjectReader {
11431+ return ObjectReader(
11432+ objectReader: objectReader ?? self.objectReader
1139311433 )
1139411434 }
1139511435
@@ -11402,20 +11442,20 @@ extension ObjectMapper {
1140211442 }
1140311443 }
1140411444
11405-// MARK: - ObjectNode
11406-struct ObjectNode: Codable {
11407- let objectNode: Int
11445+// MARK: - ObjectWriter
11446+struct ObjectWriter: Codable {
11447+ let objectWriter: Int
1140811448
1140911449 enum CodingKeys: String, CodingKey {
11410- case objectNode = "ObjectNode"
11450+ case objectWriter = "ObjectWriter"
1141111451 }
1141211452 }
1141311453
11414-// MARK: ObjectNode convenience initializers and mutators
11454+// MARK: ObjectWriter convenience initializers and mutators
1141511455
11416-extension ObjectNode {
11456+extension ObjectWriter {
1141711457 init(data: Data) throws {
11418- self = try newJSONDecoder().decode(ObjectNode.self, from: data)
11458+ self = try newJSONDecoder().decode(ObjectWriter.self, from: data)
1141911459 }
1142011460
1142111461 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11430,10 +11470,10 @@ extension ObjectNode {
1143011470 }
1143111471
1143211472 func with(
11433- objectNode: Int? = nil
11434- ) -> ObjectNode {
11435- return ObjectNode(
11436- objectNode: objectNode ?? self.objectNode
11473+ objectWriter: Int? = nil
11474+ ) -> ObjectWriter {
11475+ return ObjectWriter(
11476+ objectWriter: objectWriter ?? self.objectWriter
1143711477 )
1143811478 }
1143911479
@@ -11446,20 +11486,20 @@ extension ObjectNode {
1144611486 }
1144711487 }
1144811488
11449-// MARK: - ObjectReader
11450-struct ObjectReader: Codable {
11451- let objectReader: Int
11489+// MARK: - Of
11490+struct Of: Codable {
11491+ let of: Int
1145211492
1145311493 enum CodingKeys: String, CodingKey {
11454- case objectReader = "ObjectReader"
11494+ case of = "of"
1145511495 }
1145611496 }
1145711497
11458-// MARK: ObjectReader convenience initializers and mutators
11498+// MARK: Of convenience initializers and mutators
1145911499
11460-extension ObjectReader {
11500+extension Of {
1146111501 init(data: Data) throws {
11462- self = try newJSONDecoder().decode(ObjectReader.self, from: data)
11502+ self = try newJSONDecoder().decode(Of.self, from: data)
1146311503 }
1146411504
1146511505 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11474,10 +11514,10 @@ extension ObjectReader {
1147411514 }
1147511515
1147611516 func with(
11477- objectReader: Int? = nil
11478- ) -> ObjectReader {
11479- return ObjectReader(
11480- objectReader: objectReader ?? self.objectReader
11517+ of: Int? = nil
11518+ ) -> Of {
11519+ return Of(
11520+ of: of ?? self.of
1148111521 )
1148211522 }
1148311523
@@ -11490,20 +11530,20 @@ extension ObjectReader {
1149011530 }
1149111531 }
1149211532
11493-// MARK: - ObjectWriter
11494-struct ObjectWriter: Codable {
11495- let objectWriter: Int
11533+// MARK: - OffsetDateTime
11534+struct OffsetDateTime: Codable {
11535+ let offsetDateTime: Int
1149611536
1149711537 enum CodingKeys: String, CodingKey {
11498- case objectWriter = "ObjectWriter"
11538+ case offsetDateTime = "OffsetDateTime"
1149911539 }
1150011540 }
1150111541
11502-// MARK: ObjectWriter convenience initializers and mutators
11542+// MARK: OffsetDateTime convenience initializers and mutators
1150311543
11504-extension ObjectWriter {
11544+extension OffsetDateTime {
1150511545 init(data: Data) throws {
11506- self = try newJSONDecoder().decode(ObjectWriter.self, from: data)
11546+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
1150711547 }
1150811548
1150911549 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11518,10 +11558,10 @@ extension ObjectWriter {
1151811558 }
1151911559
1152011560 func with(
11521- objectWriter: Int? = nil
11522- ) -> ObjectWriter {
11523- return ObjectWriter(
11524- objectWriter: objectWriter ?? self.objectWriter
11561+ offsetDateTime: Int? = nil
11562+ ) -> OffsetDateTime {
11563+ return OffsetDateTime(
11564+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
1152511565 )
1152611566 }
1152711567
@@ -11534,20 +11574,20 @@ extension ObjectWriter {
1153411574 }
1153511575 }
1153611576
11537-// MARK: - Of
11538-struct Of: Codable {
11539- let of: Int
11577+// MARK: - OffsetTime
11578+struct OffsetTime: Codable {
11579+ let offsetTime: Int
1154011580
1154111581 enum CodingKeys: String, CodingKey {
11542- case of = "of"
11582+ case offsetTime = "OffsetTime"
1154311583 }
1154411584 }
1154511585
11546-// MARK: Of convenience initializers and mutators
11586+// MARK: OffsetTime convenience initializers and mutators
1154711587
11548-extension Of {
11588+extension OffsetTime {
1154911589 init(data: Data) throws {
11550- self = try newJSONDecoder().decode(Of.self, from: data)
11590+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
1155111591 }
1155211592
1155311593 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11562,10 +11602,10 @@ extension Of {
1156211602 }
1156311603
1156411604 func with(
11565- of: Int? = nil
11566- ) -> Of {
11567- return Of(
11568- of: of ?? self.of
11605+ offsetTime: Int? = nil
11606+ ) -> OffsetTime {
11607+ return OffsetTime(
11608+ offsetTime: offsetTime ?? self.offsetTime
1156911609 )
1157011610 }
1157111611
@@ -12502,98 +12542,12 @@ extension ReinterpretCast {
1250212542 }
1250312543 }
1250412544
12505-// MARK: - Require
12506-struct Require: Codable {
12507- let require: Int
12508-
12509- enum CodingKeys: String, CodingKey {
12510- case require = "require"
12511- }
12512-}
12513-
12514-// MARK: Require convenience initializers and mutators
12515-
12516-extension Require {
12517- init(data: Data) throws {
12518- self = try newJSONDecoder().decode(Require.self, from: data)
12519- }
12520-
12521- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12522- guard let data = json.data(using: encoding) else {
12523- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12524- }
12525- try self.init(data: data)
12526- }
12527-
12528- init(fromURL url: URL) throws {
12529- try self.init(data: try Data(contentsOf: url))
12530- }
12531-
12532- func with(
12533- require: Int? = nil
12534- ) -> Require {
12535- return Require(
12536- require: require ?? self.require
12537- )
12538- }
12539-
12540- func jsonData() throws -> Data {
12541- return try newJSONEncoder().encode(self)
12542- }
12543-
12544- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12545- return String(data: try self.jsonData(), encoding: encoding)
12546- }
12547-}
12548-
12549-// MARK: - Requires
12550-struct Requires: Codable {
12551- let requires: Int
12552-
12553- enum CodingKeys: String, CodingKey {
12554- case requires = "requires"
12555- }
12556-}
12557-
12558-// MARK: Requires convenience initializers and mutators
12559-
12560-extension Requires {
12561- init(data: Data) throws {
12562- self = try newJSONDecoder().decode(Requires.self, from: data)
12563- }
12564-
12565- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12566- guard let data = json.data(using: encoding) else {
12567- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12568- }
12569- try self.init(data: data)
12570- }
12571-
12572- init(fromURL url: URL) throws {
12573- try self.init(data: try Data(contentsOf: url))
12574- }
12575-
12576- func with(
12577- requires: Int? = nil
12578- ) -> Requires {
12579- return Requires(
12580- requires: requires ?? self.requires
12581- )
12582- }
12583-
12584- func jsonData() throws -> Data {
12585- return try newJSONEncoder().encode(self)
12586- }
12587-
12588- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12589- return String(data: try self.jsonData(), encoding: encoding)
12590- }
12591-}
12592-
1259312545 // MARK: - Obj5
1259412546 struct Obj5: Codable {
1259512547 let dummy: Int
1259612548 let kSerializer: KSerializer
12549+ let obj5Repeat: Repeat
12550+ let obj5Required: Required
1259712551 let obj5Rethrows: Rethrows
1259812552 let obj5Return: Return
1259912553 let obj5Right: Right
@@ -12607,12 +12561,11 @@ struct Obj5: Codable {
1260712561 let obj5Throw: Throw
1260812562 let obj5Throws: Throws
1260912563 let obj5True: True
12610- let obj5Try: Try
12611- let obj5Type: Obj5Type
12612- let obj5Typealias: Typealias
1261312564 let primitiveKind: PrimitiveKind
1261412565 let purpleSelf: Obj5Self
1261512566 let purpleTrue: TrueClass
12567+ let require: Require
12568+ let requires: Requires
1261612569 let restrict: Restrict
1261712570 let retain: Retain
1261812571 let runtimeType: RuntimeType
@@ -12656,11 +12609,12 @@ struct Obj5: Codable {
1265612609 let toString: ToString
1265712610 let topLevel: TopLevelClass
1265812611 let transient: Transient
12659- let type: TypeClass
1266012612
1266112613 enum CodingKeys: String, CodingKey {
1266212614 case dummy = "dummy"
1266312615 case kSerializer = "KSerializer"
12616+ case obj5Repeat = "repeat"
12617+ case obj5Required = "required"
1266412618 case obj5Rethrows = "rethrows"
1266512619 case obj5Return = "return"
1266612620 case obj5Right = "right"
@@ -12674,12 +12628,11 @@ struct Obj5: Codable {
1267412628 case obj5Throw = "throw"
1267512629 case obj5Throws = "throws"
1267612630 case obj5True = "True"
12677- case obj5Try = "try"
12678- case obj5Type = "type"
12679- case obj5Typealias = "typealias"
1268012631 case primitiveKind = "PrimitiveKind"
1268112632 case purpleSelf = "self"
1268212633 case purpleTrue = "true"
12634+ case require = "require"
12635+ case requires = "requires"
1268312636 case restrict = "restrict"
1268412637 case retain = "retain"
1268512638 case runtimeType = "runtimeType"
@@ -12723,7 +12676,6 @@ struct Obj5: Codable {
1272312676 case toString = "toString"
1272412677 case topLevel = "top_level"
1272512678 case transient = "transient"
12726- case type = "Type"
1272712679 }
1272812680 }
1272912681
@@ -12748,6 +12700,8 @@ extension Obj5 {
1274812700 func with(
1274912701 dummy: Int? = nil,
1275012702 kSerializer: KSerializer? = nil,
12703+ obj5Repeat: Repeat? = nil,
12704+ obj5Required: Required? = nil,
1275112705 obj5Rethrows: Rethrows? = nil,
1275212706 obj5Return: Return? = nil,
1275312707 obj5Right: Right? = nil,
@@ -12761,12 +12715,11 @@ extension Obj5 {
1276112715 obj5Throw: Throw? = nil,
1276212716 obj5Throws: Throws? = nil,
1276312717 obj5True: True? = nil,
12764- obj5Try: Try? = nil,
12765- obj5Type: Obj5Type? = nil,
12766- obj5Typealias: Typealias? = nil,
1276712718 primitiveKind: PrimitiveKind? = nil,
1276812719 purpleSelf: Obj5Self? = nil,
1276912720 purpleTrue: TrueClass? = nil,
12721+ require: Require? = nil,
12722+ requires: Requires? = nil,
1277012723 restrict: Restrict? = nil,
1277112724 retain: Retain? = nil,
1277212725 runtimeType: RuntimeType? = nil,
@@ -12809,12 +12762,13 @@ extension Obj5 {
1280912762 toJSON: ToJSON? = nil,
1281012763 toString: ToString? = nil,
1281112764 topLevel: TopLevelClass? = nil,
12812- transient: Transient? = nil,
12813- type: TypeClass? = nil
12765+ transient: Transient? = nil
1281412766 ) -> Obj5 {
1281512767 return Obj5(
1281612768 dummy: dummy ?? self.dummy,
1281712769 kSerializer: kSerializer ?? self.kSerializer,
12770+ obj5Repeat: obj5Repeat ?? self.obj5Repeat,
12771+ obj5Required: obj5Required ?? self.obj5Required,
1281812772 obj5Rethrows: obj5Rethrows ?? self.obj5Rethrows,
1281912773 obj5Return: obj5Return ?? self.obj5Return,
1282012774 obj5Right: obj5Right ?? self.obj5Right,
@@ -12828,12 +12782,11 @@ extension Obj5 {
1282812782 obj5Throw: obj5Throw ?? self.obj5Throw,
1282912783 obj5Throws: obj5Throws ?? self.obj5Throws,
1283012784 obj5True: obj5True ?? self.obj5True,
12831- obj5Try: obj5Try ?? self.obj5Try,
12832- obj5Type: obj5Type ?? self.obj5Type,
12833- obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1283412785 primitiveKind: primitiveKind ?? self.primitiveKind,
1283512786 purpleSelf: purpleSelf ?? self.purpleSelf,
1283612787 purpleTrue: purpleTrue ?? self.purpleTrue,
12788+ require: require ?? self.require,
12789+ requires: requires ?? self.requires,
1283712790 restrict: restrict ?? self.restrict,
1283812791 retain: retain ?? self.retain,
1283912792 runtimeType: runtimeType ?? self.runtimeType,
@@ -12876,8 +12829,7 @@ extension Obj5 {
1287612829 toJSON: toJSON ?? self.toJSON,
1287712830 toString: toString ?? self.toString,
1287812831 topLevel: topLevel ?? self.topLevel,
12879- transient: transient ?? self.transient,
12880- type: type ?? self.type
12832+ transient: transient ?? self.transient
1288112833 )
1288212834 }
1288312835
@@ -12934,6 +12886,94 @@ extension KSerializer {
1293412886 }
1293512887 }
1293612888
12889+// MARK: - Repeat
12890+struct Repeat: Codable {
12891+ let repeatRepeat: Int
12892+
12893+ enum CodingKeys: String, CodingKey {
12894+ case repeatRepeat = "repeat"
12895+ }
12896+}
12897+
12898+// MARK: Repeat convenience initializers and mutators
12899+
12900+extension Repeat {
12901+ init(data: Data) throws {
12902+ self = try newJSONDecoder().decode(Repeat.self, from: data)
12903+ }
12904+
12905+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12906+ guard let data = json.data(using: encoding) else {
12907+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12908+ }
12909+ try self.init(data: data)
12910+ }
12911+
12912+ init(fromURL url: URL) throws {
12913+ try self.init(data: try Data(contentsOf: url))
12914+ }
12915+
12916+ func with(
12917+ repeatRepeat: Int? = nil
12918+ ) -> Repeat {
12919+ return Repeat(
12920+ repeatRepeat: repeatRepeat ?? self.repeatRepeat
12921+ )
12922+ }
12923+
12924+ func jsonData() throws -> Data {
12925+ return try newJSONEncoder().encode(self)
12926+ }
12927+
12928+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12929+ return String(data: try self.jsonData(), encoding: encoding)
12930+ }
12931+}
12932+
12933+// MARK: - Required
12934+struct Required: Codable {
12935+ let requiredRequired: Int
12936+
12937+ enum CodingKeys: String, CodingKey {
12938+ case requiredRequired = "required"
12939+ }
12940+}
12941+
12942+// MARK: Required convenience initializers and mutators
12943+
12944+extension Required {
12945+ init(data: Data) throws {
12946+ self = try newJSONDecoder().decode(Required.self, from: data)
12947+ }
12948+
12949+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12950+ guard let data = json.data(using: encoding) else {
12951+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12952+ }
12953+ try self.init(data: data)
12954+ }
12955+
12956+ init(fromURL url: URL) throws {
12957+ try self.init(data: try Data(contentsOf: url))
12958+ }
12959+
12960+ func with(
12961+ requiredRequired: Int? = nil
12962+ ) -> Required {
12963+ return Required(
12964+ requiredRequired: requiredRequired ?? self.requiredRequired
12965+ )
12966+ }
12967+
12968+ func jsonData() throws -> Data {
12969+ return try newJSONEncoder().encode(self)
12970+ }
12971+
12972+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12973+ return String(data: try self.jsonData(), encoding: encoding)
12974+ }
12975+}
12976+
1293712977 // MARK: - Rethrows
1293812978 struct Rethrows: Codable {
1293912979 let rethrowsRethrows: Int
@@ -13506,64 +13546,20 @@ extension True {
1350613546 }
1350713547 }
1350813548
13509-// MARK: - Try
13510-struct Try: Codable {
13511- let tryTry: Int
13512-
13513- enum CodingKeys: String, CodingKey {
13514- case tryTry = "try"
13515- }
13516-}
13517-
13518-// MARK: Try convenience initializers and mutators
13519-
13520-extension Try {
13521- init(data: Data) throws {
13522- self = try newJSONDecoder().decode(Try.self, from: data)
13523- }
13524-
13525- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13526- guard let data = json.data(using: encoding) else {
13527- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13528- }
13529- try self.init(data: data)
13530- }
13531-
13532- init(fromURL url: URL) throws {
13533- try self.init(data: try Data(contentsOf: url))
13534- }
13535-
13536- func with(
13537- tryTry: Int? = nil
13538- ) -> Try {
13539- return Try(
13540- tryTry: tryTry ?? self.tryTry
13541- )
13542- }
13543-
13544- func jsonData() throws -> Data {
13545- return try newJSONEncoder().encode(self)
13546- }
13547-
13548- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13549- return String(data: try self.jsonData(), encoding: encoding)
13550- }
13551-}
13552-
13553-// MARK: - Obj5Type
13554-struct Obj5Type: Codable {
13555- let type: Int
13549+// MARK: - PrimitiveKind
13550+struct PrimitiveKind: Codable {
13551+ let primitiveKind: Int
1355613552
1355713553 enum CodingKeys: String, CodingKey {
13558- case type = "type"
13554+ case primitiveKind = "PrimitiveKind"
1355913555 }
1356013556 }
1356113557
13562-// MARK: Obj5Type convenience initializers and mutators
13558+// MARK: PrimitiveKind convenience initializers and mutators
1356313559
13564-extension Obj5Type {
13560+extension PrimitiveKind {
1356513561 init(data: Data) throws {
13566- self = try newJSONDecoder().decode(Obj5Type.self, from: data)
13562+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1356713563 }
1356813564
1356913565 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13578,10 +13574,10 @@ extension Obj5Type {
1357813574 }
1357913575
1358013576 func with(
13581- type: Int? = nil
13582- ) -> Obj5Type {
13583- return Obj5Type(
13584- type: type ?? self.type
13577+ primitiveKind: Int? = nil
13578+ ) -> PrimitiveKind {
13579+ return PrimitiveKind(
13580+ primitiveKind: primitiveKind ?? self.primitiveKind
1358513581 )
1358613582 }
1358713583
@@ -13594,20 +13590,20 @@ extension Obj5Type {
1359413590 }
1359513591 }
1359613592
13597-// MARK: - Typealias
13598-struct Typealias: Codable {
13599- let typealiasTypealias: Int
13593+// MARK: - Obj5Self
13594+struct Obj5Self: Codable {
13595+ let selfSelf: Int
1360013596
1360113597 enum CodingKeys: String, CodingKey {
13602- case typealiasTypealias = "typealias"
13598+ case selfSelf = "self"
1360313599 }
1360413600 }
1360513601
13606-// MARK: Typealias convenience initializers and mutators
13602+// MARK: Obj5Self convenience initializers and mutators
1360713603
13608-extension Typealias {
13604+extension Obj5Self {
1360913605 init(data: Data) throws {
13610- self = try newJSONDecoder().decode(Typealias.self, from: data)
13606+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1361113607 }
1361213608
1361313609 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13622,10 +13618,10 @@ extension Typealias {
1362213618 }
1362313619
1362413620 func with(
13625- typealiasTypealias: Int? = nil
13626- ) -> Typealias {
13627- return Typealias(
13628- typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
13621+ selfSelf: Int? = nil
13622+ ) -> Obj5Self {
13623+ return Obj5Self(
13624+ selfSelf: selfSelf ?? self.selfSelf
1362913625 )
1363013626 }
1363113627
@@ -13638,20 +13634,20 @@ extension Typealias {
1363813634 }
1363913635 }
1364013636
13641-// MARK: - PrimitiveKind
13642-struct PrimitiveKind: Codable {
13643- let primitiveKind: Int
13637+// MARK: - TrueClass
13638+struct TrueClass: Codable {
13639+ let trueTrue: Int
1364413640
1364513641 enum CodingKeys: String, CodingKey {
13646- case primitiveKind = "PrimitiveKind"
13642+ case trueTrue = "true"
1364713643 }
1364813644 }
1364913645
13650-// MARK: PrimitiveKind convenience initializers and mutators
13646+// MARK: TrueClass convenience initializers and mutators
1365113647
13652-extension PrimitiveKind {
13648+extension TrueClass {
1365313649 init(data: Data) throws {
13654- self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13650+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1365513651 }
1365613652
1365713653 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13666,10 +13662,10 @@ extension PrimitiveKind {
1366613662 }
1366713663
1366813664 func with(
13669- primitiveKind: Int? = nil
13670- ) -> PrimitiveKind {
13671- return PrimitiveKind(
13672- primitiveKind: primitiveKind ?? self.primitiveKind
13665+ trueTrue: Int? = nil
13666+ ) -> TrueClass {
13667+ return TrueClass(
13668+ trueTrue: trueTrue ?? self.trueTrue
1367313669 )
1367413670 }
1367513671
@@ -13682,20 +13678,20 @@ extension PrimitiveKind {
1368213678 }
1368313679 }
1368413680
13685-// MARK: - Obj5Self
13686-struct Obj5Self: Codable {
13687- let selfSelf: Int
13681+// MARK: - Require
13682+struct Require: Codable {
13683+ let require: Int
1368813684
1368913685 enum CodingKeys: String, CodingKey {
13690- case selfSelf = "self"
13686+ case require = "require"
1369113687 }
1369213688 }
1369313689
13694-// MARK: Obj5Self convenience initializers and mutators
13690+// MARK: Require convenience initializers and mutators
1369513691
13696-extension Obj5Self {
13692+extension Require {
1369713693 init(data: Data) throws {
13698- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13694+ self = try newJSONDecoder().decode(Require.self, from: data)
1369913695 }
1370013696
1370113697 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13710,10 +13706,10 @@ extension Obj5Self {
1371013706 }
1371113707
1371213708 func with(
13713- selfSelf: Int? = nil
13714- ) -> Obj5Self {
13715- return Obj5Self(
13716- selfSelf: selfSelf ?? self.selfSelf
13709+ require: Int? = nil
13710+ ) -> Require {
13711+ return Require(
13712+ require: require ?? self.require
1371713713 )
1371813714 }
1371913715
@@ -13726,20 +13722,20 @@ extension Obj5Self {
1372613722 }
1372713723 }
1372813724
13729-// MARK: - TrueClass
13730-struct TrueClass: Codable {
13731- let trueTrue: Int
13725+// MARK: - Requires
13726+struct Requires: Codable {
13727+ let requires: Int
1373213728
1373313729 enum CodingKeys: String, CodingKey {
13734- case trueTrue = "true"
13730+ case requires = "requires"
1373513731 }
1373613732 }
1373713733
13738-// MARK: TrueClass convenience initializers and mutators
13734+// MARK: Requires convenience initializers and mutators
1373913735
13740-extension TrueClass {
13736+extension Requires {
1374113737 init(data: Data) throws {
13742- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13738+ self = try newJSONDecoder().decode(Requires.self, from: data)
1374313739 }
1374413740
1374513741 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13754,10 +13750,10 @@ extension TrueClass {
1375413750 }
1375513751
1375613752 func with(
13757- trueTrue: Int? = nil
13758- ) -> TrueClass {
13759- return TrueClass(
13760- trueTrue: trueTrue ?? self.trueTrue
13753+ requires: Int? = nil
13754+ ) -> Requires {
13755+ return Requires(
13756+ requires: requires ?? self.requires
1376113757 )
1376213758 }
1376313759
@@ -15662,59 +15658,19 @@ extension Transient {
1566215658 }
1566315659 }
1566415660
15665-// MARK: - TypeClass
15666-struct TypeClass: Codable {
15667- let type: Int
15668-
15669- enum CodingKeys: String, CodingKey {
15670- case type = "Type"
15671- }
15672-}
15673-
15674-// MARK: TypeClass convenience initializers and mutators
15675-
15676-extension TypeClass {
15677- init(data: Data) throws {
15678- self = try newJSONDecoder().decode(TypeClass.self, from: data)
15679- }
15680-
15681- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15682- guard let data = json.data(using: encoding) else {
15683- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15684- }
15685- try self.init(data: data)
15686- }
15687-
15688- init(fromURL url: URL) throws {
15689- try self.init(data: try Data(contentsOf: url))
15690- }
15691-
15692- func with(
15693- type: Int? = nil
15694- ) -> TypeClass {
15695- return TypeClass(
15696- type: type ?? self.type
15697- )
15698- }
15699-
15700- func jsonData() throws -> Data {
15701- return try newJSONEncoder().encode(self)
15702- }
15703-
15704- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15705- return String(data: try self.jsonData(), encoding: encoding)
15706- }
15707-}
15708-
1570915661 // MARK: - Obj6
1571015662 struct Obj6: Codable {
1571115663 let dummy: Int
15664+ let obj6Try: Try
15665+ let obj6Type: Obj6Type
15666+ let obj6Typealias: Typealias
1571215667 let obj6Unowned: Unowned
1571315668 let obj6Var: Var
1571415669 let obj6Weak: Weak
1571515670 let obj6Where: Where
1571615671 let obj6While: While
1571715672 let obj6WillSet: WillSet
15673+ let type: TypeClass
1571815674 let typedef: Typedef
1571915675 let typeid: Typeid
1572015676 let typename: Typename
@@ -15745,12 +15701,16 @@ struct Obj6: Codable {
1574515701
1574615702 enum CodingKeys: String, CodingKey {
1574715703 case dummy = "dummy"
15704+ case obj6Try = "try"
15705+ case obj6Type = "type"
15706+ case obj6Typealias = "typealias"
1574815707 case obj6Unowned = "unowned"
1574915708 case obj6Var = "var"
1575015709 case obj6Weak = "weak"
1575115710 case obj6Where = "where"
1575215711 case obj6While = "while"
1575315712 case obj6WillSet = "willSet"
15713+ case type = "Type"
1575415714 case typedef = "typedef"
1575515715 case typeid = "typeid"
1575615716 case typename = "typename"
@@ -15801,12 +15761,16 @@ extension Obj6 {
1580115761
1580215762 func with(
1580315763 dummy: Int? = nil,
15764+ obj6Try: Try? = nil,
15765+ obj6Type: Obj6Type? = nil,
15766+ obj6Typealias: Typealias? = nil,
1580415767 obj6Unowned: Unowned? = nil,
1580515768 obj6Var: Var? = nil,
1580615769 obj6Weak: Weak? = nil,
1580715770 obj6Where: Where? = nil,
1580815771 obj6While: While? = nil,
1580915772 obj6WillSet: WillSet? = nil,
15773+ type: TypeClass? = nil,
1581015774 typedef: Typedef? = nil,
1581115775 typeid: Typeid? = nil,
1581215776 typename: Typename? = nil,
@@ -15837,12 +15801,16 @@ extension Obj6 {
1583715801 ) -> Obj6 {
1583815802 return Obj6(
1583915803 dummy: dummy ?? self.dummy,
15804+ obj6Try: obj6Try ?? self.obj6Try,
15805+ obj6Type: obj6Type ?? self.obj6Type,
15806+ obj6Typealias: obj6Typealias ?? self.obj6Typealias,
1584015807 obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1584115808 obj6Var: obj6Var ?? self.obj6Var,
1584215809 obj6Weak: obj6Weak ?? self.obj6Weak,
1584315810 obj6Where: obj6Where ?? self.obj6Where,
1584415811 obj6While: obj6While ?? self.obj6While,
1584515812 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15813+ type: type ?? self.type,
1584615814 typedef: typedef ?? self.typedef,
1584715815 typeid: typeid ?? self.typeid,
1584815816 typename: typename ?? self.typename,
@@ -15882,6 +15850,138 @@ extension Obj6 {
1588215850 }
1588315851 }
1588415852
15853+// MARK: - Try
15854+struct Try: Codable {
15855+ let tryTry: Int
15856+
15857+ enum CodingKeys: String, CodingKey {
15858+ case tryTry = "try"
15859+ }
15860+}
15861+
15862+// MARK: Try convenience initializers and mutators
15863+
15864+extension Try {
15865+ init(data: Data) throws {
15866+ self = try newJSONDecoder().decode(Try.self, from: data)
15867+ }
15868+
15869+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15870+ guard let data = json.data(using: encoding) else {
15871+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15872+ }
15873+ try self.init(data: data)
15874+ }
15875+
15876+ init(fromURL url: URL) throws {
15877+ try self.init(data: try Data(contentsOf: url))
15878+ }
15879+
15880+ func with(
15881+ tryTry: Int? = nil
15882+ ) -> Try {
15883+ return Try(
15884+ tryTry: tryTry ?? self.tryTry
15885+ )
15886+ }
15887+
15888+ func jsonData() throws -> Data {
15889+ return try newJSONEncoder().encode(self)
15890+ }
15891+
15892+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15893+ return String(data: try self.jsonData(), encoding: encoding)
15894+ }
15895+}
15896+
15897+// MARK: - Obj6Type
15898+struct Obj6Type: Codable {
15899+ let type: Int
15900+
15901+ enum CodingKeys: String, CodingKey {
15902+ case type = "type"
15903+ }
15904+}
15905+
15906+// MARK: Obj6Type convenience initializers and mutators
15907+
15908+extension Obj6Type {
15909+ init(data: Data) throws {
15910+ self = try newJSONDecoder().decode(Obj6Type.self, from: data)
15911+ }
15912+
15913+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15914+ guard let data = json.data(using: encoding) else {
15915+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15916+ }
15917+ try self.init(data: data)
15918+ }
15919+
15920+ init(fromURL url: URL) throws {
15921+ try self.init(data: try Data(contentsOf: url))
15922+ }
15923+
15924+ func with(
15925+ type: Int? = nil
15926+ ) -> Obj6Type {
15927+ return Obj6Type(
15928+ type: type ?? self.type
15929+ )
15930+ }
15931+
15932+ func jsonData() throws -> Data {
15933+ return try newJSONEncoder().encode(self)
15934+ }
15935+
15936+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15937+ return String(data: try self.jsonData(), encoding: encoding)
15938+ }
15939+}
15940+
15941+// MARK: - Typealias
15942+struct Typealias: Codable {
15943+ let typealiasTypealias: Int
15944+
15945+ enum CodingKeys: String, CodingKey {
15946+ case typealiasTypealias = "typealias"
15947+ }
15948+}
15949+
15950+// MARK: Typealias convenience initializers and mutators
15951+
15952+extension Typealias {
15953+ init(data: Data) throws {
15954+ self = try newJSONDecoder().decode(Typealias.self, from: data)
15955+ }
15956+
15957+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15958+ guard let data = json.data(using: encoding) else {
15959+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15960+ }
15961+ try self.init(data: data)
15962+ }
15963+
15964+ init(fromURL url: URL) throws {
15965+ try self.init(data: try Data(contentsOf: url))
15966+ }
15967+
15968+ func with(
15969+ typealiasTypealias: Int? = nil
15970+ ) -> Typealias {
15971+ return Typealias(
15972+ typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
15973+ )
15974+ }
15975+
15976+ func jsonData() throws -> Data {
15977+ return try newJSONEncoder().encode(self)
15978+ }
15979+
15980+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15981+ return String(data: try self.jsonData(), encoding: encoding)
15982+ }
15983+}
15984+
1588515985 // MARK: - Unowned
1588615986 struct Unowned: Codable {
1588715987 let unownedUnowned: Int
@@ -16146,6 +16246,50 @@ extension WillSet {
1614616246 }
1614716247 }
1614816248
16249+// MARK: - TypeClass
16250+struct TypeClass: Codable {
16251+ let type: Int
16252+
16253+ enum CodingKeys: String, CodingKey {
16254+ case type = "Type"
16255+ }
16256+}
16257+
16258+// MARK: TypeClass convenience initializers and mutators
16259+
16260+extension TypeClass {
16261+ init(data: Data) throws {
16262+ self = try newJSONDecoder().decode(TypeClass.self, from: data)
16263+ }
16264+
16265+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16266+ guard let data = json.data(using: encoding) else {
16267+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16268+ }
16269+ try self.init(data: data)
16270+ }
16271+
16272+ init(fromURL url: URL) throws {
16273+ try self.init(data: try Data(contentsOf: url))
16274+ }
16275+
16276+ func with(
16277+ type: Int? = nil
16278+ ) -> TypeClass {
16279+ return TypeClass(
16280+ type: type ?? self.type
16281+ )
16282+ }
16283+
16284+ func jsonData() throws -> Data {
16285+ return try newJSONEncoder().encode(self)
16286+ }
16287+
16288+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16289+ return String(data: try self.jsonData(), encoding: encoding)
16290+ }
16291+}
16292+
1614916293 // MARK: - Typedef
1615016294 struct Typedef: Codable {
1615116295 let typedef: Int
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+768 −606
@@ -7141,6 +7141,7 @@ extension FalseClass {
71417141 let jsonWriter: JSONWriter
71427142 let lambda: Lambda
71437143 let list: List
7144+ let localDate: LocalDate
71447145 let locale: LocaleClass
71457146 let lock: Lock
71467147 let long: Long
@@ -7150,7 +7151,6 @@ extension FalseClass {
71507151 let marshalJSON: MarshalJSON
71517152 let metadataPropertyHandling: MetadataPropertyHandling
71527153 let module: Module
7153- let mutable: Mutable
71547154 let obj3Get: Get
71557155 let obj3Guard: Guard
71567156 let obj3If: If
@@ -7166,7 +7166,6 @@ extension FalseClass {
71667166 let obj3Lazy: Lazy
71677167 let obj3Left: Left
71687168 let obj3Let: Let
7169- let obj3Mutating: Mutating
71707169
71717170 enum CodingKeys: String, CodingKey {
71727171 case dummy = "dummy"
@@ -7209,6 +7208,7 @@ extension FalseClass {
72097208 case jsonWriter = "json_writer"
72107209 case lambda = "lambda"
72117210 case list = "list"
7211+ case localDate = "LocalDate"
72127212 case locale = "Locale"
72137213 case lock = "lock"
72147214 case long = "long"
@@ -7218,7 +7218,6 @@ extension FalseClass {
72187218 case marshalJSON = "MarshalJSON"
72197219 case metadataPropertyHandling = "metadata_property_handling"
72207220 case module = "module"
7221- case mutable = "mutable"
72227221 case obj3Get = "get"
72237222 case obj3Guard = "guard"
72247223 case obj3If = "if"
@@ -7234,10 +7233,9 @@ extension FalseClass {
72347233 case obj3Lazy = "lazy"
72357234 case obj3Left = "left"
72367235 case obj3Let = "let"
7237- case obj3Mutating = "mutating"
72387236 }
72397237
7240- init(dummy: Int, function: Function, global: Global, go: Go, goto: Goto, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, intNode: IntNode, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, locale: LocaleClass, lock: Lock, long: Long, longNode: LongNode, map: Map, mapEntry: MapEntry, marshalJSON: MarshalJSON, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, obj3Get: Get, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating) {
7238+ init(dummy: Int, function: Function, global: Global, go: Go, goto: Goto, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, intNode: IntNode, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, localDate: LocalDate, locale: LocaleClass, lock: Lock, long: Long, longNode: LongNode, map: Map, mapEntry: MapEntry, marshalJSON: MarshalJSON, metadataPropertyHandling: MetadataPropertyHandling, module: Module, obj3Get: Get, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let) {
72417239 self.dummy = dummy
72427240 self.function = function
72437241 self.global = global
@@ -7278,6 +7276,7 @@ extension FalseClass {
72787276 self.jsonWriter = jsonWriter
72797277 self.lambda = lambda
72807278 self.list = list
7279+ self.localDate = localDate
72817280 self.locale = locale
72827281 self.lock = lock
72837282 self.long = long
@@ -7287,7 +7286,6 @@ extension FalseClass {
72877286 self.marshalJSON = marshalJSON
72887287 self.metadataPropertyHandling = metadataPropertyHandling
72897288 self.module = module
7290- self.mutable = mutable
72917289 self.obj3Get = obj3Get
72927290 self.obj3Guard = obj3Guard
72937291 self.obj3If = obj3If
@@ -7303,7 +7301,6 @@ extension FalseClass {
73037301 self.obj3Lazy = obj3Lazy
73047302 self.obj3Left = obj3Left
73057303 self.obj3Let = obj3Let
7306- self.obj3Mutating = obj3Mutating
73077304 }
73087305 }
73097306
@@ -7312,7 +7309,7 @@ extension FalseClass {
73127309 extension Obj3 {
73137310 convenience init(data: Data) throws {
73147311 let me = try newJSONDecoder().decode(Obj3.self, from: data)
7315- self.init(dummy: me.dummy, function: me.function, global: me.global, go: me.go, goto: me.goto, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, intNode: me.intNode, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, locale: me.locale, lock: me.lock, long: me.long, longNode: me.longNode, map: me.map, mapEntry: me.mapEntry, marshalJSON: me.marshalJSON, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, obj3Get: me.obj3Get, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating)
7312+ self.init(dummy: me.dummy, function: me.function, global: me.global, go: me.go, goto: me.goto, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, intNode: me.intNode, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, localDate: me.localDate, locale: me.locale, lock: me.lock, long: me.long, longNode: me.longNode, map: me.map, mapEntry: me.mapEntry, marshalJSON: me.marshalJSON, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, obj3Get: me.obj3Get, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let)
73167313 }
73177314
73187315 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -7367,6 +7364,7 @@ extension Obj3 {
73677364 jsonWriter: JSONWriter? = nil,
73687365 lambda: Lambda? = nil,
73697366 list: List? = nil,
7367+ localDate: LocalDate? = nil,
73707368 locale: LocaleClass? = nil,
73717369 lock: Lock? = nil,
73727370 long: Long? = nil,
@@ -7376,7 +7374,6 @@ extension Obj3 {
73767374 marshalJSON: MarshalJSON? = nil,
73777375 metadataPropertyHandling: MetadataPropertyHandling? = nil,
73787376 module: Module? = nil,
7379- mutable: Mutable? = nil,
73807377 obj3Get: Get? = nil,
73817378 obj3Guard: Guard? = nil,
73827379 obj3If: If? = nil,
@@ -7391,8 +7388,7 @@ extension Obj3 {
73917388 obj3JSON: JSON? = nil,
73927389 obj3Lazy: Lazy? = nil,
73937390 obj3Left: Left? = nil,
7394- obj3Let: Let? = nil,
7395- obj3Mutating: Mutating? = nil
7391+ obj3Let: Let? = nil
73967392 ) -> Obj3 {
73977393 return Obj3(
73987394 dummy: dummy ?? self.dummy,
@@ -7435,6 +7431,7 @@ extension Obj3 {
74357431 jsonWriter: jsonWriter ?? self.jsonWriter,
74367432 lambda: lambda ?? self.lambda,
74377433 list: list ?? self.list,
7434+ localDate: localDate ?? self.localDate,
74387435 locale: locale ?? self.locale,
74397436 lock: lock ?? self.lock,
74407437 long: long ?? self.long,
@@ -7444,7 +7441,6 @@ extension Obj3 {
74447441 marshalJSON: marshalJSON ?? self.marshalJSON,
74457442 metadataPropertyHandling: metadataPropertyHandling ?? self.metadataPropertyHandling,
74467443 module: module ?? self.module,
7447- mutable: mutable ?? self.mutable,
74487444 obj3Get: obj3Get ?? self.obj3Get,
74497445 obj3Guard: obj3Guard ?? self.obj3Guard,
74507446 obj3If: obj3If ?? self.obj3If,
@@ -7459,8 +7455,7 @@ extension Obj3 {
74597455 obj3JSON: obj3JSON ?? self.obj3JSON,
74607456 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
74617457 obj3Left: obj3Left ?? self.obj3Left,
7462- obj3Let: obj3Let ?? self.obj3Let,
7463- obj3Mutating: obj3Mutating ?? self.obj3Mutating
7458+ obj3Let: obj3Let ?? self.obj3Let
74647459 )
74657460 }
74667461
@@ -9384,6 +9379,55 @@ extension List {
93849379 }
93859380 }
93869381
9382+// MARK: - LocalDate
9383+@objcMembers class LocalDate: NSObject, Codable {
9384+ let localDate: Int
9385+
9386+ enum CodingKeys: String, CodingKey {
9387+ case localDate = "LocalDate"
9388+ }
9389+
9390+ init(localDate: Int) {
9391+ self.localDate = localDate
9392+ }
9393+}
9394+
9395+// MARK: LocalDate convenience initializers and mutators
9396+
9397+extension LocalDate {
9398+ convenience init(data: Data) throws {
9399+ let me = try newJSONDecoder().decode(LocalDate.self, from: data)
9400+ self.init(localDate: me.localDate)
9401+ }
9402+
9403+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9404+ guard let data = json.data(using: encoding) else {
9405+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9406+ }
9407+ try self.init(data: data)
9408+ }
9409+
9410+ convenience init(fromURL url: URL) throws {
9411+ try self.init(data: try Data(contentsOf: url))
9412+ }
9413+
9414+ func with(
9415+ localDate: Int? = nil
9416+ ) -> LocalDate {
9417+ return LocalDate(
9418+ localDate: localDate ?? self.localDate
9419+ )
9420+ }
9421+
9422+ func jsonData() throws -> Data {
9423+ return try newJSONEncoder().encode(self)
9424+ }
9425+
9426+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9427+ return String(data: try self.jsonData(), encoding: encoding)
9428+ }
9429+}
9430+
93879431 // MARK: - LocaleClass
93889432 @objcMembers class LocaleClass: NSObject, Codable {
93899433 let locale: Int
@@ -9825,55 +9869,6 @@ extension Module {
98259869 }
98269870 }
98279871
9828-// MARK: - Mutable
9829-@objcMembers class Mutable: NSObject, Codable {
9830- let mutable: Int
9831-
9832- enum CodingKeys: String, CodingKey {
9833- case mutable = "mutable"
9834- }
9835-
9836- init(mutable: Int) {
9837- self.mutable = mutable
9838- }
9839-}
9840-
9841-// MARK: Mutable convenience initializers and mutators
9842-
9843-extension Mutable {
9844- convenience init(data: Data) throws {
9845- let me = try newJSONDecoder().decode(Mutable.self, from: data)
9846- self.init(mutable: me.mutable)
9847- }
9848-
9849- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9850- guard let data = json.data(using: encoding) else {
9851- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9852- }
9853- try self.init(data: data)
9854- }
9855-
9856- convenience init(fromURL url: URL) throws {
9857- try self.init(data: try Data(contentsOf: url))
9858- }
9859-
9860- func with(
9861- mutable: Int? = nil
9862- ) -> Mutable {
9863- return Mutable(
9864- mutable: mutable ?? self.mutable
9865- )
9866- }
9867-
9868- func jsonData() throws -> Data {
9869- return try newJSONEncoder().encode(self)
9870- }
9871-
9872- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9873- return String(data: try self.jsonData(), encoding: encoding)
9874- }
9875-}
9876-
98779872 // MARK: - Get
98789873 @objcMembers class Get: NSObject, Codable {
98799874 let getGet: Int
@@ -10609,58 +10604,10 @@ extension Let {
1060910604 }
1061010605 }
1061110606
10612-// MARK: - Mutating
10613-@objcMembers class Mutating: NSObject, Codable {
10614- let mutatingMutating: Int
10615-
10616- enum CodingKeys: String, CodingKey {
10617- case mutatingMutating = "mutating"
10618- }
10619-
10620- init(mutatingMutating: Int) {
10621- self.mutatingMutating = mutatingMutating
10622- }
10623-}
10624-
10625-// MARK: Mutating convenience initializers and mutators
10626-
10627-extension Mutating {
10628- convenience init(data: Data) throws {
10629- let me = try newJSONDecoder().decode(Mutating.self, from: data)
10630- self.init(mutatingMutating: me.mutatingMutating)
10631- }
10632-
10633- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10634- guard let data = json.data(using: encoding) else {
10635- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10636- }
10637- try self.init(data: data)
10638- }
10639-
10640- convenience init(fromURL url: URL) throws {
10641- try self.init(data: try Data(contentsOf: url))
10642- }
10643-
10644- func with(
10645- mutatingMutating: Int? = nil
10646- ) -> Mutating {
10647- return Mutating(
10648- mutatingMutating: mutatingMutating ?? self.mutatingMutating
10649- )
10650- }
10651-
10652- func jsonData() throws -> Data {
10653- return try newJSONEncoder().encode(self)
10654- }
10655-
10656- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10657- return String(data: try self.jsonData(), encoding: encoding)
10658- }
10659-}
10660-
1066110607 // MARK: - Obj4
1066210608 @objcMembers class Obj4: NSObject, Codable {
1066310609 let dummy: Int
10610+ let mutable: Mutable
1066410611 let namespace: Namespace
1066510612 let native: Native
1066610613 let new: New
@@ -10680,6 +10627,7 @@ extension Mutating {
1068010627 let nullNode: NullNode
1068110628 let nullptr: Nullptr
1068210629 let number: Number
10630+ let obj4Mutating: Mutating
1068310631 let obj4Nil: Nil
1068410632 let obj4None: NoneClass
1068510633 let obj4Nonmutating: Nonmutating
@@ -10694,14 +10642,14 @@ extension Mutating {
1069410642 let obj4Private: Private
1069510643 let obj4Protocol: ProtocolClass
1069610644 let obj4Public: Public
10697- let obj4Repeat: Repeat
10698- let obj4Required: Required
1069910645 let object: Object
1070010646 let objectMapper: ObjectMapper
1070110647 let objectNode: ObjectNode
1070210648 let objectReader: ObjectReader
1070310649 let objectWriter: ObjectWriter
1070410650 let of: Of
10651+ let offsetDateTime: OffsetDateTime
10652+ let offsetTime: OffsetTime
1070510653 let oneway: Oneway
1070610654 let or: Or
1070710655 let orEq: OrEq
@@ -10723,11 +10671,10 @@ extension Mutating {
1072310671 let regExp: RegExp
1072410672 let register: Register
1072510673 let reinterpretCast: ReinterpretCast
10726- let require: Require
10727- let requires: Requires
1072810674
1072910675 enum CodingKeys: String, CodingKey {
1073010676 case dummy = "dummy"
10677+ case mutable = "mutable"
1073110678 case namespace = "namespace"
1073210679 case native = "native"
1073310680 case new = "new"
@@ -10747,6 +10694,7 @@ extension Mutating {
1074710694 case nullNode = "NullNode"
1074810695 case nullptr = "nullptr"
1074910696 case number = "number"
10697+ case obj4Mutating = "mutating"
1075010698 case obj4Nil = "nil"
1075110699 case obj4None = "none"
1075210700 case obj4Nonmutating = "nonmutating"
@@ -10761,14 +10709,14 @@ extension Mutating {
1076110709 case obj4Private = "private"
1076210710 case obj4Protocol = "Protocol"
1076310711 case obj4Public = "public"
10764- case obj4Repeat = "repeat"
10765- case obj4Required = "required"
1076610712 case object = "object"
1076710713 case objectMapper = "ObjectMapper"
1076810714 case objectNode = "ObjectNode"
1076910715 case objectReader = "ObjectReader"
1077010716 case objectWriter = "ObjectWriter"
1077110717 case of = "of"
10718+ case offsetDateTime = "OffsetDateTime"
10719+ case offsetTime = "OffsetTime"
1077210720 case oneway = "oneway"
1077310721 case or = "or"
1077410722 case orEq = "or_eq"
@@ -10790,12 +10738,11 @@ extension Mutating {
1079010738 case regExp = "RegExp"
1079110739 case register = "register"
1079210740 case reinterpretCast = "reinterpret_cast"
10793- case require = "require"
10794- case requires = "requires"
1079510741 }
1079610742
10797- init(dummy: Int, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullNode: NullNode, nullptr: Nullptr, number: Number, obj4Nil: Nil, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, object: Object, objectMapper: ObjectMapper, objectNode: ObjectNode, objectReader: ObjectReader, objectWriter: ObjectWriter, of: Of, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires) {
10743+ init(dummy: Int, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullNode: NullNode, nullptr: Nullptr, number: Number, obj4Mutating: Mutating, obj4Nil: Nil, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, object: Object, objectMapper: ObjectMapper, objectNode: ObjectNode, objectReader: ObjectReader, objectWriter: ObjectWriter, of: Of, offsetDateTime: OffsetDateTime, offsetTime: OffsetTime, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast) {
1079810744 self.dummy = dummy
10745+ self.mutable = mutable
1079910746 self.namespace = namespace
1080010747 self.native = native
1080110748 self.new = new
@@ -10815,6 +10762,7 @@ extension Mutating {
1081510762 self.nullNode = nullNode
1081610763 self.nullptr = nullptr
1081710764 self.number = number
10765+ self.obj4Mutating = obj4Mutating
1081810766 self.obj4Nil = obj4Nil
1081910767 self.obj4None = obj4None
1082010768 self.obj4Nonmutating = obj4Nonmutating
@@ -10829,14 +10777,14 @@ extension Mutating {
1082910777 self.obj4Private = obj4Private
1083010778 self.obj4Protocol = obj4Protocol
1083110779 self.obj4Public = obj4Public
10832- self.obj4Repeat = obj4Repeat
10833- self.obj4Required = obj4Required
1083410780 self.object = object
1083510781 self.objectMapper = objectMapper
1083610782 self.objectNode = objectNode
1083710783 self.objectReader = objectReader
1083810784 self.objectWriter = objectWriter
1083910785 self.of = of
10786+ self.offsetDateTime = offsetDateTime
10787+ self.offsetTime = offsetTime
1084010788 self.oneway = oneway
1084110789 self.or = or
1084210790 self.orEq = orEq
@@ -10858,8 +10806,6 @@ extension Mutating {
1085810806 self.regExp = regExp
1085910807 self.register = register
1086010808 self.reinterpretCast = reinterpretCast
10861- self.require = require
10862- self.requires = requires
1086310809 }
1086410810 }
1086510811
@@ -10868,7 +10814,7 @@ extension Mutating {
1086810814 extension Obj4 {
1086910815 convenience init(data: Data) throws {
1087010816 let me = try newJSONDecoder().decode(Obj4.self, from: data)
10871- self.init(dummy: me.dummy, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, noSuchMethod: me.noSuchMethod, noexcept: me.noexcept, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullNode: me.nullNode, nullptr: me.nullptr, number: me.number, obj4Nil: me.obj4Nil, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, object: me.object, objectMapper: me.objectMapper, objectNode: me.objectNode, objectReader: me.objectReader, objectWriter: me.objectWriter, of: me.of, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires)
10817+ self.init(dummy: me.dummy, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, noSuchMethod: me.noSuchMethod, noexcept: me.noexcept, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullNode: me.nullNode, nullptr: me.nullptr, number: me.number, obj4Mutating: me.obj4Mutating, obj4Nil: me.obj4Nil, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, object: me.object, objectMapper: me.objectMapper, objectNode: me.objectNode, objectReader: me.objectReader, objectWriter: me.objectWriter, of: me.of, offsetDateTime: me.offsetDateTime, offsetTime: me.offsetTime, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast)
1087210818 }
1087310819
1087410820 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -10884,6 +10830,7 @@ extension Obj4 {
1088410830
1088510831 func with(
1088610832 dummy: Int? = nil,
10833+ mutable: Mutable? = nil,
1088710834 namespace: Namespace? = nil,
1088810835 native: Native? = nil,
1088910836 new: New? = nil,
@@ -10903,6 +10850,7 @@ extension Obj4 {
1090310850 nullNode: NullNode? = nil,
1090410851 nullptr: Nullptr? = nil,
1090510852 number: Number? = nil,
10853+ obj4Mutating: Mutating? = nil,
1090610854 obj4Nil: Nil? = nil,
1090710855 obj4None: NoneClass? = nil,
1090810856 obj4Nonmutating: Nonmutating? = nil,
@@ -10917,14 +10865,14 @@ extension Obj4 {
1091710865 obj4Private: Private? = nil,
1091810866 obj4Protocol: ProtocolClass? = nil,
1091910867 obj4Public: Public? = nil,
10920- obj4Repeat: Repeat? = nil,
10921- obj4Required: Required? = nil,
1092210868 object: Object? = nil,
1092310869 objectMapper: ObjectMapper? = nil,
1092410870 objectNode: ObjectNode? = nil,
1092510871 objectReader: ObjectReader? = nil,
1092610872 objectWriter: ObjectWriter? = nil,
1092710873 of: Of? = nil,
10874+ offsetDateTime: OffsetDateTime? = nil,
10875+ offsetTime: OffsetTime? = nil,
1092810876 oneway: Oneway? = nil,
1092910877 or: Or? = nil,
1093010878 orEq: OrEq? = nil,
@@ -10945,12 +10893,11 @@ extension Obj4 {
1094510893 ref: Ref? = nil,
1094610894 regExp: RegExp? = nil,
1094710895 register: Register? = nil,
10948- reinterpretCast: ReinterpretCast? = nil,
10949- require: Require? = nil,
10950- requires: Requires? = nil
10896+ reinterpretCast: ReinterpretCast? = nil
1095110897 ) -> Obj4 {
1095210898 return Obj4(
1095310899 dummy: dummy ?? self.dummy,
10900+ mutable: mutable ?? self.mutable,
1095410901 namespace: namespace ?? self.namespace,
1095510902 native: native ?? self.native,
1095610903 new: new ?? self.new,
@@ -10970,6 +10917,7 @@ extension Obj4 {
1097010917 nullNode: nullNode ?? self.nullNode,
1097110918 nullptr: nullptr ?? self.nullptr,
1097210919 number: number ?? self.number,
10920+ obj4Mutating: obj4Mutating ?? self.obj4Mutating,
1097310921 obj4Nil: obj4Nil ?? self.obj4Nil,
1097410922 obj4None: obj4None ?? self.obj4None,
1097510923 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
@@ -10984,14 +10932,14 @@ extension Obj4 {
1098410932 obj4Private: obj4Private ?? self.obj4Private,
1098510933 obj4Protocol: obj4Protocol ?? self.obj4Protocol,
1098610934 obj4Public: obj4Public ?? self.obj4Public,
10987- obj4Repeat: obj4Repeat ?? self.obj4Repeat,
10988- obj4Required: obj4Required ?? self.obj4Required,
1098910935 object: object ?? self.object,
1099010936 objectMapper: objectMapper ?? self.objectMapper,
1099110937 objectNode: objectNode ?? self.objectNode,
1099210938 objectReader: objectReader ?? self.objectReader,
1099310939 objectWriter: objectWriter ?? self.objectWriter,
1099410940 of: of ?? self.of,
10941+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
10942+ offsetTime: offsetTime ?? self.offsetTime,
1099510943 oneway: oneway ?? self.oneway,
1099610944 or: or ?? self.or,
1099710945 orEq: orEq ?? self.orEq,
@@ -11012,9 +10960,56 @@ extension Obj4 {
1101210960 ref: ref ?? self.ref,
1101310961 regExp: regExp ?? self.regExp,
1101410962 register: register ?? self.register,
11015- reinterpretCast: reinterpretCast ?? self.reinterpretCast,
11016- require: require ?? self.require,
11017- requires: requires ?? self.requires
10963+ reinterpretCast: reinterpretCast ?? self.reinterpretCast
10964+ )
10965+ }
10966+
10967+ func jsonData() throws -> Data {
10968+ return try newJSONEncoder().encode(self)
10969+ }
10970+
10971+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10972+ return String(data: try self.jsonData(), encoding: encoding)
10973+ }
10974+}
10975+
10976+// MARK: - Mutable
10977+@objcMembers class Mutable: NSObject, Codable {
10978+ let mutable: Int
10979+
10980+ enum CodingKeys: String, CodingKey {
10981+ case mutable = "mutable"
10982+ }
10983+
10984+ init(mutable: Int) {
10985+ self.mutable = mutable
10986+ }
10987+}
10988+
10989+// MARK: Mutable convenience initializers and mutators
10990+
10991+extension Mutable {
10992+ convenience init(data: Data) throws {
10993+ let me = try newJSONDecoder().decode(Mutable.self, from: data)
10994+ self.init(mutable: me.mutable)
10995+ }
10996+
10997+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10998+ guard let data = json.data(using: encoding) else {
10999+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11000+ }
11001+ try self.init(data: data)
11002+ }
11003+
11004+ convenience init(fromURL url: URL) throws {
11005+ try self.init(data: try Data(contentsOf: url))
11006+ }
11007+
11008+ func with(
11009+ mutable: Int? = nil
11010+ ) -> Mutable {
11011+ return Mutable(
11012+ mutable: mutable ?? self.mutable
1101811013 )
1101911014 }
1102011015
@@ -11958,6 +11953,55 @@ extension Number {
1195811953 }
1195911954 }
1196011955
11956+// MARK: - Mutating
11957+@objcMembers class Mutating: NSObject, Codable {
11958+ let mutatingMutating: Int
11959+
11960+ enum CodingKeys: String, CodingKey {
11961+ case mutatingMutating = "mutating"
11962+ }
11963+
11964+ init(mutatingMutating: Int) {
11965+ self.mutatingMutating = mutatingMutating
11966+ }
11967+}
11968+
11969+// MARK: Mutating convenience initializers and mutators
11970+
11971+extension Mutating {
11972+ convenience init(data: Data) throws {
11973+ let me = try newJSONDecoder().decode(Mutating.self, from: data)
11974+ self.init(mutatingMutating: me.mutatingMutating)
11975+ }
11976+
11977+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11978+ guard let data = json.data(using: encoding) else {
11979+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11980+ }
11981+ try self.init(data: data)
11982+ }
11983+
11984+ convenience init(fromURL url: URL) throws {
11985+ try self.init(data: try Data(contentsOf: url))
11986+ }
11987+
11988+ func with(
11989+ mutatingMutating: Int? = nil
11990+ ) -> Mutating {
11991+ return Mutating(
11992+ mutatingMutating: mutatingMutating ?? self.mutatingMutating
11993+ )
11994+ }
11995+
11996+ func jsonData() throws -> Data {
11997+ return try newJSONEncoder().encode(self)
11998+ }
11999+
12000+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12001+ return String(data: try self.jsonData(), encoding: encoding)
12002+ }
12003+}
12004+
1196112005 // MARK: - Nil
1196212006 @objcMembers class Nil: NSObject, Codable {
1196312007 let nilNil: Int
@@ -12644,104 +12688,6 @@ extension Public {
1264412688 }
1264512689 }
1264612690
12647-// MARK: - Repeat
12648-@objcMembers class Repeat: NSObject, Codable {
12649- let repeatRepeat: Int
12650-
12651- enum CodingKeys: String, CodingKey {
12652- case repeatRepeat = "repeat"
12653- }
12654-
12655- init(repeatRepeat: Int) {
12656- self.repeatRepeat = repeatRepeat
12657- }
12658-}
12659-
12660-// MARK: Repeat convenience initializers and mutators
12661-
12662-extension Repeat {
12663- convenience init(data: Data) throws {
12664- let me = try newJSONDecoder().decode(Repeat.self, from: data)
12665- self.init(repeatRepeat: me.repeatRepeat)
12666- }
12667-
12668- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12669- guard let data = json.data(using: encoding) else {
12670- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12671- }
12672- try self.init(data: data)
12673- }
12674-
12675- convenience init(fromURL url: URL) throws {
12676- try self.init(data: try Data(contentsOf: url))
12677- }
12678-
12679- func with(
12680- repeatRepeat: Int? = nil
12681- ) -> Repeat {
12682- return Repeat(
12683- repeatRepeat: repeatRepeat ?? self.repeatRepeat
12684- )
12685- }
12686-
12687- func jsonData() throws -> Data {
12688- return try newJSONEncoder().encode(self)
12689- }
12690-
12691- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12692- return String(data: try self.jsonData(), encoding: encoding)
12693- }
12694-}
12695-
12696-// MARK: - Required
12697-@objcMembers class Required: NSObject, Codable {
12698- let requiredRequired: Int
12699-
12700- enum CodingKeys: String, CodingKey {
12701- case requiredRequired = "required"
12702- }
12703-
12704- init(requiredRequired: Int) {
12705- self.requiredRequired = requiredRequired
12706- }
12707-}
12708-
12709-// MARK: Required convenience initializers and mutators
12710-
12711-extension Required {
12712- convenience init(data: Data) throws {
12713- let me = try newJSONDecoder().decode(Required.self, from: data)
12714- self.init(requiredRequired: me.requiredRequired)
12715- }
12716-
12717- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12718- guard let data = json.data(using: encoding) else {
12719- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12720- }
12721- try self.init(data: data)
12722- }
12723-
12724- convenience init(fromURL url: URL) throws {
12725- try self.init(data: try Data(contentsOf: url))
12726- }
12727-
12728- func with(
12729- requiredRequired: Int? = nil
12730- ) -> Required {
12731- return Required(
12732- requiredRequired: requiredRequired ?? self.requiredRequired
12733- )
12734- }
12735-
12736- func jsonData() throws -> Data {
12737- return try newJSONEncoder().encode(self)
12738- }
12739-
12740- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12741- return String(data: try self.jsonData(), encoding: encoding)
12742- }
12743-}
12744-
1274512691 // MARK: - Object
1274612692 @objcMembers class Object: NSObject, Codable {
1274712693 let object: Int
@@ -13036,6 +12982,104 @@ extension Of {
1303612982 }
1303712983 }
1303812984
12985+// MARK: - OffsetDateTime
12986+@objcMembers class OffsetDateTime: NSObject, Codable {
12987+ let offsetDateTime: Int
12988+
12989+ enum CodingKeys: String, CodingKey {
12990+ case offsetDateTime = "OffsetDateTime"
12991+ }
12992+
12993+ init(offsetDateTime: Int) {
12994+ self.offsetDateTime = offsetDateTime
12995+ }
12996+}
12997+
12998+// MARK: OffsetDateTime convenience initializers and mutators
12999+
13000+extension OffsetDateTime {
13001+ convenience init(data: Data) throws {
13002+ let me = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
13003+ self.init(offsetDateTime: me.offsetDateTime)
13004+ }
13005+
13006+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13007+ guard let data = json.data(using: encoding) else {
13008+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13009+ }
13010+ try self.init(data: data)
13011+ }
13012+
13013+ convenience init(fromURL url: URL) throws {
13014+ try self.init(data: try Data(contentsOf: url))
13015+ }
13016+
13017+ func with(
13018+ offsetDateTime: Int? = nil
13019+ ) -> OffsetDateTime {
13020+ return OffsetDateTime(
13021+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
13022+ )
13023+ }
13024+
13025+ func jsonData() throws -> Data {
13026+ return try newJSONEncoder().encode(self)
13027+ }
13028+
13029+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13030+ return String(data: try self.jsonData(), encoding: encoding)
13031+ }
13032+}
13033+
13034+// MARK: - OffsetTime
13035+@objcMembers class OffsetTime: NSObject, Codable {
13036+ let offsetTime: Int
13037+
13038+ enum CodingKeys: String, CodingKey {
13039+ case offsetTime = "OffsetTime"
13040+ }
13041+
13042+ init(offsetTime: Int) {
13043+ self.offsetTime = offsetTime
13044+ }
13045+}
13046+
13047+// MARK: OffsetTime convenience initializers and mutators
13048+
13049+extension OffsetTime {
13050+ convenience init(data: Data) throws {
13051+ let me = try newJSONDecoder().decode(OffsetTime.self, from: data)
13052+ self.init(offsetTime: me.offsetTime)
13053+ }
13054+
13055+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13056+ guard let data = json.data(using: encoding) else {
13057+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13058+ }
13059+ try self.init(data: data)
13060+ }
13061+
13062+ convenience init(fromURL url: URL) throws {
13063+ try self.init(data: try Data(contentsOf: url))
13064+ }
13065+
13066+ func with(
13067+ offsetTime: Int? = nil
13068+ ) -> OffsetTime {
13069+ return OffsetTime(
13070+ offsetTime: offsetTime ?? self.offsetTime
13071+ )
13072+ }
13073+
13074+ func jsonData() throws -> Data {
13075+ return try newJSONEncoder().encode(self)
13076+ }
13077+
13078+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13079+ return String(data: try self.jsonData(), encoding: encoding)
13080+ }
13081+}
13082+
1303913083 // MARK: - Oneway
1304013084 @objcMembers class Oneway: NSObject, Codable {
1304113085 let oneway: Int
@@ -14065,195 +14109,98 @@ extension ReinterpretCast {
1406514109 }
1406614110 }
1406714111
14068-// MARK: - Require
14069-@objcMembers class Require: NSObject, Codable {
14070- let require: Int
14112+// MARK: - Obj5
14113+@objcMembers class Obj5: NSObject, Codable {
14114+ let dummy: Int
14115+ let kSerializer: KSerializer
14116+ let obj5Repeat: Repeat
14117+ let obj5Required: Required
14118+ let obj5Retain: Retain
14119+ let obj5Rethrows: Rethrows
14120+ let obj5Return: Return
14121+ let obj5Right: Right
14122+ let obj5Self: SelfClass
14123+ let obj5Set: Set
14124+ let obj5Static: Static
14125+ let obj5Struct: Struct
14126+ let obj5Subscript: Subscript
14127+ let obj5Super: Super
14128+ let obj5Switch: Switch
14129+ let obj5Throw: Throw
14130+ let obj5Throws: Throws
14131+ let obj5True: True
14132+ let primitiveKind: PrimitiveKind
14133+ let purpleSelf: Obj5Self
14134+ let purpleTrue: TrueClass
14135+ let require: Require
14136+ let requires: Requires
14137+ let restrict: Restrict
14138+ let runtimeType: RuntimeType
14139+ let s: S
14140+ let sbyte: Sbyte
14141+ let sealed: Sealed
14142+ let sel: Sel
14143+ let select: Select
14144+ let sendable: Sendable
14145+ let serialDescriptor: SerialDescriptor
14146+ let serialName: SerialName
14147+ let serializable: Serializable
14148+ let serializationFeature: SerializationFeature
14149+ let serialize: Serialize
14150+ let serializerProvider: SerializerProvider
14151+ let short: Short
14152+ let signed: Signed
14153+ let simpleModule: SimpleModule
14154+ let sizeof: Sizeof
14155+ let stackalloc: Stackalloc
14156+ let standards: Standards
14157+ let staticAssert: StaticAssert
14158+ let staticCast: StaticCast
14159+ let stdDeserializer: StdDeserializer
14160+ let stdSerializer: StdSerializer
14161+ let strictfp: Strictfp
14162+ let string: StringClass
14163+ let symbol: Symbol
14164+ let synchronized: Synchronized
14165+ let system: System
14166+ let template: Template
14167+ let textNode: TextNode
14168+ let then: Then
14169+ let this: This
14170+ let threadLocal: ThreadLocal
14171+ let timeOnly: TimeOnly
14172+ let timeOnlyConverter: TimeOnlyConverter
14173+ let timeZone: TimeZoneClass
14174+ let toDict: ToDict
14175+ let toJSON: ToJSON
14176+ let toString: ToString
14177+ let topLevel: TopLevelClass
14178+ let transient: Transient
1407114179
1407214180 enum CodingKeys: String, CodingKey {
14181+ case dummy = "dummy"
14182+ case kSerializer = "KSerializer"
14183+ case obj5Repeat = "repeat"
14184+ case obj5Required = "required"
14185+ case obj5Retain = "retain"
14186+ case obj5Rethrows = "rethrows"
14187+ case obj5Return = "return"
14188+ case obj5Right = "right"
14189+ case obj5Self = "Self"
14190+ case obj5Set = "set"
14191+ case obj5Static = "static"
14192+ case obj5Struct = "struct"
14193+ case obj5Subscript = "subscript"
14194+ case obj5Super = "super"
14195+ case obj5Switch = "switch"
14196+ case obj5Throw = "throw"
14197+ case obj5Throws = "throws"
14198+ case obj5True = "True"
14199+ case primitiveKind = "PrimitiveKind"
14200+ case purpleSelf = "self"
14201+ case purpleTrue = "true"
1407314202 case require = "require"
14074- }
14075-
14076- init(require: Int) {
14077- self.require = require
14078- }
14079-}
14080-
14081-// MARK: Require convenience initializers and mutators
14082-
14083-extension Require {
14084- convenience init(data: Data) throws {
14085- let me = try newJSONDecoder().decode(Require.self, from: data)
14086- self.init(require: me.require)
14087- }
14088-
14089- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14090- guard let data = json.data(using: encoding) else {
14091- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14092- }
14093- try self.init(data: data)
14094- }
14095-
14096- convenience init(fromURL url: URL) throws {
14097- try self.init(data: try Data(contentsOf: url))
14098- }
14099-
14100- func with(
14101- require: Int? = nil
14102- ) -> Require {
14103- return Require(
14104- require: require ?? self.require
14105- )
14106- }
14107-
14108- func jsonData() throws -> Data {
14109- return try newJSONEncoder().encode(self)
14110- }
14111-
14112- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14113- return String(data: try self.jsonData(), encoding: encoding)
14114- }
14115-}
14116-
14117-// MARK: - Requires
14118-@objcMembers class Requires: NSObject, Codable {
14119- let requires: Int
14120-
14121- enum CodingKeys: String, CodingKey {
1412214203 case requires = "requires"
14123- }
14124-
14125- init(requires: Int) {
14126- self.requires = requires
14127- }
14128-}
14129-
14130-// MARK: Requires convenience initializers and mutators
14131-
14132-extension Requires {
14133- convenience init(data: Data) throws {
14134- let me = try newJSONDecoder().decode(Requires.self, from: data)
14135- self.init(requires: me.requires)
14136- }
14137-
14138- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14139- guard let data = json.data(using: encoding) else {
14140- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14141- }
14142- try self.init(data: data)
14143- }
14144-
14145- convenience init(fromURL url: URL) throws {
14146- try self.init(data: try Data(contentsOf: url))
14147- }
14148-
14149- func with(
14150- requires: Int? = nil
14151- ) -> Requires {
14152- return Requires(
14153- requires: requires ?? self.requires
14154- )
14155- }
14156-
14157- func jsonData() throws -> Data {
14158- return try newJSONEncoder().encode(self)
14159- }
14160-
14161- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14162- return String(data: try self.jsonData(), encoding: encoding)
14163- }
14164-}
14165-
14166-// MARK: - Obj5
14167-@objcMembers class Obj5: NSObject, Codable {
14168- let dummy: Int
14169- let kSerializer: KSerializer
14170- let obj5Retain: Retain
14171- let obj5Rethrows: Rethrows
14172- let obj5Return: Return
14173- let obj5Right: Right
14174- let obj5Self: SelfClass
14175- let obj5Set: Set
14176- let obj5Static: Static
14177- let obj5Struct: Struct
14178- let obj5Subscript: Subscript
14179- let obj5Super: Super
14180- let obj5Switch: Switch
14181- let obj5Throw: Throw
14182- let obj5Throws: Throws
14183- let obj5True: True
14184- let obj5Try: Try
14185- let obj5Type: Obj5Type
14186- let obj5Typealias: Typealias
14187- let primitiveKind: PrimitiveKind
14188- let purpleSelf: Obj5Self
14189- let purpleTrue: TrueClass
14190- let restrict: Restrict
14191- let runtimeType: RuntimeType
14192- let s: S
14193- let sbyte: Sbyte
14194- let sealed: Sealed
14195- let sel: Sel
14196- let select: Select
14197- let sendable: Sendable
14198- let serialDescriptor: SerialDescriptor
14199- let serialName: SerialName
14200- let serializable: Serializable
14201- let serializationFeature: SerializationFeature
14202- let serialize: Serialize
14203- let serializerProvider: SerializerProvider
14204- let short: Short
14205- let signed: Signed
14206- let simpleModule: SimpleModule
14207- let sizeof: Sizeof
14208- let stackalloc: Stackalloc
14209- let standards: Standards
14210- let staticAssert: StaticAssert
14211- let staticCast: StaticCast
14212- let stdDeserializer: StdDeserializer
14213- let stdSerializer: StdSerializer
14214- let strictfp: Strictfp
14215- let string: StringClass
14216- let symbol: Symbol
14217- let synchronized: Synchronized
14218- let system: System
14219- let template: Template
14220- let textNode: TextNode
14221- let then: Then
14222- let this: This
14223- let threadLocal: ThreadLocal
14224- let timeOnly: TimeOnly
14225- let timeOnlyConverter: TimeOnlyConverter
14226- let timeZone: TimeZoneClass
14227- let toDict: ToDict
14228- let toJSON: ToJSON
14229- let toString: ToString
14230- let topLevel: TopLevelClass
14231- let transient: Transient
14232- let type: TypeClass
14233-
14234- enum CodingKeys: String, CodingKey {
14235- case dummy = "dummy"
14236- case kSerializer = "KSerializer"
14237- case obj5Retain = "retain"
14238- case obj5Rethrows = "rethrows"
14239- case obj5Return = "return"
14240- case obj5Right = "right"
14241- case obj5Self = "Self"
14242- case obj5Set = "set"
14243- case obj5Static = "static"
14244- case obj5Struct = "struct"
14245- case obj5Subscript = "subscript"
14246- case obj5Super = "super"
14247- case obj5Switch = "switch"
14248- case obj5Throw = "throw"
14249- case obj5Throws = "throws"
14250- case obj5True = "True"
14251- case obj5Try = "try"
14252- case obj5Type = "type"
14253- case obj5Typealias = "typealias"
14254- case primitiveKind = "PrimitiveKind"
14255- case purpleSelf = "self"
14256- case purpleTrue = "true"
1425714204 case restrict = "restrict"
1425814205 case runtimeType = "runtimeType"
1425914206 case s = "s"
@@ -14296,12 +14243,13 @@ extension Requires {
1429614243 case toString = "toString"
1429714244 case topLevel = "top_level"
1429814245 case transient = "transient"
14299- case type = "Type"
1430014246 }
1430114247
14302- init(dummy: Int, kSerializer: KSerializer, obj5Retain: Retain, obj5Rethrows: Rethrows, obj5Return: Return, obj5Right: Right, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, serializationFeature: SerializationFeature, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, textNode: TextNode, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toDict: ToDict, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass) {
14248+ init(dummy: Int, kSerializer: KSerializer, obj5Repeat: Repeat, obj5Required: Required, obj5Retain: Retain, obj5Rethrows: Rethrows, obj5Return: Return, obj5Right: Right, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, serializationFeature: SerializationFeature, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, textNode: TextNode, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toDict: ToDict, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient) {
1430314249 self.dummy = dummy
1430414250 self.kSerializer = kSerializer
14251+ self.obj5Repeat = obj5Repeat
14252+ self.obj5Required = obj5Required
1430514253 self.obj5Retain = obj5Retain
1430614254 self.obj5Rethrows = obj5Rethrows
1430714255 self.obj5Return = obj5Return
@@ -14316,12 +14264,11 @@ extension Requires {
1431614264 self.obj5Throw = obj5Throw
1431714265 self.obj5Throws = obj5Throws
1431814266 self.obj5True = obj5True
14319- self.obj5Try = obj5Try
14320- self.obj5Type = obj5Type
14321- self.obj5Typealias = obj5Typealias
1432214267 self.primitiveKind = primitiveKind
1432314268 self.purpleSelf = purpleSelf
1432414269 self.purpleTrue = purpleTrue
14270+ self.require = require
14271+ self.requires = requires
1432514272 self.restrict = restrict
1432614273 self.runtimeType = runtimeType
1432714274 self.s = s
@@ -14364,7 +14311,6 @@ extension Requires {
1436414311 self.toString = toString
1436514312 self.topLevel = topLevel
1436614313 self.transient = transient
14367- self.type = type
1436814314 }
1436914315 }
1437014316
@@ -14373,7 +14319,7 @@ extension Requires {
1437314319 extension Obj5 {
1437414320 convenience init(data: Data) throws {
1437514321 let me = try newJSONDecoder().decode(Obj5.self, from: data)
14376- self.init(dummy: me.dummy, kSerializer: me.kSerializer, obj5Retain: me.obj5Retain, obj5Rethrows: me.obj5Rethrows, obj5Return: me.obj5Return, obj5Right: me.obj5Right, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, serializationFeature: me.serializationFeature, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, textNode: me.textNode, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toDict: me.toDict, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type)
14322+ self.init(dummy: me.dummy, kSerializer: me.kSerializer, obj5Repeat: me.obj5Repeat, obj5Required: me.obj5Required, obj5Retain: me.obj5Retain, obj5Rethrows: me.obj5Rethrows, obj5Return: me.obj5Return, obj5Right: me.obj5Right, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, serializationFeature: me.serializationFeature, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, textNode: me.textNode, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toDict: me.toDict, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient)
1437714323 }
1437814324
1437914325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14390,6 +14336,8 @@ extension Obj5 {
1439014336 func with(
1439114337 dummy: Int? = nil,
1439214338 kSerializer: KSerializer? = nil,
14339+ obj5Repeat: Repeat? = nil,
14340+ obj5Required: Required? = nil,
1439314341 obj5Retain: Retain? = nil,
1439414342 obj5Rethrows: Rethrows? = nil,
1439514343 obj5Return: Return? = nil,
@@ -14404,12 +14352,11 @@ extension Obj5 {
1440414352 obj5Throw: Throw? = nil,
1440514353 obj5Throws: Throws? = nil,
1440614354 obj5True: True? = nil,
14407- obj5Try: Try? = nil,
14408- obj5Type: Obj5Type? = nil,
14409- obj5Typealias: Typealias? = nil,
1441014355 primitiveKind: PrimitiveKind? = nil,
1441114356 purpleSelf: Obj5Self? = nil,
1441214357 purpleTrue: TrueClass? = nil,
14358+ require: Require? = nil,
14359+ requires: Requires? = nil,
1441314360 restrict: Restrict? = nil,
1441414361 runtimeType: RuntimeType? = nil,
1441514362 s: S? = nil,
@@ -14451,12 +14398,13 @@ extension Obj5 {
1445114398 toJSON: ToJSON? = nil,
1445214399 toString: ToString? = nil,
1445314400 topLevel: TopLevelClass? = nil,
14454- transient: Transient? = nil,
14455- type: TypeClass? = nil
14401+ transient: Transient? = nil
1445614402 ) -> Obj5 {
1445714403 return Obj5(
1445814404 dummy: dummy ?? self.dummy,
1445914405 kSerializer: kSerializer ?? self.kSerializer,
14406+ obj5Repeat: obj5Repeat ?? self.obj5Repeat,
14407+ obj5Required: obj5Required ?? self.obj5Required,
1446014408 obj5Retain: obj5Retain ?? self.obj5Retain,
1446114409 obj5Rethrows: obj5Rethrows ?? self.obj5Rethrows,
1446214410 obj5Return: obj5Return ?? self.obj5Return,
@@ -14471,12 +14419,11 @@ extension Obj5 {
1447114419 obj5Throw: obj5Throw ?? self.obj5Throw,
1447214420 obj5Throws: obj5Throws ?? self.obj5Throws,
1447314421 obj5True: obj5True ?? self.obj5True,
14474- obj5Try: obj5Try ?? self.obj5Try,
14475- obj5Type: obj5Type ?? self.obj5Type,
14476- obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1447714422 primitiveKind: primitiveKind ?? self.primitiveKind,
1447814423 purpleSelf: purpleSelf ?? self.purpleSelf,
1447914424 purpleTrue: purpleTrue ?? self.purpleTrue,
14425+ require: require ?? self.require,
14426+ requires: requires ?? self.requires,
1448014427 restrict: restrict ?? self.restrict,
1448114428 runtimeType: runtimeType ?? self.runtimeType,
1448214429 s: s ?? self.s,
@@ -14518,8 +14465,7 @@ extension Obj5 {
1451814465 toJSON: toJSON ?? self.toJSON,
1451914466 toString: toString ?? self.toString,
1452014467 topLevel: topLevel ?? self.topLevel,
14521- transient: transient ?? self.transient,
14522- type: type ?? self.type
14468+ transient: transient ?? self.transient
1452314469 )
1452414470 }
1452514471
@@ -14581,6 +14527,104 @@ extension KSerializer {
1458114527 }
1458214528 }
1458314529
14530+// MARK: - Repeat
14531+@objcMembers class Repeat: NSObject, Codable {
14532+ let repeatRepeat: Int
14533+
14534+ enum CodingKeys: String, CodingKey {
14535+ case repeatRepeat = "repeat"
14536+ }
14537+
14538+ init(repeatRepeat: Int) {
14539+ self.repeatRepeat = repeatRepeat
14540+ }
14541+}
14542+
14543+// MARK: Repeat convenience initializers and mutators
14544+
14545+extension Repeat {
14546+ convenience init(data: Data) throws {
14547+ let me = try newJSONDecoder().decode(Repeat.self, from: data)
14548+ self.init(repeatRepeat: me.repeatRepeat)
14549+ }
14550+
14551+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14552+ guard let data = json.data(using: encoding) else {
14553+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14554+ }
14555+ try self.init(data: data)
14556+ }
14557+
14558+ convenience init(fromURL url: URL) throws {
14559+ try self.init(data: try Data(contentsOf: url))
14560+ }
14561+
14562+ func with(
14563+ repeatRepeat: Int? = nil
14564+ ) -> Repeat {
14565+ return Repeat(
14566+ repeatRepeat: repeatRepeat ?? self.repeatRepeat
14567+ )
14568+ }
14569+
14570+ func jsonData() throws -> Data {
14571+ return try newJSONEncoder().encode(self)
14572+ }
14573+
14574+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14575+ return String(data: try self.jsonData(), encoding: encoding)
14576+ }
14577+}
14578+
14579+// MARK: - Required
14580+@objcMembers class Required: NSObject, Codable {
14581+ let requiredRequired: Int
14582+
14583+ enum CodingKeys: String, CodingKey {
14584+ case requiredRequired = "required"
14585+ }
14586+
14587+ init(requiredRequired: Int) {
14588+ self.requiredRequired = requiredRequired
14589+ }
14590+}
14591+
14592+// MARK: Required convenience initializers and mutators
14593+
14594+extension Required {
14595+ convenience init(data: Data) throws {
14596+ let me = try newJSONDecoder().decode(Required.self, from: data)
14597+ self.init(requiredRequired: me.requiredRequired)
14598+ }
14599+
14600+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14601+ guard let data = json.data(using: encoding) else {
14602+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14603+ }
14604+ try self.init(data: data)
14605+ }
14606+
14607+ convenience init(fromURL url: URL) throws {
14608+ try self.init(data: try Data(contentsOf: url))
14609+ }
14610+
14611+ func with(
14612+ requiredRequired: Int? = nil
14613+ ) -> Required {
14614+ return Required(
14615+ requiredRequired: requiredRequired ?? self.requiredRequired
14616+ )
14617+ }
14618+
14619+ func jsonData() throws -> Data {
14620+ return try newJSONEncoder().encode(self)
14621+ }
14622+
14623+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14624+ return String(data: try self.jsonData(), encoding: encoding)
14625+ }
14626+}
14627+
1458414628 // MARK: - Retain
1458514629 @objcMembers class Retain: NSObject, Codable {
1458614630 let retainRetain: Int
@@ -15267,74 +15311,25 @@ extension True {
1526715311 }
1526815312 }
1526915313
15270-// MARK: - Try
15271-@objcMembers class Try: NSObject, Codable {
15272- let tryTry: Int
15273-
15274- enum CodingKeys: String, CodingKey {
15275- case tryTry = "try"
15276- }
15277-
15278- init(tryTry: Int) {
15279- self.tryTry = tryTry
15280- }
15281-}
15282-
15283-// MARK: Try convenience initializers and mutators
15284-
15285-extension Try {
15286- convenience init(data: Data) throws {
15287- let me = try newJSONDecoder().decode(Try.self, from: data)
15288- self.init(tryTry: me.tryTry)
15289- }
15290-
15291- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15292- guard let data = json.data(using: encoding) else {
15293- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15294- }
15295- try self.init(data: data)
15296- }
15297-
15298- convenience init(fromURL url: URL) throws {
15299- try self.init(data: try Data(contentsOf: url))
15300- }
15301-
15302- func with(
15303- tryTry: Int? = nil
15304- ) -> Try {
15305- return Try(
15306- tryTry: tryTry ?? self.tryTry
15307- )
15308- }
15309-
15310- func jsonData() throws -> Data {
15311- return try newJSONEncoder().encode(self)
15312- }
15313-
15314- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15315- return String(data: try self.jsonData(), encoding: encoding)
15316- }
15317-}
15318-
15319-// MARK: - Obj5Type
15320-@objcMembers class Obj5Type: NSObject, Codable {
15321- let type: Int
15314+// MARK: - PrimitiveKind
15315+@objcMembers class PrimitiveKind: NSObject, Codable {
15316+ let primitiveKind: Int
1532215317
1532315318 enum CodingKeys: String, CodingKey {
15324- case type = "type"
15319+ case primitiveKind = "PrimitiveKind"
1532515320 }
1532615321
15327- init(type: Int) {
15328- self.type = type
15322+ init(primitiveKind: Int) {
15323+ self.primitiveKind = primitiveKind
1532915324 }
1533015325 }
1533115326
15332-// MARK: Obj5Type convenience initializers and mutators
15327+// MARK: PrimitiveKind convenience initializers and mutators
1533315328
15334-extension Obj5Type {
15329+extension PrimitiveKind {
1533515330 convenience init(data: Data) throws {
15336- let me = try newJSONDecoder().decode(Obj5Type.self, from: data)
15337- self.init(type: me.type)
15331+ let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15332+ self.init(primitiveKind: me.primitiveKind)
1533815333 }
1533915334
1534015335 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15349,10 +15344,10 @@ extension Obj5Type {
1534915344 }
1535015345
1535115346 func with(
15352- type: Int? = nil
15353- ) -> Obj5Type {
15354- return Obj5Type(
15355- type: type ?? self.type
15347+ primitiveKind: Int? = nil
15348+ ) -> PrimitiveKind {
15349+ return PrimitiveKind(
15350+ primitiveKind: primitiveKind ?? self.primitiveKind
1535615351 )
1535715352 }
1535815353
@@ -15365,25 +15360,25 @@ extension Obj5Type {
1536515360 }
1536615361 }
1536715362
15368-// MARK: - Typealias
15369-@objcMembers class Typealias: NSObject, Codable {
15370- let typealiasTypealias: Int
15363+// MARK: - Obj5Self
15364+@objcMembers class Obj5Self: NSObject, Codable {
15365+ let selfSelf: Int
1537115366
1537215367 enum CodingKeys: String, CodingKey {
15373- case typealiasTypealias = "typealias"
15368+ case selfSelf = "self"
1537415369 }
1537515370
15376- init(typealiasTypealias: Int) {
15377- self.typealiasTypealias = typealiasTypealias
15371+ init(selfSelf: Int) {
15372+ self.selfSelf = selfSelf
1537815373 }
1537915374 }
1538015375
15381-// MARK: Typealias convenience initializers and mutators
15376+// MARK: Obj5Self convenience initializers and mutators
1538215377
15383-extension Typealias {
15378+extension Obj5Self {
1538415379 convenience init(data: Data) throws {
15385- let me = try newJSONDecoder().decode(Typealias.self, from: data)
15386- self.init(typealiasTypealias: me.typealiasTypealias)
15380+ let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15381+ self.init(selfSelf: me.selfSelf)
1538715382 }
1538815383
1538915384 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15398,10 +15393,10 @@ extension Typealias {
1539815393 }
1539915394
1540015395 func with(
15401- typealiasTypealias: Int? = nil
15402- ) -> Typealias {
15403- return Typealias(
15404- typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
15396+ selfSelf: Int? = nil
15397+ ) -> Obj5Self {
15398+ return Obj5Self(
15399+ selfSelf: selfSelf ?? self.selfSelf
1540515400 )
1540615401 }
1540715402
@@ -15414,25 +15409,25 @@ extension Typealias {
1541415409 }
1541515410 }
1541615411
15417-// MARK: - PrimitiveKind
15418-@objcMembers class PrimitiveKind: NSObject, Codable {
15419- let primitiveKind: Int
15412+// MARK: - TrueClass
15413+@objcMembers class TrueClass: NSObject, Codable {
15414+ let trueTrue: Int
1542015415
1542115416 enum CodingKeys: String, CodingKey {
15422- case primitiveKind = "PrimitiveKind"
15417+ case trueTrue = "true"
1542315418 }
1542415419
15425- init(primitiveKind: Int) {
15426- self.primitiveKind = primitiveKind
15420+ init(trueTrue: Int) {
15421+ self.trueTrue = trueTrue
1542715422 }
1542815423 }
1542915424
15430-// MARK: PrimitiveKind convenience initializers and mutators
15425+// MARK: TrueClass convenience initializers and mutators
1543115426
15432-extension PrimitiveKind {
15427+extension TrueClass {
1543315428 convenience init(data: Data) throws {
15434- let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15435- self.init(primitiveKind: me.primitiveKind)
15429+ let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15430+ self.init(trueTrue: me.trueTrue)
1543615431 }
1543715432
1543815433 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15447,10 +15442,10 @@ extension PrimitiveKind {
1544715442 }
1544815443
1544915444 func with(
15450- primitiveKind: Int? = nil
15451- ) -> PrimitiveKind {
15452- return PrimitiveKind(
15453- primitiveKind: primitiveKind ?? self.primitiveKind
15445+ trueTrue: Int? = nil
15446+ ) -> TrueClass {
15447+ return TrueClass(
15448+ trueTrue: trueTrue ?? self.trueTrue
1545415449 )
1545515450 }
1545615451
@@ -15463,25 +15458,25 @@ extension PrimitiveKind {
1546315458 }
1546415459 }
1546515460
15466-// MARK: - Obj5Self
15467-@objcMembers class Obj5Self: NSObject, Codable {
15468- let selfSelf: Int
15461+// MARK: - Require
15462+@objcMembers class Require: NSObject, Codable {
15463+ let require: Int
1546915464
1547015465 enum CodingKeys: String, CodingKey {
15471- case selfSelf = "self"
15466+ case require = "require"
1547215467 }
1547315468
15474- init(selfSelf: Int) {
15475- self.selfSelf = selfSelf
15469+ init(require: Int) {
15470+ self.require = require
1547615471 }
1547715472 }
1547815473
15479-// MARK: Obj5Self convenience initializers and mutators
15474+// MARK: Require convenience initializers and mutators
1548015475
15481-extension Obj5Self {
15476+extension Require {
1548215477 convenience init(data: Data) throws {
15483- let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15484- self.init(selfSelf: me.selfSelf)
15478+ let me = try newJSONDecoder().decode(Require.self, from: data)
15479+ self.init(require: me.require)
1548515480 }
1548615481
1548715482 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15496,10 +15491,10 @@ extension Obj5Self {
1549615491 }
1549715492
1549815493 func with(
15499- selfSelf: Int? = nil
15500- ) -> Obj5Self {
15501- return Obj5Self(
15502- selfSelf: selfSelf ?? self.selfSelf
15494+ require: Int? = nil
15495+ ) -> Require {
15496+ return Require(
15497+ require: require ?? self.require
1550315498 )
1550415499 }
1550515500
@@ -15512,25 +15507,25 @@ extension Obj5Self {
1551215507 }
1551315508 }
1551415509
15515-// MARK: - TrueClass
15516-@objcMembers class TrueClass: NSObject, Codable {
15517- let trueTrue: Int
15510+// MARK: - Requires
15511+@objcMembers class Requires: NSObject, Codable {
15512+ let requires: Int
1551815513
1551915514 enum CodingKeys: String, CodingKey {
15520- case trueTrue = "true"
15515+ case requires = "requires"
1552115516 }
1552215517
15523- init(trueTrue: Int) {
15524- self.trueTrue = trueTrue
15518+ init(requires: Int) {
15519+ self.requires = requires
1552515520 }
1552615521 }
1552715522
15528-// MARK: TrueClass convenience initializers and mutators
15523+// MARK: Requires convenience initializers and mutators
1552915524
15530-extension TrueClass {
15525+extension Requires {
1553115526 convenience init(data: Data) throws {
15532- let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15533- self.init(trueTrue: me.trueTrue)
15527+ let me = try newJSONDecoder().decode(Requires.self, from: data)
15528+ self.init(requires: me.requires)
1553415529 }
1553515530
1553615531 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15545,10 +15540,10 @@ extension TrueClass {
1554515540 }
1554615541
1554715542 func with(
15548- trueTrue: Int? = nil
15549- ) -> TrueClass {
15550- return TrueClass(
15551- trueTrue: trueTrue ?? self.trueTrue
15543+ requires: Int? = nil
15544+ ) -> Requires {
15545+ return Requires(
15546+ requires: requires ?? self.requires
1555215547 )
1555315548 }
1555415549
@@ -17619,64 +17614,19 @@ extension Transient {
1761917614 }
1762017615 }
1762117616
17622-// MARK: - TypeClass
17623-@objcMembers class TypeClass: NSObject, Codable {
17624- let type: Int
17625-
17626- enum CodingKeys: String, CodingKey {
17627- case type = "Type"
17628- }
17629-
17630- init(type: Int) {
17631- self.type = type
17632- }
17633-}
17634-
17635-// MARK: TypeClass convenience initializers and mutators
17636-
17637-extension TypeClass {
17638- convenience init(data: Data) throws {
17639- let me = try newJSONDecoder().decode(TypeClass.self, from: data)
17640- self.init(type: me.type)
17641- }
17642-
17643- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17644- guard let data = json.data(using: encoding) else {
17645- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17646- }
17647- try self.init(data: data)
17648- }
17649-
17650- convenience init(fromURL url: URL) throws {
17651- try self.init(data: try Data(contentsOf: url))
17652- }
17653-
17654- func with(
17655- type: Int? = nil
17656- ) -> TypeClass {
17657- return TypeClass(
17658- type: type ?? self.type
17659- )
17660- }
17661-
17662- func jsonData() throws -> Data {
17663- return try newJSONEncoder().encode(self)
17664- }
17665-
17666- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17667- return String(data: try self.jsonData(), encoding: encoding)
17668- }
17669-}
17670-
1767117617 // MARK: - Obj6
1767217618 @objcMembers class Obj6: NSObject, Codable {
1767317619 let dummy: Int
17620+ let obj6Try: Try
17621+ let obj6Type: Obj6Type
17622+ let obj6Typealias: Typealias
1767417623 let obj6Unowned: Unowned
1767517624 let obj6Var: Var
1767617625 let obj6Weak: Weak
1767717626 let obj6Where: Where
1767817627 let obj6While: While
1767917628 let obj6WillSet: WillSet
17629+ let type: TypeClass
1768017630 let typedef: Typedef
1768117631 let typeid: Typeid
1768217632 let typename: Typename
@@ -17707,12 +17657,16 @@ extension TypeClass {
1770717657
1770817658 enum CodingKeys: String, CodingKey {
1770917659 case dummy = "dummy"
17660+ case obj6Try = "try"
17661+ case obj6Type = "type"
17662+ case obj6Typealias = "typealias"
1771017663 case obj6Unowned = "unowned"
1771117664 case obj6Var = "var"
1771217665 case obj6Weak = "weak"
1771317666 case obj6Where = "where"
1771417667 case obj6While = "while"
1771517668 case obj6WillSet = "willSet"
17669+ case type = "Type"
1771617670 case typedef = "typedef"
1771717671 case typeid = "typeid"
1771817672 case typename = "typename"
@@ -17742,14 +17696,18 @@ extension TypeClass {
1774217696 case yield = "yield"
1774317697 }
1774417698
17745- init(dummy: Int, obj6Unowned: Unowned, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unmarshalJSON: UnmarshalJSON, unsafe: Unsafe, unsigned: Unsigned, useSerializers: UseSerializers, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
17699+ init(dummy: Int, obj6Try: Try, obj6Type: Obj6Type, obj6Typealias: Typealias, obj6Unowned: Unowned, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unmarshalJSON: UnmarshalJSON, unsafe: Unsafe, unsigned: Unsigned, useSerializers: UseSerializers, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
1774617700 self.dummy = dummy
17701+ self.obj6Try = obj6Try
17702+ self.obj6Type = obj6Type
17703+ self.obj6Typealias = obj6Typealias
1774717704 self.obj6Unowned = obj6Unowned
1774817705 self.obj6Var = obj6Var
1774917706 self.obj6Weak = obj6Weak
1775017707 self.obj6Where = obj6Where
1775117708 self.obj6While = obj6While
1775217709 self.obj6WillSet = obj6WillSet
17710+ self.type = type
1775317711 self.typedef = typedef
1775417712 self.typeid = typeid
1775517713 self.typename = typename
@@ -17785,7 +17743,7 @@ extension TypeClass {
1778517743 extension Obj6 {
1778617744 convenience init(data: Data) throws {
1778717745 let me = try newJSONDecoder().decode(Obj6.self, from: data)
17788- self.init(dummy: me.dummy, obj6Unowned: me.obj6Unowned, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unmarshalJSON: me.unmarshalJSON, unsafe: me.unsafe, unsigned: me.unsigned, useSerializers: me.useSerializers, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
17746+ self.init(dummy: me.dummy, obj6Try: me.obj6Try, obj6Type: me.obj6Type, obj6Typealias: me.obj6Typealias, obj6Unowned: me.obj6Unowned, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unmarshalJSON: me.unmarshalJSON, unsafe: me.unsafe, unsigned: me.unsigned, useSerializers: me.useSerializers, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
1778917747 }
1779017748
1779117749 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17801,12 +17759,16 @@ extension Obj6 {
1780117759
1780217760 func with(
1780317761 dummy: Int? = nil,
17762+ obj6Try: Try? = nil,
17763+ obj6Type: Obj6Type? = nil,
17764+ obj6Typealias: Typealias? = nil,
1780417765 obj6Unowned: Unowned? = nil,
1780517766 obj6Var: Var? = nil,
1780617767 obj6Weak: Weak? = nil,
1780717768 obj6Where: Where? = nil,
1780817769 obj6While: While? = nil,
1780917770 obj6WillSet: WillSet? = nil,
17771+ type: TypeClass? = nil,
1781017772 typedef: Typedef? = nil,
1781117773 typeid: Typeid? = nil,
1781217774 typename: Typename? = nil,
@@ -17837,12 +17799,16 @@ extension Obj6 {
1783717799 ) -> Obj6 {
1783817800 return Obj6(
1783917801 dummy: dummy ?? self.dummy,
17802+ obj6Try: obj6Try ?? self.obj6Try,
17803+ obj6Type: obj6Type ?? self.obj6Type,
17804+ obj6Typealias: obj6Typealias ?? self.obj6Typealias,
1784017805 obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1784117806 obj6Var: obj6Var ?? self.obj6Var,
1784217807 obj6Weak: obj6Weak ?? self.obj6Weak,
1784317808 obj6Where: obj6Where ?? self.obj6Where,
1784417809 obj6While: obj6While ?? self.obj6While,
1784517810 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17811+ type: type ?? self.type,
1784617812 typedef: typedef ?? self.typedef,
1784717813 typeid: typeid ?? self.typeid,
1784817814 typename: typename ?? self.typename,
@@ -17882,6 +17848,153 @@ extension Obj6 {
1788217848 }
1788317849 }
1788417850
17851+// MARK: - Try
17852+@objcMembers class Try: NSObject, Codable {
17853+ let tryTry: Int
17854+
17855+ enum CodingKeys: String, CodingKey {
17856+ case tryTry = "try"
17857+ }
17858+
17859+ init(tryTry: Int) {
17860+ self.tryTry = tryTry
17861+ }
17862+}
17863+
17864+// MARK: Try convenience initializers and mutators
17865+
17866+extension Try {
17867+ convenience init(data: Data) throws {
17868+ let me = try newJSONDecoder().decode(Try.self, from: data)
17869+ self.init(tryTry: me.tryTry)
17870+ }
17871+
17872+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17873+ guard let data = json.data(using: encoding) else {
17874+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17875+ }
17876+ try self.init(data: data)
17877+ }
17878+
17879+ convenience init(fromURL url: URL) throws {
17880+ try self.init(data: try Data(contentsOf: url))
17881+ }
17882+
17883+ func with(
17884+ tryTry: Int? = nil
17885+ ) -> Try {
17886+ return Try(
17887+ tryTry: tryTry ?? self.tryTry
17888+ )
17889+ }
17890+
17891+ func jsonData() throws -> Data {
17892+ return try newJSONEncoder().encode(self)
17893+ }
17894+
17895+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17896+ return String(data: try self.jsonData(), encoding: encoding)
17897+ }
17898+}
17899+
17900+// MARK: - Obj6Type
17901+@objcMembers class Obj6Type: NSObject, Codable {
17902+ let type: Int
17903+
17904+ enum CodingKeys: String, CodingKey {
17905+ case type = "type"
17906+ }
17907+
17908+ init(type: Int) {
17909+ self.type = type
17910+ }
17911+}
17912+
17913+// MARK: Obj6Type convenience initializers and mutators
17914+
17915+extension Obj6Type {
17916+ convenience init(data: Data) throws {
17917+ let me = try newJSONDecoder().decode(Obj6Type.self, from: data)
17918+ self.init(type: me.type)
17919+ }
17920+
17921+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17922+ guard let data = json.data(using: encoding) else {
17923+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17924+ }
17925+ try self.init(data: data)
17926+ }
17927+
17928+ convenience init(fromURL url: URL) throws {
17929+ try self.init(data: try Data(contentsOf: url))
17930+ }
17931+
17932+ func with(
17933+ type: Int? = nil
17934+ ) -> Obj6Type {
17935+ return Obj6Type(
17936+ type: type ?? self.type
17937+ )
17938+ }
17939+
17940+ func jsonData() throws -> Data {
17941+ return try newJSONEncoder().encode(self)
17942+ }
17943+
17944+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17945+ return String(data: try self.jsonData(), encoding: encoding)
17946+ }
17947+}
17948+
17949+// MARK: - Typealias
17950+@objcMembers class Typealias: NSObject, Codable {
17951+ let typealiasTypealias: Int
17952+
17953+ enum CodingKeys: String, CodingKey {
17954+ case typealiasTypealias = "typealias"
17955+ }
17956+
17957+ init(typealiasTypealias: Int) {
17958+ self.typealiasTypealias = typealiasTypealias
17959+ }
17960+}
17961+
17962+// MARK: Typealias convenience initializers and mutators
17963+
17964+extension Typealias {
17965+ convenience init(data: Data) throws {
17966+ let me = try newJSONDecoder().decode(Typealias.self, from: data)
17967+ self.init(typealiasTypealias: me.typealiasTypealias)
17968+ }
17969+
17970+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17971+ guard let data = json.data(using: encoding) else {
17972+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17973+ }
17974+ try self.init(data: data)
17975+ }
17976+
17977+ convenience init(fromURL url: URL) throws {
17978+ try self.init(data: try Data(contentsOf: url))
17979+ }
17980+
17981+ func with(
17982+ typealiasTypealias: Int? = nil
17983+ ) -> Typealias {
17984+ return Typealias(
17985+ typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
17986+ )
17987+ }
17988+
17989+ func jsonData() throws -> Data {
17990+ return try newJSONEncoder().encode(self)
17991+ }
17992+
17993+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17994+ return String(data: try self.jsonData(), encoding: encoding)
17995+ }
17996+}
17997+
1788517998 // MARK: - Unowned
1788617999 @objcMembers class Unowned: NSObject, Codable {
1788718000 let unownedUnowned: Int
@@ -18176,6 +18289,55 @@ extension WillSet {
1817618289 }
1817718290 }
1817818291
18292+// MARK: - TypeClass
18293+@objcMembers class TypeClass: NSObject, Codable {
18294+ let type: Int
18295+
18296+ enum CodingKeys: String, CodingKey {
18297+ case type = "Type"
18298+ }
18299+
18300+ init(type: Int) {
18301+ self.type = type
18302+ }
18303+}
18304+
18305+// MARK: TypeClass convenience initializers and mutators
18306+
18307+extension TypeClass {
18308+ convenience init(data: Data) throws {
18309+ let me = try newJSONDecoder().decode(TypeClass.self, from: data)
18310+ self.init(type: me.type)
18311+ }
18312+
18313+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18314+ guard let data = json.data(using: encoding) else {
18315+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18316+ }
18317+ try self.init(data: data)
18318+ }
18319+
18320+ convenience init(fromURL url: URL) throws {
18321+ try self.init(data: try Data(contentsOf: url))
18322+ }
18323+
18324+ func with(
18325+ type: Int? = nil
18326+ ) -> TypeClass {
18327+ return TypeClass(
18328+ type: type ?? self.type
18329+ )
18330+ }
18331+
18332+ func jsonData() throws -> Data {
18333+ return try newJSONEncoder().encode(self)
18334+ }
18335+
18336+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18337+ return String(data: try self.jsonData(), encoding: encoding)
18338+ }
18339+}
18340+
1817918341 // MARK: - Typedef
1818018342 @objcMembers class Typedef: NSObject, Codable {
1818118343 let typedef: Int
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+651 −489
@@ -7144,6 +7144,7 @@ struct Obj3: Codable, Equatable {
71447144 let jsonWriter: JSONWriter
71457145 let lambda: Lambda
71467146 let list: List
7147+ let localDate: LocalDate
71477148 let locale: LocaleClass
71487149 let lock: Lock
71497150 let long: Long
@@ -7153,7 +7154,6 @@ struct Obj3: Codable, Equatable {
71537154 let marshalJSON: MarshalJSON
71547155 let metadataPropertyHandling: MetadataPropertyHandling
71557156 let module: Module
7156- let mutable: Mutable
71577157 let obj3Get: Get
71587158 let obj3Guard: Guard
71597159 let obj3If: If
@@ -7169,7 +7169,6 @@ struct Obj3: Codable, Equatable {
71697169 let obj3Lazy: Lazy
71707170 let obj3Left: Left
71717171 let obj3Let: Let
7172- let obj3Mutating: Mutating
71737172
71747173 enum CodingKeys: String, CodingKey {
71757174 case dummy = "dummy"
@@ -7212,6 +7211,7 @@ struct Obj3: Codable, Equatable {
72127211 case jsonWriter = "json_writer"
72137212 case lambda = "lambda"
72147213 case list = "list"
7214+ case localDate = "LocalDate"
72157215 case locale = "Locale"
72167216 case lock = "lock"
72177217 case long = "long"
@@ -7221,7 +7221,6 @@ struct Obj3: Codable, Equatable {
72217221 case marshalJSON = "MarshalJSON"
72227222 case metadataPropertyHandling = "metadata_property_handling"
72237223 case module = "module"
7224- case mutable = "mutable"
72257224 case obj3Get = "get"
72267225 case obj3Guard = "guard"
72277226 case obj3If = "if"
@@ -7237,7 +7236,6 @@ struct Obj3: Codable, Equatable {
72377236 case obj3Lazy = "lazy"
72387237 case obj3Left = "left"
72397238 case obj3Let = "let"
7240- case obj3Mutating = "mutating"
72417239 }
72427240 }
72437241
@@ -7300,6 +7298,7 @@ extension Obj3 {
73007298 jsonWriter: JSONWriter? = nil,
73017299 lambda: Lambda? = nil,
73027300 list: List? = nil,
7301+ localDate: LocalDate? = nil,
73037302 locale: LocaleClass? = nil,
73047303 lock: Lock? = nil,
73057304 long: Long? = nil,
@@ -7309,7 +7308,6 @@ extension Obj3 {
73097308 marshalJSON: MarshalJSON? = nil,
73107309 metadataPropertyHandling: MetadataPropertyHandling? = nil,
73117310 module: Module? = nil,
7312- mutable: Mutable? = nil,
73137311 obj3Get: Get? = nil,
73147312 obj3Guard: Guard? = nil,
73157313 obj3If: If? = nil,
@@ -7324,8 +7322,7 @@ extension Obj3 {
73247322 obj3JSON: JSON? = nil,
73257323 obj3Lazy: Lazy? = nil,
73267324 obj3Left: Left? = nil,
7327- obj3Let: Let? = nil,
7328- obj3Mutating: Mutating? = nil
7325+ obj3Let: Let? = nil
73297326 ) -> Obj3 {
73307327 return Obj3(
73317328 dummy: dummy ?? self.dummy,
@@ -7368,6 +7365,7 @@ extension Obj3 {
73687365 jsonWriter: jsonWriter ?? self.jsonWriter,
73697366 lambda: lambda ?? self.lambda,
73707367 list: list ?? self.list,
7368+ localDate: localDate ?? self.localDate,
73717369 locale: locale ?? self.locale,
73727370 lock: lock ?? self.lock,
73737371 long: long ?? self.long,
@@ -7377,7 +7375,6 @@ extension Obj3 {
73777375 marshalJSON: marshalJSON ?? self.marshalJSON,
73787376 metadataPropertyHandling: metadataPropertyHandling ?? self.metadataPropertyHandling,
73797377 module: module ?? self.module,
7380- mutable: mutable ?? self.mutable,
73817378 obj3Get: obj3Get ?? self.obj3Get,
73827379 obj3Guard: obj3Guard ?? self.obj3Guard,
73837380 obj3If: obj3If ?? self.obj3If,
@@ -7392,8 +7389,7 @@ extension Obj3 {
73927389 obj3JSON: obj3JSON ?? self.obj3JSON,
73937390 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
73947391 obj3Left: obj3Left ?? self.obj3Left,
7395- obj3Let: obj3Let ?? self.obj3Let,
7396- obj3Mutating: obj3Mutating ?? self.obj3Mutating
7392+ obj3Let: obj3Let ?? self.obj3Let
73977393 )
73987394 }
73997395
@@ -9362,6 +9358,56 @@ extension List {
93629358 // for types that require the use of JSONAny, nor will the implementation of Hashable be
93639359 // synthesized for types that have collections (such as arrays or dictionaries).
93649360
9361+// MARK: - LocalDate
9362+struct LocalDate: Codable, Equatable {
9363+ let localDate: Int
9364+
9365+ enum CodingKeys: String, CodingKey {
9366+ case localDate = "LocalDate"
9367+ }
9368+}
9369+
9370+// MARK: LocalDate convenience initializers and mutators
9371+
9372+extension LocalDate {
9373+ init(data: Data) throws {
9374+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
9375+ }
9376+
9377+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9378+ guard let data = json.data(using: encoding) else {
9379+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9380+ }
9381+ try self.init(data: data)
9382+ }
9383+
9384+ init(fromURL url: URL) throws {
9385+ try self.init(data: try Data(contentsOf: url))
9386+ }
9387+
9388+ func with(
9389+ localDate: Int? = nil
9390+ ) -> LocalDate {
9391+ return LocalDate(
9392+ localDate: localDate ?? self.localDate
9393+ )
9394+ }
9395+
9396+ func jsonData() throws -> Data {
9397+ return try newJSONEncoder().encode(self)
9398+ }
9399+
9400+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9401+ return String(data: try self.jsonData(), encoding: encoding)
9402+ }
9403+}
9404+
9405+//
9406+// Hashable or Equatable:
9407+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9408+// for types that require the use of JSONAny, nor will the implementation of Hashable be
9409+// synthesized for types that have collections (such as arrays or dictionaries).
9410+
93659411 // MARK: - LocaleClass
93669412 struct LocaleClass: Codable, Equatable {
93679413 let locale: Int
@@ -9812,56 +9858,6 @@ extension Module {
98129858 // for types that require the use of JSONAny, nor will the implementation of Hashable be
98139859 // synthesized for types that have collections (such as arrays or dictionaries).
98149860
9815-// MARK: - Mutable
9816-struct Mutable: Codable, Equatable {
9817- let mutable: Int
9818-
9819- enum CodingKeys: String, CodingKey {
9820- case mutable = "mutable"
9821- }
9822-}
9823-
9824-// MARK: Mutable convenience initializers and mutators
9825-
9826-extension Mutable {
9827- init(data: Data) throws {
9828- self = try newJSONDecoder().decode(Mutable.self, from: data)
9829- }
9830-
9831- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9832- guard let data = json.data(using: encoding) else {
9833- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9834- }
9835- try self.init(data: data)
9836- }
9837-
9838- init(fromURL url: URL) throws {
9839- try self.init(data: try Data(contentsOf: url))
9840- }
9841-
9842- func with(
9843- mutable: Int? = nil
9844- ) -> Mutable {
9845- return Mutable(
9846- mutable: mutable ?? self.mutable
9847- )
9848- }
9849-
9850- func jsonData() throws -> Data {
9851- return try newJSONEncoder().encode(self)
9852- }
9853-
9854- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9855- return String(data: try self.jsonData(), encoding: encoding)
9856- }
9857-}
9858-
9859-//
9860-// Hashable or Equatable:
9861-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9862-// for types that require the use of JSONAny, nor will the implementation of Hashable be
9863-// synthesized for types that have collections (such as arrays or dictionaries).
9864-
98659861 // MARK: - Get
98669862 struct Get: Codable, Equatable {
98679863 let getGet: Int
@@ -10612,59 +10608,10 @@ extension Let {
1061210608 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1061310609 // synthesized for types that have collections (such as arrays or dictionaries).
1061410610
10615-// MARK: - Mutating
10616-struct Mutating: Codable, Equatable {
10617- let mutatingMutating: Int
10618-
10619- enum CodingKeys: String, CodingKey {
10620- case mutatingMutating = "mutating"
10621- }
10622-}
10623-
10624-// MARK: Mutating convenience initializers and mutators
10625-
10626-extension Mutating {
10627- init(data: Data) throws {
10628- self = try newJSONDecoder().decode(Mutating.self, from: data)
10629- }
10630-
10631- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10632- guard let data = json.data(using: encoding) else {
10633- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10634- }
10635- try self.init(data: data)
10636- }
10637-
10638- init(fromURL url: URL) throws {
10639- try self.init(data: try Data(contentsOf: url))
10640- }
10641-
10642- func with(
10643- mutatingMutating: Int? = nil
10644- ) -> Mutating {
10645- return Mutating(
10646- mutatingMutating: mutatingMutating ?? self.mutatingMutating
10647- )
10648- }
10649-
10650- func jsonData() throws -> Data {
10651- return try newJSONEncoder().encode(self)
10652- }
10653-
10654- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10655- return String(data: try self.jsonData(), encoding: encoding)
10656- }
10657-}
10658-
10659-//
10660-// Hashable or Equatable:
10661-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
10662-// for types that require the use of JSONAny, nor will the implementation of Hashable be
10663-// synthesized for types that have collections (such as arrays or dictionaries).
10664-
1066510611 // MARK: - Obj4
1066610612 struct Obj4: Codable, Equatable {
1066710613 let dummy: Int
10614+ let mutable: Mutable
1066810615 let namespace: Namespace
1066910616 let native: Native
1067010617 let new: New
@@ -10684,6 +10631,7 @@ struct Obj4: Codable, Equatable {
1068410631 let nullNode: NullNode
1068510632 let nullptr: Nullptr
1068610633 let number: Number
10634+ let obj4Mutating: Mutating
1068710635 let obj4Nil: Nil
1068810636 let obj4None: NoneClass
1068910637 let obj4Nonmutating: Nonmutating
@@ -10698,14 +10646,14 @@ struct Obj4: Codable, Equatable {
1069810646 let obj4Private: Private
1069910647 let obj4Protocol: ProtocolClass
1070010648 let obj4Public: Public
10701- let obj4Repeat: Repeat
10702- let obj4Required: Required
1070310649 let object: Object
1070410650 let objectMapper: ObjectMapper
1070510651 let objectNode: ObjectNode
1070610652 let objectReader: ObjectReader
1070710653 let objectWriter: ObjectWriter
1070810654 let of: Of
10655+ let offsetDateTime: OffsetDateTime
10656+ let offsetTime: OffsetTime
1070910657 let oneway: Oneway
1071010658 let or: Or
1071110659 let orEq: OrEq
@@ -10727,11 +10675,10 @@ struct Obj4: Codable, Equatable {
1072710675 let regExp: RegExp
1072810676 let register: Register
1072910677 let reinterpretCast: ReinterpretCast
10730- let require: Require
10731- let requires: Requires
1073210678
1073310679 enum CodingKeys: String, CodingKey {
1073410680 case dummy = "dummy"
10681+ case mutable = "mutable"
1073510682 case namespace = "namespace"
1073610683 case native = "native"
1073710684 case new = "new"
@@ -10751,6 +10698,7 @@ struct Obj4: Codable, Equatable {
1075110698 case nullNode = "NullNode"
1075210699 case nullptr = "nullptr"
1075310700 case number = "number"
10701+ case obj4Mutating = "mutating"
1075410702 case obj4Nil = "nil"
1075510703 case obj4None = "none"
1075610704 case obj4Nonmutating = "nonmutating"
@@ -10765,14 +10713,14 @@ struct Obj4: Codable, Equatable {
1076510713 case obj4Private = "private"
1076610714 case obj4Protocol = "Protocol"
1076710715 case obj4Public = "public"
10768- case obj4Repeat = "repeat"
10769- case obj4Required = "required"
1077010716 case object = "object"
1077110717 case objectMapper = "ObjectMapper"
1077210718 case objectNode = "ObjectNode"
1077310719 case objectReader = "ObjectReader"
1077410720 case objectWriter = "ObjectWriter"
1077510721 case of = "of"
10722+ case offsetDateTime = "OffsetDateTime"
10723+ case offsetTime = "OffsetTime"
1077610724 case oneway = "oneway"
1077710725 case or = "or"
1077810726 case orEq = "or_eq"
@@ -10794,8 +10742,6 @@ struct Obj4: Codable, Equatable {
1079410742 case regExp = "RegExp"
1079510743 case register = "register"
1079610744 case reinterpretCast = "reinterpret_cast"
10797- case require = "require"
10798- case requires = "requires"
1079910745 }
1080010746 }
1080110747
@@ -10819,6 +10765,7 @@ extension Obj4 {
1081910765
1082010766 func with(
1082110767 dummy: Int? = nil,
10768+ mutable: Mutable? = nil,
1082210769 namespace: Namespace? = nil,
1082310770 native: Native? = nil,
1082410771 new: New? = nil,
@@ -10838,6 +10785,7 @@ extension Obj4 {
1083810785 nullNode: NullNode? = nil,
1083910786 nullptr: Nullptr? = nil,
1084010787 number: Number? = nil,
10788+ obj4Mutating: Mutating? = nil,
1084110789 obj4Nil: Nil? = nil,
1084210790 obj4None: NoneClass? = nil,
1084310791 obj4Nonmutating: Nonmutating? = nil,
@@ -10852,14 +10800,14 @@ extension Obj4 {
1085210800 obj4Private: Private? = nil,
1085310801 obj4Protocol: ProtocolClass? = nil,
1085410802 obj4Public: Public? = nil,
10855- obj4Repeat: Repeat? = nil,
10856- obj4Required: Required? = nil,
1085710803 object: Object? = nil,
1085810804 objectMapper: ObjectMapper? = nil,
1085910805 objectNode: ObjectNode? = nil,
1086010806 objectReader: ObjectReader? = nil,
1086110807 objectWriter: ObjectWriter? = nil,
1086210808 of: Of? = nil,
10809+ offsetDateTime: OffsetDateTime? = nil,
10810+ offsetTime: OffsetTime? = nil,
1086310811 oneway: Oneway? = nil,
1086410812 or: Or? = nil,
1086510813 orEq: OrEq? = nil,
@@ -10880,12 +10828,11 @@ extension Obj4 {
1088010828 ref: Ref? = nil,
1088110829 regExp: RegExp? = nil,
1088210830 register: Register? = nil,
10883- reinterpretCast: ReinterpretCast? = nil,
10884- require: Require? = nil,
10885- requires: Requires? = nil
10831+ reinterpretCast: ReinterpretCast? = nil
1088610832 ) -> Obj4 {
1088710833 return Obj4(
1088810834 dummy: dummy ?? self.dummy,
10835+ mutable: mutable ?? self.mutable,
1088910836 namespace: namespace ?? self.namespace,
1089010837 native: native ?? self.native,
1089110838 new: new ?? self.new,
@@ -10905,6 +10852,7 @@ extension Obj4 {
1090510852 nullNode: nullNode ?? self.nullNode,
1090610853 nullptr: nullptr ?? self.nullptr,
1090710854 number: number ?? self.number,
10855+ obj4Mutating: obj4Mutating ?? self.obj4Mutating,
1090810856 obj4Nil: obj4Nil ?? self.obj4Nil,
1090910857 obj4None: obj4None ?? self.obj4None,
1091010858 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
@@ -10919,14 +10867,14 @@ extension Obj4 {
1091910867 obj4Private: obj4Private ?? self.obj4Private,
1092010868 obj4Protocol: obj4Protocol ?? self.obj4Protocol,
1092110869 obj4Public: obj4Public ?? self.obj4Public,
10922- obj4Repeat: obj4Repeat ?? self.obj4Repeat,
10923- obj4Required: obj4Required ?? self.obj4Required,
1092410870 object: object ?? self.object,
1092510871 objectMapper: objectMapper ?? self.objectMapper,
1092610872 objectNode: objectNode ?? self.objectNode,
1092710873 objectReader: objectReader ?? self.objectReader,
1092810874 objectWriter: objectWriter ?? self.objectWriter,
1092910875 of: of ?? self.of,
10876+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
10877+ offsetTime: offsetTime ?? self.offsetTime,
1093010878 oneway: oneway ?? self.oneway,
1093110879 or: or ?? self.or,
1093210880 orEq: orEq ?? self.orEq,
@@ -10947,9 +10895,57 @@ extension Obj4 {
1094710895 ref: ref ?? self.ref,
1094810896 regExp: regExp ?? self.regExp,
1094910897 register: register ?? self.register,
10950- reinterpretCast: reinterpretCast ?? self.reinterpretCast,
10951- require: require ?? self.require,
10952- requires: requires ?? self.requires
10898+ reinterpretCast: reinterpretCast ?? self.reinterpretCast
10899+ )
10900+ }
10901+
10902+ func jsonData() throws -> Data {
10903+ return try newJSONEncoder().encode(self)
10904+ }
10905+
10906+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10907+ return String(data: try self.jsonData(), encoding: encoding)
10908+ }
10909+}
10910+
10911+//
10912+// Hashable or Equatable:
10913+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
10914+// for types that require the use of JSONAny, nor will the implementation of Hashable be
10915+// synthesized for types that have collections (such as arrays or dictionaries).
10916+
10917+// MARK: - Mutable
10918+struct Mutable: Codable, Equatable {
10919+ let mutable: Int
10920+
10921+ enum CodingKeys: String, CodingKey {
10922+ case mutable = "mutable"
10923+ }
10924+}
10925+
10926+// MARK: Mutable convenience initializers and mutators
10927+
10928+extension Mutable {
10929+ init(data: Data) throws {
10930+ self = try newJSONDecoder().decode(Mutable.self, from: data)
10931+ }
10932+
10933+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10934+ guard let data = json.data(using: encoding) else {
10935+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10936+ }
10937+ try self.init(data: data)
10938+ }
10939+
10940+ init(fromURL url: URL) throws {
10941+ try self.init(data: try Data(contentsOf: url))
10942+ }
10943+
10944+ func with(
10945+ mutable: Int? = nil
10946+ ) -> Mutable {
10947+ return Mutable(
10948+ mutable: mutable ?? self.mutable
1095310949 )
1095410950 }
1095510951
@@ -11918,6 +11914,56 @@ extension Number {
1191811914 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1191911915 // synthesized for types that have collections (such as arrays or dictionaries).
1192011916
11917+// MARK: - Mutating
11918+struct Mutating: Codable, Equatable {
11919+ let mutatingMutating: Int
11920+
11921+ enum CodingKeys: String, CodingKey {
11922+ case mutatingMutating = "mutating"
11923+ }
11924+}
11925+
11926+// MARK: Mutating convenience initializers and mutators
11927+
11928+extension Mutating {
11929+ init(data: Data) throws {
11930+ self = try newJSONDecoder().decode(Mutating.self, from: data)
11931+ }
11932+
11933+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11934+ guard let data = json.data(using: encoding) else {
11935+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11936+ }
11937+ try self.init(data: data)
11938+ }
11939+
11940+ init(fromURL url: URL) throws {
11941+ try self.init(data: try Data(contentsOf: url))
11942+ }
11943+
11944+ func with(
11945+ mutatingMutating: Int? = nil
11946+ ) -> Mutating {
11947+ return Mutating(
11948+ mutatingMutating: mutatingMutating ?? self.mutatingMutating
11949+ )
11950+ }
11951+
11952+ func jsonData() throws -> Data {
11953+ return try newJSONEncoder().encode(self)
11954+ }
11955+
11956+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11957+ return String(data: try self.jsonData(), encoding: encoding)
11958+ }
11959+}
11960+
11961+//
11962+// Hashable or Equatable:
11963+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
11964+// for types that require the use of JSONAny, nor will the implementation of Hashable be
11965+// synthesized for types that have collections (such as arrays or dictionaries).
11966+
1192111967 // MARK: - Nil
1192211968 struct Nil: Codable, Equatable {
1192311969 let nilNil: Int
@@ -12618,20 +12664,20 @@ extension Public {
1261812664 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1261912665 // synthesized for types that have collections (such as arrays or dictionaries).
1262012666
12621-// MARK: - Repeat
12622-struct Repeat: Codable, Equatable {
12623- let repeatRepeat: Int
12667+// MARK: - Object
12668+struct Object: Codable, Equatable {
12669+ let object: Int
1262412670
1262512671 enum CodingKeys: String, CodingKey {
12626- case repeatRepeat = "repeat"
12672+ case object = "object"
1262712673 }
1262812674 }
1262912675
12630-// MARK: Repeat convenience initializers and mutators
12676+// MARK: Object convenience initializers and mutators
1263112677
12632-extension Repeat {
12678+extension Object {
1263312679 init(data: Data) throws {
12634- self = try newJSONDecoder().decode(Repeat.self, from: data)
12680+ self = try newJSONDecoder().decode(Object.self, from: data)
1263512681 }
1263612682
1263712683 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12646,10 +12692,10 @@ extension Repeat {
1264612692 }
1264712693
1264812694 func with(
12649- repeatRepeat: Int? = nil
12650- ) -> Repeat {
12651- return Repeat(
12652- repeatRepeat: repeatRepeat ?? self.repeatRepeat
12695+ object: Int? = nil
12696+ ) -> Object {
12697+ return Object(
12698+ object: object ?? self.object
1265312699 )
1265412700 }
1265512701
@@ -12668,20 +12714,20 @@ extension Repeat {
1266812714 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1266912715 // synthesized for types that have collections (such as arrays or dictionaries).
1267012716
12671-// MARK: - Required
12672-struct Required: Codable, Equatable {
12673- let requiredRequired: Int
12717+// MARK: - ObjectMapper
12718+struct ObjectMapper: Codable, Equatable {
12719+ let objectMapper: Int
1267412720
1267512721 enum CodingKeys: String, CodingKey {
12676- case requiredRequired = "required"
12722+ case objectMapper = "ObjectMapper"
1267712723 }
1267812724 }
1267912725
12680-// MARK: Required convenience initializers and mutators
12726+// MARK: ObjectMapper convenience initializers and mutators
1268112727
12682-extension Required {
12728+extension ObjectMapper {
1268312729 init(data: Data) throws {
12684- self = try newJSONDecoder().decode(Required.self, from: data)
12730+ self = try newJSONDecoder().decode(ObjectMapper.self, from: data)
1268512731 }
1268612732
1268712733 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12696,10 +12742,10 @@ extension Required {
1269612742 }
1269712743
1269812744 func with(
12699- requiredRequired: Int? = nil
12700- ) -> Required {
12701- return Required(
12702- requiredRequired: requiredRequired ?? self.requiredRequired
12745+ objectMapper: Int? = nil
12746+ ) -> ObjectMapper {
12747+ return ObjectMapper(
12748+ objectMapper: objectMapper ?? self.objectMapper
1270312749 )
1270412750 }
1270512751
@@ -12718,20 +12764,20 @@ extension Required {
1271812764 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1271912765 // synthesized for types that have collections (such as arrays or dictionaries).
1272012766
12721-// MARK: - Object
12722-struct Object: Codable, Equatable {
12723- let object: Int
12767+// MARK: - ObjectNode
12768+struct ObjectNode: Codable, Equatable {
12769+ let objectNode: Int
1272412770
1272512771 enum CodingKeys: String, CodingKey {
12726- case object = "object"
12772+ case objectNode = "ObjectNode"
1272712773 }
1272812774 }
1272912775
12730-// MARK: Object convenience initializers and mutators
12776+// MARK: ObjectNode convenience initializers and mutators
1273112777
12732-extension Object {
12778+extension ObjectNode {
1273312779 init(data: Data) throws {
12734- self = try newJSONDecoder().decode(Object.self, from: data)
12780+ self = try newJSONDecoder().decode(ObjectNode.self, from: data)
1273512781 }
1273612782
1273712783 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12746,10 +12792,10 @@ extension Object {
1274612792 }
1274712793
1274812794 func with(
12749- object: Int? = nil
12750- ) -> Object {
12751- return Object(
12752- object: object ?? self.object
12795+ objectNode: Int? = nil
12796+ ) -> ObjectNode {
12797+ return ObjectNode(
12798+ objectNode: objectNode ?? self.objectNode
1275312799 )
1275412800 }
1275512801
@@ -12768,20 +12814,20 @@ extension Object {
1276812814 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1276912815 // synthesized for types that have collections (such as arrays or dictionaries).
1277012816
12771-// MARK: - ObjectMapper
12772-struct ObjectMapper: Codable, Equatable {
12773- let objectMapper: Int
12817+// MARK: - ObjectReader
12818+struct ObjectReader: Codable, Equatable {
12819+ let objectReader: Int
1277412820
1277512821 enum CodingKeys: String, CodingKey {
12776- case objectMapper = "ObjectMapper"
12822+ case objectReader = "ObjectReader"
1277712823 }
1277812824 }
1277912825
12780-// MARK: ObjectMapper convenience initializers and mutators
12826+// MARK: ObjectReader convenience initializers and mutators
1278112827
12782-extension ObjectMapper {
12828+extension ObjectReader {
1278312829 init(data: Data) throws {
12784- self = try newJSONDecoder().decode(ObjectMapper.self, from: data)
12830+ self = try newJSONDecoder().decode(ObjectReader.self, from: data)
1278512831 }
1278612832
1278712833 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12796,10 +12842,10 @@ extension ObjectMapper {
1279612842 }
1279712843
1279812844 func with(
12799- objectMapper: Int? = nil
12800- ) -> ObjectMapper {
12801- return ObjectMapper(
12802- objectMapper: objectMapper ?? self.objectMapper
12845+ objectReader: Int? = nil
12846+ ) -> ObjectReader {
12847+ return ObjectReader(
12848+ objectReader: objectReader ?? self.objectReader
1280312849 )
1280412850 }
1280512851
@@ -12818,20 +12864,20 @@ extension ObjectMapper {
1281812864 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1281912865 // synthesized for types that have collections (such as arrays or dictionaries).
1282012866
12821-// MARK: - ObjectNode
12822-struct ObjectNode: Codable, Equatable {
12823- let objectNode: Int
12867+// MARK: - ObjectWriter
12868+struct ObjectWriter: Codable, Equatable {
12869+ let objectWriter: Int
1282412870
1282512871 enum CodingKeys: String, CodingKey {
12826- case objectNode = "ObjectNode"
12872+ case objectWriter = "ObjectWriter"
1282712873 }
1282812874 }
1282912875
12830-// MARK: ObjectNode convenience initializers and mutators
12876+// MARK: ObjectWriter convenience initializers and mutators
1283112877
12832-extension ObjectNode {
12878+extension ObjectWriter {
1283312879 init(data: Data) throws {
12834- self = try newJSONDecoder().decode(ObjectNode.self, from: data)
12880+ self = try newJSONDecoder().decode(ObjectWriter.self, from: data)
1283512881 }
1283612882
1283712883 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12846,10 +12892,10 @@ extension ObjectNode {
1284612892 }
1284712893
1284812894 func with(
12849- objectNode: Int? = nil
12850- ) -> ObjectNode {
12851- return ObjectNode(
12852- objectNode: objectNode ?? self.objectNode
12895+ objectWriter: Int? = nil
12896+ ) -> ObjectWriter {
12897+ return ObjectWriter(
12898+ objectWriter: objectWriter ?? self.objectWriter
1285312899 )
1285412900 }
1285512901
@@ -12868,20 +12914,20 @@ extension ObjectNode {
1286812914 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1286912915 // synthesized for types that have collections (such as arrays or dictionaries).
1287012916
12871-// MARK: - ObjectReader
12872-struct ObjectReader: Codable, Equatable {
12873- let objectReader: Int
12917+// MARK: - Of
12918+struct Of: Codable, Equatable {
12919+ let of: Int
1287412920
1287512921 enum CodingKeys: String, CodingKey {
12876- case objectReader = "ObjectReader"
12922+ case of = "of"
1287712923 }
1287812924 }
1287912925
12880-// MARK: ObjectReader convenience initializers and mutators
12926+// MARK: Of convenience initializers and mutators
1288112927
12882-extension ObjectReader {
12928+extension Of {
1288312929 init(data: Data) throws {
12884- self = try newJSONDecoder().decode(ObjectReader.self, from: data)
12930+ self = try newJSONDecoder().decode(Of.self, from: data)
1288512931 }
1288612932
1288712933 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12896,10 +12942,10 @@ extension ObjectReader {
1289612942 }
1289712943
1289812944 func with(
12899- objectReader: Int? = nil
12900- ) -> ObjectReader {
12901- return ObjectReader(
12902- objectReader: objectReader ?? self.objectReader
12945+ of: Int? = nil
12946+ ) -> Of {
12947+ return Of(
12948+ of: of ?? self.of
1290312949 )
1290412950 }
1290512951
@@ -12918,20 +12964,20 @@ extension ObjectReader {
1291812964 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1291912965 // synthesized for types that have collections (such as arrays or dictionaries).
1292012966
12921-// MARK: - ObjectWriter
12922-struct ObjectWriter: Codable, Equatable {
12923- let objectWriter: Int
12967+// MARK: - OffsetDateTime
12968+struct OffsetDateTime: Codable, Equatable {
12969+ let offsetDateTime: Int
1292412970
1292512971 enum CodingKeys: String, CodingKey {
12926- case objectWriter = "ObjectWriter"
12972+ case offsetDateTime = "OffsetDateTime"
1292712973 }
1292812974 }
1292912975
12930-// MARK: ObjectWriter convenience initializers and mutators
12976+// MARK: OffsetDateTime convenience initializers and mutators
1293112977
12932-extension ObjectWriter {
12978+extension OffsetDateTime {
1293312979 init(data: Data) throws {
12934- self = try newJSONDecoder().decode(ObjectWriter.self, from: data)
12980+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
1293512981 }
1293612982
1293712983 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12946,10 +12992,10 @@ extension ObjectWriter {
1294612992 }
1294712993
1294812994 func with(
12949- objectWriter: Int? = nil
12950- ) -> ObjectWriter {
12951- return ObjectWriter(
12952- objectWriter: objectWriter ?? self.objectWriter
12995+ offsetDateTime: Int? = nil
12996+ ) -> OffsetDateTime {
12997+ return OffsetDateTime(
12998+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
1295312999 )
1295413000 }
1295513001
@@ -12968,20 +13014,20 @@ extension ObjectWriter {
1296813014 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1296913015 // synthesized for types that have collections (such as arrays or dictionaries).
1297013016
12971-// MARK: - Of
12972-struct Of: Codable, Equatable {
12973- let of: Int
13017+// MARK: - OffsetTime
13018+struct OffsetTime: Codable, Equatable {
13019+ let offsetTime: Int
1297413020
1297513021 enum CodingKeys: String, CodingKey {
12976- case of = "of"
13022+ case offsetTime = "OffsetTime"
1297713023 }
1297813024 }
1297913025
12980-// MARK: Of convenience initializers and mutators
13026+// MARK: OffsetTime convenience initializers and mutators
1298113027
12982-extension Of {
13028+extension OffsetTime {
1298313029 init(data: Data) throws {
12984- self = try newJSONDecoder().decode(Of.self, from: data)
13030+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
1298513031 }
1298613032
1298713033 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -12996,10 +13042,10 @@ extension Of {
1299613042 }
1299713043
1299813044 func with(
12999- of: Int? = nil
13000- ) -> Of {
13001- return Of(
13002- of: of ?? self.of
13045+ offsetTime: Int? = nil
13046+ ) -> OffsetTime {
13047+ return OffsetTime(
13048+ offsetTime: offsetTime ?? self.offsetTime
1300313049 )
1300413050 }
1300513051
@@ -14068,110 +14114,12 @@ extension ReinterpretCast {
1406814114 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1406914115 // synthesized for types that have collections (such as arrays or dictionaries).
1407014116
14071-// MARK: - Require
14072-struct Require: Codable, Equatable {
14073- let require: Int
14074-
14075- enum CodingKeys: String, CodingKey {
14076- case require = "require"
14077- }
14078-}
14079-
14080-// MARK: Require convenience initializers and mutators
14081-
14082-extension Require {
14083- init(data: Data) throws {
14084- self = try newJSONDecoder().decode(Require.self, from: data)
14085- }
14086-
14087- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14088- guard let data = json.data(using: encoding) else {
14089- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14090- }
14091- try self.init(data: data)
14092- }
14093-
14094- init(fromURL url: URL) throws {
14095- try self.init(data: try Data(contentsOf: url))
14096- }
14097-
14098- func with(
14099- require: Int? = nil
14100- ) -> Require {
14101- return Require(
14102- require: require ?? self.require
14103- )
14104- }
14105-
14106- func jsonData() throws -> Data {
14107- return try newJSONEncoder().encode(self)
14108- }
14109-
14110- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14111- return String(data: try self.jsonData(), encoding: encoding)
14112- }
14113-}
14114-
14115-//
14116-// Hashable or Equatable:
14117-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14118-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14119-// synthesized for types that have collections (such as arrays or dictionaries).
14120-
14121-// MARK: - Requires
14122-struct Requires: Codable, Equatable {
14123- let requires: Int
14124-
14125- enum CodingKeys: String, CodingKey {
14126- case requires = "requires"
14127- }
14128-}
14129-
14130-// MARK: Requires convenience initializers and mutators
14131-
14132-extension Requires {
14133- init(data: Data) throws {
14134- self = try newJSONDecoder().decode(Requires.self, from: data)
14135- }
14136-
14137- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14138- guard let data = json.data(using: encoding) else {
14139- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14140- }
14141- try self.init(data: data)
14142- }
14143-
14144- init(fromURL url: URL) throws {
14145- try self.init(data: try Data(contentsOf: url))
14146- }
14147-
14148- func with(
14149- requires: Int? = nil
14150- ) -> Requires {
14151- return Requires(
14152- requires: requires ?? self.requires
14153- )
14154- }
14155-
14156- func jsonData() throws -> Data {
14157- return try newJSONEncoder().encode(self)
14158- }
14159-
14160- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14161- return String(data: try self.jsonData(), encoding: encoding)
14162- }
14163-}
14164-
14165-//
14166-// Hashable or Equatable:
14167-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14168-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14169-// synthesized for types that have collections (such as arrays or dictionaries).
14170-
1417114117 // MARK: - Obj5
1417214118 struct Obj5: Codable, Equatable {
1417314119 let dummy: Int
1417414120 let kSerializer: KSerializer
14121+ let obj5Repeat: Repeat
14122+ let obj5Required: Required
1417514123 let obj5Rethrows: Rethrows
1417614124 let obj5Return: Return
1417714125 let obj5Right: Right
@@ -14185,12 +14133,11 @@ struct Obj5: Codable, Equatable {
1418514133 let obj5Throw: Throw
1418614134 let obj5Throws: Throws
1418714135 let obj5True: True
14188- let obj5Try: Try
14189- let obj5Type: Obj5Type
14190- let obj5Typealias: Typealias
1419114136 let primitiveKind: PrimitiveKind
1419214137 let purpleSelf: Obj5Self
1419314138 let purpleTrue: TrueClass
14139+ let require: Require
14140+ let requires: Requires
1419414141 let restrict: Restrict
1419514142 let retain: Retain
1419614143 let runtimeType: RuntimeType
@@ -14234,11 +14181,12 @@ struct Obj5: Codable, Equatable {
1423414181 let toString: ToString
1423514182 let topLevel: TopLevelClass
1423614183 let transient: Transient
14237- let type: TypeClass
1423814184
1423914185 enum CodingKeys: String, CodingKey {
1424014186 case dummy = "dummy"
1424114187 case kSerializer = "KSerializer"
14188+ case obj5Repeat = "repeat"
14189+ case obj5Required = "required"
1424214190 case obj5Rethrows = "rethrows"
1424314191 case obj5Return = "return"
1424414192 case obj5Right = "right"
@@ -14252,12 +14200,11 @@ struct Obj5: Codable, Equatable {
1425214200 case obj5Throw = "throw"
1425314201 case obj5Throws = "throws"
1425414202 case obj5True = "True"
14255- case obj5Try = "try"
14256- case obj5Type = "type"
14257- case obj5Typealias = "typealias"
1425814203 case primitiveKind = "PrimitiveKind"
1425914204 case purpleSelf = "self"
1426014205 case purpleTrue = "true"
14206+ case require = "require"
14207+ case requires = "requires"
1426114208 case restrict = "restrict"
1426214209 case retain = "retain"
1426314210 case runtimeType = "runtimeType"
@@ -14301,7 +14248,6 @@ struct Obj5: Codable, Equatable {
1430114248 case toString = "toString"
1430214249 case topLevel = "top_level"
1430314250 case transient = "transient"
14304- case type = "Type"
1430514251 }
1430614252 }
1430714253
@@ -14326,6 +14272,8 @@ extension Obj5 {
1432614272 func with(
1432714273 dummy: Int? = nil,
1432814274 kSerializer: KSerializer? = nil,
14275+ obj5Repeat: Repeat? = nil,
14276+ obj5Required: Required? = nil,
1432914277 obj5Rethrows: Rethrows? = nil,
1433014278 obj5Return: Return? = nil,
1433114279 obj5Right: Right? = nil,
@@ -14339,12 +14287,11 @@ extension Obj5 {
1433914287 obj5Throw: Throw? = nil,
1434014288 obj5Throws: Throws? = nil,
1434114289 obj5True: True? = nil,
14342- obj5Try: Try? = nil,
14343- obj5Type: Obj5Type? = nil,
14344- obj5Typealias: Typealias? = nil,
1434514290 primitiveKind: PrimitiveKind? = nil,
1434614291 purpleSelf: Obj5Self? = nil,
1434714292 purpleTrue: TrueClass? = nil,
14293+ require: Require? = nil,
14294+ requires: Requires? = nil,
1434814295 restrict: Restrict? = nil,
1434914296 retain: Retain? = nil,
1435014297 runtimeType: RuntimeType? = nil,
@@ -14387,12 +14334,13 @@ extension Obj5 {
1438714334 toJSON: ToJSON? = nil,
1438814335 toString: ToString? = nil,
1438914336 topLevel: TopLevelClass? = nil,
14390- transient: Transient? = nil,
14391- type: TypeClass? = nil
14337+ transient: Transient? = nil
1439214338 ) -> Obj5 {
1439314339 return Obj5(
1439414340 dummy: dummy ?? self.dummy,
1439514341 kSerializer: kSerializer ?? self.kSerializer,
14342+ obj5Repeat: obj5Repeat ?? self.obj5Repeat,
14343+ obj5Required: obj5Required ?? self.obj5Required,
1439614344 obj5Rethrows: obj5Rethrows ?? self.obj5Rethrows,
1439714345 obj5Return: obj5Return ?? self.obj5Return,
1439814346 obj5Right: obj5Right ?? self.obj5Right,
@@ -14406,12 +14354,11 @@ extension Obj5 {
1440614354 obj5Throw: obj5Throw ?? self.obj5Throw,
1440714355 obj5Throws: obj5Throws ?? self.obj5Throws,
1440814356 obj5True: obj5True ?? self.obj5True,
14409- obj5Try: obj5Try ?? self.obj5Try,
14410- obj5Type: obj5Type ?? self.obj5Type,
14411- obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1441214357 primitiveKind: primitiveKind ?? self.primitiveKind,
1441314358 purpleSelf: purpleSelf ?? self.purpleSelf,
1441414359 purpleTrue: purpleTrue ?? self.purpleTrue,
14360+ require: require ?? self.require,
14361+ requires: requires ?? self.requires,
1441514362 restrict: restrict ?? self.restrict,
1441614363 retain: retain ?? self.retain,
1441714364 runtimeType: runtimeType ?? self.runtimeType,
@@ -14454,8 +14401,7 @@ extension Obj5 {
1445414401 toJSON: toJSON ?? self.toJSON,
1445514402 toString: toString ?? self.toString,
1445614403 topLevel: topLevel ?? self.topLevel,
14457- transient: transient ?? self.transient,
14458- type: type ?? self.type
14404+ transient: transient ?? self.transient
1445914405 )
1446014406 }
1446114407
@@ -14524,6 +14470,106 @@ extension KSerializer {
1452414470 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1452514471 // synthesized for types that have collections (such as arrays or dictionaries).
1452614472
14473+// MARK: - Repeat
14474+struct Repeat: Codable, Equatable {
14475+ let repeatRepeat: Int
14476+
14477+ enum CodingKeys: String, CodingKey {
14478+ case repeatRepeat = "repeat"
14479+ }
14480+}
14481+
14482+// MARK: Repeat convenience initializers and mutators
14483+
14484+extension Repeat {
14485+ init(data: Data) throws {
14486+ self = try newJSONDecoder().decode(Repeat.self, from: data)
14487+ }
14488+
14489+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14490+ guard let data = json.data(using: encoding) else {
14491+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14492+ }
14493+ try self.init(data: data)
14494+ }
14495+
14496+ init(fromURL url: URL) throws {
14497+ try self.init(data: try Data(contentsOf: url))
14498+ }
14499+
14500+ func with(
14501+ repeatRepeat: Int? = nil
14502+ ) -> Repeat {
14503+ return Repeat(
14504+ repeatRepeat: repeatRepeat ?? self.repeatRepeat
14505+ )
14506+ }
14507+
14508+ func jsonData() throws -> Data {
14509+ return try newJSONEncoder().encode(self)
14510+ }
14511+
14512+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14513+ return String(data: try self.jsonData(), encoding: encoding)
14514+ }
14515+}
14516+
14517+//
14518+// Hashable or Equatable:
14519+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14520+// for types that require the use of JSONAny, nor will the implementation of Hashable be
14521+// synthesized for types that have collections (such as arrays or dictionaries).
14522+
14523+// MARK: - Required
14524+struct Required: Codable, Equatable {
14525+ let requiredRequired: Int
14526+
14527+ enum CodingKeys: String, CodingKey {
14528+ case requiredRequired = "required"
14529+ }
14530+}
14531+
14532+// MARK: Required convenience initializers and mutators
14533+
14534+extension Required {
14535+ init(data: Data) throws {
14536+ self = try newJSONDecoder().decode(Required.self, from: data)
14537+ }
14538+
14539+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14540+ guard let data = json.data(using: encoding) else {
14541+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14542+ }
14543+ try self.init(data: data)
14544+ }
14545+
14546+ init(fromURL url: URL) throws {
14547+ try self.init(data: try Data(contentsOf: url))
14548+ }
14549+
14550+ func with(
14551+ requiredRequired: Int? = nil
14552+ ) -> Required {
14553+ return Required(
14554+ requiredRequired: requiredRequired ?? self.requiredRequired
14555+ )
14556+ }
14557+
14558+ func jsonData() throws -> Data {
14559+ return try newJSONEncoder().encode(self)
14560+ }
14561+
14562+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14563+ return String(data: try self.jsonData(), encoding: encoding)
14564+ }
14565+}
14566+
14567+//
14568+// Hashable or Equatable:
14569+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14570+// for types that require the use of JSONAny, nor will the implementation of Hashable be
14571+// synthesized for types that have collections (such as arrays or dictionaries).
14572+
1452714573 // MARK: - Rethrows
1452814574 struct Rethrows: Codable, Equatable {
1452914575 let rethrowsRethrows: Int
@@ -15174,70 +15220,20 @@ extension True {
1517415220 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1517515221 // synthesized for types that have collections (such as arrays or dictionaries).
1517615222
15177-// MARK: - Try
15178-struct Try: Codable, Equatable {
15179- let tryTry: Int
15180-
15181- enum CodingKeys: String, CodingKey {
15182- case tryTry = "try"
15183- }
15184-}
15185-
15186-// MARK: Try convenience initializers and mutators
15187-
15188-extension Try {
15189- init(data: Data) throws {
15190- self = try newJSONDecoder().decode(Try.self, from: data)
15191- }
15192-
15193- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15194- guard let data = json.data(using: encoding) else {
15195- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15196- }
15197- try self.init(data: data)
15198- }
15199-
15200- init(fromURL url: URL) throws {
15201- try self.init(data: try Data(contentsOf: url))
15202- }
15203-
15204- func with(
15205- tryTry: Int? = nil
15206- ) -> Try {
15207- return Try(
15208- tryTry: tryTry ?? self.tryTry
15209- )
15210- }
15211-
15212- func jsonData() throws -> Data {
15213- return try newJSONEncoder().encode(self)
15214- }
15215-
15216- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15217- return String(data: try self.jsonData(), encoding: encoding)
15218- }
15219-}
15220-
15221-//
15222-// Hashable or Equatable:
15223-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15224-// for types that require the use of JSONAny, nor will the implementation of Hashable be
15225-// synthesized for types that have collections (such as arrays or dictionaries).
15226-
15227-// MARK: - Obj5Type
15228-struct Obj5Type: Codable, Equatable {
15229- let type: Int
15223+// MARK: - PrimitiveKind
15224+struct PrimitiveKind: Codable, Equatable {
15225+ let primitiveKind: Int
1523015226
1523115227 enum CodingKeys: String, CodingKey {
15232- case type = "type"
15228+ case primitiveKind = "PrimitiveKind"
1523315229 }
1523415230 }
1523515231
15236-// MARK: Obj5Type convenience initializers and mutators
15232+// MARK: PrimitiveKind convenience initializers and mutators
1523715233
15238-extension Obj5Type {
15234+extension PrimitiveKind {
1523915235 init(data: Data) throws {
15240- self = try newJSONDecoder().decode(Obj5Type.self, from: data)
15236+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1524115237 }
1524215238
1524315239 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15252,10 +15248,10 @@ extension Obj5Type {
1525215248 }
1525315249
1525415250 func with(
15255- type: Int? = nil
15256- ) -> Obj5Type {
15257- return Obj5Type(
15258- type: type ?? self.type
15251+ primitiveKind: Int? = nil
15252+ ) -> PrimitiveKind {
15253+ return PrimitiveKind(
15254+ primitiveKind: primitiveKind ?? self.primitiveKind
1525915255 )
1526015256 }
1526115257
@@ -15274,20 +15270,20 @@ extension Obj5Type {
1527415270 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1527515271 // synthesized for types that have collections (such as arrays or dictionaries).
1527615272
15277-// MARK: - Typealias
15278-struct Typealias: Codable, Equatable {
15279- let typealiasTypealias: Int
15273+// MARK: - Obj5Self
15274+struct Obj5Self: Codable, Equatable {
15275+ let selfSelf: Int
1528015276
1528115277 enum CodingKeys: String, CodingKey {
15282- case typealiasTypealias = "typealias"
15278+ case selfSelf = "self"
1528315279 }
1528415280 }
1528515281
15286-// MARK: Typealias convenience initializers and mutators
15282+// MARK: Obj5Self convenience initializers and mutators
1528715283
15288-extension Typealias {
15284+extension Obj5Self {
1528915285 init(data: Data) throws {
15290- self = try newJSONDecoder().decode(Typealias.self, from: data)
15286+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1529115287 }
1529215288
1529315289 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15302,10 +15298,10 @@ extension Typealias {
1530215298 }
1530315299
1530415300 func with(
15305- typealiasTypealias: Int? = nil
15306- ) -> Typealias {
15307- return Typealias(
15308- typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
15301+ selfSelf: Int? = nil
15302+ ) -> Obj5Self {
15303+ return Obj5Self(
15304+ selfSelf: selfSelf ?? self.selfSelf
1530915305 )
1531015306 }
1531115307
@@ -15324,20 +15320,20 @@ extension Typealias {
1532415320 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1532515321 // synthesized for types that have collections (such as arrays or dictionaries).
1532615322
15327-// MARK: - PrimitiveKind
15328-struct PrimitiveKind: Codable, Equatable {
15329- let primitiveKind: Int
15323+// MARK: - TrueClass
15324+struct TrueClass: Codable, Equatable {
15325+ let trueTrue: Int
1533015326
1533115327 enum CodingKeys: String, CodingKey {
15332- case primitiveKind = "PrimitiveKind"
15328+ case trueTrue = "true"
1533315329 }
1533415330 }
1533515331
15336-// MARK: PrimitiveKind convenience initializers and mutators
15332+// MARK: TrueClass convenience initializers and mutators
1533715333
15338-extension PrimitiveKind {
15334+extension TrueClass {
1533915335 init(data: Data) throws {
15340- self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
15336+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1534115337 }
1534215338
1534315339 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15352,10 +15348,10 @@ extension PrimitiveKind {
1535215348 }
1535315349
1535415350 func with(
15355- primitiveKind: Int? = nil
15356- ) -> PrimitiveKind {
15357- return PrimitiveKind(
15358- primitiveKind: primitiveKind ?? self.primitiveKind
15351+ trueTrue: Int? = nil
15352+ ) -> TrueClass {
15353+ return TrueClass(
15354+ trueTrue: trueTrue ?? self.trueTrue
1535915355 )
1536015356 }
1536115357
@@ -15374,20 +15370,20 @@ extension PrimitiveKind {
1537415370 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1537515371 // synthesized for types that have collections (such as arrays or dictionaries).
1537615372
15377-// MARK: - Obj5Self
15378-struct Obj5Self: Codable, Equatable {
15379- let selfSelf: Int
15373+// MARK: - Require
15374+struct Require: Codable, Equatable {
15375+ let require: Int
1538015376
1538115377 enum CodingKeys: String, CodingKey {
15382- case selfSelf = "self"
15378+ case require = "require"
1538315379 }
1538415380 }
1538515381
15386-// MARK: Obj5Self convenience initializers and mutators
15382+// MARK: Require convenience initializers and mutators
1538715383
15388-extension Obj5Self {
15384+extension Require {
1538915385 init(data: Data) throws {
15390- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
15386+ self = try newJSONDecoder().decode(Require.self, from: data)
1539115387 }
1539215388
1539315389 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15402,10 +15398,10 @@ extension Obj5Self {
1540215398 }
1540315399
1540415400 func with(
15405- selfSelf: Int? = nil
15406- ) -> Obj5Self {
15407- return Obj5Self(
15408- selfSelf: selfSelf ?? self.selfSelf
15401+ require: Int? = nil
15402+ ) -> Require {
15403+ return Require(
15404+ require: require ?? self.require
1540915405 )
1541015406 }
1541115407
@@ -15424,20 +15420,20 @@ extension Obj5Self {
1542415420 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1542515421 // synthesized for types that have collections (such as arrays or dictionaries).
1542615422
15427-// MARK: - TrueClass
15428-struct TrueClass: Codable, Equatable {
15429- let trueTrue: Int
15423+// MARK: - Requires
15424+struct Requires: Codable, Equatable {
15425+ let requires: Int
1543015426
1543115427 enum CodingKeys: String, CodingKey {
15432- case trueTrue = "true"
15428+ case requires = "requires"
1543315429 }
1543415430 }
1543515431
15436-// MARK: TrueClass convenience initializers and mutators
15432+// MARK: Requires convenience initializers and mutators
1543715433
15438-extension TrueClass {
15434+extension Requires {
1543915435 init(data: Data) throws {
15440- self = try newJSONDecoder().decode(TrueClass.self, from: data)
15436+ self = try newJSONDecoder().decode(Requires.self, from: data)
1544115437 }
1544215438
1544315439 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15452,10 +15448,10 @@ extension TrueClass {
1545215448 }
1545315449
1545415450 func with(
15455- trueTrue: Int? = nil
15456- ) -> TrueClass {
15457- return TrueClass(
15458- trueTrue: trueTrue ?? self.trueTrue
15451+ requires: Int? = nil
15452+ ) -> Requires {
15453+ return Requires(
15454+ requires: requires ?? self.requires
1545915455 )
1546015456 }
1546115457
@@ -17624,65 +17620,19 @@ extension Transient {
1762417620 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1762517621 // synthesized for types that have collections (such as arrays or dictionaries).
1762617622
17627-// MARK: - TypeClass
17628-struct TypeClass: Codable, Equatable {
17629- let type: Int
17630-
17631- enum CodingKeys: String, CodingKey {
17632- case type = "Type"
17633- }
17634-}
17635-
17636-// MARK: TypeClass convenience initializers and mutators
17637-
17638-extension TypeClass {
17639- init(data: Data) throws {
17640- self = try newJSONDecoder().decode(TypeClass.self, from: data)
17641- }
17642-
17643- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17644- guard let data = json.data(using: encoding) else {
17645- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17646- }
17647- try self.init(data: data)
17648- }
17649-
17650- init(fromURL url: URL) throws {
17651- try self.init(data: try Data(contentsOf: url))
17652- }
17653-
17654- func with(
17655- type: Int? = nil
17656- ) -> TypeClass {
17657- return TypeClass(
17658- type: type ?? self.type
17659- )
17660- }
17661-
17662- func jsonData() throws -> Data {
17663- return try newJSONEncoder().encode(self)
17664- }
17665-
17666- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17667- return String(data: try self.jsonData(), encoding: encoding)
17668- }
17669-}
17670-
17671-//
17672-// Hashable or Equatable:
17673-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17674-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17675-// synthesized for types that have collections (such as arrays or dictionaries).
17676-
1767717623 // MARK: - Obj6
1767817624 struct Obj6: Codable, Equatable {
1767917625 let dummy: Int
17626+ let obj6Try: Try
17627+ let obj6Type: Obj6Type
17628+ let obj6Typealias: Typealias
1768017629 let obj6Unowned: Unowned
1768117630 let obj6Var: Var
1768217631 let obj6Weak: Weak
1768317632 let obj6Where: Where
1768417633 let obj6While: While
1768517634 let obj6WillSet: WillSet
17635+ let type: TypeClass
1768617636 let typedef: Typedef
1768717637 let typeid: Typeid
1768817638 let typename: Typename
@@ -17713,12 +17663,16 @@ struct Obj6: Codable, Equatable {
1771317663
1771417664 enum CodingKeys: String, CodingKey {
1771517665 case dummy = "dummy"
17666+ case obj6Try = "try"
17667+ case obj6Type = "type"
17668+ case obj6Typealias = "typealias"
1771617669 case obj6Unowned = "unowned"
1771717670 case obj6Var = "var"
1771817671 case obj6Weak = "weak"
1771917672 case obj6Where = "where"
1772017673 case obj6While = "while"
1772117674 case obj6WillSet = "willSet"
17675+ case type = "Type"
1772217676 case typedef = "typedef"
1772317677 case typeid = "typeid"
1772417678 case typename = "typename"
@@ -17769,12 +17723,16 @@ extension Obj6 {
1776917723
1777017724 func with(
1777117725 dummy: Int? = nil,
17726+ obj6Try: Try? = nil,
17727+ obj6Type: Obj6Type? = nil,
17728+ obj6Typealias: Typealias? = nil,
1777217729 obj6Unowned: Unowned? = nil,
1777317730 obj6Var: Var? = nil,
1777417731 obj6Weak: Weak? = nil,
1777517732 obj6Where: Where? = nil,
1777617733 obj6While: While? = nil,
1777717734 obj6WillSet: WillSet? = nil,
17735+ type: TypeClass? = nil,
1777817736 typedef: Typedef? = nil,
1777917737 typeid: Typeid? = nil,
1778017738 typename: Typename? = nil,
@@ -17805,12 +17763,16 @@ extension Obj6 {
1780517763 ) -> Obj6 {
1780617764 return Obj6(
1780717765 dummy: dummy ?? self.dummy,
17766+ obj6Try: obj6Try ?? self.obj6Try,
17767+ obj6Type: obj6Type ?? self.obj6Type,
17768+ obj6Typealias: obj6Typealias ?? self.obj6Typealias,
1780817769 obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1780917770 obj6Var: obj6Var ?? self.obj6Var,
1781017771 obj6Weak: obj6Weak ?? self.obj6Weak,
1781117772 obj6Where: obj6Where ?? self.obj6Where,
1781217773 obj6While: obj6While ?? self.obj6While,
1781317774 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17775+ type: type ?? self.type,
1781417776 typedef: typedef ?? self.typedef,
1781517777 typeid: typeid ?? self.typeid,
1781617778 typename: typename ?? self.typename,
@@ -17856,6 +17818,156 @@ extension Obj6 {
1785617818 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1785717819 // synthesized for types that have collections (such as arrays or dictionaries).
1785817820
17821+// MARK: - Try
17822+struct Try: Codable, Equatable {
17823+ let tryTry: Int
17824+
17825+ enum CodingKeys: String, CodingKey {
17826+ case tryTry = "try"
17827+ }
17828+}
17829+
17830+// MARK: Try convenience initializers and mutators
17831+
17832+extension Try {
17833+ init(data: Data) throws {
17834+ self = try newJSONDecoder().decode(Try.self, from: data)
17835+ }
17836+
17837+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17838+ guard let data = json.data(using: encoding) else {
17839+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17840+ }
17841+ try self.init(data: data)
17842+ }
17843+
17844+ init(fromURL url: URL) throws {
17845+ try self.init(data: try Data(contentsOf: url))
17846+ }
17847+
17848+ func with(
17849+ tryTry: Int? = nil
17850+ ) -> Try {
17851+ return Try(
17852+ tryTry: tryTry ?? self.tryTry
17853+ )
17854+ }
17855+
17856+ func jsonData() throws -> Data {
17857+ return try newJSONEncoder().encode(self)
17858+ }
17859+
17860+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17861+ return String(data: try self.jsonData(), encoding: encoding)
17862+ }
17863+}
17864+
17865+//
17866+// Hashable or Equatable:
17867+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17868+// for types that require the use of JSONAny, nor will the implementation of Hashable be
17869+// synthesized for types that have collections (such as arrays or dictionaries).
17870+
17871+// MARK: - Obj6Type
17872+struct Obj6Type: Codable, Equatable {
17873+ let type: Int
17874+
17875+ enum CodingKeys: String, CodingKey {
17876+ case type = "type"
17877+ }
17878+}
17879+
17880+// MARK: Obj6Type convenience initializers and mutators
17881+
17882+extension Obj6Type {
17883+ init(data: Data) throws {
17884+ self = try newJSONDecoder().decode(Obj6Type.self, from: data)
17885+ }
17886+
17887+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17888+ guard let data = json.data(using: encoding) else {
17889+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17890+ }
17891+ try self.init(data: data)
17892+ }
17893+
17894+ init(fromURL url: URL) throws {
17895+ try self.init(data: try Data(contentsOf: url))
17896+ }
17897+
17898+ func with(
17899+ type: Int? = nil
17900+ ) -> Obj6Type {
17901+ return Obj6Type(
17902+ type: type ?? self.type
17903+ )
17904+ }
17905+
17906+ func jsonData() throws -> Data {
17907+ return try newJSONEncoder().encode(self)
17908+ }
17909+
17910+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17911+ return String(data: try self.jsonData(), encoding: encoding)
17912+ }
17913+}
17914+
17915+//
17916+// Hashable or Equatable:
17917+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17918+// for types that require the use of JSONAny, nor will the implementation of Hashable be
17919+// synthesized for types that have collections (such as arrays or dictionaries).
17920+
17921+// MARK: - Typealias
17922+struct Typealias: Codable, Equatable {
17923+ let typealiasTypealias: Int
17924+
17925+ enum CodingKeys: String, CodingKey {
17926+ case typealiasTypealias = "typealias"
17927+ }
17928+}
17929+
17930+// MARK: Typealias convenience initializers and mutators
17931+
17932+extension Typealias {
17933+ init(data: Data) throws {
17934+ self = try newJSONDecoder().decode(Typealias.self, from: data)
17935+ }
17936+
17937+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17938+ guard let data = json.data(using: encoding) else {
17939+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17940+ }
17941+ try self.init(data: data)
17942+ }
17943+
17944+ init(fromURL url: URL) throws {
17945+ try self.init(data: try Data(contentsOf: url))
17946+ }
17947+
17948+ func with(
17949+ typealiasTypealias: Int? = nil
17950+ ) -> Typealias {
17951+ return Typealias(
17952+ typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
17953+ )
17954+ }
17955+
17956+ func jsonData() throws -> Data {
17957+ return try newJSONEncoder().encode(self)
17958+ }
17959+
17960+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17961+ return String(data: try self.jsonData(), encoding: encoding)
17962+ }
17963+}
17964+
17965+//
17966+// Hashable or Equatable:
17967+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17968+// for types that require the use of JSONAny, nor will the implementation of Hashable be
17969+// synthesized for types that have collections (such as arrays or dictionaries).
17970+
1785917971 // MARK: - Unowned
1786017972 struct Unowned: Codable, Equatable {
1786117973 let unownedUnowned: Int
@@ -18156,6 +18268,56 @@ extension WillSet {
1815618268 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1815718269 // synthesized for types that have collections (such as arrays or dictionaries).
1815818270
18271+// MARK: - TypeClass
18272+struct TypeClass: Codable, Equatable {
18273+ let type: Int
18274+
18275+ enum CodingKeys: String, CodingKey {
18276+ case type = "Type"
18277+ }
18278+}
18279+
18280+// MARK: TypeClass convenience initializers and mutators
18281+
18282+extension TypeClass {
18283+ init(data: Data) throws {
18284+ self = try newJSONDecoder().decode(TypeClass.self, from: data)
18285+ }
18286+
18287+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18288+ guard let data = json.data(using: encoding) else {
18289+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18290+ }
18291+ try self.init(data: data)
18292+ }
18293+
18294+ init(fromURL url: URL) throws {
18295+ try self.init(data: try Data(contentsOf: url))
18296+ }
18297+
18298+ func with(
18299+ type: Int? = nil
18300+ ) -> TypeClass {
18301+ return TypeClass(
18302+ type: type ?? self.type
18303+ )
18304+ }
18305+
18306+ func jsonData() throws -> Data {
18307+ return try newJSONEncoder().encode(self)
18308+ }
18309+
18310+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18311+ return String(data: try self.jsonData(), encoding: encoding)
18312+ }
18313+}
18314+
18315+//
18316+// Hashable or Equatable:
18317+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18318+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18319+// synthesized for types that have collections (such as arrays or dictionaries).
18320+
1815918321 // MARK: - Typedef
1816018322 struct Typedef: Codable, Equatable {
1816118323 let typedef: Int
Mswiftsendable-true--1c3982c78639 / quicktype.swift+597 −453
@@ -6352,6 +6352,7 @@ struct Obj3: Codable, Sendable {
63526352 let jsonWriter: JSONWriter
63536353 let lambda: Lambda
63546354 let list: List
6355+ let localDate: LocalDate
63556356 let locale: LocaleClass
63566357 let lock: Lock
63576358 let long: Long
@@ -6361,7 +6362,6 @@ struct Obj3: Codable, Sendable {
63616362 let marshalJSON: MarshalJSON
63626363 let metadataPropertyHandling: MetadataPropertyHandling
63636364 let module: Module
6364- let mutable: Mutable
63656365 let obj3Get: Get
63666366 let obj3Guard: Guard
63676367 let obj3If: If
@@ -6377,7 +6377,6 @@ struct Obj3: Codable, Sendable {
63776377 let obj3Lazy: Lazy
63786378 let obj3Left: Left
63796379 let obj3Let: Let
6380- let obj3Mutating: Mutating
63816380
63826381 enum CodingKeys: String, CodingKey {
63836382 case dummy = "dummy"
@@ -6420,6 +6419,7 @@ struct Obj3: Codable, Sendable {
64206419 case jsonWriter = "json_writer"
64216420 case lambda = "lambda"
64226421 case list = "list"
6422+ case localDate = "LocalDate"
64236423 case locale = "Locale"
64246424 case lock = "lock"
64256425 case long = "long"
@@ -6429,7 +6429,6 @@ struct Obj3: Codable, Sendable {
64296429 case marshalJSON = "MarshalJSON"
64306430 case metadataPropertyHandling = "metadata_property_handling"
64316431 case module = "module"
6432- case mutable = "mutable"
64336432 case obj3Get = "get"
64346433 case obj3Guard = "guard"
64356434 case obj3If = "if"
@@ -6445,7 +6444,6 @@ struct Obj3: Codable, Sendable {
64456444 case obj3Lazy = "lazy"
64466445 case obj3Left = "left"
64476446 case obj3Let = "let"
6448- case obj3Mutating = "mutating"
64496447 }
64506448 }
64516449
@@ -6508,6 +6506,7 @@ extension Obj3 {
65086506 jsonWriter: JSONWriter? = nil,
65096507 lambda: Lambda? = nil,
65106508 list: List? = nil,
6509+ localDate: LocalDate? = nil,
65116510 locale: LocaleClass? = nil,
65126511 lock: Lock? = nil,
65136512 long: Long? = nil,
@@ -6517,7 +6516,6 @@ extension Obj3 {
65176516 marshalJSON: MarshalJSON? = nil,
65186517 metadataPropertyHandling: MetadataPropertyHandling? = nil,
65196518 module: Module? = nil,
6520- mutable: Mutable? = nil,
65216519 obj3Get: Get? = nil,
65226520 obj3Guard: Guard? = nil,
65236521 obj3If: If? = nil,
@@ -6532,8 +6530,7 @@ extension Obj3 {
65326530 obj3JSON: JSON? = nil,
65336531 obj3Lazy: Lazy? = nil,
65346532 obj3Left: Left? = nil,
6535- obj3Let: Let? = nil,
6536- obj3Mutating: Mutating? = nil
6533+ obj3Let: Let? = nil
65376534 ) -> Obj3 {
65386535 return Obj3(
65396536 dummy: dummy ?? self.dummy,
@@ -6576,6 +6573,7 @@ extension Obj3 {
65766573 jsonWriter: jsonWriter ?? self.jsonWriter,
65776574 lambda: lambda ?? self.lambda,
65786575 list: list ?? self.list,
6576+ localDate: localDate ?? self.localDate,
65796577 locale: locale ?? self.locale,
65806578 lock: lock ?? self.lock,
65816579 long: long ?? self.long,
@@ -6585,7 +6583,6 @@ extension Obj3 {
65856583 marshalJSON: marshalJSON ?? self.marshalJSON,
65866584 metadataPropertyHandling: metadataPropertyHandling ?? self.metadataPropertyHandling,
65876585 module: module ?? self.module,
6588- mutable: mutable ?? self.mutable,
65896586 obj3Get: obj3Get ?? self.obj3Get,
65906587 obj3Guard: obj3Guard ?? self.obj3Guard,
65916588 obj3If: obj3If ?? self.obj3If,
@@ -6600,8 +6597,7 @@ extension Obj3 {
66006597 obj3JSON: obj3JSON ?? self.obj3JSON,
66016598 obj3Lazy: obj3Lazy ?? self.obj3Lazy,
66026599 obj3Left: obj3Left ?? self.obj3Left,
6603- obj3Let: obj3Let ?? self.obj3Let,
6604- obj3Mutating: obj3Mutating ?? self.obj3Mutating
6600+ obj3Let: obj3Let ?? self.obj3Let
66056601 )
66066602 }
66076603
@@ -8330,6 +8326,50 @@ extension List {
83308326 }
83318327 }
83328328
8329+// MARK: - LocalDate
8330+struct LocalDate: Codable, Sendable {
8331+ let localDate: Int
8332+
8333+ enum CodingKeys: String, CodingKey {
8334+ case localDate = "LocalDate"
8335+ }
8336+}
8337+
8338+// MARK: LocalDate convenience initializers and mutators
8339+
8340+extension LocalDate {
8341+ init(data: Data) throws {
8342+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
8343+ }
8344+
8345+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8346+ guard let data = json.data(using: encoding) else {
8347+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8348+ }
8349+ try self.init(data: data)
8350+ }
8351+
8352+ init(fromURL url: URL) throws {
8353+ try self.init(data: try Data(contentsOf: url))
8354+ }
8355+
8356+ func with(
8357+ localDate: Int? = nil
8358+ ) -> LocalDate {
8359+ return LocalDate(
8360+ localDate: localDate ?? self.localDate
8361+ )
8362+ }
8363+
8364+ func jsonData() throws -> Data {
8365+ return try newJSONEncoder().encode(self)
8366+ }
8367+
8368+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8369+ return String(data: try self.jsonData(), encoding: encoding)
8370+ }
8371+}
8372+
83338373 // MARK: - LocaleClass
83348374 struct LocaleClass: Codable, Sendable {
83358375 let locale: Int
@@ -8726,50 +8766,6 @@ extension Module {
87268766 }
87278767 }
87288768
8729-// MARK: - Mutable
8730-struct Mutable: Codable, Sendable {
8731- let mutable: Int
8732-
8733- enum CodingKeys: String, CodingKey {
8734- case mutable = "mutable"
8735- }
8736-}
8737-
8738-// MARK: Mutable convenience initializers and mutators
8739-
8740-extension Mutable {
8741- init(data: Data) throws {
8742- self = try newJSONDecoder().decode(Mutable.self, from: data)
8743- }
8744-
8745- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8746- guard let data = json.data(using: encoding) else {
8747- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8748- }
8749- try self.init(data: data)
8750- }
8751-
8752- init(fromURL url: URL) throws {
8753- try self.init(data: try Data(contentsOf: url))
8754- }
8755-
8756- func with(
8757- mutable: Int? = nil
8758- ) -> Mutable {
8759- return Mutable(
8760- mutable: mutable ?? self.mutable
8761- )
8762- }
8763-
8764- func jsonData() throws -> Data {
8765- return try newJSONEncoder().encode(self)
8766- }
8767-
8768- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8769- return String(data: try self.jsonData(), encoding: encoding)
8770- }
8771-}
8772-
87738769 // MARK: - Get
87748770 struct Get: Codable, Sendable {
87758771 let getGet: Int
@@ -9430,53 +9426,10 @@ extension Let {
94309426 }
94319427 }
94329428
9433-// MARK: - Mutating
9434-struct Mutating: Codable, Sendable {
9435- let mutatingMutating: Int
9436-
9437- enum CodingKeys: String, CodingKey {
9438- case mutatingMutating = "mutating"
9439- }
9440-}
9441-
9442-// MARK: Mutating convenience initializers and mutators
9443-
9444-extension Mutating {
9445- init(data: Data) throws {
9446- self = try newJSONDecoder().decode(Mutating.self, from: data)
9447- }
9448-
9449- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9450- guard let data = json.data(using: encoding) else {
9451- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9452- }
9453- try self.init(data: data)
9454- }
9455-
9456- init(fromURL url: URL) throws {
9457- try self.init(data: try Data(contentsOf: url))
9458- }
9459-
9460- func with(
9461- mutatingMutating: Int? = nil
9462- ) -> Mutating {
9463- return Mutating(
9464- mutatingMutating: mutatingMutating ?? self.mutatingMutating
9465- )
9466- }
9467-
9468- func jsonData() throws -> Data {
9469- return try newJSONEncoder().encode(self)
9470- }
9471-
9472- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9473- return String(data: try self.jsonData(), encoding: encoding)
9474- }
9475-}
9476-
94779429 // MARK: - Obj4
94789430 struct Obj4: Codable, Sendable {
94799431 let dummy: Int
9432+ let mutable: Mutable
94809433 let namespace: Namespace
94819434 let native: Native
94829435 let new: New
@@ -9496,6 +9449,7 @@ struct Obj4: Codable, Sendable {
94969449 let nullNode: NullNode
94979450 let nullptr: Nullptr
94989451 let number: Number
9452+ let obj4Mutating: Mutating
94999453 let obj4Nil: Nil
95009454 let obj4None: NoneClass
95019455 let obj4Nonmutating: Nonmutating
@@ -9510,14 +9464,14 @@ struct Obj4: Codable, Sendable {
95109464 let obj4Private: Private
95119465 let obj4Protocol: ProtocolClass
95129466 let obj4Public: Public
9513- let obj4Repeat: Repeat
9514- let obj4Required: Required
95159467 let object: Object
95169468 let objectMapper: ObjectMapper
95179469 let objectNode: ObjectNode
95189470 let objectReader: ObjectReader
95199471 let objectWriter: ObjectWriter
95209472 let of: Of
9473+ let offsetDateTime: OffsetDateTime
9474+ let offsetTime: OffsetTime
95219475 let oneway: Oneway
95229476 let or: Or
95239477 let orEq: OrEq
@@ -9539,11 +9493,10 @@ struct Obj4: Codable, Sendable {
95399493 let regExp: RegExp
95409494 let register: Register
95419495 let reinterpretCast: ReinterpretCast
9542- let require: Require
9543- let requires: Requires
95449496
95459497 enum CodingKeys: String, CodingKey {
95469498 case dummy = "dummy"
9499+ case mutable = "mutable"
95479500 case namespace = "namespace"
95489501 case native = "native"
95499502 case new = "new"
@@ -9563,6 +9516,7 @@ struct Obj4: Codable, Sendable {
95639516 case nullNode = "NullNode"
95649517 case nullptr = "nullptr"
95659518 case number = "number"
9519+ case obj4Mutating = "mutating"
95669520 case obj4Nil = "nil"
95679521 case obj4None = "none"
95689522 case obj4Nonmutating = "nonmutating"
@@ -9577,14 +9531,14 @@ struct Obj4: Codable, Sendable {
95779531 case obj4Private = "private"
95789532 case obj4Protocol = "Protocol"
95799533 case obj4Public = "public"
9580- case obj4Repeat = "repeat"
9581- case obj4Required = "required"
95829534 case object = "object"
95839535 case objectMapper = "ObjectMapper"
95849536 case objectNode = "ObjectNode"
95859537 case objectReader = "ObjectReader"
95869538 case objectWriter = "ObjectWriter"
95879539 case of = "of"
9540+ case offsetDateTime = "OffsetDateTime"
9541+ case offsetTime = "OffsetTime"
95889542 case oneway = "oneway"
95899543 case or = "or"
95909544 case orEq = "or_eq"
@@ -9606,8 +9560,6 @@ struct Obj4: Codable, Sendable {
96069560 case regExp = "RegExp"
96079561 case register = "register"
96089562 case reinterpretCast = "reinterpret_cast"
9609- case require = "require"
9610- case requires = "requires"
96119563 }
96129564 }
96139565
@@ -9631,6 +9583,7 @@ extension Obj4 {
96319583
96329584 func with(
96339585 dummy: Int? = nil,
9586+ mutable: Mutable? = nil,
96349587 namespace: Namespace? = nil,
96359588 native: Native? = nil,
96369589 new: New? = nil,
@@ -9650,6 +9603,7 @@ extension Obj4 {
96509603 nullNode: NullNode? = nil,
96519604 nullptr: Nullptr? = nil,
96529605 number: Number? = nil,
9606+ obj4Mutating: Mutating? = nil,
96539607 obj4Nil: Nil? = nil,
96549608 obj4None: NoneClass? = nil,
96559609 obj4Nonmutating: Nonmutating? = nil,
@@ -9664,14 +9618,14 @@ extension Obj4 {
96649618 obj4Private: Private? = nil,
96659619 obj4Protocol: ProtocolClass? = nil,
96669620 obj4Public: Public? = nil,
9667- obj4Repeat: Repeat? = nil,
9668- obj4Required: Required? = nil,
96699621 object: Object? = nil,
96709622 objectMapper: ObjectMapper? = nil,
96719623 objectNode: ObjectNode? = nil,
96729624 objectReader: ObjectReader? = nil,
96739625 objectWriter: ObjectWriter? = nil,
96749626 of: Of? = nil,
9627+ offsetDateTime: OffsetDateTime? = nil,
9628+ offsetTime: OffsetTime? = nil,
96759629 oneway: Oneway? = nil,
96769630 or: Or? = nil,
96779631 orEq: OrEq? = nil,
@@ -9692,12 +9646,11 @@ extension Obj4 {
96929646 ref: Ref? = nil,
96939647 regExp: RegExp? = nil,
96949648 register: Register? = nil,
9695- reinterpretCast: ReinterpretCast? = nil,
9696- require: Require? = nil,
9697- requires: Requires? = nil
9649+ reinterpretCast: ReinterpretCast? = nil
96989650 ) -> Obj4 {
96999651 return Obj4(
97009652 dummy: dummy ?? self.dummy,
9653+ mutable: mutable ?? self.mutable,
97019654 namespace: namespace ?? self.namespace,
97029655 native: native ?? self.native,
97039656 new: new ?? self.new,
@@ -9717,6 +9670,7 @@ extension Obj4 {
97179670 nullNode: nullNode ?? self.nullNode,
97189671 nullptr: nullptr ?? self.nullptr,
97199672 number: number ?? self.number,
9673+ obj4Mutating: obj4Mutating ?? self.obj4Mutating,
97209674 obj4Nil: obj4Nil ?? self.obj4Nil,
97219675 obj4None: obj4None ?? self.obj4None,
97229676 obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating,
@@ -9731,14 +9685,14 @@ extension Obj4 {
97319685 obj4Private: obj4Private ?? self.obj4Private,
97329686 obj4Protocol: obj4Protocol ?? self.obj4Protocol,
97339687 obj4Public: obj4Public ?? self.obj4Public,
9734- obj4Repeat: obj4Repeat ?? self.obj4Repeat,
9735- obj4Required: obj4Required ?? self.obj4Required,
97369688 object: object ?? self.object,
97379689 objectMapper: objectMapper ?? self.objectMapper,
97389690 objectNode: objectNode ?? self.objectNode,
97399691 objectReader: objectReader ?? self.objectReader,
97409692 objectWriter: objectWriter ?? self.objectWriter,
97419693 of: of ?? self.of,
9694+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
9695+ offsetTime: offsetTime ?? self.offsetTime,
97429696 oneway: oneway ?? self.oneway,
97439697 or: or ?? self.or,
97449698 orEq: orEq ?? self.orEq,
@@ -9759,9 +9713,51 @@ extension Obj4 {
97599713 ref: ref ?? self.ref,
97609714 regExp: regExp ?? self.regExp,
97619715 register: register ?? self.register,
9762- reinterpretCast: reinterpretCast ?? self.reinterpretCast,
9763- require: require ?? self.require,
9764- requires: requires ?? self.requires
9716+ reinterpretCast: reinterpretCast ?? self.reinterpretCast
9717+ )
9718+ }
9719+
9720+ func jsonData() throws -> Data {
9721+ return try newJSONEncoder().encode(self)
9722+ }
9723+
9724+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9725+ return String(data: try self.jsonData(), encoding: encoding)
9726+ }
9727+}
9728+
9729+// MARK: - Mutable
9730+struct Mutable: Codable, Sendable {
9731+ let mutable: Int
9732+
9733+ enum CodingKeys: String, CodingKey {
9734+ case mutable = "mutable"
9735+ }
9736+}
9737+
9738+// MARK: Mutable convenience initializers and mutators
9739+
9740+extension Mutable {
9741+ init(data: Data) throws {
9742+ self = try newJSONDecoder().decode(Mutable.self, from: data)
9743+ }
9744+
9745+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9746+ guard let data = json.data(using: encoding) else {
9747+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9748+ }
9749+ try self.init(data: data)
9750+ }
9751+
9752+ init(fromURL url: URL) throws {
9753+ try self.init(data: try Data(contentsOf: url))
9754+ }
9755+
9756+ func with(
9757+ mutable: Int? = nil
9758+ ) -> Mutable {
9759+ return Mutable(
9760+ mutable: mutable ?? self.mutable
97659761 )
97669762 }
97679763
@@ -10610,6 +10606,50 @@ extension Number {
1061010606 }
1061110607 }
1061210608
10609+// MARK: - Mutating
10610+struct Mutating: Codable, Sendable {
10611+ let mutatingMutating: Int
10612+
10613+ enum CodingKeys: String, CodingKey {
10614+ case mutatingMutating = "mutating"
10615+ }
10616+}
10617+
10618+// MARK: Mutating convenience initializers and mutators
10619+
10620+extension Mutating {
10621+ init(data: Data) throws {
10622+ self = try newJSONDecoder().decode(Mutating.self, from: data)
10623+ }
10624+
10625+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10626+ guard let data = json.data(using: encoding) else {
10627+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10628+ }
10629+ try self.init(data: data)
10630+ }
10631+
10632+ init(fromURL url: URL) throws {
10633+ try self.init(data: try Data(contentsOf: url))
10634+ }
10635+
10636+ func with(
10637+ mutatingMutating: Int? = nil
10638+ ) -> Mutating {
10639+ return Mutating(
10640+ mutatingMutating: mutatingMutating ?? self.mutatingMutating
10641+ )
10642+ }
10643+
10644+ func jsonData() throws -> Data {
10645+ return try newJSONEncoder().encode(self)
10646+ }
10647+
10648+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10649+ return String(data: try self.jsonData(), encoding: encoding)
10650+ }
10651+}
10652+
1061310653 // MARK: - Nil
1061410654 struct Nil: Codable, Sendable {
1061510655 let nilNil: Int
@@ -11226,20 +11266,20 @@ extension Public {
1122611266 }
1122711267 }
1122811268
11229-// MARK: - Repeat
11230-struct Repeat: Codable, Sendable {
11231- let repeatRepeat: Int
11269+// MARK: - Object
11270+struct Object: Codable, Sendable {
11271+ let object: Int
1123211272
1123311273 enum CodingKeys: String, CodingKey {
11234- case repeatRepeat = "repeat"
11274+ case object = "object"
1123511275 }
1123611276 }
1123711277
11238-// MARK: Repeat convenience initializers and mutators
11278+// MARK: Object convenience initializers and mutators
1123911279
11240-extension Repeat {
11280+extension Object {
1124111281 init(data: Data) throws {
11242- self = try newJSONDecoder().decode(Repeat.self, from: data)
11282+ self = try newJSONDecoder().decode(Object.self, from: data)
1124311283 }
1124411284
1124511285 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11254,10 +11294,10 @@ extension Repeat {
1125411294 }
1125511295
1125611296 func with(
11257- repeatRepeat: Int? = nil
11258- ) -> Repeat {
11259- return Repeat(
11260- repeatRepeat: repeatRepeat ?? self.repeatRepeat
11297+ object: Int? = nil
11298+ ) -> Object {
11299+ return Object(
11300+ object: object ?? self.object
1126111301 )
1126211302 }
1126311303
@@ -11270,20 +11310,20 @@ extension Repeat {
1127011310 }
1127111311 }
1127211312
11273-// MARK: - Required
11274-struct Required: Codable, Sendable {
11275- let requiredRequired: Int
11313+// MARK: - ObjectMapper
11314+struct ObjectMapper: Codable, Sendable {
11315+ let objectMapper: Int
1127611316
1127711317 enum CodingKeys: String, CodingKey {
11278- case requiredRequired = "required"
11318+ case objectMapper = "ObjectMapper"
1127911319 }
1128011320 }
1128111321
11282-// MARK: Required convenience initializers and mutators
11322+// MARK: ObjectMapper convenience initializers and mutators
1128311323
11284-extension Required {
11324+extension ObjectMapper {
1128511325 init(data: Data) throws {
11286- self = try newJSONDecoder().decode(Required.self, from: data)
11326+ self = try newJSONDecoder().decode(ObjectMapper.self, from: data)
1128711327 }
1128811328
1128911329 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11298,10 +11338,10 @@ extension Required {
1129811338 }
1129911339
1130011340 func with(
11301- requiredRequired: Int? = nil
11302- ) -> Required {
11303- return Required(
11304- requiredRequired: requiredRequired ?? self.requiredRequired
11341+ objectMapper: Int? = nil
11342+ ) -> ObjectMapper {
11343+ return ObjectMapper(
11344+ objectMapper: objectMapper ?? self.objectMapper
1130511345 )
1130611346 }
1130711347
@@ -11314,20 +11354,20 @@ extension Required {
1131411354 }
1131511355 }
1131611356
11317-// MARK: - Object
11318-struct Object: Codable, Sendable {
11319- let object: Int
11357+// MARK: - ObjectNode
11358+struct ObjectNode: Codable, Sendable {
11359+ let objectNode: Int
1132011360
1132111361 enum CodingKeys: String, CodingKey {
11322- case object = "object"
11362+ case objectNode = "ObjectNode"
1132311363 }
1132411364 }
1132511365
11326-// MARK: Object convenience initializers and mutators
11366+// MARK: ObjectNode convenience initializers and mutators
1132711367
11328-extension Object {
11368+extension ObjectNode {
1132911369 init(data: Data) throws {
11330- self = try newJSONDecoder().decode(Object.self, from: data)
11370+ self = try newJSONDecoder().decode(ObjectNode.self, from: data)
1133111371 }
1133211372
1133311373 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11342,10 +11382,10 @@ extension Object {
1134211382 }
1134311383
1134411384 func with(
11345- object: Int? = nil
11346- ) -> Object {
11347- return Object(
11348- object: object ?? self.object
11385+ objectNode: Int? = nil
11386+ ) -> ObjectNode {
11387+ return ObjectNode(
11388+ objectNode: objectNode ?? self.objectNode
1134911389 )
1135011390 }
1135111391
@@ -11358,20 +11398,20 @@ extension Object {
1135811398 }
1135911399 }
1136011400
11361-// MARK: - ObjectMapper
11362-struct ObjectMapper: Codable, Sendable {
11363- let objectMapper: Int
11401+// MARK: - ObjectReader
11402+struct ObjectReader: Codable, Sendable {
11403+ let objectReader: Int
1136411404
1136511405 enum CodingKeys: String, CodingKey {
11366- case objectMapper = "ObjectMapper"
11406+ case objectReader = "ObjectReader"
1136711407 }
1136811408 }
1136911409
11370-// MARK: ObjectMapper convenience initializers and mutators
11410+// MARK: ObjectReader convenience initializers and mutators
1137111411
11372-extension ObjectMapper {
11412+extension ObjectReader {
1137311413 init(data: Data) throws {
11374- self = try newJSONDecoder().decode(ObjectMapper.self, from: data)
11414+ self = try newJSONDecoder().decode(ObjectReader.self, from: data)
1137511415 }
1137611416
1137711417 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11386,10 +11426,10 @@ extension ObjectMapper {
1138611426 }
1138711427
1138811428 func with(
11389- objectMapper: Int? = nil
11390- ) -> ObjectMapper {
11391- return ObjectMapper(
11392- objectMapper: objectMapper ?? self.objectMapper
11429+ objectReader: Int? = nil
11430+ ) -> ObjectReader {
11431+ return ObjectReader(
11432+ objectReader: objectReader ?? self.objectReader
1139311433 )
1139411434 }
1139511435
@@ -11402,20 +11442,20 @@ extension ObjectMapper {
1140211442 }
1140311443 }
1140411444
11405-// MARK: - ObjectNode
11406-struct ObjectNode: Codable, Sendable {
11407- let objectNode: Int
11445+// MARK: - ObjectWriter
11446+struct ObjectWriter: Codable, Sendable {
11447+ let objectWriter: Int
1140811448
1140911449 enum CodingKeys: String, CodingKey {
11410- case objectNode = "ObjectNode"
11450+ case objectWriter = "ObjectWriter"
1141111451 }
1141211452 }
1141311453
11414-// MARK: ObjectNode convenience initializers and mutators
11454+// MARK: ObjectWriter convenience initializers and mutators
1141511455
11416-extension ObjectNode {
11456+extension ObjectWriter {
1141711457 init(data: Data) throws {
11418- self = try newJSONDecoder().decode(ObjectNode.self, from: data)
11458+ self = try newJSONDecoder().decode(ObjectWriter.self, from: data)
1141911459 }
1142011460
1142111461 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11430,10 +11470,10 @@ extension ObjectNode {
1143011470 }
1143111471
1143211472 func with(
11433- objectNode: Int? = nil
11434- ) -> ObjectNode {
11435- return ObjectNode(
11436- objectNode: objectNode ?? self.objectNode
11473+ objectWriter: Int? = nil
11474+ ) -> ObjectWriter {
11475+ return ObjectWriter(
11476+ objectWriter: objectWriter ?? self.objectWriter
1143711477 )
1143811478 }
1143911479
@@ -11446,20 +11486,20 @@ extension ObjectNode {
1144611486 }
1144711487 }
1144811488
11449-// MARK: - ObjectReader
11450-struct ObjectReader: Codable, Sendable {
11451- let objectReader: Int
11489+// MARK: - Of
11490+struct Of: Codable, Sendable {
11491+ let of: Int
1145211492
1145311493 enum CodingKeys: String, CodingKey {
11454- case objectReader = "ObjectReader"
11494+ case of = "of"
1145511495 }
1145611496 }
1145711497
11458-// MARK: ObjectReader convenience initializers and mutators
11498+// MARK: Of convenience initializers and mutators
1145911499
11460-extension ObjectReader {
11500+extension Of {
1146111501 init(data: Data) throws {
11462- self = try newJSONDecoder().decode(ObjectReader.self, from: data)
11502+ self = try newJSONDecoder().decode(Of.self, from: data)
1146311503 }
1146411504
1146511505 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11474,10 +11514,10 @@ extension ObjectReader {
1147411514 }
1147511515
1147611516 func with(
11477- objectReader: Int? = nil
11478- ) -> ObjectReader {
11479- return ObjectReader(
11480- objectReader: objectReader ?? self.objectReader
11517+ of: Int? = nil
11518+ ) -> Of {
11519+ return Of(
11520+ of: of ?? self.of
1148111521 )
1148211522 }
1148311523
@@ -11490,20 +11530,20 @@ extension ObjectReader {
1149011530 }
1149111531 }
1149211532
11493-// MARK: - ObjectWriter
11494-struct ObjectWriter: Codable, Sendable {
11495- let objectWriter: Int
11533+// MARK: - OffsetDateTime
11534+struct OffsetDateTime: Codable, Sendable {
11535+ let offsetDateTime: Int
1149611536
1149711537 enum CodingKeys: String, CodingKey {
11498- case objectWriter = "ObjectWriter"
11538+ case offsetDateTime = "OffsetDateTime"
1149911539 }
1150011540 }
1150111541
11502-// MARK: ObjectWriter convenience initializers and mutators
11542+// MARK: OffsetDateTime convenience initializers and mutators
1150311543
11504-extension ObjectWriter {
11544+extension OffsetDateTime {
1150511545 init(data: Data) throws {
11506- self = try newJSONDecoder().decode(ObjectWriter.self, from: data)
11546+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
1150711547 }
1150811548
1150911549 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11518,10 +11558,10 @@ extension ObjectWriter {
1151811558 }
1151911559
1152011560 func with(
11521- objectWriter: Int? = nil
11522- ) -> ObjectWriter {
11523- return ObjectWriter(
11524- objectWriter: objectWriter ?? self.objectWriter
11561+ offsetDateTime: Int? = nil
11562+ ) -> OffsetDateTime {
11563+ return OffsetDateTime(
11564+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
1152511565 )
1152611566 }
1152711567
@@ -11534,20 +11574,20 @@ extension ObjectWriter {
1153411574 }
1153511575 }
1153611576
11537-// MARK: - Of
11538-struct Of: Codable, Sendable {
11539- let of: Int
11577+// MARK: - OffsetTime
11578+struct OffsetTime: Codable, Sendable {
11579+ let offsetTime: Int
1154011580
1154111581 enum CodingKeys: String, CodingKey {
11542- case of = "of"
11582+ case offsetTime = "OffsetTime"
1154311583 }
1154411584 }
1154511585
11546-// MARK: Of convenience initializers and mutators
11586+// MARK: OffsetTime convenience initializers and mutators
1154711587
11548-extension Of {
11588+extension OffsetTime {
1154911589 init(data: Data) throws {
11550- self = try newJSONDecoder().decode(Of.self, from: data)
11590+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
1155111591 }
1155211592
1155311593 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -11562,10 +11602,10 @@ extension Of {
1156211602 }
1156311603
1156411604 func with(
11565- of: Int? = nil
11566- ) -> Of {
11567- return Of(
11568- of: of ?? self.of
11605+ offsetTime: Int? = nil
11606+ ) -> OffsetTime {
11607+ return OffsetTime(
11608+ offsetTime: offsetTime ?? self.offsetTime
1156911609 )
1157011610 }
1157111611
@@ -12502,98 +12542,12 @@ extension ReinterpretCast {
1250212542 }
1250312543 }
1250412544
12505-// MARK: - Require
12506-struct Require: Codable, Sendable {
12507- let require: Int
12508-
12509- enum CodingKeys: String, CodingKey {
12510- case require = "require"
12511- }
12512-}
12513-
12514-// MARK: Require convenience initializers and mutators
12515-
12516-extension Require {
12517- init(data: Data) throws {
12518- self = try newJSONDecoder().decode(Require.self, from: data)
12519- }
12520-
12521- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12522- guard let data = json.data(using: encoding) else {
12523- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12524- }
12525- try self.init(data: data)
12526- }
12527-
12528- init(fromURL url: URL) throws {
12529- try self.init(data: try Data(contentsOf: url))
12530- }
12531-
12532- func with(
12533- require: Int? = nil
12534- ) -> Require {
12535- return Require(
12536- require: require ?? self.require
12537- )
12538- }
12539-
12540- func jsonData() throws -> Data {
12541- return try newJSONEncoder().encode(self)
12542- }
12543-
12544- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12545- return String(data: try self.jsonData(), encoding: encoding)
12546- }
12547-}
12548-
12549-// MARK: - Requires
12550-struct Requires: Codable, Sendable {
12551- let requires: Int
12552-
12553- enum CodingKeys: String, CodingKey {
12554- case requires = "requires"
12555- }
12556-}
12557-
12558-// MARK: Requires convenience initializers and mutators
12559-
12560-extension Requires {
12561- init(data: Data) throws {
12562- self = try newJSONDecoder().decode(Requires.self, from: data)
12563- }
12564-
12565- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12566- guard let data = json.data(using: encoding) else {
12567- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12568- }
12569- try self.init(data: data)
12570- }
12571-
12572- init(fromURL url: URL) throws {
12573- try self.init(data: try Data(contentsOf: url))
12574- }
12575-
12576- func with(
12577- requires: Int? = nil
12578- ) -> Requires {
12579- return Requires(
12580- requires: requires ?? self.requires
12581- )
12582- }
12583-
12584- func jsonData() throws -> Data {
12585- return try newJSONEncoder().encode(self)
12586- }
12587-
12588- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12589- return String(data: try self.jsonData(), encoding: encoding)
12590- }
12591-}
12592-
1259312545 // MARK: - Obj5
1259412546 struct Obj5: Codable, Sendable {
1259512547 let dummy: Int
1259612548 let kSerializer: KSerializer
12549+ let obj5Repeat: Repeat
12550+ let obj5Required: Required
1259712551 let obj5Rethrows: Rethrows
1259812552 let obj5Return: Return
1259912553 let obj5Right: Right
@@ -12607,12 +12561,11 @@ struct Obj5: Codable, Sendable {
1260712561 let obj5Throw: Throw
1260812562 let obj5Throws: Throws
1260912563 let obj5True: True
12610- let obj5Try: Try
12611- let obj5Type: Obj5Type
12612- let obj5Typealias: Typealias
1261312564 let primitiveKind: PrimitiveKind
1261412565 let purpleSelf: Obj5Self
1261512566 let purpleTrue: TrueClass
12567+ let require: Require
12568+ let requires: Requires
1261612569 let restrict: Restrict
1261712570 let retain: Retain
1261812571 let runtimeType: RuntimeType
@@ -12656,11 +12609,12 @@ struct Obj5: Codable, Sendable {
1265612609 let toString: ToString
1265712610 let topLevel: TopLevelClass
1265812611 let transient: Transient
12659- let type: TypeClass
1266012612
1266112613 enum CodingKeys: String, CodingKey {
1266212614 case dummy = "dummy"
1266312615 case kSerializer = "KSerializer"
12616+ case obj5Repeat = "repeat"
12617+ case obj5Required = "required"
1266412618 case obj5Rethrows = "rethrows"
1266512619 case obj5Return = "return"
1266612620 case obj5Right = "right"
@@ -12674,12 +12628,11 @@ struct Obj5: Codable, Sendable {
1267412628 case obj5Throw = "throw"
1267512629 case obj5Throws = "throws"
1267612630 case obj5True = "True"
12677- case obj5Try = "try"
12678- case obj5Type = "type"
12679- case obj5Typealias = "typealias"
1268012631 case primitiveKind = "PrimitiveKind"
1268112632 case purpleSelf = "self"
1268212633 case purpleTrue = "true"
12634+ case require = "require"
12635+ case requires = "requires"
1268312636 case restrict = "restrict"
1268412637 case retain = "retain"
1268512638 case runtimeType = "runtimeType"
@@ -12723,7 +12676,6 @@ struct Obj5: Codable, Sendable {
1272312676 case toString = "toString"
1272412677 case topLevel = "top_level"
1272512678 case transient = "transient"
12726- case type = "Type"
1272712679 }
1272812680 }
1272912681
@@ -12748,6 +12700,8 @@ extension Obj5 {
1274812700 func with(
1274912701 dummy: Int? = nil,
1275012702 kSerializer: KSerializer? = nil,
12703+ obj5Repeat: Repeat? = nil,
12704+ obj5Required: Required? = nil,
1275112705 obj5Rethrows: Rethrows? = nil,
1275212706 obj5Return: Return? = nil,
1275312707 obj5Right: Right? = nil,
@@ -12761,12 +12715,11 @@ extension Obj5 {
1276112715 obj5Throw: Throw? = nil,
1276212716 obj5Throws: Throws? = nil,
1276312717 obj5True: True? = nil,
12764- obj5Try: Try? = nil,
12765- obj5Type: Obj5Type? = nil,
12766- obj5Typealias: Typealias? = nil,
1276712718 primitiveKind: PrimitiveKind? = nil,
1276812719 purpleSelf: Obj5Self? = nil,
1276912720 purpleTrue: TrueClass? = nil,
12721+ require: Require? = nil,
12722+ requires: Requires? = nil,
1277012723 restrict: Restrict? = nil,
1277112724 retain: Retain? = nil,
1277212725 runtimeType: RuntimeType? = nil,
@@ -12809,12 +12762,13 @@ extension Obj5 {
1280912762 toJSON: ToJSON? = nil,
1281012763 toString: ToString? = nil,
1281112764 topLevel: TopLevelClass? = nil,
12812- transient: Transient? = nil,
12813- type: TypeClass? = nil
12765+ transient: Transient? = nil
1281412766 ) -> Obj5 {
1281512767 return Obj5(
1281612768 dummy: dummy ?? self.dummy,
1281712769 kSerializer: kSerializer ?? self.kSerializer,
12770+ obj5Repeat: obj5Repeat ?? self.obj5Repeat,
12771+ obj5Required: obj5Required ?? self.obj5Required,
1281812772 obj5Rethrows: obj5Rethrows ?? self.obj5Rethrows,
1281912773 obj5Return: obj5Return ?? self.obj5Return,
1282012774 obj5Right: obj5Right ?? self.obj5Right,
@@ -12828,12 +12782,11 @@ extension Obj5 {
1282812782 obj5Throw: obj5Throw ?? self.obj5Throw,
1282912783 obj5Throws: obj5Throws ?? self.obj5Throws,
1283012784 obj5True: obj5True ?? self.obj5True,
12831- obj5Try: obj5Try ?? self.obj5Try,
12832- obj5Type: obj5Type ?? self.obj5Type,
12833- obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1283412785 primitiveKind: primitiveKind ?? self.primitiveKind,
1283512786 purpleSelf: purpleSelf ?? self.purpleSelf,
1283612787 purpleTrue: purpleTrue ?? self.purpleTrue,
12788+ require: require ?? self.require,
12789+ requires: requires ?? self.requires,
1283712790 restrict: restrict ?? self.restrict,
1283812791 retain: retain ?? self.retain,
1283912792 runtimeType: runtimeType ?? self.runtimeType,
@@ -12876,8 +12829,7 @@ extension Obj5 {
1287612829 toJSON: toJSON ?? self.toJSON,
1287712830 toString: toString ?? self.toString,
1287812831 topLevel: topLevel ?? self.topLevel,
12879- transient: transient ?? self.transient,
12880- type: type ?? self.type
12832+ transient: transient ?? self.transient
1288112833 )
1288212834 }
1288312835
@@ -12934,6 +12886,94 @@ extension KSerializer {
1293412886 }
1293512887 }
1293612888
12889+// MARK: - Repeat
12890+struct Repeat: Codable, Sendable {
12891+ let repeatRepeat: Int
12892+
12893+ enum CodingKeys: String, CodingKey {
12894+ case repeatRepeat = "repeat"
12895+ }
12896+}
12897+
12898+// MARK: Repeat convenience initializers and mutators
12899+
12900+extension Repeat {
12901+ init(data: Data) throws {
12902+ self = try newJSONDecoder().decode(Repeat.self, from: data)
12903+ }
12904+
12905+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12906+ guard let data = json.data(using: encoding) else {
12907+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12908+ }
12909+ try self.init(data: data)
12910+ }
12911+
12912+ init(fromURL url: URL) throws {
12913+ try self.init(data: try Data(contentsOf: url))
12914+ }
12915+
12916+ func with(
12917+ repeatRepeat: Int? = nil
12918+ ) -> Repeat {
12919+ return Repeat(
12920+ repeatRepeat: repeatRepeat ?? self.repeatRepeat
12921+ )
12922+ }
12923+
12924+ func jsonData() throws -> Data {
12925+ return try newJSONEncoder().encode(self)
12926+ }
12927+
12928+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12929+ return String(data: try self.jsonData(), encoding: encoding)
12930+ }
12931+}
12932+
12933+// MARK: - Required
12934+struct Required: Codable, Sendable {
12935+ let requiredRequired: Int
12936+
12937+ enum CodingKeys: String, CodingKey {
12938+ case requiredRequired = "required"
12939+ }
12940+}
12941+
12942+// MARK: Required convenience initializers and mutators
12943+
12944+extension Required {
12945+ init(data: Data) throws {
12946+ self = try newJSONDecoder().decode(Required.self, from: data)
12947+ }
12948+
12949+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12950+ guard let data = json.data(using: encoding) else {
12951+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12952+ }
12953+ try self.init(data: data)
12954+ }
12955+
12956+ init(fromURL url: URL) throws {
12957+ try self.init(data: try Data(contentsOf: url))
12958+ }
12959+
12960+ func with(
12961+ requiredRequired: Int? = nil
12962+ ) -> Required {
12963+ return Required(
12964+ requiredRequired: requiredRequired ?? self.requiredRequired
12965+ )
12966+ }
12967+
12968+ func jsonData() throws -> Data {
12969+ return try newJSONEncoder().encode(self)
12970+ }
12971+
12972+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12973+ return String(data: try self.jsonData(), encoding: encoding)
12974+ }
12975+}
12976+
1293712977 // MARK: - Rethrows
1293812978 struct Rethrows: Codable, Sendable {
1293912979 let rethrowsRethrows: Int
@@ -13506,64 +13546,20 @@ extension True {
1350613546 }
1350713547 }
1350813548
13509-// MARK: - Try
13510-struct Try: Codable, Sendable {
13511- let tryTry: Int
13512-
13513- enum CodingKeys: String, CodingKey {
13514- case tryTry = "try"
13515- }
13516-}
13517-
13518-// MARK: Try convenience initializers and mutators
13519-
13520-extension Try {
13521- init(data: Data) throws {
13522- self = try newJSONDecoder().decode(Try.self, from: data)
13523- }
13524-
13525- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13526- guard let data = json.data(using: encoding) else {
13527- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13528- }
13529- try self.init(data: data)
13530- }
13531-
13532- init(fromURL url: URL) throws {
13533- try self.init(data: try Data(contentsOf: url))
13534- }
13535-
13536- func with(
13537- tryTry: Int? = nil
13538- ) -> Try {
13539- return Try(
13540- tryTry: tryTry ?? self.tryTry
13541- )
13542- }
13543-
13544- func jsonData() throws -> Data {
13545- return try newJSONEncoder().encode(self)
13546- }
13547-
13548- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13549- return String(data: try self.jsonData(), encoding: encoding)
13550- }
13551-}
13552-
13553-// MARK: - Obj5Type
13554-struct Obj5Type: Codable, Sendable {
13555- let type: Int
13549+// MARK: - PrimitiveKind
13550+struct PrimitiveKind: Codable, Sendable {
13551+ let primitiveKind: Int
1355613552
1355713553 enum CodingKeys: String, CodingKey {
13558- case type = "type"
13554+ case primitiveKind = "PrimitiveKind"
1355913555 }
1356013556 }
1356113557
13562-// MARK: Obj5Type convenience initializers and mutators
13558+// MARK: PrimitiveKind convenience initializers and mutators
1356313559
13564-extension Obj5Type {
13560+extension PrimitiveKind {
1356513561 init(data: Data) throws {
13566- self = try newJSONDecoder().decode(Obj5Type.self, from: data)
13562+ self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
1356713563 }
1356813564
1356913565 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13578,10 +13574,10 @@ extension Obj5Type {
1357813574 }
1357913575
1358013576 func with(
13581- type: Int? = nil
13582- ) -> Obj5Type {
13583- return Obj5Type(
13584- type: type ?? self.type
13577+ primitiveKind: Int? = nil
13578+ ) -> PrimitiveKind {
13579+ return PrimitiveKind(
13580+ primitiveKind: primitiveKind ?? self.primitiveKind
1358513581 )
1358613582 }
1358713583
@@ -13594,20 +13590,20 @@ extension Obj5Type {
1359413590 }
1359513591 }
1359613592
13597-// MARK: - Typealias
13598-struct Typealias: Codable, Sendable {
13599- let typealiasTypealias: Int
13593+// MARK: - Obj5Self
13594+struct Obj5Self: Codable, Sendable {
13595+ let selfSelf: Int
1360013596
1360113597 enum CodingKeys: String, CodingKey {
13602- case typealiasTypealias = "typealias"
13598+ case selfSelf = "self"
1360313599 }
1360413600 }
1360513601
13606-// MARK: Typealias convenience initializers and mutators
13602+// MARK: Obj5Self convenience initializers and mutators
1360713603
13608-extension Typealias {
13604+extension Obj5Self {
1360913605 init(data: Data) throws {
13610- self = try newJSONDecoder().decode(Typealias.self, from: data)
13606+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1361113607 }
1361213608
1361313609 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13622,10 +13618,10 @@ extension Typealias {
1362213618 }
1362313619
1362413620 func with(
13625- typealiasTypealias: Int? = nil
13626- ) -> Typealias {
13627- return Typealias(
13628- typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
13621+ selfSelf: Int? = nil
13622+ ) -> Obj5Self {
13623+ return Obj5Self(
13624+ selfSelf: selfSelf ?? self.selfSelf
1362913625 )
1363013626 }
1363113627
@@ -13638,20 +13634,20 @@ extension Typealias {
1363813634 }
1363913635 }
1364013636
13641-// MARK: - PrimitiveKind
13642-struct PrimitiveKind: Codable, Sendable {
13643- let primitiveKind: Int
13637+// MARK: - TrueClass
13638+struct TrueClass: Codable, Sendable {
13639+ let trueTrue: Int
1364413640
1364513641 enum CodingKeys: String, CodingKey {
13646- case primitiveKind = "PrimitiveKind"
13642+ case trueTrue = "true"
1364713643 }
1364813644 }
1364913645
13650-// MARK: PrimitiveKind convenience initializers and mutators
13646+// MARK: TrueClass convenience initializers and mutators
1365113647
13652-extension PrimitiveKind {
13648+extension TrueClass {
1365313649 init(data: Data) throws {
13654- self = try newJSONDecoder().decode(PrimitiveKind.self, from: data)
13650+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1365513651 }
1365613652
1365713653 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13666,10 +13662,10 @@ extension PrimitiveKind {
1366613662 }
1366713663
1366813664 func with(
13669- primitiveKind: Int? = nil
13670- ) -> PrimitiveKind {
13671- return PrimitiveKind(
13672- primitiveKind: primitiveKind ?? self.primitiveKind
13665+ trueTrue: Int? = nil
13666+ ) -> TrueClass {
13667+ return TrueClass(
13668+ trueTrue: trueTrue ?? self.trueTrue
1367313669 )
1367413670 }
1367513671
@@ -13682,20 +13678,20 @@ extension PrimitiveKind {
1368213678 }
1368313679 }
1368413680
13685-// MARK: - Obj5Self
13686-struct Obj5Self: Codable, Sendable {
13687- let selfSelf: Int
13681+// MARK: - Require
13682+struct Require: Codable, Sendable {
13683+ let require: Int
1368813684
1368913685 enum CodingKeys: String, CodingKey {
13690- case selfSelf = "self"
13686+ case require = "require"
1369113687 }
1369213688 }
1369313689
13694-// MARK: Obj5Self convenience initializers and mutators
13690+// MARK: Require convenience initializers and mutators
1369513691
13696-extension Obj5Self {
13692+extension Require {
1369713693 init(data: Data) throws {
13698- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13694+ self = try newJSONDecoder().decode(Require.self, from: data)
1369913695 }
1370013696
1370113697 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13710,10 +13706,10 @@ extension Obj5Self {
1371013706 }
1371113707
1371213708 func with(
13713- selfSelf: Int? = nil
13714- ) -> Obj5Self {
13715- return Obj5Self(
13716- selfSelf: selfSelf ?? self.selfSelf
13709+ require: Int? = nil
13710+ ) -> Require {
13711+ return Require(
13712+ require: require ?? self.require
1371713713 )
1371813714 }
1371913715
@@ -13726,20 +13722,20 @@ extension Obj5Self {
1372613722 }
1372713723 }
1372813724
13729-// MARK: - TrueClass
13730-struct TrueClass: Codable, Sendable {
13731- let trueTrue: Int
13725+// MARK: - Requires
13726+struct Requires: Codable, Sendable {
13727+ let requires: Int
1373213728
1373313729 enum CodingKeys: String, CodingKey {
13734- case trueTrue = "true"
13730+ case requires = "requires"
1373513731 }
1373613732 }
1373713733
13738-// MARK: TrueClass convenience initializers and mutators
13734+// MARK: Requires convenience initializers and mutators
1373913735
13740-extension TrueClass {
13736+extension Requires {
1374113737 init(data: Data) throws {
13742- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13738+ self = try newJSONDecoder().decode(Requires.self, from: data)
1374313739 }
1374413740
1374513741 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13754,10 +13750,10 @@ extension TrueClass {
1375413750 }
1375513751
1375613752 func with(
13757- trueTrue: Int? = nil
13758- ) -> TrueClass {
13759- return TrueClass(
13760- trueTrue: trueTrue ?? self.trueTrue
13753+ requires: Int? = nil
13754+ ) -> Requires {
13755+ return Requires(
13756+ requires: requires ?? self.requires
1376113757 )
1376213758 }
1376313759
@@ -15662,59 +15658,19 @@ extension Transient {
1566215658 }
1566315659 }
1566415660
15665-// MARK: - TypeClass
15666-struct TypeClass: Codable, Sendable {
15667- let type: Int
15668-
15669- enum CodingKeys: String, CodingKey {
15670- case type = "Type"
15671- }
15672-}
15673-
15674-// MARK: TypeClass convenience initializers and mutators
15675-
15676-extension TypeClass {
15677- init(data: Data) throws {
15678- self = try newJSONDecoder().decode(TypeClass.self, from: data)
15679- }
15680-
15681- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15682- guard let data = json.data(using: encoding) else {
15683- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15684- }
15685- try self.init(data: data)
15686- }
15687-
15688- init(fromURL url: URL) throws {
15689- try self.init(data: try Data(contentsOf: url))
15690- }
15691-
15692- func with(
15693- type: Int? = nil
15694- ) -> TypeClass {
15695- return TypeClass(
15696- type: type ?? self.type
15697- )
15698- }
15699-
15700- func jsonData() throws -> Data {
15701- return try newJSONEncoder().encode(self)
15702- }
15703-
15704- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15705- return String(data: try self.jsonData(), encoding: encoding)
15706- }
15707-}
15708-
1570915661 // MARK: - Obj6
1571015662 struct Obj6: Codable, Sendable {
1571115663 let dummy: Int
15664+ let obj6Try: Try
15665+ let obj6Type: Obj6Type
15666+ let obj6Typealias: Typealias
1571215667 let obj6Unowned: Unowned
1571315668 let obj6Var: Var
1571415669 let obj6Weak: Weak
1571515670 let obj6Where: Where
1571615671 let obj6While: While
1571715672 let obj6WillSet: WillSet
15673+ let type: TypeClass
1571815674 let typedef: Typedef
1571915675 let typeid: Typeid
1572015676 let typename: Typename
@@ -15745,12 +15701,16 @@ struct Obj6: Codable, Sendable {
1574515701
1574615702 enum CodingKeys: String, CodingKey {
1574715703 case dummy = "dummy"
15704+ case obj6Try = "try"
15705+ case obj6Type = "type"
15706+ case obj6Typealias = "typealias"
1574815707 case obj6Unowned = "unowned"
1574915708 case obj6Var = "var"
1575015709 case obj6Weak = "weak"
1575115710 case obj6Where = "where"
1575215711 case obj6While = "while"
1575315712 case obj6WillSet = "willSet"
15713+ case type = "Type"
1575415714 case typedef = "typedef"
1575515715 case typeid = "typeid"
1575615716 case typename = "typename"
@@ -15801,12 +15761,16 @@ extension Obj6 {
1580115761
1580215762 func with(
1580315763 dummy: Int? = nil,
15764+ obj6Try: Try? = nil,
15765+ obj6Type: Obj6Type? = nil,
15766+ obj6Typealias: Typealias? = nil,
1580415767 obj6Unowned: Unowned? = nil,
1580515768 obj6Var: Var? = nil,
1580615769 obj6Weak: Weak? = nil,
1580715770 obj6Where: Where? = nil,
1580815771 obj6While: While? = nil,
1580915772 obj6WillSet: WillSet? = nil,
15773+ type: TypeClass? = nil,
1581015774 typedef: Typedef? = nil,
1581115775 typeid: Typeid? = nil,
1581215776 typename: Typename? = nil,
@@ -15837,12 +15801,16 @@ extension Obj6 {
1583715801 ) -> Obj6 {
1583815802 return Obj6(
1583915803 dummy: dummy ?? self.dummy,
15804+ obj6Try: obj6Try ?? self.obj6Try,
15805+ obj6Type: obj6Type ?? self.obj6Type,
15806+ obj6Typealias: obj6Typealias ?? self.obj6Typealias,
1584015807 obj6Unowned: obj6Unowned ?? self.obj6Unowned,
1584115808 obj6Var: obj6Var ?? self.obj6Var,
1584215809 obj6Weak: obj6Weak ?? self.obj6Weak,
1584315810 obj6Where: obj6Where ?? self.obj6Where,
1584415811 obj6While: obj6While ?? self.obj6While,
1584515812 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15813+ type: type ?? self.type,
1584615814 typedef: typedef ?? self.typedef,
1584715815 typeid: typeid ?? self.typeid,
1584815816 typename: typename ?? self.typename,
@@ -15882,6 +15850,138 @@ extension Obj6 {
1588215850 }
1588315851 }
1588415852
15853+// MARK: - Try
15854+struct Try: Codable, Sendable {
15855+ let tryTry: Int
15856+
15857+ enum CodingKeys: String, CodingKey {
15858+ case tryTry = "try"
15859+ }
15860+}
15861+
15862+// MARK: Try convenience initializers and mutators
15863+
15864+extension Try {
15865+ init(data: Data) throws {
15866+ self = try newJSONDecoder().decode(Try.self, from: data)
15867+ }
15868+
15869+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15870+ guard let data = json.data(using: encoding) else {
15871+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15872+ }
15873+ try self.init(data: data)
15874+ }
15875+
15876+ init(fromURL url: URL) throws {
15877+ try self.init(data: try Data(contentsOf: url))
15878+ }
15879+
15880+ func with(
15881+ tryTry: Int? = nil
15882+ ) -> Try {
15883+ return Try(
15884+ tryTry: tryTry ?? self.tryTry
15885+ )
15886+ }
15887+
15888+ func jsonData() throws -> Data {
15889+ return try newJSONEncoder().encode(self)
15890+ }
15891+
15892+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15893+ return String(data: try self.jsonData(), encoding: encoding)
15894+ }
15895+}
15896+
15897+// MARK: - Obj6Type
15898+struct Obj6Type: Codable, Sendable {
15899+ let type: Int
15900+
15901+ enum CodingKeys: String, CodingKey {
15902+ case type = "type"
15903+ }
15904+}
15905+
15906+// MARK: Obj6Type convenience initializers and mutators
15907+
15908+extension Obj6Type {
15909+ init(data: Data) throws {
15910+ self = try newJSONDecoder().decode(Obj6Type.self, from: data)
15911+ }
15912+
15913+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15914+ guard let data = json.data(using: encoding) else {
15915+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15916+ }
15917+ try self.init(data: data)
15918+ }
15919+
15920+ init(fromURL url: URL) throws {
15921+ try self.init(data: try Data(contentsOf: url))
15922+ }
15923+
15924+ func with(
15925+ type: Int? = nil
15926+ ) -> Obj6Type {
15927+ return Obj6Type(
15928+ type: type ?? self.type
15929+ )
15930+ }
15931+
15932+ func jsonData() throws -> Data {
15933+ return try newJSONEncoder().encode(self)
15934+ }
15935+
15936+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15937+ return String(data: try self.jsonData(), encoding: encoding)
15938+ }
15939+}
15940+
15941+// MARK: - Typealias
15942+struct Typealias: Codable, Sendable {
15943+ let typealiasTypealias: Int
15944+
15945+ enum CodingKeys: String, CodingKey {
15946+ case typealiasTypealias = "typealias"
15947+ }
15948+}
15949+
15950+// MARK: Typealias convenience initializers and mutators
15951+
15952+extension Typealias {
15953+ init(data: Data) throws {
15954+ self = try newJSONDecoder().decode(Typealias.self, from: data)
15955+ }
15956+
15957+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15958+ guard let data = json.data(using: encoding) else {
15959+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15960+ }
15961+ try self.init(data: data)
15962+ }
15963+
15964+ init(fromURL url: URL) throws {
15965+ try self.init(data: try Data(contentsOf: url))
15966+ }
15967+
15968+ func with(
15969+ typealiasTypealias: Int? = nil
15970+ ) -> Typealias {
15971+ return Typealias(
15972+ typealiasTypealias: typealiasTypealias ?? self.typealiasTypealias
15973+ )
15974+ }
15975+
15976+ func jsonData() throws -> Data {
15977+ return try newJSONEncoder().encode(self)
15978+ }
15979+
15980+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15981+ return String(data: try self.jsonData(), encoding: encoding)
15982+ }
15983+}
15984+
1588515985 // MARK: - Unowned
1588615986 struct Unowned: Codable, Sendable {
1588715987 let unownedUnowned: Int
@@ -16146,6 +16246,50 @@ extension WillSet {
1614616246 }
1614716247 }
1614816248
16249+// MARK: - TypeClass
16250+struct TypeClass: Codable, Sendable {
16251+ let type: Int
16252+
16253+ enum CodingKeys: String, CodingKey {
16254+ case type = "Type"
16255+ }
16256+}
16257+
16258+// MARK: TypeClass convenience initializers and mutators
16259+
16260+extension TypeClass {
16261+ init(data: Data) throws {
16262+ self = try newJSONDecoder().decode(TypeClass.self, from: data)
16263+ }
16264+
16265+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16266+ guard let data = json.data(using: encoding) else {
16267+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16268+ }
16269+ try self.init(data: data)
16270+ }
16271+
16272+ init(fromURL url: URL) throws {
16273+ try self.init(data: try Data(contentsOf: url))
16274+ }
16275+
16276+ func with(
16277+ type: Int? = nil
16278+ ) -> TypeClass {
16279+ return TypeClass(
16280+ type: type ?? self.type
16281+ )
16282+ }
16283+
16284+ func jsonData() throws -> Data {
16285+ return try newJSONEncoder().encode(self)
16286+ }
16287+
16288+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16289+ return String(data: try self.jsonData(), encoding: encoding)
16290+ }
16291+}
16292+
1614916293 // MARK: - Typedef
1615016294 struct Typedef: Codable, Sendable {
1615116295 let typedef: Int
Mtypescript-effect-schemadefault / TopLevel.ts+65 −50
@@ -139,8 +139,28 @@ export class Typedef extends S.Class<Typedef>("Typedef")({
139139 "typedef": S.Int,
140140 }) {}
141141
142+export class Typealias extends S.Class<Typealias>("Typealias")({
143+ "typealias": S.Int,
144+}) {}
145+
146+export class Type extends S.Class<Type>("Type")({
147+ "Type": S.Int,
148+}) {}
149+
150+export class Try extends S.Class<Try>("Try")({
151+ "try": S.Int,
152+}) {}
153+
154+export class TypeClass extends S.Class<TypeClass>("TypeClass")({
155+ "type": S.Int,
156+}) {}
157+
142158 export class Obj6 extends S.Class<Obj6>("Obj6")({
143159 "dummy": S.Int,
160+ "type": TypeClass,
161+ "try": Try,
162+ "Type": Type,
163+ "typealias": Typealias,
144164 "typedef": Typedef,
145165 "typeid": Typeid,
146166 "typename": Typename,
@@ -176,18 +196,6 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({
176196 "yield": Yield,
177197 }) {}
178198
179-export class Typealias extends S.Class<Typealias>("Typealias")({
180- "typealias": S.Int,
181-}) {}
182-
183-export class Type extends S.Class<Type>("Type")({
184- "Type": S.Int,
185-}) {}
186-
187-export class Try extends S.Class<Try>("Try")({
188- "try": S.Int,
189-}) {}
190-
191199 export class True extends S.Class<True>("True")({
192200 "True": S.Int,
193201 }) {}
@@ -413,12 +421,24 @@ export class Restrict extends S.Class<Restrict>("Restrict")({
413421 "restrict": S.Int,
414422 }) {}
415423
416-export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({
417- "PrimitiveKind": S.Int,
424+export class Requires extends S.Class<Requires>("Requires")({
425+ "requires": S.Int,
418426 }) {}
419427
420-export class TypeClass extends S.Class<TypeClass>("TypeClass")({
421- "type": S.Int,
428+export class Required extends S.Class<Required>("Required")({
429+ "required": S.Int,
430+}) {}
431+
432+export class Require extends S.Class<Require>("Require")({
433+ "require": S.Int,
434+}) {}
435+
436+export class Repeat extends S.Class<Repeat>("Repeat")({
437+ "repeat": S.Int,
438+}) {}
439+
440+export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({
441+ "PrimitiveKind": S.Int,
422442 }) {}
423443
424444 export class TrueClass extends S.Class<TrueClass>("TrueClass")({
@@ -438,8 +458,11 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
438458 "KSerializer": KSerializer,
439459 "self": SelfClass,
440460 "true": TrueClass,
441- "type": TypeClass,
442461 "PrimitiveKind": PrimitiveKind,
462+ "repeat": Repeat,
463+ "require": Require,
464+ "required": Required,
465+ "requires": Requires,
443466 "restrict": Restrict,
444467 "retain": Retain,
445468 "rethrows": Rethrows,
@@ -496,28 +519,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
496519 "top_level": TopLevelClass,
497520 "transient": Transient,
498521 "True": True,
499- "try": Try,
500- "Type": Type,
501- "typealias": Typealias,
502522 }) {}
503523 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
504524
505-export class Requires extends S.Class<Requires>("Requires")({
506- "requires": S.Int,
507-}) {}
508-
509-export class Required extends S.Class<Required>("Required")({
510- "required": S.Int,
511-}) {}
512-
513-export class Require extends S.Class<Require>("Require")({
514- "require": S.Int,
515-}) {}
516-
517-export class Repeat extends S.Class<Repeat>("Repeat")({
518- "repeat": S.Int,
519-}) {}
520-
521525 export class ReinterpretCast extends S.Class<ReinterpretCast>("ReinterpretCast")({
522526 "reinterpret_cast": S.Int,
523527 }) {}
@@ -638,6 +642,14 @@ export class Oneway extends S.Class<Oneway>("Oneway")({
638642 "oneway": S.Int,
639643 }) {}
640644
645+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")({
646+ "OffsetTime": S.Int,
647+}) {}
648+
649+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")({
650+ "OffsetDateTime": S.Int,
651+}) {}
652+
641653 export class Of extends S.Class<Of>("Of")({
642654 "of": S.Int,
643655 }) {}
@@ -758,8 +770,18 @@ export class Namespace extends S.Class<Namespace>("Namespace")({
758770 "namespace": S.Int,
759771 }) {}
760772
773+export class Mutating extends S.Class<Mutating>("Mutating")({
774+ "mutating": S.Int,
775+}) {}
776+
777+export class Mutable extends S.Class<Mutable>("Mutable")({
778+ "mutable": S.Int,
779+}) {}
780+
761781 export class Obj4 extends S.Class<Obj4>("Obj4")({
762782 "dummy": S.Int,
783+ "mutable": Mutable,
784+ "mutating": Mutating,
763785 "namespace": Namespace,
764786 "native": Native,
765787 "new": New,
@@ -790,6 +812,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
790812 "ObjectReader": ObjectReader,
791813 "ObjectWriter": ObjectWriter,
792814 "of": Of,
815+ "OffsetDateTime": OffsetDateTime,
816+ "OffsetTime": OffsetTime,
793817 "oneway": Oneway,
794818 "open": Open,
795819 "operator": Operator,
@@ -820,18 +844,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
820844 "RegExp": RegExpClass,
821845 "register": Register,
822846 "reinterpret_cast": ReinterpretCast,
823- "repeat": Repeat,
824- "require": Require,
825- "required": Required,
826- "requires": Requires,
827-}) {}
828-
829-export class Mutating extends S.Class<Mutating>("Mutating")({
830- "mutating": S.Int,
831-}) {}
832-
833-export class Mutable extends S.Class<Mutable>("Mutable")({
834- "mutable": S.Int,
835847 }) {}
836848
837849 export class Module extends S.Class<Module>("Module")({
@@ -870,6 +882,10 @@ export class Locale extends S.Class<Locale>("Locale")({
870882 "Locale": S.Int,
871883 }) {}
872884
885+export class LocalDate extends S.Class<LocalDate>("LocalDate")({
886+ "LocalDate": S.Int,
887+}) {}
888+
873889 export class List extends S.Class<List>("List")({
874890 "list": S.Int,
875891 }) {}
@@ -1142,6 +1158,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
11421158 "left": Left,
11431159 "let": Let,
11441160 "list": List,
1161+ "LocalDate": LocalDate,
11451162 "Locale": Locale,
11461163 "lock": Lock,
11471164 "long": Long,
@@ -1151,8 +1168,6 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
11511168 "MarshalJSON": MarshalJson,
11521169 "metadata_property_handling": MetadataPropertyHandling,
11531170 "module": Module,
1154- "mutable": Mutable,
1155- "mutating": Mutating,
11561171 }) {}
11571172
11581173 export class FalseClass extends S.Class<FalseClass>("FalseClass")({
Mtypescript-zoddefault / TopLevel.ts+53 −35
@@ -917,6 +917,11 @@ export const ListSchema = z.object({
917917 });
918918 export type List = z.infer<typeof ListSchema>;
919919
920+export const LocalDateSchema = z.object({
921+ "LocalDate": z.number().int(),
922+});
923+export type LocalDate = z.infer<typeof LocalDateSchema>;
924+
920925 export const LocaleSchema = z.object({
921926 "Locale": z.number().int(),
922927 });
@@ -1122,6 +1127,16 @@ export const OfSchema = z.object({
11221127 });
11231128 export type Of = z.infer<typeof OfSchema>;
11241129
1130+export const OffsetDateTimeSchema = z.object({
1131+ "OffsetDateTime": z.number().int(),
1132+});
1133+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
1134+
1135+export const OffsetTimeSchema = z.object({
1136+ "OffsetTime": z.number().int(),
1137+});
1138+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
1139+
11251140 export const OnewaySchema = z.object({
11261141 "oneway": z.number().int(),
11271142 });
@@ -1272,26 +1287,6 @@ export const ReinterpretCastSchema = z.object({
12721287 });
12731288 export type ReinterpretCast = z.infer<typeof ReinterpretCastSchema>;
12741289
1275-export const RepeatSchema = z.object({
1276- "repeat": z.number().int(),
1277-});
1278-export type Repeat = z.infer<typeof RepeatSchema>;
1279-
1280-export const RequireSchema = z.object({
1281- "require": z.number().int(),
1282-});
1283-export type Require = z.infer<typeof RequireSchema>;
1284-
1285-export const RequiredSchema = z.object({
1286- "required": z.number().int(),
1287-});
1288-export type Required = z.infer<typeof RequiredSchema>;
1289-
1290-export const RequiresSchema = z.object({
1291- "requires": z.number().int(),
1292-});
1293-export type Requires = z.infer<typeof RequiresSchema>;
1294-
12951290 export const KSerializerSchema = z.object({
12961291 "KSerializer": z.number().int(),
12971292 });
@@ -1307,16 +1302,31 @@ export const TrueClassSchema = z.object({
13071302 });
13081303 export type TrueClass = z.infer<typeof TrueClassSchema>;
13091304
1310-export const TypeClassSchema = z.object({
1311- "type": z.number().int(),
1312-});
1313-export type TypeClass = z.infer<typeof TypeClassSchema>;
1314-
13151305 export const PrimitiveKindSchema = z.object({
13161306 "PrimitiveKind": z.number().int(),
13171307 });
13181308 export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>;
13191309
1310+export const RepeatSchema = z.object({
1311+ "repeat": z.number().int(),
1312+});
1313+export type Repeat = z.infer<typeof RepeatSchema>;
1314+
1315+export const RequireSchema = z.object({
1316+ "require": z.number().int(),
1317+});
1318+export type Require = z.infer<typeof RequireSchema>;
1319+
1320+export const RequiredSchema = z.object({
1321+ "required": z.number().int(),
1322+});
1323+export type Required = z.infer<typeof RequiredSchema>;
1324+
1325+export const RequiresSchema = z.object({
1326+ "requires": z.number().int(),
1327+});
1328+export type Requires = z.infer<typeof RequiresSchema>;
1329+
13201330 export const RestrictSchema = z.object({
13211331 "restrict": z.number().int(),
13221332 });
@@ -1597,6 +1607,11 @@ export const TrueSchema = z.object({
15971607 });
15981608 export type True = z.infer<typeof TrueSchema>;
15991609
1610+export const TypeClassSchema = z.object({
1611+ "type": z.number().int(),
1612+});
1613+export type TypeClass = z.infer<typeof TypeClassSchema>;
1614+
16001615 export const TrySchema = z.object({
16011616 "try": z.number().int(),
16021617 });
@@ -1971,6 +1986,7 @@ export const Obj3Schema = z.object({
19711986 "left": LeftSchema,
19721987 "let": LetSchema,
19731988 "list": ListSchema,
1989+ "LocalDate": LocalDateSchema,
19741990 "Locale": LocaleSchema,
19751991 "lock": LockSchema,
19761992 "long": LongSchema,
@@ -1980,13 +1996,13 @@ export const Obj3Schema = z.object({
19801996 "MarshalJSON": MarshalJsonSchema,
19811997 "metadata_property_handling": MetadataPropertyHandlingSchema,
19821998 "module": ModuleSchema,
1983- "mutable": MutableSchema,
1984- "mutating": MutatingSchema,
19851999 });
19862000 export type Obj3 = z.infer<typeof Obj3Schema>;
19872001
19882002 export const Obj4Schema = z.object({
19892003 "dummy": z.number().int(),
2004+ "mutable": MutableSchema,
2005+ "mutating": MutatingSchema,
19902006 "namespace": NamespaceSchema,
19912007 "native": NativeSchema,
19922008 "new": NewSchema,
@@ -2017,6 +2033,8 @@ export const Obj4Schema = z.object({
20172033 "ObjectReader": ObjectReaderSchema,
20182034 "ObjectWriter": ObjectWriterSchema,
20192035 "of": OfSchema,
2036+ "OffsetDateTime": OffsetDateTimeSchema,
2037+ "OffsetTime": OffsetTimeSchema,
20202038 "oneway": OnewaySchema,
20212039 "open": OpenSchema,
20222040 "operator": OperatorSchema,
@@ -2047,10 +2065,6 @@ export const Obj4Schema = z.object({
20472065 "RegExp": RegExpSchema,
20482066 "register": RegisterSchema,
20492067 "reinterpret_cast": ReinterpretCastSchema,
2050- "repeat": RepeatSchema,
2051- "require": RequireSchema,
2052- "required": RequiredSchema,
2053- "requires": RequiresSchema,
20542068 });
20552069 export type Obj4 = z.infer<typeof Obj4Schema>;
20562070
@@ -2059,8 +2073,11 @@ export const Obj5Schema = z.object({
20592073 "KSerializer": KSerializerSchema,
20602074 "self": SelfClassSchema,
20612075 "true": TrueClassSchema,
2062- "type": TypeClassSchema,
20632076 "PrimitiveKind": PrimitiveKindSchema,
2077+ "repeat": RepeatSchema,
2078+ "require": RequireSchema,
2079+ "required": RequiredSchema,
2080+ "requires": RequiresSchema,
20642081 "restrict": RestrictSchema,
20652082 "retain": RetainSchema,
20662083 "rethrows": RethrowsSchema,
@@ -2117,14 +2134,15 @@ export const Obj5Schema = z.object({
21172134 "top_level": TopLevelClassSchema,
21182135 "transient": TransientSchema,
21192136 "True": TrueSchema,
2120- "try": TrySchema,
2121- "Type": TypeSchema,
2122- "typealias": TypealiasSchema,
21232137 });
21242138 export type Obj5 = z.infer<typeof Obj5Schema>;
21252139
21262140 export const Obj6Schema = z.object({
21272141 "dummy": z.number().int(),
2142+ "type": TypeClassSchema,
2143+ "try": TrySchema,
2144+ "Type": TypeSchema,
2145+ "typealias": TypealiasSchema,
21282146 "typedef": TypedefSchema,
21292147 "typeid": TypeidSchema,
21302148 "typename": TypenameSchema,
Mtypescriptdefault / TopLevel.ts+114 −87
@@ -684,6 +684,7 @@ export interface Obj3 {
684684 JsonParser: JSONParser;
685685 JsonReader: JSONReader;
686686 JsonTokenType: JSONTokenType;
687+ LocalDate: LocalDate;
687688 Locale: Locale;
688689 LongNode: LongNode;
689690 MapEntry: MapEntry;
@@ -732,8 +733,6 @@ export interface Obj3 {
732733 map: Map;
733734 metadata_property_handling: MetadataPropertyHandling;
734735 module: Module;
735- mutable: Mutable;
736- mutating: Mutating;
737736 }
738737
739738 export interface Hashable {
@@ -800,6 +799,10 @@ export interface JSONTokenType {
800799 JsonTokenType: number;
801800 }
802801
802+export interface LocalDate {
803+ LocalDate: number;
804+}
805+
803806 export interface Locale {
804807 Locale: number;
805808 }
@@ -988,14 +991,6 @@ export interface Module {
988991 module: number;
989992 }
990993
991-export interface Mutable {
992- mutable: number;
993-}
994-
995-export interface Mutating {
996- mutating: number;
997-}
998-
999994 export interface Obj4 {
1000995 NO: No;
1001996 NSError: NSError;
@@ -1008,9 +1003,13 @@ export interface Obj4 {
10081003 ObjectNode: ObjectNode;
10091004 ObjectReader: ObjectReader;
10101005 ObjectWriter: ObjectWriter;
1006+ OffsetDateTime: OffsetDateTime;
1007+ OffsetTime: OffsetTime;
10111008 Protocol: Protocol;
10121009 RegExp: RegExp;
10131010 dummy: number;
1011+ mutable: Mutable;
1012+ mutating: Mutating;
10141013 namespace: Namespace;
10151014 native: Native;
10161015 new: New;
@@ -1058,10 +1057,6 @@ export interface Obj4 {
10581057 ref: Ref;
10591058 register: Register;
10601059 reinterpret_cast: ReinterpretCast;
1061- repeat: Repeat;
1062- require: Require;
1063- required: Required;
1064- requires: Requires;
10651060 }
10661061
10671062 export interface No {
@@ -1108,6 +1103,14 @@ export interface ObjectWriter {
11081103 ObjectWriter: number;
11091104 }
11101105
1106+export interface OffsetDateTime {
1107+ OffsetDateTime: number;
1108+}
1109+
1110+export interface OffsetTime {
1111+ OffsetTime: number;
1112+}
1113+
11111114 export interface Protocol {
11121115 Protocol: number;
11131116 }
@@ -1116,6 +1119,14 @@ export interface RegExp {
11161119 RegExp: string;
11171120 }
11181121
1122+export interface Mutable {
1123+ mutable: number;
1124+}
1125+
1126+export interface Mutating {
1127+ mutating: number;
1128+}
1129+
11191130 export interface Namespace {
11201131 namespace: number;
11211132 }
@@ -1304,22 +1315,6 @@ export interface ReinterpretCast {
13041315 reinterpret_cast: number;
13051316 }
13061317
1307-export interface Repeat {
1308- repeat: number;
1309-}
1310-
1311-export interface Require {
1312- require: number;
1313-}
1314-
1315-export interface Required {
1316- required: number;
1317-}
1318-
1319-export interface Requires {
1320- requires: number;
1321-}
1322-
13231318 export interface Obj5 {
13241319 KSerializer: KSerializer;
13251320 PrimitiveKind: PrimitiveKind;
@@ -1340,8 +1335,11 @@ export interface Obj5 {
13401335 TimeOnlyConverter: TimeOnlyConverter;
13411336 TimeZone: TimeZone;
13421337 True: True;
1343- Type: Type;
13441338 dummy: number;
1339+ repeat: Repeat;
1340+ require: Require;
1341+ required: Required;
1342+ requires: Requires;
13451343 restrict: Restrict;
13461344 retain: Retain;
13471345 rethrows: Rethrows;
@@ -1383,9 +1381,6 @@ export interface Obj5 {
13831381 top_level: TopLevelClass;
13841382 transient: Transient;
13851383 true: TrueClass;
1386- try: Try;
1387- type: TypeClass;
1388- typealias: Typealias;
13891384 }
13901385
13911386 export interface KSerializer {
@@ -1464,8 +1459,20 @@ export interface True {
14641459 True: number;
14651460 }
14661461
1467-export interface Type {
1468- Type: number;
1462+export interface Repeat {
1463+ repeat: number;
1464+}
1465+
1466+export interface Require {
1467+ require: number;
1468+}
1469+
1470+export interface Required {
1471+ required: number;
1472+}
1473+
1474+export interface Requires {
1475+ requires: number;
14691476 }
14701477
14711478 export interface Restrict {
@@ -1632,19 +1639,8 @@ export interface TrueClass {
16321639 true: number;
16331640 }
16341641
1635-export interface Try {
1636- try: number;
1637-}
1638-
1639-export interface TypeClass {
1640- type: number;
1641-}
1642-
1643-export interface Typealias {
1644- typealias: number;
1645-}
1646-
16471642 export interface Obj6 {
1643+ Type: Type;
16481644 UUID: UUID;
16491645 UnmarshalJSON: UnmarshalJSON;
16501646 UseSerializers: UseSerializers;
@@ -1652,6 +1648,9 @@ export interface Obj6 {
16521648 Utf8JsonWriter: Utf8JSONWriter;
16531649 YES: Yes;
16541650 dummy: number;
1651+ try: Try;
1652+ type: TypeClass;
1653+ typealias: Typealias;
16551654 typedef: Typedef;
16561655 typeid: Typeid;
16571656 typename: Typename;
@@ -1681,6 +1680,10 @@ export interface Obj6 {
16811680 yield: Yield;
16821681 }
16831682
1683+export interface Type {
1684+ Type: number;
1685+}
1686+
16841687 export interface UUID {
16851688 UUID: number;
16861689 }
@@ -1705,6 +1708,18 @@ export interface Yes {
17051708 YES: number;
17061709 }
17071710
1711+export interface Try {
1712+ try: number;
1713+}
1714+
1715+export interface TypeClass {
1716+ type: number;
1717+}
1718+
1719+export interface Typealias {
1720+ typealias: number;
1721+}
1722+
17081723 export interface Typedef {
17091724 typedef: number;
17101725 }
@@ -2545,6 +2560,7 @@ const typeMap: any = {
25452560 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
25462561 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
25472562 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2563+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
25482564 { json: "Locale", js: "Locale", typ: r("Locale") },
25492565 { json: "LongNode", js: "LongNode", typ: r("LongNode") },
25502566 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
@@ -2593,8 +2609,6 @@ const typeMap: any = {
25932609 { json: "map", js: "map", typ: r("Map") },
25942610 { json: "metadata_property_handling", js: "metadata_property_handling", typ: r("MetadataPropertyHandling") },
25952611 { json: "module", js: "module", typ: r("Module") },
2596- { json: "mutable", js: "mutable", typ: r("Mutable") },
2597- { json: "mutating", js: "mutating", typ: r("Mutating") },
25982612 ], false),
25992613 "Hashable": o([
26002614 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2644,6 +2658,9 @@ const typeMap: any = {
26442658 "JSONTokenType": o([
26452659 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
26462660 ], false),
2661+ "LocalDate": o([
2662+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2663+ ], false),
26472664 "Locale": o([
26482665 { json: "Locale", js: "Locale", typ: i(0) },
26492666 ], false),
@@ -2785,12 +2802,6 @@ const typeMap: any = {
27852802 "Module": o([
27862803 { json: "module", js: "module", typ: i(0) },
27872804 ], false),
2788- "Mutable": o([
2789- { json: "mutable", js: "mutable", typ: i(0) },
2790- ], false),
2791- "Mutating": o([
2792- { json: "mutating", js: "mutating", typ: i(0) },
2793- ], false),
27942805 "Obj4": o([
27952806 { json: "NO", js: "NO", typ: r("No") },
27962807 { json: "NSError", js: "NSError", typ: r("NSError") },
@@ -2803,9 +2814,13 @@ const typeMap: any = {
28032814 { json: "ObjectNode", js: "ObjectNode", typ: r("ObjectNode") },
28042815 { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") },
28052816 { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") },
2817+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2818+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
28062819 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
28072820 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
28082821 { json: "dummy", js: "dummy", typ: i(0) },
2822+ { json: "mutable", js: "mutable", typ: r("Mutable") },
2823+ { json: "mutating", js: "mutating", typ: r("Mutating") },
28092824 { json: "namespace", js: "namespace", typ: r("Namespace") },
28102825 { json: "native", js: "native", typ: r("Native") },
28112826 { json: "new", js: "new", typ: r("New") },
@@ -2853,10 +2868,6 @@ const typeMap: any = {
28532868 { json: "ref", js: "ref", typ: r("Ref") },
28542869 { json: "register", js: "register", typ: r("Register") },
28552870 { json: "reinterpret_cast", js: "reinterpret_cast", typ: r("ReinterpretCast") },
2856- { json: "repeat", js: "repeat", typ: r("Repeat") },
2857- { json: "require", js: "require", typ: r("Require") },
2858- { json: "required", js: "required", typ: r("Required") },
2859- { json: "requires", js: "requires", typ: r("Requires") },
28602871 ], false),
28612872 "No": o([
28622873 { json: "NO", js: "NO", typ: i(0) },
@@ -2891,12 +2902,24 @@ const typeMap: any = {
28912902 "ObjectWriter": o([
28922903 { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) },
28932904 ], false),
2905+ "OffsetDateTime": o([
2906+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2907+ ], false),
2908+ "OffsetTime": o([
2909+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2910+ ], false),
28942911 "Protocol": o([
28952912 { json: "Protocol", js: "Protocol", typ: i(0) },
28962913 ], false),
28972914 "RegExp": o([
28982915 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28992916 ], false),
2917+ "Mutable": o([
2918+ { json: "mutable", js: "mutable", typ: i(0) },
2919+ ], false),
2920+ "Mutating": o([
2921+ { json: "mutating", js: "mutating", typ: i(0) },
2922+ ], false),
29002923 "Namespace": o([
29012924 { json: "namespace", js: "namespace", typ: i(0) },
29022925 ], false),
@@ -3038,18 +3061,6 @@ const typeMap: any = {
30383061 "ReinterpretCast": o([
30393062 { json: "reinterpret_cast", js: "reinterpret_cast", typ: i(0) },
30403063 ], false),
3041- "Repeat": o([
3042- { json: "repeat", js: "repeat", typ: i(0) },
3043- ], false),
3044- "Require": o([
3045- { json: "require", js: "require", typ: i(0) },
3046- ], false),
3047- "Required": o([
3048- { json: "required", js: "required", typ: i(0) },
3049- ], false),
3050- "Requires": o([
3051- { json: "requires", js: "requires", typ: i(0) },
3052- ], false),
30533064 "Obj5": o([
30543065 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
30553066 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -3070,8 +3081,11 @@ const typeMap: any = {
30703081 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: r("TimeOnlyConverter") },
30713082 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
30723083 { json: "True", js: "True", typ: r("True") },
3073- { json: "Type", js: "Type", typ: r("Type") },
30743084 { json: "dummy", js: "dummy", typ: i(0) },
3085+ { json: "repeat", js: "repeat", typ: r("Repeat") },
3086+ { json: "require", js: "require", typ: r("Require") },
3087+ { json: "required", js: "required", typ: r("Required") },
3088+ { json: "requires", js: "requires", typ: r("Requires") },
30753089 { json: "restrict", js: "restrict", typ: r("Restrict") },
30763090 { json: "retain", js: "retain", typ: r("Retain") },
30773091 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
@@ -3113,9 +3127,6 @@ const typeMap: any = {
31133127 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
31143128 { json: "transient", js: "transient", typ: r("Transient") },
31153129 { json: "true", js: "true", typ: r("TrueClass") },
3116- { json: "try", js: "try", typ: r("Try") },
3117- { json: "type", js: "type", typ: r("TypeClass") },
3118- { json: "typealias", js: "typealias", typ: r("Typealias") },
31193130 ], false),
31203131 "KSerializer": o([
31213132 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3174,8 +3185,17 @@ const typeMap: any = {
31743185 "True": o([
31753186 { json: "True", js: "True", typ: i(0) },
31763187 ], false),
3177- "Type": o([
3178- { json: "Type", js: "Type", typ: i(0) },
3188+ "Repeat": o([
3189+ { json: "repeat", js: "repeat", typ: i(0) },
3190+ ], false),
3191+ "Require": o([
3192+ { json: "require", js: "require", typ: i(0) },
3193+ ], false),
3194+ "Required": o([
3195+ { json: "required", js: "required", typ: i(0) },
3196+ ], false),
3197+ "Requires": o([
3198+ { json: "requires", js: "requires", typ: i(0) },
31793199 ], false),
31803200 "Restrict": o([
31813201 { json: "restrict", js: "restrict", typ: i(0) },
@@ -3300,16 +3320,8 @@ const typeMap: any = {
33003320 "TrueClass": o([
33013321 { json: "true", js: "true", typ: i(0) },
33023322 ], false),
3303- "Try": o([
3304- { json: "try", js: "try", typ: i(0) },
3305- ], false),
3306- "TypeClass": o([
3307- { json: "type", js: "type", typ: i(0) },
3308- ], false),
3309- "Typealias": o([
3310- { json: "typealias", js: "typealias", typ: i(0) },
3311- ], false),
33123323 "Obj6": o([
3324+ { json: "Type", js: "Type", typ: r("Type") },
33133325 { json: "UUID", js: "UUID", typ: r("UUID") },
33143326 { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
33153327 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
@@ -3317,6 +3329,9 @@ const typeMap: any = {
33173329 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
33183330 { json: "YES", js: "YES", typ: r("Yes") },
33193331 { json: "dummy", js: "dummy", typ: i(0) },
3332+ { json: "try", js: "try", typ: r("Try") },
3333+ { json: "type", js: "type", typ: r("TypeClass") },
3334+ { json: "typealias", js: "typealias", typ: r("Typealias") },
33203335 { json: "typedef", js: "typedef", typ: r("Typedef") },
33213336 { json: "typeid", js: "typeid", typ: r("Typeid") },
33223337 { json: "typename", js: "typename", typ: r("Typename") },
@@ -3345,6 +3360,9 @@ const typeMap: any = {
33453360 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
33463361 { json: "yield", js: "yield", typ: r("Yield") },
33473362 ], false),
3363+ "Type": o([
3364+ { json: "Type", js: "Type", typ: i(0) },
3365+ ], false),
33483366 "UUID": o([
33493367 { json: "UUID", js: "UUID", typ: i(0) },
33503368 ], false),
@@ -3363,6 +3381,15 @@ const typeMap: any = {
33633381 "Yes": o([
33643382 { json: "YES", js: "YES", typ: i(0) },
33653383 ], false),
3384+ "Try": o([
3385+ { json: "try", js: "try", typ: i(0) },
3386+ ], false),
3387+ "TypeClass": o([
3388+ { json: "type", js: "type", typ: i(0) },
3389+ ], false),
3390+ "Typealias": o([
3391+ { json: "typealias", js: "typealias", typ: i(0) },
3392+ ], false),
33663393 "Typedef": o([
33673394 { json: "typedef", js: "typedef", typ: i(0) },
33683395 ], false),
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+114 −87
@@ -684,6 +684,7 @@ export type Obj3 = {
684684 JsonParser: JSONParser;
685685 JsonReader: JSONReader;
686686 JsonTokenType: JSONTokenType;
687+ LocalDate: LocalDate;
687688 Locale: Locale;
688689 LongNode: LongNode;
689690 MapEntry: MapEntry;
@@ -732,8 +733,6 @@ export type Obj3 = {
732733 map: Map;
733734 metadata_property_handling: MetadataPropertyHandling;
734735 module: Module;
735- mutable: Mutable;
736- mutating: Mutating;
737736 }
738737
739738 export type Hashable = {
@@ -800,6 +799,10 @@ export type JSONTokenType = {
800799 JsonTokenType: number;
801800 }
802801
802+export type LocalDate = {
803+ LocalDate: number;
804+}
805+
803806 export type Locale = {
804807 Locale: number;
805808 }
@@ -988,14 +991,6 @@ export type Module = {
988991 module: number;
989992 }
990993
991-export type Mutable = {
992- mutable: number;
993-}
994-
995-export type Mutating = {
996- mutating: number;
997-}
998-
999994 export type Obj4 = {
1000995 NO: No;
1001996 NSError: NSError;
@@ -1008,9 +1003,13 @@ export type Obj4 = {
10081003 ObjectNode: ObjectNode;
10091004 ObjectReader: ObjectReader;
10101005 ObjectWriter: ObjectWriter;
1006+ OffsetDateTime: OffsetDateTime;
1007+ OffsetTime: OffsetTime;
10111008 Protocol: Protocol;
10121009 RegExp: RegExp;
10131010 dummy: number;
1011+ mutable: Mutable;
1012+ mutating: Mutating;
10141013 namespace: Namespace;
10151014 native: Native;
10161015 new: New;
@@ -1058,10 +1057,6 @@ export type Obj4 = {
10581057 ref: Ref;
10591058 register: Register;
10601059 reinterpret_cast: ReinterpretCast;
1061- repeat: Repeat;
1062- require: Require;
1063- required: Required;
1064- requires: Requires;
10651060 }
10661061
10671062 export type No = {
@@ -1108,6 +1103,14 @@ export type ObjectWriter = {
11081103 ObjectWriter: number;
11091104 }
11101105
1106+export type OffsetDateTime = {
1107+ OffsetDateTime: number;
1108+}
1109+
1110+export type OffsetTime = {
1111+ OffsetTime: number;
1112+}
1113+
11111114 export type Protocol = {
11121115 Protocol: number;
11131116 }
@@ -1116,6 +1119,14 @@ export type RegExp = {
11161119 RegExp: string;
11171120 }
11181121
1122+export type Mutable = {
1123+ mutable: number;
1124+}
1125+
1126+export type Mutating = {
1127+ mutating: number;
1128+}
1129+
11191130 export type Namespace = {
11201131 namespace: number;
11211132 }
@@ -1304,22 +1315,6 @@ export type ReinterpretCast = {
13041315 reinterpret_cast: number;
13051316 }
13061317
1307-export type Repeat = {
1308- repeat: number;
1309-}
1310-
1311-export type Require = {
1312- require: number;
1313-}
1314-
1315-export type Required = {
1316- required: number;
1317-}
1318-
1319-export type Requires = {
1320- requires: number;
1321-}
1322-
13231318 export type Obj5 = {
13241319 KSerializer: KSerializer;
13251320 PrimitiveKind: PrimitiveKind;
@@ -1340,8 +1335,11 @@ export type Obj5 = {
13401335 TimeOnlyConverter: TimeOnlyConverter;
13411336 TimeZone: TimeZone;
13421337 True: True;
1343- Type: Type;
13441338 dummy: number;
1339+ repeat: Repeat;
1340+ require: Require;
1341+ required: Required;
1342+ requires: Requires;
13451343 restrict: Restrict;
13461344 retain: Retain;
13471345 rethrows: Rethrows;
@@ -1383,9 +1381,6 @@ export type Obj5 = {
13831381 top_level: TopLevelClass;
13841382 transient: Transient;
13851383 true: TrueClass;
1386- try: Try;
1387- type: TypeClass;
1388- typealias: Typealias;
13891384 }
13901385
13911386 export type KSerializer = {
@@ -1464,8 +1459,20 @@ export type True = {
14641459 True: number;
14651460 }
14661461
1467-export type Type = {
1468- Type: number;
1462+export type Repeat = {
1463+ repeat: number;
1464+}
1465+
1466+export type Require = {
1467+ require: number;
1468+}
1469+
1470+export type Required = {
1471+ required: number;
1472+}
1473+
1474+export type Requires = {
1475+ requires: number;
14691476 }
14701477
14711478 export type Restrict = {
@@ -1632,19 +1639,8 @@ export type TrueClass = {
16321639 true: number;
16331640 }
16341641
1635-export type Try = {
1636- try: number;
1637-}
1638-
1639-export type TypeClass = {
1640- type: number;
1641-}
1642-
1643-export type Typealias = {
1644- typealias: number;
1645-}
1646-
16471642 export type Obj6 = {
1643+ Type: Type;
16481644 UUID: UUID;
16491645 UnmarshalJSON: UnmarshalJSON;
16501646 UseSerializers: UseSerializers;
@@ -1652,6 +1648,9 @@ export type Obj6 = {
16521648 Utf8JsonWriter: Utf8JSONWriter;
16531649 YES: Yes;
16541650 dummy: number;
1651+ try: Try;
1652+ type: TypeClass;
1653+ typealias: Typealias;
16551654 typedef: Typedef;
16561655 typeid: Typeid;
16571656 typename: Typename;
@@ -1681,6 +1680,10 @@ export type Obj6 = {
16811680 yield: Yield;
16821681 }
16831682
1683+export type Type = {
1684+ Type: number;
1685+}
1686+
16841687 export type UUID = {
16851688 UUID: number;
16861689 }
@@ -1705,6 +1708,18 @@ export type Yes = {
17051708 YES: number;
17061709 }
17071710
1711+export type Try = {
1712+ try: number;
1713+}
1714+
1715+export type TypeClass = {
1716+ type: number;
1717+}
1718+
1719+export type Typealias = {
1720+ typealias: number;
1721+}
1722+
17081723 export type Typedef = {
17091724 typedef: number;
17101725 }
@@ -2545,6 +2560,7 @@ const typeMap: any = {
25452560 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
25462561 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
25472562 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2563+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
25482564 { json: "Locale", js: "Locale", typ: r("Locale") },
25492565 { json: "LongNode", js: "LongNode", typ: r("LongNode") },
25502566 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
@@ -2593,8 +2609,6 @@ const typeMap: any = {
25932609 { json: "map", js: "map", typ: r("Map") },
25942610 { json: "metadata_property_handling", js: "metadata_property_handling", typ: r("MetadataPropertyHandling") },
25952611 { json: "module", js: "module", typ: r("Module") },
2596- { json: "mutable", js: "mutable", typ: r("Mutable") },
2597- { json: "mutating", js: "mutating", typ: r("Mutating") },
25982612 ], false),
25992613 "Hashable": o([
26002614 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2644,6 +2658,9 @@ const typeMap: any = {
26442658 "JSONTokenType": o([
26452659 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
26462660 ], false),
2661+ "LocalDate": o([
2662+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2663+ ], false),
26472664 "Locale": o([
26482665 { json: "Locale", js: "Locale", typ: i(0) },
26492666 ], false),
@@ -2785,12 +2802,6 @@ const typeMap: any = {
27852802 "Module": o([
27862803 { json: "module", js: "module", typ: i(0) },
27872804 ], false),
2788- "Mutable": o([
2789- { json: "mutable", js: "mutable", typ: i(0) },
2790- ], false),
2791- "Mutating": o([
2792- { json: "mutating", js: "mutating", typ: i(0) },
2793- ], false),
27942805 "Obj4": o([
27952806 { json: "NO", js: "NO", typ: r("No") },
27962807 { json: "NSError", js: "NSError", typ: r("NSError") },
@@ -2803,9 +2814,13 @@ const typeMap: any = {
28032814 { json: "ObjectNode", js: "ObjectNode", typ: r("ObjectNode") },
28042815 { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") },
28052816 { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") },
2817+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2818+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
28062819 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
28072820 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
28082821 { json: "dummy", js: "dummy", typ: i(0) },
2822+ { json: "mutable", js: "mutable", typ: r("Mutable") },
2823+ { json: "mutating", js: "mutating", typ: r("Mutating") },
28092824 { json: "namespace", js: "namespace", typ: r("Namespace") },
28102825 { json: "native", js: "native", typ: r("Native") },
28112826 { json: "new", js: "new", typ: r("New") },
@@ -2853,10 +2868,6 @@ const typeMap: any = {
28532868 { json: "ref", js: "ref", typ: r("Ref") },
28542869 { json: "register", js: "register", typ: r("Register") },
28552870 { json: "reinterpret_cast", js: "reinterpret_cast", typ: r("ReinterpretCast") },
2856- { json: "repeat", js: "repeat", typ: r("Repeat") },
2857- { json: "require", js: "require", typ: r("Require") },
2858- { json: "required", js: "required", typ: r("Required") },
2859- { json: "requires", js: "requires", typ: r("Requires") },
28602871 ], false),
28612872 "No": o([
28622873 { json: "NO", js: "NO", typ: i(0) },
@@ -2891,12 +2902,24 @@ const typeMap: any = {
28912902 "ObjectWriter": o([
28922903 { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) },
28932904 ], false),
2905+ "OffsetDateTime": o([
2906+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2907+ ], false),
2908+ "OffsetTime": o([
2909+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2910+ ], false),
28942911 "Protocol": o([
28952912 { json: "Protocol", js: "Protocol", typ: i(0) },
28962913 ], false),
28972914 "RegExp": o([
28982915 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28992916 ], false),
2917+ "Mutable": o([
2918+ { json: "mutable", js: "mutable", typ: i(0) },
2919+ ], false),
2920+ "Mutating": o([
2921+ { json: "mutating", js: "mutating", typ: i(0) },
2922+ ], false),
29002923 "Namespace": o([
29012924 { json: "namespace", js: "namespace", typ: i(0) },
29022925 ], false),
@@ -3038,18 +3061,6 @@ const typeMap: any = {
30383061 "ReinterpretCast": o([
30393062 { json: "reinterpret_cast", js: "reinterpret_cast", typ: i(0) },
30403063 ], false),
3041- "Repeat": o([
3042- { json: "repeat", js: "repeat", typ: i(0) },
3043- ], false),
3044- "Require": o([
3045- { json: "require", js: "require", typ: i(0) },
3046- ], false),
3047- "Required": o([
3048- { json: "required", js: "required", typ: i(0) },
3049- ], false),
3050- "Requires": o([
3051- { json: "requires", js: "requires", typ: i(0) },
3052- ], false),
30533064 "Obj5": o([
30543065 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
30553066 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
@@ -3070,8 +3081,11 @@ const typeMap: any = {
30703081 { json: "TimeOnlyConverter", js: "TimeOnlyConverter", typ: r("TimeOnlyConverter") },
30713082 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
30723083 { json: "True", js: "True", typ: r("True") },
3073- { json: "Type", js: "Type", typ: r("Type") },
30743084 { json: "dummy", js: "dummy", typ: i(0) },
3085+ { json: "repeat", js: "repeat", typ: r("Repeat") },
3086+ { json: "require", js: "require", typ: r("Require") },
3087+ { json: "required", js: "required", typ: r("Required") },
3088+ { json: "requires", js: "requires", typ: r("Requires") },
30753089 { json: "restrict", js: "restrict", typ: r("Restrict") },
30763090 { json: "retain", js: "retain", typ: r("Retain") },
30773091 { json: "rethrows", js: "rethrows", typ: r("Rethrows") },
@@ -3113,9 +3127,6 @@ const typeMap: any = {
31133127 { json: "top_level", js: "top_level", typ: r("TopLevelClass") },
31143128 { json: "transient", js: "transient", typ: r("Transient") },
31153129 { json: "true", js: "true", typ: r("TrueClass") },
3116- { json: "try", js: "try", typ: r("Try") },
3117- { json: "type", js: "type", typ: r("TypeClass") },
3118- { json: "typealias", js: "typealias", typ: r("Typealias") },
31193130 ], false),
31203131 "KSerializer": o([
31213132 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3174,8 +3185,17 @@ const typeMap: any = {
31743185 "True": o([
31753186 { json: "True", js: "True", typ: i(0) },
31763187 ], false),
3177- "Type": o([
3178- { json: "Type", js: "Type", typ: i(0) },
3188+ "Repeat": o([
3189+ { json: "repeat", js: "repeat", typ: i(0) },
3190+ ], false),
3191+ "Require": o([
3192+ { json: "require", js: "require", typ: i(0) },
3193+ ], false),
3194+ "Required": o([
3195+ { json: "required", js: "required", typ: i(0) },
3196+ ], false),
3197+ "Requires": o([
3198+ { json: "requires", js: "requires", typ: i(0) },
31793199 ], false),
31803200 "Restrict": o([
31813201 { json: "restrict", js: "restrict", typ: i(0) },
@@ -3300,16 +3320,8 @@ const typeMap: any = {
33003320 "TrueClass": o([
33013321 { json: "true", js: "true", typ: i(0) },
33023322 ], false),
3303- "Try": o([
3304- { json: "try", js: "try", typ: i(0) },
3305- ], false),
3306- "TypeClass": o([
3307- { json: "type", js: "type", typ: i(0) },
3308- ], false),
3309- "Typealias": o([
3310- { json: "typealias", js: "typealias", typ: i(0) },
3311- ], false),
33123323 "Obj6": o([
3324+ { json: "Type", js: "Type", typ: r("Type") },
33133325 { json: "UUID", js: "UUID", typ: r("UUID") },
33143326 { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") },
33153327 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
@@ -3317,6 +3329,9 @@ const typeMap: any = {
33173329 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
33183330 { json: "YES", js: "YES", typ: r("Yes") },
33193331 { json: "dummy", js: "dummy", typ: i(0) },
3332+ { json: "try", js: "try", typ: r("Try") },
3333+ { json: "type", js: "type", typ: r("TypeClass") },
3334+ { json: "typealias", js: "typealias", typ: r("Typealias") },
33203335 { json: "typedef", js: "typedef", typ: r("Typedef") },
33213336 { json: "typeid", js: "typeid", typ: r("Typeid") },
33223337 { json: "typename", js: "typename", typ: r("Typename") },
@@ -3345,6 +3360,9 @@ const typeMap: any = {
33453360 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
33463361 { json: "yield", js: "yield", typ: r("Yield") },
33473362 ], false),
3363+ "Type": o([
3364+ { json: "Type", js: "Type", typ: i(0) },
3365+ ], false),
33483366 "UUID": o([
33493367 { json: "UUID", js: "UUID", typ: i(0) },
33503368 ], false),
@@ -3363,6 +3381,15 @@ const typeMap: any = {
33633381 "Yes": o([
33643382 { json: "YES", js: "YES", typ: i(0) },
33653383 ], false),
3384+ "Try": o([
3385+ { json: "try", js: "try", typ: i(0) },
3386+ ], false),
3387+ "TypeClass": o([
3388+ { json: "type", js: "type", typ: i(0) },
3389+ ], false),
3390+ "Typealias": o([
3391+ { json: "typealias", js: "typealias", typ: i(0) },
3392+ ], false),
33663393 "Typedef": o([
33673394 { json: "typedef", js: "typedef", typ: i(0) },
33683395 ], false),
Test case

test/inputs/schema/date-time.schema

45 generated files · +1,814 −57
Mschema-cjsondefault / TopLevel.c+180 −0
@@ -48,6 +48,153 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x) {
4848 }
4949 }
5050
51+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
52+ struct LocalDate * x = NULL;
53+ if (NULL != s) {
54+ cJSON * j = cJSON_Parse(s);
55+ if (NULL != j) {
56+ x = cJSON_GetLocalDateValue(j);
57+ cJSON_Delete(j);
58+ }
59+ }
60+ return x;
61+}
62+
63+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
64+ struct LocalDate * x = NULL;
65+ if (NULL != j) {
66+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
67+ memset(x, 0, sizeof(struct LocalDate));
68+ }
69+ }
70+ return x;
71+}
72+
73+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
74+ cJSON * j = NULL;
75+ if (NULL != x) {
76+ if (NULL != (j = cJSON_CreateObject())) {
77+ }
78+ }
79+ return j;
80+}
81+
82+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
83+ char * s = NULL;
84+ if (NULL != x) {
85+ cJSON * j = cJSON_CreateLocalDate(x);
86+ if (NULL != j) {
87+ s = cJSON_Print(j);
88+ cJSON_Delete(j);
89+ }
90+ }
91+ return s;
92+}
93+
94+void cJSON_DeleteLocalDate(struct LocalDate * x) {
95+ if (NULL != x) {
96+ cJSON_free(x);
97+ }
98+}
99+
100+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
101+ struct OffsetDateTime * x = NULL;
102+ if (NULL != s) {
103+ cJSON * j = cJSON_Parse(s);
104+ if (NULL != j) {
105+ x = cJSON_GetOffsetDateTimeValue(j);
106+ cJSON_Delete(j);
107+ }
108+ }
109+ return x;
110+}
111+
112+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
113+ struct OffsetDateTime * x = NULL;
114+ if (NULL != j) {
115+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
116+ memset(x, 0, sizeof(struct OffsetDateTime));
117+ }
118+ }
119+ return x;
120+}
121+
122+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
123+ cJSON * j = NULL;
124+ if (NULL != x) {
125+ if (NULL != (j = cJSON_CreateObject())) {
126+ }
127+ }
128+ return j;
129+}
130+
131+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
132+ char * s = NULL;
133+ if (NULL != x) {
134+ cJSON * j = cJSON_CreateOffsetDateTime(x);
135+ if (NULL != j) {
136+ s = cJSON_Print(j);
137+ cJSON_Delete(j);
138+ }
139+ }
140+ return s;
141+}
142+
143+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
144+ if (NULL != x) {
145+ cJSON_free(x);
146+ }
147+}
148+
149+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
150+ struct OffsetTime * x = NULL;
151+ if (NULL != s) {
152+ cJSON * j = cJSON_Parse(s);
153+ if (NULL != j) {
154+ x = cJSON_GetOffsetTimeValue(j);
155+ cJSON_Delete(j);
156+ }
157+ }
158+ return x;
159+}
160+
161+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
162+ struct OffsetTime * x = NULL;
163+ if (NULL != j) {
164+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
165+ memset(x, 0, sizeof(struct OffsetTime));
166+ }
167+ }
168+ return x;
169+}
170+
171+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
172+ cJSON * j = NULL;
173+ if (NULL != x) {
174+ if (NULL != (j = cJSON_CreateObject())) {
175+ }
176+ }
177+ return j;
178+}
179+
180+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
181+ char * s = NULL;
182+ if (NULL != x) {
183+ cJSON * j = cJSON_CreateOffsetTime(x);
184+ if (NULL != j) {
185+ s = cJSON_Print(j);
186+ cJSON_Delete(j);
187+ }
188+ }
189+ return s;
190+}
191+
192+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
193+ if (NULL != x) {
194+ cJSON_free(x);
195+ }
196+}
197+
51198 struct TopLevel * cJSON_ParseTopLevel(const char * s) {
52199 struct TopLevel * x = NULL;
53200 if (NULL != s) {
@@ -103,6 +250,21 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
103250 x->date_time[0] = '\0';
104251 }
105252 }
253+ if (cJSON_HasObjectItem(j, "local-date-class")) {
254+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "local-date-class"))) { cJSON_DeleteTopLevel(x); return NULL; }
255+ x->local_date_class = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "local-date-class"));
256+ if (NULL == x->local_date_class) { cJSON_DeleteTopLevel(x); return NULL; }
257+ }
258+ if (cJSON_HasObjectItem(j, "offset-date-time-class")) {
259+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; }
260+ x->offset_date_time_class = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class"));
261+ if (NULL == x->offset_date_time_class) { cJSON_DeleteTopLevel(x); return NULL; }
262+ }
263+ if (cJSON_HasObjectItem(j, "offset-time-class")) {
264+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; }
265+ x->offset_time_class = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class"));
266+ if (NULL == x->offset_time_class) { cJSON_DeleteTopLevel(x); return NULL; }
267+ }
106268 if (!cJSON_HasObjectItem(j, "time")) { cJSON_DeleteTopLevel(x); return NULL; }
107269 if (cJSON_HasObjectItem(j, "time")) {
108270 if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "time"))) { cJSON_DeleteTopLevel(x); return NULL; }
@@ -160,6 +322,15 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
160322 else {
161323 cJSON_AddStringToObject(j, "date-time", "");
162324 }
325+ if (NULL != x->local_date_class) {
326+ cJSON_AddItemToObject(j, "local-date-class", cJSON_CreateLocalDate(x->local_date_class));
327+ }
328+ if (NULL != x->offset_date_time_class) {
329+ cJSON_AddItemToObject(j, "offset-date-time-class", cJSON_CreateOffsetDateTime(x->offset_date_time_class));
330+ }
331+ if (NULL != x->offset_time_class) {
332+ cJSON_AddItemToObject(j, "offset-time-class", cJSON_CreateOffsetTime(x->offset_time_class));
333+ }
163334 if (NULL != x->time) {
164335 cJSON_AddStringToObject(j, "time", x->time);
165336 }
@@ -209,6 +380,15 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
209380 if (NULL != x->date_time) {
210381 cJSON_free(x->date_time);
211382 }
383+ if (NULL != x->local_date_class) {
384+ cJSON_DeleteLocalDate(x->local_date_class);
385+ }
386+ if (NULL != x->offset_date_time_class) {
387+ cJSON_DeleteOffsetDateTime(x->offset_date_time_class);
388+ }
389+ if (NULL != x->offset_time_class) {
390+ cJSON_DeleteOffsetTime(x->offset_time_class);
391+ }
212392 if (NULL != x->time) {
213393 cJSON_free(x->time);
214394 }
Mschema-cjsondefault / TopLevel.h+30 −0
@@ -56,10 +56,22 @@ struct ComplexUnionArray {
5656 } value;
5757 };
5858
59+struct LocalDate {
60+};
61+
62+struct OffsetDateTime {
63+};
64+
65+struct OffsetTime {
66+};
67+
5968 struct TopLevel {
6069 list_t * complex_union_array;
6170 char * date;
6271 char * date_time;
72+ struct LocalDate * local_date_class;
73+ struct OffsetDateTime * offset_date_time_class;
74+ struct OffsetTime * offset_time_class;
6375 char * time;
6476 list_t * union_array;
6577 };
@@ -71,6 +83,24 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x);
7183 struct ComplexUnionArray * cJSON_ParseComplexUnionArray(const char * s);
7284 char * cJSON_PrintComplexUnionArray(const struct ComplexUnionArray * x);
7385
86+struct LocalDate * cJSON_ParseLocalDate(const char * s);
87+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
88+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
89+char * cJSON_PrintLocalDate(const struct LocalDate * x);
90+void cJSON_DeleteLocalDate(struct LocalDate * x);
91+
92+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
93+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
94+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
95+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
96+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
97+
98+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
99+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
100+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
101+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
102+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
103+
74104 struct TopLevel * cJSON_ParseTopLevel(const char * s);
75105 struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j);
76106 cJSON * cJSON_CreateTopLevel(const struct TopLevel * x);
Mschema-cplusplusdefault / quicktype.hpp+97 −0
@@ -8,6 +8,7 @@
88
99 #pragma once
1010
11+#include <optional>
1112 #include <variant>
1213 #include "json.hpp"
1314
@@ -92,6 +93,36 @@ namespace quicktype {
9293
9394 using ComplexUnionArrayElement = std::variant<std::string, ComplexUnionArrayEnum, int64_t>;
9495
96+ class LocalDate {
97+ public:
98+ LocalDate() = default;
99+ virtual ~LocalDate() = default;
100+
101+ private:
102+
103+ public:
104+ };
105+
106+ class OffsetDateTime {
107+ public:
108+ OffsetDateTime() = default;
109+ virtual ~OffsetDateTime() = default;
110+
111+ private:
112+
113+ public:
114+ };
115+
116+ class OffsetTime {
117+ public:
118+ OffsetTime() = default;
119+ virtual ~OffsetTime() = default;
120+
121+ private:
122+
123+ public:
124+ };
125+
95126 class TopLevel {
96127 public:
97128 TopLevel() = default;
@@ -101,6 +132,9 @@ namespace quicktype {
101132 std::vector<ComplexUnionArrayElement> complex_union_array;
102133 std::string date;
103134 std::string date_time;
135+ std::optional<LocalDate> local_date_class;
136+ std::optional<OffsetDateTime> offset_date_time_class;
137+ std::optional<OffsetTime> offset_time_class;
104138 std::string time;
105139 std::vector<std::string> union_array;
106140
@@ -117,6 +151,18 @@ namespace quicktype {
117151 std::string & get_mutable_date_time() { return date_time; }
118152 void set_date_time(const std::string & value) { this->date_time = value; }
119153
154+ const std::optional<LocalDate> & get_local_date_class() const { return local_date_class; }
155+ std::optional<LocalDate> & get_mutable_local_date_class() { return local_date_class; }
156+ void set_local_date_class(const std::optional<LocalDate> & value) { this->local_date_class = value; }
157+
158+ const std::optional<OffsetDateTime> & get_offset_date_time_class() const { return offset_date_time_class; }
159+ std::optional<OffsetDateTime> & get_mutable_offset_date_time_class() { return offset_date_time_class; }
160+ void set_offset_date_time_class(const std::optional<OffsetDateTime> & value) { this->offset_date_time_class = value; }
161+
162+ const std::optional<OffsetTime> & get_offset_time_class() const { return offset_time_class; }
163+ std::optional<OffsetTime> & get_mutable_offset_time_class() { return offset_time_class; }
164+ void set_offset_time_class(const std::optional<OffsetTime> & value) { this->offset_time_class = value; }
165+
120166 const std::string & get_time() const { return time; }
121167 std::string & get_mutable_time() { return time; }
122168 void set_time(const std::string & value) { this->time = value; }
@@ -128,6 +174,15 @@ namespace quicktype {
128174 }
129175
130176 namespace quicktype {
177+void from_json(const json & j, LocalDate & x);
178+void to_json(json & j, const LocalDate & x);
179+
180+void from_json(const json & j, OffsetDateTime & x);
181+void to_json(json & j, const OffsetDateTime & x);
182+
183+void from_json(const json & j, OffsetTime & x);
184+void to_json(json & j, const OffsetTime & x);
185+
131186 void from_json(const json & j, TopLevel & x);
132187 void to_json(json & j, const TopLevel & x);
133188
@@ -142,12 +197,51 @@ struct adl_serializer<std::variant<std::string, quicktype::ComplexUnionArrayEnum
142197 };
143198 }
144199 namespace quicktype {
200+ inline void from_json(const json & j, LocalDate& x) {
201+ if (!j.is_object()) throw std::runtime_error("Expected object");
202+ (void)j;
203+ (void)x;
204+ }
205+
206+ inline void to_json(json & j, const LocalDate & x) {
207+ j = json::object();
208+ (void)x;
209+ }
210+
211+ inline void from_json(const json & j, OffsetDateTime& x) {
212+ if (!j.is_object()) throw std::runtime_error("Expected object");
213+ (void)j;
214+ (void)x;
215+ }
216+
217+ inline void to_json(json & j, const OffsetDateTime & x) {
218+ j = json::object();
219+ (void)x;
220+ }
221+
222+ inline void from_json(const json & j, OffsetTime& x) {
223+ if (!j.is_object()) throw std::runtime_error("Expected object");
224+ (void)j;
225+ (void)x;
226+ }
227+
228+ inline void to_json(json & j, const OffsetTime & x) {
229+ j = json::object();
230+ (void)x;
231+ }
232+
145233 inline void from_json(const json & j, TopLevel& x) {
146234 if (!j.is_object()) throw std::runtime_error("Expected object");
147235 x.set_complex_union_array(j.at("complex-union-array").get<std::vector<ComplexUnionArrayElement>>());
148236 x.set_date(j.at("date").get<std::string>());
149237 if (j.find("date-time") != j.end() && !std::regex_match(j.at("date-time").get<std::string>(), std::regex("^[0-9]{4}-[0-9]{2}-[0-9]{2}T.*$"))) throw std::runtime_error("Expected date-time");
150238 x.set_date_time(j.at("date-time").get<std::string>());
239+ if (j.find("local-date-class") != j.end() && j.at("local-date-class").is_null()) throw std::runtime_error("Unexpected null");
240+ x.set_local_date_class(get_stack_optional<LocalDate>(j, "local-date-class"));
241+ if (j.find("offset-date-time-class") != j.end() && j.at("offset-date-time-class").is_null()) throw std::runtime_error("Unexpected null");
242+ x.set_offset_date_time_class(get_stack_optional<OffsetDateTime>(j, "offset-date-time-class"));
243+ if (j.find("offset-time-class") != j.end() && j.at("offset-time-class").is_null()) throw std::runtime_error("Unexpected null");
244+ x.set_offset_time_class(get_stack_optional<OffsetTime>(j, "offset-time-class"));
151245 x.set_time(j.at("time").get<std::string>());
152246 x.set_union_array(j.at("union-array").get<std::vector<std::string>>());
153247 }
@@ -157,6 +251,9 @@ namespace quicktype {
157251 j["complex-union-array"] = x.get_complex_union_array();
158252 j["date"] = x.get_date();
159253 j["date-time"] = x.get_date_time();
254+ j["local-date-class"] = x.get_local_date_class();
255+ j["offset-date-time-class"] = x.get_offset_date_time_class();
256+ j["offset-time-class"] = x.get_offset_time_class();
160257 j["time"] = x.get_time();
161258 j["union-array"] = x.get_union_array();
162259 }
Mschema-crystaldefault / TopLevel.cr+24 −0
@@ -11,10 +11,34 @@ class TopLevel
1111 @[JSON::Field(key: "date-time")]
1212 property date_time : String
1313
14+ @[JSON::Field(key: "local-date-class")]
15+ property local_date_class : LocalDate?
16+
17+ @[JSON::Field(key: "offset-date-time-class")]
18+ property offset_date_time_class : OffsetDateTime?
19+
20+ @[JSON::Field(key: "offset-time-class")]
21+ property offset_time_class : OffsetTime?
22+
1423 property time : String
1524
1625 @[JSON::Field(key: "union-array")]
1726 property union_array : Array(String)
1827 end
1928
29+class LocalDate
30+ include JSON::Serializable
31+
32+end
33+
34+class OffsetDateTime
35+ include JSON::Serializable
36+
37+end
38+
39+class OffsetTime
40+ include JSON::Serializable
41+
42+end
43+
2044 alias ComplexUnionArray = Int64 | String
Mschema-csharp-recordsdefault / QuickType.cs+21 −0
@@ -34,6 +34,15 @@ namespace QuickType
3434 [JsonProperty("date-time", Required = Required.Always)]
3535 public DateTimeOffset DateTime { get; set; }
3636
37+ [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
38+ public LocalDate? LocalDateClass { get; set; }
39+
40+ [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
41+ public OffsetDateTime? OffsetDateTimeClass { get; set; }
42+
43+ [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
44+ public OffsetTime? OffsetTimeClass { get; set; }
45+
3746 [JsonProperty("time", Required = Required.Always)]
3847 public DateTimeOffset Time { get; set; }
3948
@@ -41,6 +50,18 @@ namespace QuickType
4150 public DateTimeOffset[] UnionArray { get; set; }
4251 }
4352
53+ public partial record LocalDate
54+ {
55+ }
56+
57+ public partial record OffsetDateTime
58+ {
59+ }
60+
61+ public partial record OffsetTime
62+ {
63+ }
64+
4465 public enum ComplexUnionArrayEnum { Foo, Bar };
4566
4667 public partial struct ComplexUnionArrayElement
Mschema-csharp-SystemTextJsondefault / QuickType.cs+24 −0
@@ -34,6 +34,18 @@ namespace QuickType
3434 [JsonPropertyName("date-time")]
3535 public DateTimeOffset DateTime { get; set; }
3636
37+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
38+ [JsonPropertyName("local-date-class")]
39+ public LocalDate? LocalDateClass { get; set; }
40+
41+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
42+ [JsonPropertyName("offset-date-time-class")]
43+ public OffsetDateTime? OffsetDateTimeClass { get; set; }
44+
45+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
46+ [JsonPropertyName("offset-time-class")]
47+ public OffsetTime? OffsetTimeClass { get; set; }
48+
3749 [JsonRequired]
3850 [JsonPropertyName("time")]
3951 public DateTimeOffset Time { get; set; }
@@ -43,6 +55,18 @@ namespace QuickType
4355 public DateTimeOffset[] UnionArray { get; set; }
4456 }
4557
58+ public partial class LocalDate
59+ {
60+ }
61+
62+ public partial class OffsetDateTime
63+ {
64+ }
65+
66+ public partial class OffsetTime
67+ {
68+ }
69+
4670 public enum ComplexUnionArrayEnum { Foo, Bar };
4771
4872 public partial struct ComplexUnionArrayElement
Mschema-csharpdefault / QuickType.cs+21 −0
@@ -34,6 +34,15 @@ namespace QuickType
3434 [JsonProperty("date-time", Required = Required.Always)]
3535 public DateTimeOffset DateTime { get; set; }
3636
37+ [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
38+ public LocalDate? LocalDateClass { get; set; }
39+
40+ [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
41+ public OffsetDateTime? OffsetDateTimeClass { get; set; }
42+
43+ [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
44+ public OffsetTime? OffsetTimeClass { get; set; }
45+
3746 [JsonProperty("time", Required = Required.Always)]
3847 public DateTimeOffset Time { get; set; }
3948
@@ -41,6 +50,18 @@ namespace QuickType
4150 public DateTimeOffset[] UnionArray { get; set; }
4251 }
4352
53+ public partial class LocalDate
54+ {
55+ }
56+
57+ public partial class OffsetDateTime
58+ {
59+ }
60+
61+ public partial class OffsetTime
62+ {
63+ }
64+
4465 public enum ComplexUnionArrayEnum { Foo, Bar };
4566
4667 public partial struct ComplexUnionArrayElement
Mschema-dartdefault / TopLevel.dart+42 −0
@@ -12,6 +12,9 @@ class TopLevel {
1212 final List<dynamic> complexUnionArray;
1313 final DateTime date;
1414 final DateTime dateTime;
15+ final LocalDate? localDateClass;
16+ final OffsetDateTime? offsetDateTimeClass;
17+ final OffsetTime? offsetTimeClass;
1518 final String time;
1619 final List<String> unionArray;
1720
@@ -19,6 +22,9 @@ class TopLevel {
1922 required this.complexUnionArray,
2023 required this.date,
2124 required this.dateTime,
25+ this.localDateClass,
26+ this.offsetDateTimeClass,
27+ this.offsetTimeClass,
2228 required this.time,
2329 required this.unionArray,
2430 });
@@ -27,6 +33,9 @@ class TopLevel {
2733 complexUnionArray: List<dynamic>.from(json["complex-union-array"].map((x) => x)),
2834 date: DateTime.parse(json["date"]),
2935 dateTime: DateTime.parse(json["date-time"]),
36+ localDateClass: json["local-date-class"] == null ? null : LocalDate.fromJson(json["local-date-class"]),
37+ offsetDateTimeClass: json["offset-date-time-class"] == null ? null : OffsetDateTime.fromJson(json["offset-date-time-class"]),
38+ offsetTimeClass: json["offset-time-class"] == null ? null : OffsetTime.fromJson(json["offset-time-class"]),
3039 time: json["time"],
3140 unionArray: List<String>.from(json["union-array"].map((x) => x)),
3241 );
@@ -35,6 +44,9 @@ class TopLevel {
3544 "complex-union-array": List<dynamic>.from(complexUnionArray.map((x) => x)),
3645 "date": "${date.year.toString().padLeft(4, '0')}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}",
3746 "date-time": dateTime.toIso8601String(),
47+ "local-date-class": localDateClass?.toJson(),
48+ "offset-date-time-class": offsetDateTimeClass?.toJson(),
49+ "offset-time-class": offsetTimeClass?.toJson(),
3850 "time": time,
3951 "union-array": List<dynamic>.from(unionArray.map((x) => x)),
4052 };
@@ -50,6 +62,36 @@ final complexUnionArrayEnumValues = EnumValues({
5062 "bar": ComplexUnionArrayEnum.BAR
5163 });
5264
65+class LocalDate {
66+ LocalDate();
67+
68+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
69+ );
70+
71+ Map<String, dynamic> toJson() => {
72+ };
73+}
74+
75+class OffsetDateTime {
76+ OffsetDateTime();
77+
78+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
79+ );
80+
81+ Map<String, dynamic> toJson() => {
82+ };
83+}
84+
85+class OffsetTime {
86+ OffsetTime();
87+
88+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
89+ );
90+
91+ Map<String, dynamic> toJson() => {
92+ };
93+}
94+
5395 class EnumValues<T> {
5496 Map<String, T> map;
5597 late Map<T, String> reverseMap;
Mschema-elixirdefault / QuickType.ex+97 −1
@@ -5,14 +5,104 @@
55 # Decode a JSON string: TopLevel.from_json(data)
66 # Encode into a JSON string: TopLevel.to_json(struct)
77
8+defmodule LocalDate do
9+ defstruct []
10+
11+ @type t :: %__MODULE__{
12+ }
13+
14+ def from_map(m) when is_map(m) do
15+ %LocalDate{
16+ }
17+ end
18+
19+ def from_json(json) do
20+ json
21+ |> Jason.decode!()
22+ |> from_map()
23+ end
24+
25+ def to_map(_struct) do
26+ %{
27+ }
28+ end
29+
30+ def to_json(struct) do
31+ struct
32+ |> to_map()
33+ |> Jason.encode!()
34+ end
35+end
36+
37+defmodule OffsetDateTime do
38+ defstruct []
39+
40+ @type t :: %__MODULE__{
41+ }
42+
43+ def from_map(m) when is_map(m) do
44+ %OffsetDateTime{
45+ }
46+ end
47+
48+ def from_json(json) do
49+ json
50+ |> Jason.decode!()
51+ |> from_map()
52+ end
53+
54+ def to_map(_struct) do
55+ %{
56+ }
57+ end
58+
59+ def to_json(struct) do
60+ struct
61+ |> to_map()
62+ |> Jason.encode!()
63+ end
64+end
65+
66+defmodule OffsetTime do
67+ defstruct []
68+
69+ @type t :: %__MODULE__{
70+ }
71+
72+ def from_map(m) when is_map(m) do
73+ %OffsetTime{
74+ }
75+ end
76+
77+ def from_json(json) do
78+ json
79+ |> Jason.decode!()
80+ |> from_map()
81+ end
82+
83+ def to_map(_struct) do
84+ %{
85+ }
86+ end
87+
88+ def to_json(struct) do
89+ struct
90+ |> to_map()
91+ |> Jason.encode!()
92+ end
93+end
94+
895 defmodule TopLevel do
996 @enforce_keys [:complex_union_array, :date, :date_time, :time, :union_array]
10- defstruct [:complex_union_array, :date, :date_time, :time, :union_array]
97+ defstruct [:complex_union_array, :date, :date_time, :local_date_class, :offset_date_time_class, :offset_time_class, :time, :union_array]
1198
1299 @type t :: %__MODULE__{
13100 complex_union_array: [integer() | String.t()],
14101 date: String.t(),
15102 date_time: String.t(),
103+ local_date_class: LocalDate.t() | nil,
104+ offset_date_time_class: OffsetDateTime.t() | nil,
105+ offset_time_class: OffsetTime.t() | nil,
16106 time: String.t(),
17107 union_array: [String.t()]
18108 }
@@ -60,6 +150,9 @@ defmodule TopLevel do
60150 complex_union_array: Enum.map(m["complex-union-array"], &decode_complex_union_array_element/1),
61151 date: decode_date(m["date"]),
62152 date_time: decode_date_time(m["date-time"]),
153+ local_date_class: m["local-date-class"] && LocalDate.from_map(m["local-date-class"]),
154+ offset_date_time_class: m["offset-date-time-class"] && OffsetDateTime.from_map(m["offset-date-time-class"]),
155+ offset_time_class: m["offset-time-class"] && OffsetTime.from_map(m["offset-time-class"]),
63156 time: decode_time(m["time"]),
64157 union_array: decode_union_array(m["union-array"]),
65158 }
@@ -76,6 +169,9 @@ defmodule TopLevel do
76169 "complex-union-array" => struct.complex_union_array && Enum.map(struct.complex_union_array, &encode_complex_union_array_element/1),
77170 "date" => struct.date,
78171 "date-time" => struct.date_time,
172+ "local-date-class" => struct.local_date_class && LocalDate.to_map(struct.local_date_class),
173+ "offset-date-time-class" => struct.offset_date_time_class && OffsetDateTime.to_map(struct.offset_date_time_class),
174+ "offset-time-class" => struct.offset_time_class && OffsetTime.to_map(struct.offset_time_class),
79175 "time" => struct.time,
80176 "union-array" => struct.union_array,
81177 }
Mschema-elmdefault / QuickType.elm+54 −0
@@ -15,6 +15,9 @@ module QuickType exposing
1515 ( QuickType
1616 , quickTypeToString
1717 , quickType
18+ , LocalDate
19+ , OffsetDateTime
20+ , OffsetTime
1821 , ComplexUnionArray(..)
1922 )
2023
@@ -27,6 +30,9 @@ type alias QuickType =
2730 { complexUnionArray : List ComplexUnionArray
2831 , date : String
2932 , dateTime : String
33+ , localDateClass : Maybe LocalDate
34+ , offsetDateTimeClass : Maybe OffsetDateTime
35+ , offsetTimeClass : Maybe OffsetTime
3036 , time : String
3137 , unionArray : List String
3238 }
@@ -35,6 +41,18 @@ type ComplexUnionArray
3541 = IntegerInComplexUnionArray Int
3642 | StringInComplexUnionArray String
3743
44+type alias LocalDate =
45+ {
46+ }
47+
48+type alias OffsetDateTime =
49+ {
50+ }
51+
52+type alias OffsetTime =
53+ {
54+ }
55+
3856 -- decoders and encoders
3957 optionalField key decoder fallback =
4058 Jdec.dict Jdec.value
@@ -52,6 +70,9 @@ quickType =
5270 |> Jpipe.required "complex-union-array" (Jdec.list complexUnionArray )
5371 |> Jpipe.required "date" Jdec.string
5472 |> Jpipe.required "date-time" Jdec.string
73+ |> Jpipe.custom (optionalField "local-date-class" (Jdec.map Just localDate) Nothing)
74+ |> Jpipe.custom (optionalField "offset-date-time-class" (Jdec.map Just offsetDateTime) Nothing)
75+ |> Jpipe.custom (optionalField "offset-time-class" (Jdec.map Just offsetTime) Nothing)
5576 |> Jpipe.required "time" Jdec.string
5677 |> Jpipe.required "union-array" (Jdec.list Jdec.string )
5778
@@ -61,6 +82,9 @@ encodeQuickType x =
6182 [ ("complex-union-array", Jenc.list encodeComplexUnionArray x.complexUnionArray)
6283 , ("date", Jenc.string x.date)
6384 , ("date-time", Jenc.string x.dateTime)
85+ , ("local-date-class", makeNullableEncoder encodeLocalDate x.localDateClass)
86+ , ("offset-date-time-class", makeNullableEncoder encodeOffsetDateTime x.offsetDateTimeClass)
87+ , ("offset-time-class", makeNullableEncoder encodeOffsetTime x.offsetTimeClass)
6488 , ("time", Jenc.string x.time)
6589 , ("union-array", Jenc.list Jenc.string x.unionArray)
6690 ]
@@ -77,6 +101,36 @@ encodeComplexUnionArray x = case x of
77101 IntegerInComplexUnionArray y -> Jenc.int y
78102 StringInComplexUnionArray y -> Jenc.string y
79103
104+localDate : Jdec.Decoder LocalDate
105+localDate =
106+ Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate)
107+
108+encodeLocalDate : LocalDate -> Jenc.Value
109+encodeLocalDate x =
110+ Jenc.object
111+ [
112+ ]
113+
114+offsetDateTime : Jdec.Decoder OffsetDateTime
115+offsetDateTime =
116+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime)
117+
118+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
119+encodeOffsetDateTime x =
120+ Jenc.object
121+ [
122+ ]
123+
124+offsetTime : Jdec.Decoder OffsetTime
125+offsetTime =
126+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime)
127+
128+encodeOffsetTime : OffsetTime -> Jenc.Value
129+encodeOffsetTime x =
130+ Jenc.object
131+ [
132+ ]
133+
80134 --- encoder helpers
81135
82136 makeNullableEncoder : (a -> Jenc.Value) -> Maybe a -> Jenc.Value
Mschema-flowdefault / TopLevel.js+26 −5
@@ -10,11 +10,14 @@
1010 // match the expected interface, even if the JSON is valid.
1111
1212 export type TopLevel = {
13- "complex-union-array": ComplexUnionArrayElement[];
14- date: Date;
15- "date-time": Date;
16- time: string;
17- "union-array": string[];
13+ "complex-union-array": ComplexUnionArrayElement[];
14+ date: Date;
15+ "date-time": Date;
16+ "local-date-class"?: LocalDate;
17+ "offset-date-time-class"?: OffsetDateTime;
18+ "offset-time-class"?: OffsetTime;
19+ time: string;
20+ "union-array": string[];
1821 };
1922
2023 export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number;
@@ -23,6 +26,15 @@ export type ComplexUnionArrayEnum =
2326 "foo"
2427 | "bar";
2528
29+export type LocalDate = {
30+};
31+
32+export type OffsetDateTime = {
33+};
34+
35+export type OffsetTime = {
36+};
37+
2638 // Converts JSON strings to/from your types
2739 // and asserts the results of JSON.parse at runtime
2840 function toTopLevel(json: string): TopLevel {
@@ -212,9 +224,18 @@ const typeMap: any = {
212224 { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) },
213225 { json: "date", js: "date", typ: Date },
214226 { json: "date-time", js: "date-time", typ: Date },
227+ { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) },
228+ { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) },
229+ { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) },
215230 { json: "time", js: "time", typ: "" },
216231 { json: "union-array", js: "union-array", typ: a("") },
217232 ], false),
233+ "LocalDate": o([
234+ ], false),
235+ "OffsetDateTime": o([
236+ ], false),
237+ "OffsetTime": o([
238+ ], false),
218239 "ComplexUnionArrayEnum": [
219240 "foo",
220241 "bar",
Aschema-golang-leading-commentsdefault / multi / LocalDate.go+4 −0
@@ -0,0 +1,4 @@
1+package main
2+
3+type LocalDate struct {
4+}
Aschema-golang-leading-commentsdefault / multi / OffsetDateTime.go+4 −0
@@ -0,0 +1,4 @@
1+package main
2+
3+type OffsetDateTime struct {
4+}
Aschema-golang-leading-commentsdefault / multi / OffsetTime.go+4 −0
@@ -0,0 +1,4 @@
1+package main
2+
3+type OffsetTime struct {
4+}
Mschema-golang-leading-commentsdefault / multi / TopLevel.go+8 −5
@@ -14,9 +14,12 @@ func (r *TopLevel) Marshal() ([]byte, error) {
1414 }
1515
1616 type TopLevel struct {
17- ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
18- Date string `json:"date"`
19- DateTime time.Time `json:"date-time"`
20- Time string `json:"time"`
21- UnionArray []string `json:"union-array"`
17+ ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
18+ Date string `json:"date"`
19+ DateTime time.Time `json:"date-time"`
20+ LocalDateClass *LocalDate `json:"local-date-class,omitempty"`
21+ OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"`
22+ OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"`
23+ Time string `json:"time"`
24+ UnionArray []string `json:"union-array"`
2225 }
Mschema-golang-leading-commentsdefault / quicktype.go+17 −5
@@ -17,11 +17,23 @@ func (r *TopLevel) Marshal() ([]byte, error) {
1717 }
1818
1919 type TopLevel struct {
20- ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
21- Date string `json:"date"`
22- DateTime time.Time `json:"date-time"`
23- Time string `json:"time"`
24- UnionArray []string `json:"union-array"`
20+ ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
21+ Date string `json:"date"`
22+ DateTime time.Time `json:"date-time"`
23+ LocalDateClass *LocalDate `json:"local-date-class,omitempty"`
24+ OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"`
25+ OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"`
26+ Time string `json:"time"`
27+ UnionArray []string `json:"union-array"`
28+}
29+
30+type LocalDate struct {
31+}
32+
33+type OffsetDateTime struct {
34+}
35+
36+type OffsetTime struct {
2537 }
2638
2739 type ComplexUnionArrayEnum string
Mschema-golangdefault / quicktype.go+17 −5
@@ -23,11 +23,23 @@ func (r *TopLevel) Marshal() ([]byte, error) {
2323 }
2424
2525 type TopLevel struct {
26- ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
27- Date string `json:"date"`
28- DateTime time.Time `json:"date-time"`
29- Time string `json:"time"`
30- UnionArray []string `json:"union-array"`
26+ ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"`
27+ Date string `json:"date"`
28+ DateTime time.Time `json:"date-time"`
29+ LocalDateClass *LocalDate `json:"local-date-class,omitempty"`
30+ OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"`
31+ OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"`
32+ Time string `json:"time"`
33+ UnionArray []string `json:"union-array"`
34+}
35+
36+type LocalDate struct {
37+}
38+
39+type OffsetDateTime struct {
40+}
41+
42+type OffsetTime struct {
3143 }
3244
3345 type ComplexUnionArrayEnum string
Mschema-haskelldefault / QuickType.hs+43 −1
@@ -3,6 +3,9 @@
33
44 module QuickType
55 ( QuickType (..)
6+ , LocalDate (..)
7+ , OffsetDateTime (..)
8+ , OffsetTime (..)
69 , ComplexUnionArray (..)
710 , decodeTopLevel
811 ) where
@@ -17,6 +20,9 @@ data QuickType = QuickType
1720 { complexUnionArrayQuickType :: [ComplexUnionArray]
1821 , dateQuickType :: Text
1922 , dateTimeQuickType :: Text
23+ , localDateClassQuickType :: Maybe LocalDate
24+ , offsetDateTimeClassQuickType :: Maybe OffsetDateTime
25+ , offsetTimeClassQuickType :: Maybe OffsetTime
2026 , timeQuickType :: Text
2127 , unionArrayQuickType :: [Text]
2228 } deriving (Show)
@@ -26,15 +32,30 @@ data ComplexUnionArray
2632 | StringInComplexUnionArray Text
2733 deriving (Show)
2834
35+data LocalDate = LocalDate
36+ {
37+ } deriving (Show)
38+
39+data OffsetDateTime = OffsetDateTime
40+ {
41+ } deriving (Show)
42+
43+data OffsetTime = OffsetTime
44+ {
45+ } deriving (Show)
46+
2947 decodeTopLevel :: ByteString -> Maybe QuickType
3048 decodeTopLevel = decode
3149
3250 instance ToJSON QuickType where
33- toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType timeQuickType unionArrayQuickType) =
51+ toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType localDateClassQuickType offsetDateTimeClassQuickType offsetTimeClassQuickType timeQuickType unionArrayQuickType) =
3452 object $ foldMap (maybe [] pure)
3553 [ Just $ "complex-union-array" .= complexUnionArrayQuickType
3654 , Just $ "date" .= dateQuickType
3755 , Just $ "date-time" .= dateTimeQuickType
56+ , ("local-date-class" .=) <$> localDateClassQuickType
57+ , ("offset-date-time-class" .=) <$> offsetDateTimeClassQuickType
58+ , ("offset-time-class" .=) <$> offsetTimeClassQuickType
3859 , Just $ "time" .= timeQuickType
3960 , Just $ "union-array" .= unionArrayQuickType
4061 ]
@@ -44,6 +65,9 @@ instance FromJSON QuickType where
4465 <$> v .: "complex-union-array"
4566 <*> v .: "date"
4667 <*> v .: "date-time"
68+ <*> v .:! "local-date-class"
69+ <*> v .:! "offset-date-time-class"
70+ <*> v .:! "offset-time-class"
4771 <*> v .: "time"
4872 <*> v .: "union-array"
4973
@@ -54,3 +78,21 @@ instance ToJSON ComplexUnionArray where
5478 instance FromJSON ComplexUnionArray where
5579 parseJSON xs@(Number _) = (fmap IntegerInComplexUnionArray . parseJSON) xs
5680 parseJSON xs@(String _) = (fmap StringInComplexUnionArray . parseJSON) xs
81+
82+instance ToJSON LocalDate where
83+ toJSON = \_ -> emptyObject
84+
85+instance FromJSON LocalDate where
86+ parseJSON (Object _) = return LocalDate
87+
88+instance ToJSON OffsetDateTime where
89+ toJSON = \_ -> emptyObject
90+
91+instance FromJSON OffsetDateTime where
92+ parseJSON (Object _) = return OffsetDateTime
93+
94+instance ToJSON OffsetTime where
95+ toJSON = \_ -> emptyObject
96+
97+instance FromJSON OffsetTime where
98+ parseJSON (Object _) = return OffsetTime
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClassClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class LocalDateClassClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetDateTimeClassClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClassClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetTimeClassClass {
7+}
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -10,6 +10,9 @@ public class TopLevel {
1010 private List<ComplexUnionArrayElement> complexUnionArray;
1111 private LocalDate date;
1212 private OffsetDateTime dateTime;
13+ private LocalDateClassClass localDateClass;
14+ private OffsetDateTimeClassClass offsetDateTimeClass;
15+ private OffsetTimeClassClass offsetTimeClass;
1316 private OffsetTime time;
1417 private List<UnionArray> unionArray;
1518
@@ -29,6 +32,21 @@ public class TopLevel {
2932 @JsonSetter(nulls = Nulls.FAIL)
3033 public void setDateTime(OffsetDateTime value) { this.dateTime = value; }
3134
35+ @JsonProperty("local-date-class")
36+ public LocalDateClassClass getLocalDateClass() { return localDateClass; }
37+ @JsonProperty("local-date-class")
38+ public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; }
39+
40+ @JsonProperty("offset-date-time-class")
41+ public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; }
42+ @JsonProperty("offset-date-time-class")
43+ public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; }
44+
45+ @JsonProperty("offset-time-class")
46+ public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; }
47+ @JsonProperty("offset-time-class")
48+ public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; }
49+
3250 @JsonProperty("time")
3351 public OffsetTime getTime() { return time; }
3452 @JsonProperty("time")
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClassClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class LocalDateClassClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetDateTimeClassClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClassClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetTimeClassClass {
7+}
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -10,6 +10,9 @@ public class TopLevel {
1010 private List<ComplexUnionArrayElement> complexUnionArray;
1111 private LocalDate date;
1212 private OffsetDateTime dateTime;
13+ private LocalDateClassClass localDateClass;
14+ private OffsetDateTimeClassClass offsetDateTimeClass;
15+ private OffsetTimeClassClass offsetTimeClass;
1316 private OffsetTime time;
1417 private List<UnionArray> unionArray;
1518
@@ -29,6 +32,21 @@ public class TopLevel {
2932 @JsonSetter(nulls = Nulls.FAIL)
3033 public void setDateTime(OffsetDateTime value) { this.dateTime = value; }
3134
35+ @JsonProperty("local-date-class")
36+ public LocalDateClassClass getLocalDateClass() { return localDateClass; }
37+ @JsonProperty("local-date-class")
38+ public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; }
39+
40+ @JsonProperty("offset-date-time-class")
41+ public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; }
42+ @JsonProperty("offset-date-time-class")
43+ public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; }
44+
45+ @JsonProperty("offset-time-class")
46+ public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; }
47+ @JsonProperty("offset-time-class")
48+ public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; }
49+
3250 @JsonProperty("time")
3351 public OffsetTime getTime() { return time; }
3452 @JsonProperty("time")
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
@@ -14,11 +14,23 @@ import PropTypes from "prop-types";
1414 const Integer = (props, name) => props[name] == null || Number.isInteger(props[name]) ? null : new Error("Expected integer");
1515
1616 let _TopLevel;
17+let _LocalDate;
18+let _OffsetDateTime;
19+let _OffsetTime;
1720 const _ComplexUnionArrayEnum = PropTypes.oneOf(['foo', 'bar']);
21+_LocalDate = PropTypes.shape({
22+});
23+_OffsetDateTime = PropTypes.shape({
24+});
25+_OffsetTime = PropTypes.shape({
26+});
1827 _TopLevel = PropTypes.shape({
1928 "complex-union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time"), _ComplexUnionArrayEnum, Integer]))]).isRequired,
2029 "date": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired,
2130 "date-time": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired,
31+ "local-date-class": PropTypes.oneOfType([_LocalDate, PropTypes.oneOf([null])]),
32+ "offset-date-time-class": PropTypes.oneOfType([_OffsetDateTime, PropTypes.oneOf([null])]),
33+ "offset-time-class": PropTypes.oneOfType([_OffsetTime, PropTypes.oneOf([null])]),
2234 "time": PropTypes.oneOfType([PropTypes.string]).isRequired,
2335 "union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string)]).isRequired,
2436 });
Mschema-javascriptdefault / TopLevel.js+9 −0
@@ -196,9 +196,18 @@ const typeMap = {
196196 { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) },
197197 { json: "date", js: "date", typ: Date },
198198 { json: "date-time", js: "date-time", typ: Date },
199+ { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) },
200+ { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) },
201+ { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) },
199202 { json: "time", js: "time", typ: "" },
200203 { json: "union-array", js: "union-array", typ: a("") },
201204 ], false),
205+ "LocalDate": o([
206+ ], false),
207+ "OffsetDateTime": o([
208+ ], false),
209+ "OffsetTime": o([
210+ ], false),
202211 "ComplexUnionArrayEnum": [
203212 "foo",
204213 "bar",
Mschema-kotlin-jacksondefault / TopLevel.kt+15 −0
@@ -50,6 +50,15 @@ data class TopLevel (
5050 @get:JsonProperty("date-time", required=true)@field:JsonProperty("date-time", required=true)
5151 val dateTime: OffsetDateTime,
5252
53+ @get:JsonProperty("local-date-class")@field:JsonProperty("local-date-class")
54+ val localDateClass: LocalDateClassClass? = null,
55+
56+ @get:JsonProperty("offset-date-time-class")@field:JsonProperty("offset-date-time-class")
57+ val offsetDateTimeClass: OffsetDateTimeClassClass? = null,
58+
59+ @get:JsonProperty("offset-time-class")@field:JsonProperty("offset-time-class")
60+ val offsetTimeClass: OffsetTimeClassClass? = null,
61+
5362 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
5463 val time: OffsetTime,
5564
@@ -96,6 +105,12 @@ enum class ComplexUnionArrayEnum(val value: String) {
96105 }
97106 }
98107
108+typealias LocalDateClassClass = ObjectNode
109+
110+typealias OffsetDateTimeClassClass = ObjectNode
111+
112+typealias OffsetTimeClassClass = ObjectNode
113+
99114 sealed class UnionArray {
100115 class DateTimeValue(val value: OffsetDateTime) : UnionArray()
101116 class DateValue(val value: LocalDate) : UnionArray()
Mschema-kotlindefault / TopLevel.kt+16 −0
@@ -22,6 +22,7 @@ private val klaxon = Klaxon()
2222 .convert(OffsetDateTime::class, { OffsetDateTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(it)}\"" })
2323 .convert(LocalDate::class, { LocalDate.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_LOCAL_DATE.format(it)}\"" })
2424 .convert(OffsetTime::class, { OffsetTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_TIME.format(it)}\"" })
25+ .convert(JsonObject::class, { it.obj!! }, { it.toJsonString() })
2526 .convert(ComplexUnionArrayEnum::class, { ComplexUnionArrayEnum.fromValue(it.string!!) }, { Klaxon().toJsonString(it.value) })
2627 .convert(ComplexUnionArrayElement::class, { ComplexUnionArrayElement.fromJson(it) }, { it.toJson() }, true)
2728 .convert(UnionArray::class, { UnionArray.fromJson(it) }, { it.toJson() }, true)
@@ -35,6 +36,15 @@ data class TopLevel (
3536 @Json(name = "date-time")
3637 val dateTime: OffsetDateTime,
3738
39+ @Json(name = "local-date-class")
40+ val localDateClass: LocalDateClassClass? = null,
41+
42+ @Json(name = "offset-date-time-class")
43+ val offsetDateTimeClass: OffsetDateTimeClassClass? = null,
44+
45+ @Json(name = "offset-time-class")
46+ val offsetTimeClass: OffsetTimeClassClass? = null,
47+
3848 val time: OffsetTime,
3949
4050 @Json(name = "union-array")
@@ -80,6 +90,12 @@ enum class ComplexUnionArrayEnum(val value: String) {
8090 }
8191 }
8292
93+typealias LocalDateClassClass = JsonObject
94+
95+typealias OffsetDateTimeClassClass = JsonObject
96+
97+typealias OffsetTimeClassClass = JsonObject
98+
8399 sealed class UnionArray {
84100 class DateTimeValue(val value: OffsetDateTime) : UnionArray()
85101 class DateValue(val value: LocalDate) : UnionArray()
Mschema-kotlinxdefault / TopLevel.kt+18 −0
@@ -26,6 +26,15 @@ data class TopLevel (
2626 @SerialName("date-time")
2727 val dateTime: OffsetDateTime,
2828
29+ @SerialName("local-date-class")
30+ val localDateClass: LocalDateClassClass? = null,
31+
32+ @SerialName("offset-date-time-class")
33+ val offsetDateTimeClass: OffsetDateTimeClassClass? = null,
34+
35+ @SerialName("offset-time-class")
36+ val offsetTimeClass: OffsetTimeClassClass? = null,
37+
2938 val time: OffsetTime,
3039
3140 @SerialName("union-array")
@@ -40,6 +49,15 @@ enum class ComplexUnionArrayEnum(val value: String) {
4049 @SerialName("bar") Bar("bar");
4150 }
4251
52+@Serializable
53+class LocalDateClassClass()
54+
55+@Serializable
56+class OffsetDateTimeClassClass()
57+
58+@Serializable
59+class OffsetTimeClassClass()
60+
4361 typealias UnionArray = JsonElement
4462
4563 object OffsetDateTimeSerializer : KSerializer<OffsetDateTime> {
Mschema-objective-cdefault / QTTopLevel.h+20 −5
@@ -7,6 +7,9 @@
77
88 @class QTTopLevel;
99 @class QTComplexUnionArrayEnum;
10+@class QTLocalDate;
11+@class QTOffsetDateTime;
12+@class QTOffsetTime;
1013
1114 NS_ASSUME_NONNULL_BEGIN
1215
@@ -29,11 +32,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
2932 #pragma mark - Object interfaces
3033
3134 @interface QTTopLevel : NSObject
32-@property (nonatomic, copy) NSArray<id> *complexUnionArray;
33-@property (nonatomic, copy) NSString *date;
34-@property (nonatomic, copy) NSString *dateTime;
35-@property (nonatomic, copy) NSString *time;
36-@property (nonatomic, copy) NSArray<NSString *> *unionArray;
35+@property (nonatomic, copy) NSArray<id> *complexUnionArray;
36+@property (nonatomic, copy) NSString *date;
37+@property (nonatomic, copy) NSString *dateTime;
38+@property (nonatomic, nullable, strong) QTLocalDate *localDateClass;
39+@property (nonatomic, nullable, strong) QTOffsetDateTime *offsetDateTimeClass;
40+@property (nonatomic, nullable, strong) QTOffsetTime *offsetTimeClass;
41+@property (nonatomic, copy) NSString *time;
42+@property (nonatomic, copy) NSArray<NSString *> *unionArray;
3743
3844 + (_Nullable instancetype)fromJSON:(NSString *)json encoding:(NSStringEncoding)encoding error:(NSError *_Nullable *)error;
3945 + (_Nullable instancetype)fromData:(NSData *)data error:(NSError *_Nullable *)error;
@@ -41,4 +47,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
4147 - (NSData *_Nullable)toData:(NSError *_Nullable *)error;
4248 @end
4349
50+@interface QTLocalDate : NSObject
51+@end
52+
53+@interface QTOffsetDateTime : NSObject
54+@end
55+
56+@interface QTOffsetTime : NSObject
57+@end
58+
4459 NS_ASSUME_NONNULL_END
Mschema-objective-cdefault / QTTopLevel.m+147 −0
@@ -13,6 +13,21 @@ NS_ASSUME_NONNULL_BEGIN
1313 - (NSDictionary *)JSONDictionary;
1414 @end
1515
16+@interface QTLocalDate (JSONConversion)
17++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
18+- (NSDictionary *)JSONDictionary;
19+@end
20+
21+@interface QTOffsetDateTime (JSONConversion)
22++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
23+- (NSDictionary *)JSONDictionary;
24+@end
25+
26+@interface QTOffsetTime (JSONConversion)
27++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
28+- (NSDictionary *)JSONDictionary;
29+@end
30+
1631 @implementation QTComplexUnionArrayEnum
1732 + (NSDictionary<NSString *, QTComplexUnionArrayEnum *> *)values
1833 {
@@ -96,6 +111,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
96111 @"complex-union-array": @"complexUnionArray",
97112 @"date": @"date",
98113 @"date-time": @"dateTime",
114+ @"local-date-class": @"localDateClass",
115+ @"offset-date-time-class": @"offsetDateTimeClass",
116+ @"offset-time-class": @"offsetTimeClass",
99117 @"time": @"time",
100118 @"union-array": @"unionArray",
101119 };
@@ -126,6 +144,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
126144 if (![dict[@"time"] isKindOfClass:NSString.class]) return nil;
127145 if (![dict[@"union-array"] isKindOfClass:NSArray.class]) return nil;
128146 [self setValuesForKeysWithDictionary:dict];
147+ _localDateClass = [QTLocalDate fromJSONDictionary:(id)_localDateClass];
148+ if (!_localDateClass && dict[@"local-date-class"] && ![dict[@"local-date-class"] isKindOfClass:NSNull.class]) return nil;
149+ _offsetDateTimeClass = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTimeClass];
150+ if (!_offsetDateTimeClass && dict[@"offset-date-time-class"] && ![dict[@"offset-date-time-class"] isKindOfClass:NSNull.class]) return nil;
151+ _offsetTimeClass = [QTOffsetTime fromJSONDictionary:(id)_offsetTimeClass];
152+ if (!_offsetTimeClass && dict[@"offset-time-class"] && ![dict[@"offset-time-class"] isKindOfClass:NSNull.class]) return nil;
129153 }
130154 return self;
131155 }
@@ -154,6 +178,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
154178 }
155179 }
156180
181+ [dict addEntriesFromDictionary:@{
182+ @"local-date-class": NSNullify([_localDateClass isKindOfClass:NSNull.class] ? nil : [_localDateClass JSONDictionary]),
183+ @"offset-date-time-class": NSNullify([_offsetDateTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetDateTimeClass JSONDictionary]),
184+ @"offset-time-class": NSNullify([_offsetTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetTimeClass JSONDictionary]),
185+ }];
186+
157187 return dict;
158188 }
159189
@@ -168,4 +198,121 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
168198 }
169199 @end
170200
201+@implementation QTLocalDate
202++ (NSDictionary<NSString *, NSString *> *)properties
203+{
204+ static NSDictionary<NSString *, NSString *> *properties;
205+ return properties = properties ? properties : @{
206+ };
207+}
208+
209++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
210+{
211+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
212+}
213+
214+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
215+{
216+ if (self = [super init]) {
217+ [self setValuesForKeysWithDictionary:dict];
218+ }
219+ return self;
220+}
221+
222+- (void)setValue:(nullable id)value forKey:(NSString *)key
223+{
224+ id resolved = QTLocalDate.properties[key];
225+ if (resolved) [super setValue:value forKey:resolved];
226+}
227+
228+- (void)setNilValueForKey:(NSString *)key
229+{
230+ id resolved = QTLocalDate.properties[key];
231+ if (resolved) [super setValue:@(0) forKey:resolved];
232+}
233+
234+- (NSDictionary *)JSONDictionary
235+{
236+ return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues];
237+}
238+@end
239+
240+@implementation QTOffsetDateTime
241++ (NSDictionary<NSString *, NSString *> *)properties
242+{
243+ static NSDictionary<NSString *, NSString *> *properties;
244+ return properties = properties ? properties : @{
245+ };
246+}
247+
248++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
249+{
250+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
251+}
252+
253+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
254+{
255+ if (self = [super init]) {
256+ [self setValuesForKeysWithDictionary:dict];
257+ }
258+ return self;
259+}
260+
261+- (void)setValue:(nullable id)value forKey:(NSString *)key
262+{
263+ id resolved = QTOffsetDateTime.properties[key];
264+ if (resolved) [super setValue:value forKey:resolved];
265+}
266+
267+- (void)setNilValueForKey:(NSString *)key
268+{
269+ id resolved = QTOffsetDateTime.properties[key];
270+ if (resolved) [super setValue:@(0) forKey:resolved];
271+}
272+
273+- (NSDictionary *)JSONDictionary
274+{
275+ return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues];
276+}
277+@end
278+
279+@implementation QTOffsetTime
280++ (NSDictionary<NSString *, NSString *> *)properties
281+{
282+ static NSDictionary<NSString *, NSString *> *properties;
283+ return properties = properties ? properties : @{
284+ };
285+}
286+
287++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
288+{
289+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
290+}
291+
292+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
293+{
294+ if (self = [super init]) {
295+ [self setValuesForKeysWithDictionary:dict];
296+ }
297+ return self;
298+}
299+
300+- (void)setValue:(nullable id)value forKey:(NSString *)key
301+{
302+ id resolved = QTOffsetTime.properties[key];
303+ if (resolved) [super setValue:value forKey:resolved];
304+}
305+
306+- (void)setNilValueForKey:(NSString *)key
307+{
308+ id resolved = QTOffsetTime.properties[key];
309+ if (resolved) [super setValue:@(0) forKey:resolved];
310+}
311+
312+- (NSDictionary *)JSONDictionary
313+{
314+ return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues];
315+}
316+@end
317+
171318 NS_ASSUME_NONNULL_END
Mschema-phpdefault / TopLevel.php+334 −4
@@ -7,6 +7,9 @@ class TopLevel {
77 private array $complexUnionArray; // json:complex-union-array Required
88 private string $date; // json:date Required
99 private DateTime $dateTime; // json:date-time Required
10+ private ?LocalDate $localDateClass; // json:local-date-class Optional
11+ private ?OffsetDateTime $offsetDateTimeClass; // json:offset-date-time-class Optional
12+ private ?OffsetTime $offsetTimeClass; // json:offset-time-class Optional
1013 private string $time; // json:time Required
1114 private array $unionArray; // json:union-array Required
1215
@@ -14,13 +17,19 @@ class TopLevel {
1417 * @param array $complexUnionArray
1518 * @param string $date
1619 * @param DateTime $dateTime
20+ * @param LocalDate|null $localDateClass
21+ * @param OffsetDateTime|null $offsetDateTimeClass
22+ * @param OffsetTime|null $offsetTimeClass
1723 * @param string $time
1824 * @param array $unionArray
1925 */
20- public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, string $time, array $unionArray) {
26+ public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, ?LocalDate $localDateClass, ?OffsetDateTime $offsetDateTimeClass, ?OffsetTime $offsetTimeClass, string $time, array $unionArray) {
2127 $this->complexUnionArray = $complexUnionArray;
2228 $this->date = $date;
2329 $this->dateTime = $dateTime;
30+ $this->localDateClass = $localDateClass;
31+ $this->offsetDateTimeClass = $offsetDateTimeClass;
32+ $this->offsetTimeClass = $offsetTimeClass;
2433 $this->time = $time;
2534 $this->unionArray = $unionArray;
2635 }
@@ -217,6 +226,180 @@ class TopLevel {
217226 return DateTime::createFromFormat(DateTimeInterface::ISO8601, '2020-12-30T12:30:30+00:00');
218227 }
219228
229+ /**
230+ * @param ?stdClass $value
231+ * @throws Exception
232+ * @return ?LocalDate
233+ */
234+ public static function fromLocalDateClass(?stdClass $value): ?LocalDate {
235+ if (!is_null($value)) {
236+ return LocalDate::from($value); /*class*/
237+ } else {
238+ return null;
239+ }
240+ }
241+
242+ /**
243+ * @throws Exception
244+ * @return ?stdClass
245+ */
246+ public function toLocalDateClass(): ?stdClass {
247+ if (TopLevel::validateLocalDateClass($this->localDateClass)) {
248+ if (!is_null($this->localDateClass)) {
249+ return $this->localDateClass->to(); /*class*/
250+ } else {
251+ return null;
252+ }
253+ }
254+ throw new Exception('never get to this TopLevel::localDateClass');
255+ }
256+
257+ /**
258+ * @param LocalDate|null
259+ * @return bool
260+ * @throws Exception
261+ */
262+ public static function validateLocalDateClass(?LocalDate $value): bool {
263+ if (!is_null($value)) {
264+ $value->validate();
265+ }
266+ return true;
267+ }
268+
269+ /**
270+ * @throws Exception
271+ * @return ?LocalDate
272+ */
273+ public function getLocalDateClass(): ?LocalDate {
274+ if (TopLevel::validateLocalDateClass($this->localDateClass)) {
275+ return $this->localDateClass;
276+ }
277+ throw new Exception('never get to getLocalDateClass TopLevel::localDateClass');
278+ }
279+
280+ /**
281+ * @return ?LocalDate
282+ */
283+ public static function sampleLocalDateClass(): ?LocalDate {
284+ return LocalDate::sample(); /*34:localDateClass*/
285+ }
286+
287+ /**
288+ * @param ?stdClass $value
289+ * @throws Exception
290+ * @return ?OffsetDateTime
291+ */
292+ public static function fromOffsetDateTimeClass(?stdClass $value): ?OffsetDateTime {
293+ if (!is_null($value)) {
294+ return OffsetDateTime::from($value); /*class*/
295+ } else {
296+ return null;
297+ }
298+ }
299+
300+ /**
301+ * @throws Exception
302+ * @return ?stdClass
303+ */
304+ public function toOffsetDateTimeClass(): ?stdClass {
305+ if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) {
306+ if (!is_null($this->offsetDateTimeClass)) {
307+ return $this->offsetDateTimeClass->to(); /*class*/
308+ } else {
309+ return null;
310+ }
311+ }
312+ throw new Exception('never get to this TopLevel::offsetDateTimeClass');
313+ }
314+
315+ /**
316+ * @param OffsetDateTime|null
317+ * @return bool
318+ * @throws Exception
319+ */
320+ public static function validateOffsetDateTimeClass(?OffsetDateTime $value): bool {
321+ if (!is_null($value)) {
322+ $value->validate();
323+ }
324+ return true;
325+ }
326+
327+ /**
328+ * @throws Exception
329+ * @return ?OffsetDateTime
330+ */
331+ public function getOffsetDateTimeClass(): ?OffsetDateTime {
332+ if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) {
333+ return $this->offsetDateTimeClass;
334+ }
335+ throw new Exception('never get to getOffsetDateTimeClass TopLevel::offsetDateTimeClass');
336+ }
337+
338+ /**
339+ * @return ?OffsetDateTime
340+ */
341+ public static function sampleOffsetDateTimeClass(): ?OffsetDateTime {
342+ return OffsetDateTime::sample(); /*35:offsetDateTimeClass*/
343+ }
344+
345+ /**
346+ * @param ?stdClass $value
347+ * @throws Exception
348+ * @return ?OffsetTime
349+ */
350+ public static function fromOffsetTimeClass(?stdClass $value): ?OffsetTime {
351+ if (!is_null($value)) {
352+ return OffsetTime::from($value); /*class*/
353+ } else {
354+ return null;
355+ }
356+ }
357+
358+ /**
359+ * @throws Exception
360+ * @return ?stdClass
361+ */
362+ public function toOffsetTimeClass(): ?stdClass {
363+ if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) {
364+ if (!is_null($this->offsetTimeClass)) {
365+ return $this->offsetTimeClass->to(); /*class*/
366+ } else {
367+ return null;
368+ }
369+ }
370+ throw new Exception('never get to this TopLevel::offsetTimeClass');
371+ }
372+
373+ /**
374+ * @param OffsetTime|null
375+ * @return bool
376+ * @throws Exception
377+ */
378+ public static function validateOffsetTimeClass(?OffsetTime $value): bool {
379+ if (!is_null($value)) {
380+ $value->validate();
381+ }
382+ return true;
383+ }
384+
385+ /**
386+ * @throws Exception
387+ * @return ?OffsetTime
388+ */
389+ public function getOffsetTimeClass(): ?OffsetTime {
390+ if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) {
391+ return $this->offsetTimeClass;
392+ }
393+ throw new Exception('never get to getOffsetTimeClass TopLevel::offsetTimeClass');
394+ }
395+
396+ /**
397+ * @return ?OffsetTime
398+ */
399+ public static function sampleOffsetTimeClass(): ?OffsetTime {
400+ return OffsetTime::sample(); /*36:offsetTimeClass*/
401+ }
402+
220403 /**
221404 * @param string $value
222405 * @throws Exception
@@ -261,7 +444,7 @@ class TopLevel {
261444 * @return string
262445 */
263446 public static function sampleTime(): string {
264- return 'TopLevel::time::34'; /*34:time*/
447+ return 'TopLevel::time::37'; /*37:time*/
265448 }
266449
267450 /**
@@ -321,8 +504,8 @@ class TopLevel {
321504 */
322505 public static function sampleUnionArray(): array {
323506 return array(
324- 'TopLevel::::35' /*35:*/
325- ); /* 35:unionArray*/
507+ 'TopLevel::::38' /*38:*/
508+ ); /* 38:unionArray*/
326509 }
327510
328511 /**
@@ -333,6 +516,9 @@ class TopLevel {
333516 return TopLevel::validateComplexUnionArray($this->complexUnionArray)
334517 || TopLevel::validateDate($this->date)
335518 || TopLevel::validateDateTime($this->dateTime)
519+ || TopLevel::validateLocalDateClass($this->localDateClass)
520+ || TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)
521+ || TopLevel::validateOffsetTimeClass($this->offsetTimeClass)
336522 || TopLevel::validateTime($this->time)
337523 || TopLevel::validateUnionArray($this->unionArray);
338524 }
@@ -346,6 +532,9 @@ class TopLevel {
346532 $out->{'complex-union-array'} = $this->toComplexUnionArray();
347533 $out->{'date'} = $this->toDate();
348534 $out->{'date-time'} = $this->toDateTime();
535+ $out->{'local-date-class'} = $this->toLocalDateClass();
536+ $out->{'offset-date-time-class'} = $this->toOffsetDateTimeClass();
537+ $out->{'offset-time-class'} = $this->toOffsetTimeClass();
349538 $out->{'time'} = $this->toTime();
350539 $out->{'union-array'} = $this->toUnionArray();
351540 return $out;
@@ -376,6 +565,9 @@ class TopLevel {
376565 TopLevel::fromComplexUnionArray($obj->{'complex-union-array'})
377566 ,TopLevel::fromDate($obj->{'date'})
378567 ,TopLevel::fromDateTime($obj->{'date-time'})
568+ ,TopLevel::fromLocalDateClass($obj->{'local-date-class'})
569+ ,TopLevel::fromOffsetDateTimeClass($obj->{'offset-date-time-class'})
570+ ,TopLevel::fromOffsetTimeClass($obj->{'offset-time-class'})
379571 ,TopLevel::fromTime($obj->{'time'})
380572 ,TopLevel::fromUnionArray($obj->{'union-array'})
381573 );
@@ -389,6 +581,9 @@ class TopLevel {
389581 TopLevel::sampleComplexUnionArray()
390582 ,TopLevel::sampleDate()
391583 ,TopLevel::sampleDateTime()
584+ ,TopLevel::sampleLocalDateClass()
585+ ,TopLevel::sampleOffsetDateTimeClass()
586+ ,TopLevel::sampleOffsetTimeClass()
392587 ,TopLevel::sampleTime()
393588 ,TopLevel::sampleUnionArray()
394589 );
@@ -443,3 +638,138 @@ class ComplexUnionArray {
443638 }
444639 }
445640 ComplexUnionArray::init();
641+
642+// This is an autogenerated file:LocalDate
643+
644+class LocalDate {
645+
646+ /**
647+ */
648+ public function __construct() {
649+ }
650+
651+ /**
652+ * @throws Exception
653+ * @return bool
654+ */
655+ public function validate(): bool {
656+ return true;
657+ }
658+
659+ /**
660+ * @return stdClass
661+ * @throws Exception
662+ */
663+ public function to(): stdClass {
664+ $out = new stdClass();
665+ return $out;
666+ }
667+
668+ /**
669+ * @param stdClass $obj
670+ * @return LocalDate
671+ * @throws Exception
672+ */
673+ public static function from(stdClass $obj): LocalDate {
674+ return new LocalDate(
675+ );
676+ }
677+
678+ /**
679+ * @return LocalDate
680+ */
681+ public static function sample(): LocalDate {
682+ return new LocalDate(
683+ );
684+ }
685+}
686+
687+// This is an autogenerated file:OffsetDateTime
688+
689+class OffsetDateTime {
690+
691+ /**
692+ */
693+ public function __construct() {
694+ }
695+
696+ /**
697+ * @throws Exception
698+ * @return bool
699+ */
700+ public function validate(): bool {
701+ return true;
702+ }
703+
704+ /**
705+ * @return stdClass
706+ * @throws Exception
707+ */
708+ public function to(): stdClass {
709+ $out = new stdClass();
710+ return $out;
711+ }
712+
713+ /**
714+ * @param stdClass $obj
715+ * @return OffsetDateTime
716+ * @throws Exception
717+ */
718+ public static function from(stdClass $obj): OffsetDateTime {
719+ return new OffsetDateTime(
720+ );
721+ }
722+
723+ /**
724+ * @return OffsetDateTime
725+ */
726+ public static function sample(): OffsetDateTime {
727+ return new OffsetDateTime(
728+ );
729+ }
730+}
731+
732+// This is an autogenerated file:OffsetTime
733+
734+class OffsetTime {
735+
736+ /**
737+ */
738+ public function __construct() {
739+ }
740+
741+ /**
742+ * @throws Exception
743+ * @return bool
744+ */
745+ public function validate(): bool {
746+ return true;
747+ }
748+
749+ /**
750+ * @return stdClass
751+ * @throws Exception
752+ */
753+ public function to(): stdClass {
754+ $out = new stdClass();
755+ return $out;
756+ }
757+
758+ /**
759+ * @param stdClass $obj
760+ * @return OffsetTime
761+ * @throws Exception
762+ */
763+ public static function from(stdClass $obj): OffsetTime {
764+ return new OffsetTime(
765+ );
766+ }
767+
768+ /**
769+ * @return OffsetTime
770+ */
771+ public static function sample(): OffsetTime {
772+ return new OffsetTime(
773+ );
774+ }
775+}
Mschema-pikedefault / TopLevel.pmod+62 −5
@@ -13,17 +13,23 @@
1313 // match the expected interface, even if the JSON itself is valid.
1414
1515 class TopLevel {
16- array(ComplexUnionArray) complex_union_array; // json: "complex-union-array"
17- string date; // json: "date"
18- string date_time; // json: "date-time"
19- string time; // json: "time"
20- array(string) union_array; // json: "union-array"
16+ array(ComplexUnionArray) complex_union_array; // json: "complex-union-array"
17+ string date; // json: "date"
18+ string date_time; // json: "date-time"
19+ LocalDate|mixed local_date_class; // json: "local-date-class"
20+ OffsetDateTime|mixed offset_date_time_class; // json: "offset-date-time-class"
21+ OffsetTime|mixed offset_time_class; // json: "offset-time-class"
22+ string time; // json: "time"
23+ array(string) union_array; // json: "union-array"
2124
2225 string encode_json() {
2326 mapping(string:mixed) json = ([
2427 "complex-union-array" : complex_union_array,
2528 "date" : date,
2629 "date-time" : date_time,
30+ "local-date-class" : local_date_class,
31+ "offset-date-time-class" : offset_date_time_class,
32+ "offset-time-class" : offset_time_class,
2733 "time" : time,
2834 "union-array" : union_array,
2935 ]);
@@ -38,6 +44,9 @@ TopLevel TopLevel_from_JSON(mixed json) {
3844 retval.complex_union_array = json["complex-union-array"];
3945 retval.date = json["date"];
4046 retval.date_time = json["date-time"];
47+ retval.local_date_class = json["local-date-class"];
48+ retval.offset_date_time_class = json["offset-date-time-class"];
49+ retval.offset_time_class = json["offset-time-class"];
4150 retval.time = json["time"];
4251 retval.union_array = json["union-array"];
4352
@@ -49,3 +58,51 @@ typedef int|string ComplexUnionArray;
4958 ComplexUnionArray ComplexUnionArray_from_JSON(mixed json) {
5059 return json;
5160 }
61+
62+class LocalDate {
63+
64+ string encode_json() {
65+ mapping(string:mixed) json = ([
66+ ]);
67+
68+ return Standards.JSON.encode(json);
69+ }
70+}
71+
72+LocalDate LocalDate_from_JSON(mixed json) {
73+ LocalDate retval = LocalDate();
74+
75+ return retval;
76+}
77+
78+class OffsetDateTime {
79+
80+ string encode_json() {
81+ mapping(string:mixed) json = ([
82+ ]);
83+
84+ return Standards.JSON.encode(json);
85+ }
86+}
87+
88+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
89+ OffsetDateTime retval = OffsetDateTime();
90+
91+ return retval;
92+}
93+
94+class OffsetTime {
95+
96+ string encode_json() {
97+ mapping(string:mixed) json = ([
98+ ]);
99+
100+ return Standards.JSON.encode(json);
101+ }
102+}
103+
104+OffsetTime OffsetTime_from_JSON(mixed json) {
105+ OffsetTime retval = OffsetTime();
106+
107+ return retval;
108+}
Mschema-pythondefault / quicktype.py+60 −1
@@ -43,6 +43,11 @@ def from_time(x: Any) -> datetime.time:
4343 return dateutil.parser.parse(x).timetz()
4444
4545
46+def from_none(x: Any) -> Any:
47+ assert x is None
48+ return x
49+
50+
4651 def to_enum(c: Type[EnumT], x: Any) -> EnumT:
4752 assert isinstance(x, c)
4853 return x.value
@@ -58,6 +63,48 @@ class ComplexUnionArrayEnum(Enum):
5863 BAR = "bar"
5964
6065
66+@dataclass
67+class LocalDate:
68+ pass
69+
70+ @staticmethod
71+ def from_dict(obj: Any) -> 'LocalDate':
72+ assert isinstance(obj, dict)
73+ return LocalDate()
74+
75+ def to_dict(self) -> dict:
76+ result: dict = {}
77+ return result
78+
79+
80+@dataclass
81+class OffsetDateTime:
82+ pass
83+
84+ @staticmethod
85+ def from_dict(obj: Any) -> 'OffsetDateTime':
86+ assert isinstance(obj, dict)
87+ return OffsetDateTime()
88+
89+ def to_dict(self) -> dict:
90+ result: dict = {}
91+ return result
92+
93+
94+@dataclass
95+class OffsetTime:
96+ pass
97+
98+ @staticmethod
99+ def from_dict(obj: Any) -> 'OffsetTime':
100+ assert isinstance(obj, dict)
101+ return OffsetTime()
102+
103+ def to_dict(self) -> dict:
104+ result: dict = {}
105+ return result
106+
107+
61108 @dataclass
62109 class TopLevel:
63110 complex_union_array: list[int | ComplexUnionArrayEnum | datetime.datetime]
@@ -65,6 +112,9 @@ class TopLevel:
65112 date_time: datetime.datetime
66113 time: datetime.time
67114 union_array: list[datetime.date | datetime.time | datetime.datetime]
115+ local_date_class: LocalDate | None = None
116+ offset_date_time_class: OffsetDateTime | None = None
117+ offset_time_class: OffsetTime | None = None
68118
69119 @staticmethod
70120 def from_dict(obj: Any) -> 'TopLevel':
@@ -74,7 +124,10 @@ class TopLevel:
74124 date_time = from_datetime(obj["date-time"])
75125 time = from_time(obj["time"])
76126 union_array = from_list(lambda x: from_union([from_date, from_time, from_datetime], x), obj["union-array"])
77- return TopLevel(complex_union_array, date, date_time, time, union_array)
127+ local_date_class = from_union([LocalDate.from_dict, from_none], obj.get("local-date-class"))
128+ offset_date_time_class = from_union([OffsetDateTime.from_dict, from_none], obj.get("offset-date-time-class"))
129+ offset_time_class = from_union([OffsetTime.from_dict, from_none], obj.get("offset-time-class"))
130+ return TopLevel(complex_union_array, date, date_time, time, union_array, local_date_class, offset_date_time_class, offset_time_class)
78131
79132 def to_dict(self) -> dict:
80133 result: dict = {}
@@ -83,6 +136,12 @@ class TopLevel:
83136 result["date-time"] = self.date_time.isoformat()
84137 result["time"] = self.time.isoformat()
85138 result["union-array"] = from_list(lambda x: from_union([lambda x: x.isoformat(), lambda x: x.isoformat(), lambda x: x.isoformat()], x), self.union_array)
139+ if self.local_date_class is not None:
140+ result["local-date-class"] = from_union([lambda x: to_class(LocalDate, x), from_none], self.local_date_class)
141+ if self.offset_date_time_class is not None:
142+ result["offset-date-time-class"] = from_union([lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time_class)
143+ if self.offset_time_class is not None:
144+ result["offset-time-class"] = from_union([lambda x: to_class(OffsetTime, x), from_none], self.offset_time_class)
86145 return result
Mschema-rubydefault / TopLevel.rb+90 −15
@@ -63,21 +63,93 @@ class ComplexUnionArrayElement < Dry::Struct
6363 end
6464 end
6565
66+class LocalDate < Dry::Struct
67+
68+ def self.from_dynamic!(d)
69+ d = Types::Hash[d]
70+ new(
71+ )
72+ end
73+
74+ def self.from_json!(json)
75+ from_dynamic!(JSON.parse(json))
76+ end
77+
78+ def to_dynamic
79+ {
80+ }
81+ end
82+
83+ def to_json(options = nil)
84+ JSON.generate(to_dynamic, options)
85+ end
86+end
87+
88+class OffsetDateTime < Dry::Struct
89+
90+ def self.from_dynamic!(d)
91+ d = Types::Hash[d]
92+ new(
93+ )
94+ end
95+
96+ def self.from_json!(json)
97+ from_dynamic!(JSON.parse(json))
98+ end
99+
100+ def to_dynamic
101+ {
102+ }
103+ end
104+
105+ def to_json(options = nil)
106+ JSON.generate(to_dynamic, options)
107+ end
108+end
109+
110+class OffsetTime < Dry::Struct
111+
112+ def self.from_dynamic!(d)
113+ d = Types::Hash[d]
114+ new(
115+ )
116+ end
117+
118+ def self.from_json!(json)
119+ from_dynamic!(JSON.parse(json))
120+ end
121+
122+ def to_dynamic
123+ {
124+ }
125+ end
126+
127+ def to_json(options = nil)
128+ JSON.generate(to_dynamic, options)
129+ end
130+end
131+
66132 class TopLevel < Dry::Struct
67- attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement))
68- attribute :date, Types::String
69- attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i)
70- attribute :time, Types::String
71- attribute :union_array, Types.Array(Types::String)
133+ attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement))
134+ attribute :date, Types::String
135+ attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i)
136+ attribute :local_date_class, LocalDate.optional
137+ attribute :offset_date_time_class, OffsetDateTime.optional
138+ attribute :offset_time_class, OffsetTime.optional
139+ attribute :time, Types::String
140+ attribute :union_array, Types.Array(Types::String)
72141
73142 def self.from_dynamic!(d)
74143 d = Types::Hash[d]
75144 new(
76- complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) },
77- date: d.fetch("date"),
78- date_time: d.fetch("date-time"),
79- time: d.fetch("time"),
80- union_array: d.fetch("union-array"),
145+ complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) },
146+ date: d.fetch("date"),
147+ date_time: d.fetch("date-time"),
148+ local_date_class: d.key?("local-date-class") ? LocalDate.from_dynamic!(d["local-date-class"]) : nil,
149+ offset_date_time_class: d.key?("offset-date-time-class") ? OffsetDateTime.from_dynamic!(d["offset-date-time-class"]) : nil,
150+ offset_time_class: d.key?("offset-time-class") ? OffsetTime.from_dynamic!(d["offset-time-class"]) : nil,
151+ time: d.fetch("time"),
152+ union_array: d.fetch("union-array"),
81153 )
82154 end
83155
@@ -87,11 +159,14 @@ class TopLevel < Dry::Struct
87159
88160 def to_dynamic
89161 {
90- "complex-union-array" => complex_union_array.map { |x| x.to_dynamic },
91- "date" => date,
92- "date-time" => date_time,
93- "time" => time,
94- "union-array" => union_array,
162+ "complex-union-array" => complex_union_array.map { |x| x.to_dynamic },
163+ "date" => date,
164+ "date-time" => date_time,
165+ "local-date-class" => local_date_class&.to_dynamic,
166+ "offset-date-time-class" => offset_date_time_class&.to_dynamic,
167+ "offset-time-class" => offset_time_class&.to_dynamic,
168+ "time" => time,
169+ "union-array" => union_array,
95170 }
96171 end
Mschema-rustdefault / module_under_test.rs+18 −0
@@ -22,6 +22,12 @@ pub struct TopLevel {
2222
2323 pub date_time: String,
2424
25+ pub local_date_class: Option<LocalDate>,
26+
27+ pub offset_date_time_class: Option<OffsetDateTime>,
28+
29+ pub offset_time_class: Option<OffsetTime>,
30+
2531 pub time: String,
2632
2733 pub union_array: Vec<String>,
@@ -34,3 +40,15 @@ pub enum ComplexUnionArray {
3440
3541 PurpleString(String),
3642 }
43+
44+#[derive(Debug, Clone, Serialize, Deserialize)]
45+pub struct LocalDate {
46+}
47+
48+#[derive(Debug, Clone, Serialize, Deserialize)]
49+pub struct OffsetDateTime {
50+}
51+
52+#[derive(Debug, Clone, Serialize, Deserialize)]
53+pub struct OffsetTime {
54+}
Mschema-scala3-upickledefault / TopLevel.scala+10 −0
@@ -82,6 +82,9 @@ case class TopLevel (
8282 val `complex-union-array` : Seq[ComplexUnionArrayElement],
8383 val date : String,
8484 val `date-time` : java.time.Instant,
85+ val `local-date-class` : Option[LocalDate] = None,
86+ val `offset-date-time-class` : Option[OffsetDateTime] = None,
87+ val `offset-time-class` : Option[OffsetTime] = None,
8588 val time : String,
8689 val `union-array` : Seq[String]
8790 ) derives OptionPickler.ReadWriter
@@ -115,3 +118,10 @@ given OptionPickler.ReadWriter[ComplexUnionArrayEnum] = OptionPickler.readwriter
115118 case other => throw new upickle.core.Abort("invalid ComplexUnionArrayEnum: " + other)
116119 }
117120 )
121+
122+case class LocalDate()
123+ derives OptionPickler.ReadWriter
124+case class OffsetDateTime()
125+ derives OptionPickler.ReadWriter
126+case class OffsetTime()
127+ derives OptionPickler.ReadWriter
\ No newline at end of file
Mschema-scala3default / TopLevel.scala+9 −0
@@ -11,6 +11,9 @@ case class TopLevel (
1111 val `complex-union-array` : Seq[ComplexUnionArrayElement],
1212 val date : String,
1313 val `date-time` : java.time.Instant,
14+ val `local-date-class` : Option[LocalDate] = None,
15+ val `offset-date-time-class` : Option[OffsetDateTime] = None,
16+ val `offset-time-class` : Option[OffsetTime] = None,
1417 val time : String,
1518 val `union-array` : Seq[String]
1619 ) derives Encoder.AsObject, Decoder
@@ -43,3 +46,9 @@ given Encoder[ComplexUnionArrayEnum] = Encoder.encodeString.contramap {
4346 case ComplexUnionArrayEnum.Foo => "foo"
4447 case ComplexUnionArrayEnum.Bar => "bar"
4548 }
49+
50+case class LocalDate() derives Encoder.AsObject, Decoder
51+
52+case class OffsetDateTime() derives Encoder.AsObject, Decoder
53+
54+case class OffsetTime() derives Encoder.AsObject, Decoder
Mschema-schemadefault / TopLevel.schema+24 −0
@@ -20,6 +20,15 @@
2020 "type": "string",
2121 "format": "date-time"
2222 },
23+ "local-date-class": {
24+ "$ref": "#/definitions/LocalDate"
25+ },
26+ "offset-date-time-class": {
27+ "$ref": "#/definitions/OffsetDateTime"
28+ },
29+ "offset-time-class": {
30+ "$ref": "#/definitions/OffsetTime"
31+ },
2332 "time": {
2433 "type": "string",
2534 "format": "time"
@@ -40,6 +49,21 @@
4049 ],
4150 "title": "TopLevel"
4251 },
52+ "LocalDate": {
53+ "type": "object",
54+ "additionalProperties": false,
55+ "title": "LocalDate"
56+ },
57+ "OffsetDateTime": {
58+ "type": "object",
59+ "additionalProperties": false,
60+ "title": "OffsetDateTime"
61+ },
62+ "OffsetTime": {
63+ "type": "object",
64+ "additionalProperties": false,
65+ "title": "OffsetTime"
66+ },
4367 "ComplexUnionArrayElement": {
4468 "anyOf": [
4569 {
Mschema-swiftdefault / quicktype.swift+141 −0
@@ -10,6 +10,9 @@ struct TopLevel: Codable {
1010 let complexUnionArray: [ComplexUnionArrayElement]
1111 let date: String
1212 let dateTime: Date
13+ let localDateClass: LocalDate?
14+ let offsetDateTimeClass: OffsetDateTime?
15+ let offsetTimeClass: OffsetTime?
1316 let time: String
1417 let unionArray: [String]
1518
@@ -17,6 +20,9 @@ struct TopLevel: Codable {
1720 case complexUnionArray = "complex-union-array"
1821 case date = "date"
1922 case dateTime = "date-time"
23+ case localDateClass = "local-date-class"
24+ case offsetDateTimeClass = "offset-date-time-class"
25+ case offsetTimeClass = "offset-time-class"
2026 case time = "time"
2127 case unionArray = "union-array"
2228 }
@@ -44,6 +50,9 @@ extension TopLevel {
4450 complexUnionArray: [ComplexUnionArrayElement]? = nil,
4551 date: String? = nil,
4652 dateTime: Date? = nil,
53+ localDateClass: LocalDate?? = nil,
54+ offsetDateTimeClass: OffsetDateTime?? = nil,
55+ offsetTimeClass: OffsetTime?? = nil,
4756 time: String? = nil,
4857 unionArray: [String]? = nil
4958 ) -> TopLevel {
@@ -51,6 +60,9 @@ extension TopLevel {
5160 complexUnionArray: complexUnionArray ?? self.complexUnionArray,
5261 date: date ?? self.date,
5362 dateTime: dateTime ?? self.dateTime,
63+ localDateClass: localDateClass ?? self.localDateClass,
64+ offsetDateTimeClass: offsetDateTimeClass ?? self.offsetDateTimeClass,
65+ offsetTimeClass: offsetTimeClass ?? self.offsetTimeClass,
5466 time: time ?? self.time,
5567 unionArray: unionArray ?? self.unionArray
5668 )
@@ -105,6 +117,135 @@ enum ComplexUnionArrayEnum: String, Codable {
105117 case bar = "bar"
106118 }
107119
120+// MARK: - LocalDate
121+struct LocalDate: Codable {
122+ private enum K: String, CodingKey { case unused }
123+ init(from decoder: Decoder) throws {
124+ _ = try decoder.container(keyedBy: K.self)
125+ }
126+ init() {
127+ }
128+}
129+
130+// MARK: LocalDate convenience initializers and mutators
131+
132+extension LocalDate {
133+ init(data: Data) throws {
134+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
135+ }
136+
137+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
138+ guard let data = json.data(using: encoding) else {
139+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
140+ }
141+ try self.init(data: data)
142+ }
143+
144+ init(fromURL url: URL) throws {
145+ try self.init(data: try Data(contentsOf: url))
146+ }
147+
148+ func with(
149+ ) -> LocalDate {
150+ return LocalDate(
151+ )
152+ }
153+
154+ func jsonData() throws -> Data {
155+ return try newJSONEncoder().encode(self)
156+ }
157+
158+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
159+ return String(data: try self.jsonData(), encoding: encoding)
160+ }
161+}
162+
163+// MARK: - OffsetDateTime
164+struct OffsetDateTime: Codable {
165+ private enum K: String, CodingKey { case unused }
166+ init(from decoder: Decoder) throws {
167+ _ = try decoder.container(keyedBy: K.self)
168+ }
169+ init() {
170+ }
171+}
172+
173+// MARK: OffsetDateTime convenience initializers and mutators
174+
175+extension OffsetDateTime {
176+ init(data: Data) throws {
177+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
178+ }
179+
180+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
181+ guard let data = json.data(using: encoding) else {
182+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
183+ }
184+ try self.init(data: data)
185+ }
186+
187+ init(fromURL url: URL) throws {
188+ try self.init(data: try Data(contentsOf: url))
189+ }
190+
191+ func with(
192+ ) -> OffsetDateTime {
193+ return OffsetDateTime(
194+ )
195+ }
196+
197+ func jsonData() throws -> Data {
198+ return try newJSONEncoder().encode(self)
199+ }
200+
201+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
202+ return String(data: try self.jsonData(), encoding: encoding)
203+ }
204+}
205+
206+// MARK: - OffsetTime
207+struct OffsetTime: Codable {
208+ private enum K: String, CodingKey { case unused }
209+ init(from decoder: Decoder) throws {
210+ _ = try decoder.container(keyedBy: K.self)
211+ }
212+ init() {
213+ }
214+}
215+
216+// MARK: OffsetTime convenience initializers and mutators
217+
218+extension OffsetTime {
219+ init(data: Data) throws {
220+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
221+ }
222+
223+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
224+ guard let data = json.data(using: encoding) else {
225+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
226+ }
227+ try self.init(data: data)
228+ }
229+
230+ init(fromURL url: URL) throws {
231+ try self.init(data: try Data(contentsOf: url))
232+ }
233+
234+ func with(
235+ ) -> OffsetTime {
236+ return OffsetTime(
237+ )
238+ }
239+
240+ func jsonData() throws -> Data {
241+ return try newJSONEncoder().encode(self)
242+ }
243+
244+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
245+ return String(data: try self.jsonData(), encoding: encoding)
246+ }
247+}
248+
108249 // MARK: - Helper functions for creating encoders and decoders
109250
110251 func newJSONDecoder() -> JSONDecoder {
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
@@ -7,10 +7,22 @@ export const ComplexUnionArrayEnum = S.Literal(
77 );
88 export type ComplexUnionArrayEnum = S.Schema.Type<typeof ComplexUnionArrayEnum>;
99
10+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
11+) {}
12+
13+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
14+) {}
15+
16+export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
17+) {}
18+
1019 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
1120 "complex-union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), ComplexUnionArrayEnum, S.Int)),
1221 "date": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)),
1322 "date-time": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)),
23+ "local-date-class": S.optional(LocalDate),
24+ "offset-date-time-class": S.optional(OffsetDateTime),
25+ "offset-time-class": S.optional(OffsetTime),
1426 "time": S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)),
1527 "union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)), S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)))),
1628 }) {}
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
@@ -7,10 +7,25 @@ export const ComplexUnionArrayEnumSchema = z.enum([
77 ]);
88 export type ComplexUnionArrayEnum = z.infer<typeof ComplexUnionArrayEnumSchema>;
99
10+export const LocalDateSchema = z.object({
11+});
12+export type LocalDate = z.infer<typeof LocalDateSchema>;
13+
14+export const OffsetDateTimeSchema = z.object({
15+});
16+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
17+
18+export const OffsetTimeSchema = z.object({
19+});
20+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
21+
1022 export const TopLevelSchema = z.object({
1123 "complex-union-array": z.array(z.union([ComplexUnionArrayEnumSchema, z.number().int(), z.string().pipe(z.coerce.date())])),
1224 "date": z.string(),
1325 "date-time": z.string().pipe(z.coerce.date()),
26+ "local-date-class": LocalDateSchema.optional(),
27+ "offset-date-time-class": OffsetDateTimeSchema.optional(),
28+ "offset-time-class": OffsetTimeSchema.optional(),
1429 "time": z.string(),
1530 "union-array": z.array(z.string()),
1631 });
Mschema-typescriptdefault / TopLevel.ts+11 −5
@@ -8,11 +8,14 @@
88 // match the expected interface, even if the JSON is valid.
99
1010 export interface TopLevel {
11- "complex-union-array": ComplexUnionArrayElement[];
12- date: Date;
13- "date-time": Date;
14- time: string;
15- "union-array": string[];
11+ "complex-union-array": ComplexUnionArrayElement[];
12+ date: Date;
13+ "date-time": Date;
14+ "local-date-class"?: object;
15+ "offset-date-time-class"?: object;
16+ "offset-time-class"?: object;
17+ time: string;
18+ "union-array": string[];
1619 }
1720
1821 export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number;
@@ -210,6 +213,9 @@ const typeMap: any = {
210213 { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) },
211214 { json: "date", js: "date", typ: Date },
212215 { json: "date-time", js: "date-time", typ: Date },
216+ { json: "local-date-class", js: "local-date-class", typ: u(undefined, m("any")) },
217+ { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, m("any")) },
218+ { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, m("any")) },
213219 { json: "time", js: "time", typ: "" },
214220 { json: "union-array", js: "union-array", typ: a("") },
215221 ], false),
Test case

test/inputs/schema/keyword-enum.schema

34 generated files · +216 −12
Mschema-cjsondefault / TopLevel.c+6 −0
@@ -190,6 +190,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
190190 else if (!strcmp(cJSON_GetStringValue(j), "left")) x = ENUM_LEFT;
191191 else if (!strcmp(cJSON_GetStringValue(j), "let")) x = ENUM_LET;
192192 else if (!strcmp(cJSON_GetStringValue(j), "list")) x = ENUM_LIST;
193+ else if (!strcmp(cJSON_GetStringValue(j), "LocalDate")) x = ENUM_LOCAL_DATE;
193194 else if (!strcmp(cJSON_GetStringValue(j), "LongNode")) x = ENUM_LONG_NODE;
194195 else if (!strcmp(cJSON_GetStringValue(j), "Locale")) x = ENUM_LOCALE;
195196 else if (!strcmp(cJSON_GetStringValue(j), "lock")) x = ENUM_LOCK;
@@ -225,6 +226,8 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
225226 else if (!strcmp(cJSON_GetStringValue(j), "nullptr")) x = ENUM_NULLPTR;
226227 else if (!strcmp(cJSON_GetStringValue(j), "number")) x = ENUM_NUMBER;
227228 else if (!strcmp(cJSON_GetStringValue(j), "object")) x = ENUM_OBJECT;
229+ else if (!strcmp(cJSON_GetStringValue(j), "OffsetDateTime")) x = ENUM_OFFSET_DATE_TIME;
230+ else if (!strcmp(cJSON_GetStringValue(j), "OffsetTime")) x = ENUM_OFFSET_TIME;
228231 else if (!strcmp(cJSON_GetStringValue(j), "ObjectNode")) x = ENUM_OBJECT_NODE;
229232 else if (!strcmp(cJSON_GetStringValue(j), "ObjectMapper")) x = ENUM_OBJECT_MAPPER;
230233 else if (!strcmp(cJSON_GetStringValue(j), "ObjectReader")) x = ENUM_OBJECT_READER;
@@ -552,6 +555,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
552555 case ENUM_LEFT: j = cJSON_CreateString("left"); break;
553556 case ENUM_LET: j = cJSON_CreateString("let"); break;
554557 case ENUM_LIST: j = cJSON_CreateString("list"); break;
558+ case ENUM_LOCAL_DATE: j = cJSON_CreateString("LocalDate"); break;
555559 case ENUM_LONG_NODE: j = cJSON_CreateString("LongNode"); break;
556560 case ENUM_LOCALE: j = cJSON_CreateString("Locale"); break;
557561 case ENUM_LOCK: j = cJSON_CreateString("lock"); break;
@@ -587,6 +591,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
587591 case ENUM_NULLPTR: j = cJSON_CreateString("nullptr"); break;
588592 case ENUM_NUMBER: j = cJSON_CreateString("number"); break;
589593 case ENUM_OBJECT: j = cJSON_CreateString("object"); break;
594+ case ENUM_OFFSET_DATE_TIME: j = cJSON_CreateString("OffsetDateTime"); break;
595+ case ENUM_OFFSET_TIME: j = cJSON_CreateString("OffsetTime"); break;
590596 case ENUM_OBJECT_NODE: j = cJSON_CreateString("ObjectNode"); break;
591597 case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break;
592598 case ENUM_OBJECT_READER: j = cJSON_CreateString("ObjectReader"); break;
Mschema-cjsondefault / TopLevel.h+3 −0
@@ -231,6 +231,7 @@ enum Enum {
231231 ENUM_LEFT,
232232 ENUM_LET,
233233 ENUM_LIST,
234+ ENUM_LOCAL_DATE,
234235 ENUM_LONG_NODE,
235236 ENUM_LOCALE,
236237 ENUM_LOCK,
@@ -266,6 +267,8 @@ enum Enum {
266267 ENUM_NULLPTR,
267268 ENUM_NUMBER,
268269 ENUM_OBJECT,
270+ ENUM_OFFSET_DATE_TIME,
271+ ENUM_OFFSET_TIME,
269272 ENUM_OBJECT_NODE,
270273 ENUM_OBJECT_MAPPER,
271274 ENUM_OBJECT_READER,
Mschema-cplusplusdefault / quicktype.hpp+7 −1
@@ -89,7 +89,7 @@ namespace quicktype {
8989 }
9090 #endif
9191
92- enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY };
92+ enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY };
9393
9494 class TopLevel {
9595 public:
@@ -308,6 +308,7 @@ namespace quicktype {
308308 {"left", Enum::LEFT},
309309 {"let", Enum::LET},
310310 {"list", Enum::LIST},
311+ {"LocalDate", Enum::LOCAL_DATE},
311312 {"LongNode", Enum::LONG_NODE},
312313 {"Locale", Enum::LOCALE},
313314 {"lock", Enum::LOCK},
@@ -343,6 +344,8 @@ namespace quicktype {
343344 {"nullptr", Enum::NULLPTR},
344345 {"number", Enum::NUMBER},
345346 {"object", Enum::OBJECT},
347+ {"OffsetDateTime", Enum::OFFSET_DATE_TIME},
348+ {"OffsetTime", Enum::OFFSET_TIME},
346349 {"ObjectNode", Enum::OBJECT_NODE},
347350 {"ObjectMapper", Enum::OBJECT_MAPPER},
348351 {"ObjectReader", Enum::OBJECT_READER},
@@ -673,6 +676,7 @@ namespace quicktype {
673676 case Enum::LEFT: j = "left"; break;
674677 case Enum::LET: j = "let"; break;
675678 case Enum::LIST: j = "list"; break;
679+ case Enum::LOCAL_DATE: j = "LocalDate"; break;
676680 case Enum::LONG_NODE: j = "LongNode"; break;
677681 case Enum::LOCALE: j = "Locale"; break;
678682 case Enum::LOCK: j = "lock"; break;
@@ -708,6 +712,8 @@ namespace quicktype {
708712 case Enum::NULLPTR: j = "nullptr"; break;
709713 case Enum::NUMBER: j = "number"; break;
710714 case Enum::OBJECT: j = "object"; break;
715+ case Enum::OFFSET_DATE_TIME: j = "OffsetDateTime"; break;
716+ case Enum::OFFSET_TIME: j = "OffsetTime"; break;
711717 case Enum::OBJECT_NODE: j = "ObjectNode"; break;
712718 case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break;
713719 case Enum::OBJECT_READER: j = "ObjectReader"; break;
Mschema-csharp-recordsdefault / QuickType.cs+16 −1
@@ -29,7 +29,7 @@ namespace QuickType
2929 public Enum? Enum { get; set; }
3030 }
3131
32- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LongNode, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
32+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LocalDate, LongNode, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3333
3434 public partial record TopLevel
3535 {
@@ -429,6 +429,8 @@ namespace QuickType
429429 return Enum.Let;
430430 case "list":
431431 return Enum.List;
432+ case "LocalDate":
433+ return Enum.LocalDate;
432434 case "LongNode":
433435 return Enum.LongNode;
434436 case "Locale":
@@ -499,6 +501,10 @@ namespace QuickType
499501 return Enum.Number;
500502 case "object":
501503 return Enum.Object;
504+ case "OffsetDateTime":
505+ return Enum.OffsetDateTime;
506+ case "OffsetTime":
507+ return Enum.OffsetTime;
502508 case "ObjectNode":
503509 return Enum.ObjectNode;
504510 case "ObjectMapper":
@@ -1335,6 +1341,9 @@ namespace QuickType
13351341 case Enum.List:
13361342 serializer.Serialize(writer, "list");
13371343 return;
1344+ case Enum.LocalDate:
1345+ serializer.Serialize(writer, "LocalDate");
1346+ return;
13381347 case Enum.LongNode:
13391348 serializer.Serialize(writer, "LongNode");
13401349 return;
@@ -1440,6 +1449,12 @@ namespace QuickType
14401449 case Enum.Object:
14411450 serializer.Serialize(writer, "object");
14421451 return;
1452+ case Enum.OffsetDateTime:
1453+ serializer.Serialize(writer, "OffsetDateTime");
1454+ return;
1455+ case Enum.OffsetTime:
1456+ serializer.Serialize(writer, "OffsetTime");
1457+ return;
14431458 case Enum.ObjectNode:
14441459 serializer.Serialize(writer, "ObjectNode");
14451460 return;
Mschema-csharp-SystemTextJsondefault / QuickType.cs+16 −1
@@ -27,7 +27,7 @@ namespace QuickType
2727 public Enum? Enum { get; set; }
2828 }
2929
30- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LongNode, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
30+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LocalDate, LongNode, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3131
3232 public partial class TopLevel
3333 {
@@ -426,6 +426,8 @@ namespace QuickType
426426 return Enum.Let;
427427 case "list":
428428 return Enum.List;
429+ case "LocalDate":
430+ return Enum.LocalDate;
429431 case "LongNode":
430432 return Enum.LongNode;
431433 case "Locale":
@@ -496,6 +498,10 @@ namespace QuickType
496498 return Enum.Number;
497499 case "object":
498500 return Enum.Object;
501+ case "OffsetDateTime":
502+ return Enum.OffsetDateTime;
503+ case "OffsetTime":
504+ return Enum.OffsetTime;
499505 case "ObjectNode":
500506 return Enum.ObjectNode;
501507 case "ObjectMapper":
@@ -1326,6 +1332,9 @@ namespace QuickType
13261332 case Enum.List:
13271333 JsonSerializer.Serialize(writer, "list", options);
13281334 return;
1335+ case Enum.LocalDate:
1336+ JsonSerializer.Serialize(writer, "LocalDate", options);
1337+ return;
13291338 case Enum.LongNode:
13301339 JsonSerializer.Serialize(writer, "LongNode", options);
13311340 return;
@@ -1431,6 +1440,12 @@ namespace QuickType
14311440 case Enum.Object:
14321441 JsonSerializer.Serialize(writer, "object", options);
14331442 return;
1443+ case Enum.OffsetDateTime:
1444+ JsonSerializer.Serialize(writer, "OffsetDateTime", options);
1445+ return;
1446+ case Enum.OffsetTime:
1447+ JsonSerializer.Serialize(writer, "OffsetTime", options);
1448+ return;
14341449 case Enum.ObjectNode:
14351450 JsonSerializer.Serialize(writer, "ObjectNode", options);
14361451 return;
Mschema-csharpdefault / QuickType.cs+16 −1
@@ -29,7 +29,7 @@ namespace QuickType
2929 public Enum? Enum { get; set; }
3030 }
3131
32- public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LongNode, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
32+ public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LocalDate, LongNode, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy };
3333
3434 public partial class TopLevel
3535 {
@@ -429,6 +429,8 @@ namespace QuickType
429429 return Enum.Let;
430430 case "list":
431431 return Enum.List;
432+ case "LocalDate":
433+ return Enum.LocalDate;
432434 case "LongNode":
433435 return Enum.LongNode;
434436 case "Locale":
@@ -499,6 +501,10 @@ namespace QuickType
499501 return Enum.Number;
500502 case "object":
501503 return Enum.Object;
504+ case "OffsetDateTime":
505+ return Enum.OffsetDateTime;
506+ case "OffsetTime":
507+ return Enum.OffsetTime;
502508 case "ObjectNode":
503509 return Enum.ObjectNode;
504510 case "ObjectMapper":
@@ -1335,6 +1341,9 @@ namespace QuickType
13351341 case Enum.List:
13361342 serializer.Serialize(writer, "list");
13371343 return;
1344+ case Enum.LocalDate:
1345+ serializer.Serialize(writer, "LocalDate");
1346+ return;
13381347 case Enum.LongNode:
13391348 serializer.Serialize(writer, "LongNode");
13401349 return;
@@ -1440,6 +1449,12 @@ namespace QuickType
14401449 case Enum.Object:
14411450 serializer.Serialize(writer, "object");
14421451 return;
1452+ case Enum.OffsetDateTime:
1453+ serializer.Serialize(writer, "OffsetDateTime");
1454+ return;
1455+ case Enum.OffsetTime:
1456+ serializer.Serialize(writer, "OffsetTime");
1457+ return;
14431458 case Enum.ObjectNode:
14441459 serializer.Serialize(writer, "ObjectNode");
14451460 return;
Mschema-dartdefault / TopLevel.dart+6 −0
@@ -207,6 +207,7 @@ enum Enum {
207207 LEFT,
208208 LET,
209209 LIST,
210+ LOCAL_DATE,
210211 LONG_NODE,
211212 LOCALE,
212213 LOCK,
@@ -242,6 +243,8 @@ enum Enum {
242243 NULLPTR,
243244 NUMBER,
244245 OBJECT,
246+ OFFSET_DATE_TIME,
247+ OFFSET_TIME,
245248 OBJECT_NODE,
246249 OBJECT_MAPPER,
247250 OBJECT_READER,
@@ -565,6 +568,7 @@ final enumValues = EnumValues({
565568 "left": Enum.LEFT,
566569 "let": Enum.LET,
567570 "list": Enum.LIST,
571+ "LocalDate": Enum.LOCAL_DATE,
568572 "LongNode": Enum.LONG_NODE,
569573 "Locale": Enum.LOCALE,
570574 "lock": Enum.LOCK,
@@ -600,6 +604,8 @@ final enumValues = EnumValues({
600604 "nullptr": Enum.NULLPTR,
601605 "number": Enum.NUMBER,
602606 "object": Enum.OBJECT,
607+ "OffsetDateTime": Enum.OFFSET_DATE_TIME,
608+ "OffsetTime": Enum.OFFSET_TIME,
603609 "ObjectNode": Enum.OBJECT_NODE,
604610 "ObjectMapper": Enum.OBJECT_MAPPER,
605611 "ObjectReader": Enum.OBJECT_READER,
Mschema-elixirdefault / QuickType.ex+3 −0
@@ -189,6 +189,7 @@ defmodule EnumEnum do
189189 :left,
190190 :let,
191191 :list,
192+ :LocalDate,
192193 :LongNode,
193194 :Locale,
194195 :lock,
@@ -224,6 +225,8 @@ defmodule EnumEnum do
224225 :nullptr,
225226 :number,
226227 :object,
228+ :OffsetDateTime,
229+ :OffsetTime,
227230 :ObjectNode,
228231 :ObjectMapper,
229232 :ObjectReader,
Mschema-elmdefault / QuickType.elm+9 −0
@@ -210,6 +210,7 @@ type EnumEnum
210210 | Left
211211 | Let
212212 | EnumList
213+ | LocalDate
213214 | LongNode
214215 | Locale
215216 | Lock
@@ -245,6 +246,8 @@ type EnumEnum
245246 | Nullptr
246247 | Number
247248 | Object
249+ | OffsetDateTime
250+ | OffsetTime
248251 | ObjectNode
249252 | ObjectMapper
250253 | ObjectReader
@@ -593,6 +596,7 @@ enumEnum =
593596 "left" -> Jdec.succeed Left
594597 "let" -> Jdec.succeed Let
595598 "list" -> Jdec.succeed EnumList
599+ "LocalDate" -> Jdec.succeed LocalDate
596600 "LongNode" -> Jdec.succeed LongNode
597601 "Locale" -> Jdec.succeed Locale
598602 "lock" -> Jdec.succeed Lock
@@ -628,6 +632,8 @@ enumEnum =
628632 "nullptr" -> Jdec.succeed Nullptr
629633 "number" -> Jdec.succeed Number
630634 "object" -> Jdec.succeed Object
635+ "OffsetDateTime" -> Jdec.succeed OffsetDateTime
636+ "OffsetTime" -> Jdec.succeed OffsetTime
631637 "ObjectNode" -> Jdec.succeed ObjectNode
632638 "ObjectMapper" -> Jdec.succeed ObjectMapper
633639 "ObjectReader" -> Jdec.succeed ObjectReader
@@ -953,6 +959,7 @@ encodeEnumEnum x = case x of
953959 Left -> Jenc.string "left"
954960 Let -> Jenc.string "let"
955961 EnumList -> Jenc.string "list"
962+ LocalDate -> Jenc.string "LocalDate"
956963 LongNode -> Jenc.string "LongNode"
957964 Locale -> Jenc.string "Locale"
958965 Lock -> Jenc.string "lock"
@@ -988,6 +995,8 @@ encodeEnumEnum x = case x of
988995 Nullptr -> Jenc.string "nullptr"
989996 Number -> Jenc.string "number"
990997 Object -> Jenc.string "object"
998+ OffsetDateTime -> Jenc.string "OffsetDateTime"
999+ OffsetTime -> Jenc.string "OffsetTime"
9911000 ObjectNode -> Jenc.string "ObjectNode"
9921001 ObjectMapper -> Jenc.string "ObjectMapper"
9931002 ObjectReader -> Jenc.string "ObjectReader"
Mschema-flowdefault / TopLevel.js+6 −0
@@ -197,6 +197,7 @@ export type Enum =
197197 | "left"
198198 | "let"
199199 | "list"
200+ | "LocalDate"
200201 | "LongNode"
201202 | "Locale"
202203 | "lock"
@@ -232,6 +233,8 @@ export type Enum =
232233 | "nullptr"
233234 | "number"
234235 | "object"
236+ | "OffsetDateTime"
237+ | "OffsetTime"
235238 | "ObjectNode"
236239 | "ObjectMapper"
237240 | "ObjectReader"
@@ -742,6 +745,7 @@ const typeMap: any = {
742745 "left",
743746 "let",
744747 "list",
748+ "LocalDate",
745749 "LongNode",
746750 "Locale",
747751 "lock",
@@ -777,6 +781,8 @@ const typeMap: any = {
777781 "nullptr",
778782 "number",
779783 "object",
784+ "OffsetDateTime",
785+ "OffsetTime",
780786 "ObjectNode",
781787 "ObjectMapper",
782788 "ObjectReader",
Mschema-golangdefault / quicktype.go+4 −1
@@ -207,6 +207,7 @@ const (
207207 Left EnumEnum = "left"
208208 Let EnumEnum = "let"
209209 List EnumEnum = "list"
210+ LocalDate EnumEnum = "LocalDate"
210211 LongNode EnumEnum = "LongNode"
211212 Locale EnumEnum = "Locale"
212213 Lock EnumEnum = "lock"
@@ -242,6 +243,8 @@ const (
242243 Nullptr EnumEnum = "nullptr"
243244 Number EnumEnum = "number"
244245 Object EnumEnum = "object"
246+ OffsetDateTime EnumEnum = "OffsetDateTime"
247+ OffsetTime EnumEnum = "OffsetTime"
245248 ObjectNode EnumEnum = "ObjectNode"
246249 ObjectMapper EnumEnum = "ObjectMapper"
247250 ObjectReader EnumEnum = "ObjectReader"
@@ -389,7 +392,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
389392 var value string
390393 if err := json.Unmarshal(data, &value); err != nil { return err }
391394 switch EnumEnum(value) {
392- case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, LongNode, Locale, Lock, Long, Map, MarshalJSON, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJSON, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil
395+ case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, ArrayNode, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, BooleanNode, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, DoubleNode, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, IntNode, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, LocalDate, LongNode, Locale, Lock, Long, Map, MarshalJSON, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, NullNode, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectNode, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, TextNode, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJSON, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil
393396 }
394397 return invalidEnumEnum(value)
395398 }
Mschema-haskelldefault / QuickType.hs+9 −0
@@ -200,6 +200,7 @@ data EnumEnum
200200 | LeftEnumEnum
201201 | LetEnumEnum
202202 | ListEnumEnum
203+ | LocalDateEnumEnum
203204 | LongNodeEnumEnum
204205 | LocaleEnumEnum
205206 | LockEnumEnum
@@ -235,6 +236,8 @@ data EnumEnum
235236 | NullptrEnumEnum
236237 | NumberEnumEnum
237238 | ObjectEnumEnum
239+ | OffsetDateTimeEnumEnum
240+ | OffsetTimeEnumEnum
238241 | ObjectNodeEnumEnum
239242 | ObjectMapperEnumEnum
240243 | ObjectReaderEnumEnum
@@ -571,6 +574,7 @@ instance ToJSON EnumEnum where
571574 toJSON LeftEnumEnum = "left"
572575 toJSON LetEnumEnum = "let"
573576 toJSON ListEnumEnum = "list"
577+ toJSON LocalDateEnumEnum = "LocalDate"
574578 toJSON LongNodeEnumEnum = "LongNode"
575579 toJSON LocaleEnumEnum = "Locale"
576580 toJSON LockEnumEnum = "lock"
@@ -606,6 +610,8 @@ instance ToJSON EnumEnum where
606610 toJSON NullptrEnumEnum = "nullptr"
607611 toJSON NumberEnumEnum = "number"
608612 toJSON ObjectEnumEnum = "object"
613+ toJSON OffsetDateTimeEnumEnum = "OffsetDateTime"
614+ toJSON OffsetTimeEnumEnum = "OffsetTime"
609615 toJSON ObjectNodeEnumEnum = "ObjectNode"
610616 toJSON ObjectMapperEnumEnum = "ObjectMapper"
611617 toJSON ObjectReaderEnumEnum = "ObjectReader"
@@ -930,6 +936,7 @@ instance FromJSON EnumEnum where
930936 parseText "left" = return LeftEnumEnum
931937 parseText "let" = return LetEnumEnum
932938 parseText "list" = return ListEnumEnum
939+ parseText "LocalDate" = return LocalDateEnumEnum
933940 parseText "LongNode" = return LongNodeEnumEnum
934941 parseText "Locale" = return LocaleEnumEnum
935942 parseText "lock" = return LockEnumEnum
@@ -965,6 +972,8 @@ instance FromJSON EnumEnum where
965972 parseText "nullptr" = return NullptrEnumEnum
966973 parseText "number" = return NumberEnumEnum
967974 parseText "object" = return ObjectEnumEnum
975+ parseText "OffsetDateTime" = return OffsetDateTimeEnumEnum
976+ parseText "OffsetTime" = return OffsetTimeEnumEnum
968977 parseText "ObjectNode" = return ObjectNodeEnumEnum
969978 parseText "ObjectMapper" = return ObjectMapperEnumEnum
970979 parseText "ObjectReader" = return ObjectReaderEnumEnum
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+7 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -191,6 +191,7 @@ public enum Enum {
191191 case LEFT: return "left";
192192 case LET: return "let";
193193 case LIST: return "list";
194+ case LOCAL_DATE: return "LocalDate";
194195 case LONG_NODE: return "LongNode";
195196 case LOCALE: return "Locale";
196197 case LOCK: return "lock";
@@ -226,6 +227,8 @@ public enum Enum {
226227 case NULLPTR: return "nullptr";
227228 case NUMBER: return "number";
228229 case OBJECT: return "object";
230+ case OFFSET_DATE_TIME: return "OffsetDateTime";
231+ case OFFSET_TIME: return "OffsetTime";
229232 case OBJECT_NODE: return "ObjectNode";
230233 case OBJECT_MAPPER: return "ObjectMapper";
231234 case OBJECT_READER: return "ObjectReader";
@@ -552,6 +555,7 @@ public enum Enum {
552555 if (value.equals("left")) return LEFT;
553556 if (value.equals("let")) return LET;
554557 if (value.equals("list")) return LIST;
558+ if (value.equals("LocalDate")) return LOCAL_DATE;
555559 if (value.equals("LongNode")) return LONG_NODE;
556560 if (value.equals("Locale")) return LOCALE;
557561 if (value.equals("lock")) return LOCK;
@@ -587,6 +591,8 @@ public enum Enum {
587591 if (value.equals("nullptr")) return NULLPTR;
588592 if (value.equals("number")) return NUMBER;
589593 if (value.equals("object")) return OBJECT;
594+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
595+ if (value.equals("OffsetTime")) return OFFSET_TIME;
590596 if (value.equals("ObjectNode")) return OBJECT_NODE;
591597 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
592598 if (value.equals("ObjectReader")) return OBJECT_READER;
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+7 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -191,6 +191,7 @@ public enum Enum {
191191 case LEFT: return "left";
192192 case LET: return "let";
193193 case LIST: return "list";
194+ case LOCAL_DATE: return "LocalDate";
194195 case LONG_NODE: return "LongNode";
195196 case LOCALE: return "Locale";
196197 case LOCK: return "lock";
@@ -226,6 +227,8 @@ public enum Enum {
226227 case NULLPTR: return "nullptr";
227228 case NUMBER: return "number";
228229 case OBJECT: return "object";
230+ case OFFSET_DATE_TIME: return "OffsetDateTime";
231+ case OFFSET_TIME: return "OffsetTime";
229232 case OBJECT_NODE: return "ObjectNode";
230233 case OBJECT_MAPPER: return "ObjectMapper";
231234 case OBJECT_READER: return "ObjectReader";
@@ -552,6 +555,7 @@ public enum Enum {
552555 if (value.equals("left")) return LEFT;
553556 if (value.equals("let")) return LET;
554557 if (value.equals("list")) return LIST;
558+ if (value.equals("LocalDate")) return LOCAL_DATE;
555559 if (value.equals("LongNode")) return LONG_NODE;
556560 if (value.equals("Locale")) return LOCALE;
557561 if (value.equals("lock")) return LOCK;
@@ -587,6 +591,8 @@ public enum Enum {
587591 if (value.equals("nullptr")) return NULLPTR;
588592 if (value.equals("number")) return NUMBER;
589593 if (value.equals("object")) return OBJECT;
594+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
595+ if (value.equals("OffsetTime")) return OFFSET_TIME;
590596 if (value.equals("ObjectNode")) return OBJECT_NODE;
591597 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
592598 if (value.equals("ObjectReader")) return OBJECT_READER;
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+7 −1
@@ -4,7 +4,7 @@ import java.io.IOException;
44 import com.fasterxml.jackson.annotation.*;
55
66 public enum Enum {
7- EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
7+ EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY_NODE, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BOOLEAN_NODE, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DOUBLE_NODE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INT_NODE, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LONG_NODE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NULL_NODE, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_NODE, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, TEXT_NODE, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY;
88
99 @JsonValue
1010 public String toValue() {
@@ -191,6 +191,7 @@ public enum Enum {
191191 case LEFT: return "left";
192192 case LET: return "let";
193193 case LIST: return "list";
194+ case LOCAL_DATE: return "LocalDate";
194195 case LONG_NODE: return "LongNode";
195196 case LOCALE: return "Locale";
196197 case LOCK: return "lock";
@@ -226,6 +227,8 @@ public enum Enum {
226227 case NULLPTR: return "nullptr";
227228 case NUMBER: return "number";
228229 case OBJECT: return "object";
230+ case OFFSET_DATE_TIME: return "OffsetDateTime";
231+ case OFFSET_TIME: return "OffsetTime";
229232 case OBJECT_NODE: return "ObjectNode";
230233 case OBJECT_MAPPER: return "ObjectMapper";
231234 case OBJECT_READER: return "ObjectReader";
@@ -552,6 +555,7 @@ public enum Enum {
552555 if (value.equals("left")) return LEFT;
553556 if (value.equals("let")) return LET;
554557 if (value.equals("list")) return LIST;
558+ if (value.equals("LocalDate")) return LOCAL_DATE;
555559 if (value.equals("LongNode")) return LONG_NODE;
556560 if (value.equals("Locale")) return LOCALE;
557561 if (value.equals("lock")) return LOCK;
@@ -587,6 +591,8 @@ public enum Enum {
587591 if (value.equals("nullptr")) return NULLPTR;
588592 if (value.equals("number")) return NUMBER;
589593 if (value.equals("object")) return OBJECT;
594+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
595+ if (value.equals("OffsetTime")) return OFFSET_TIME;
590596 if (value.equals("ObjectNode")) return OBJECT_NODE;
591597 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
592598 if (value.equals("ObjectReader")) return OBJECT_READER;
Mschema-javascript-prop-typesdefault / toplevel.js+1 −1
@@ -13,7 +13,7 @@
1313 import PropTypes from "prop-types";
1414
1515 let _TopLevel;
16-const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'ArrayNode', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'BooleanNode', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'DeserializationFeature', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'DoubleNode', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_dict', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'IntNode', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'LongNode', 'Locale', 'lock', 'long', 'map', 'MarshalJSON', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NullNode', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectNode', 'ObjectMapper', 'ObjectReader', 'ObjectWriter', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', 'SerializationFeature', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'TextNode', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'to_dict', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'UnmarshalJSON', 'UseSerializers', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']);
16+const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'ArrayNode', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'BooleanNode', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'DeserializationFeature', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'DoubleNode', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_dict', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'IntNode', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'LocalDate', 'LongNode', 'Locale', 'lock', 'long', 'map', 'MarshalJSON', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NullNode', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'OffsetDateTime', 'OffsetTime', 'ObjectNode', 'ObjectMapper', 'ObjectReader', 'ObjectWriter', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', 'SerializationFeature', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'TextNode', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'to_dict', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'UnmarshalJSON', 'UseSerializers', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']);
1717 _TopLevel = PropTypes.shape({
1818 "enum": PropTypes.oneOfType([_Enum, PropTypes.oneOf([null])]),
1919 });
Mschema-javascriptdefault / TopLevel.js+3 −0
@@ -378,6 +378,7 @@ const typeMap = {
378378 "left",
379379 "let",
380380 "list",
381+ "LocalDate",
381382 "LongNode",
382383 "Locale",
383384 "lock",
@@ -413,6 +414,8 @@ const typeMap = {
413414 "nullptr",
414415 "number",
415416 "object",
417+ "OffsetDateTime",
418+ "OffsetTime",
416419 "ObjectNode",
417420 "ObjectMapper",
418421 "ObjectReader",
Mschema-kotlin-jacksondefault / TopLevel.kt+6 −0
@@ -223,6 +223,7 @@ enum class EnumEnum(val value: String) {
223223 Left("left"),
224224 Let("let"),
225225 EnumList("list"),
226+ LocalDate("LocalDate"),
226227 EnumLongNode("LongNode"),
227228 Locale("Locale"),
228229 Lock("lock"),
@@ -258,6 +259,8 @@ enum class EnumEnum(val value: String) {
258259 Nullptr("nullptr"),
259260 Number("number"),
260261 Object("object"),
262+ OffsetDateTime("OffsetDateTime"),
263+ OffsetTime("OffsetTime"),
261264 EnumObjectNode("ObjectNode"),
262265 EnumObjectMapper("ObjectMapper"),
263266 ObjectReader("ObjectReader"),
@@ -581,6 +584,7 @@ enum class EnumEnum(val value: String) {
581584 "left" -> Left
582585 "let" -> Let
583586 "list" -> EnumList
587+ "LocalDate" -> LocalDate
584588 "LongNode" -> EnumLongNode
585589 "Locale" -> Locale
586590 "lock" -> Lock
@@ -616,6 +620,8 @@ enum class EnumEnum(val value: String) {
616620 "nullptr" -> Nullptr
617621 "number" -> Number
618622 "object" -> Object
623+ "OffsetDateTime" -> OffsetDateTime
624+ "OffsetTime" -> OffsetTime
619625 "ObjectNode" -> EnumObjectNode
620626 "ObjectMapper" -> EnumObjectMapper
621627 "ObjectReader" -> ObjectReader
Mschema-kotlindefault / TopLevel.kt+6 −0
@@ -210,6 +210,7 @@ enum class EnumEnum(val value: String) {
210210 Left("left"),
211211 Let("let"),
212212 EnumList("list"),
213+ LocalDate("LocalDate"),
213214 LongNode("LongNode"),
214215 Locale("Locale"),
215216 Lock("lock"),
@@ -245,6 +246,8 @@ enum class EnumEnum(val value: String) {
245246 Nullptr("nullptr"),
246247 Number("number"),
247248 Object("object"),
249+ OffsetDateTime("OffsetDateTime"),
250+ OffsetTime("OffsetTime"),
248251 ObjectNode("ObjectNode"),
249252 ObjectMapper("ObjectMapper"),
250253 ObjectReader("ObjectReader"),
@@ -568,6 +571,7 @@ enum class EnumEnum(val value: String) {
568571 "left" -> Left
569572 "let" -> Let
570573 "list" -> EnumList
574+ "LocalDate" -> LocalDate
571575 "LongNode" -> LongNode
572576 "Locale" -> Locale
573577 "lock" -> Lock
@@ -603,6 +607,8 @@ enum class EnumEnum(val value: String) {
603607 "nullptr" -> Nullptr
604608 "number" -> Number
605609 "object" -> Object
610+ "OffsetDateTime" -> OffsetDateTime
611+ "OffsetTime" -> OffsetTime
606612 "ObjectNode" -> ObjectNode
607613 "ObjectMapper" -> ObjectMapper
608614 "ObjectReader" -> ObjectReader
Mschema-kotlinxdefault / TopLevel.kt+3 −0
@@ -199,6 +199,7 @@ enum class EnumEnum(val value: String) {
199199 @SerialName("left") Left("left"),
200200 @SerialName("let") Let("let"),
201201 @SerialName("list") EnumList("list"),
202+ @SerialName("LocalDate") LocalDate("LocalDate"),
202203 @SerialName("LongNode") LongNode("LongNode"),
203204 @SerialName("Locale") Locale("Locale"),
204205 @SerialName("lock") Lock("lock"),
@@ -234,6 +235,8 @@ enum class EnumEnum(val value: String) {
234235 @SerialName("nullptr") Nullptr("nullptr"),
235236 @SerialName("number") Number("number"),
236237 @SerialName("object") Object("object"),
238+ @SerialName("OffsetDateTime") OffsetDateTime("OffsetDateTime"),
239+ @SerialName("OffsetTime") OffsetTime("OffsetTime"),
237240 @SerialName("ObjectNode") ObjectNode("ObjectNode"),
238241 @SerialName("ObjectMapper") ObjectMapper("ObjectMapper"),
239242 @SerialName("ObjectReader") ObjectReader("ObjectReader"),
Mschema-objective-cdefault / QTTopLevel.h+3 −0
@@ -197,6 +197,7 @@ NS_ASSUME_NONNULL_BEGIN
197197 + (QTEnum *)left;
198198 + (QTEnum *)let;
199199 + (QTEnum *)list;
200++ (QTEnum *)localDate;
200201 + (QTEnum *)longNode;
201202 + (QTEnum *)locale;
202203 + (QTEnum *)lock;
@@ -232,6 +233,8 @@ NS_ASSUME_NONNULL_BEGIN
232233 + (QTEnum *)nullptr;
233234 + (QTEnum *)number;
234235 + (QTEnum *)object;
236++ (QTEnum *)offsetDateTime;
237++ (QTEnum *)offsetTime;
235238 + (QTEnum *)objectNode;
236239 + (QTEnum *)objectMapper;
237240 + (QTEnum *)objectReader;
Mschema-objective-cdefault / QTTopLevel.m+6 −0
@@ -200,6 +200,7 @@ NS_ASSUME_NONNULL_BEGIN
200200 @"left": [[QTEnum alloc] initWithValue:@"left"],
201201 @"let": [[QTEnum alloc] initWithValue:@"let"],
202202 @"list": [[QTEnum alloc] initWithValue:@"list"],
203+ @"LocalDate": [[QTEnum alloc] initWithValue:@"LocalDate"],
203204 @"LongNode": [[QTEnum alloc] initWithValue:@"LongNode"],
204205 @"Locale": [[QTEnum alloc] initWithValue:@"Locale"],
205206 @"lock": [[QTEnum alloc] initWithValue:@"lock"],
@@ -235,6 +236,8 @@ NS_ASSUME_NONNULL_BEGIN
235236 @"nullptr": [[QTEnum alloc] initWithValue:@"nullptr"],
236237 @"number": [[QTEnum alloc] initWithValue:@"number"],
237238 @"object": [[QTEnum alloc] initWithValue:@"object"],
239+ @"OffsetDateTime": [[QTEnum alloc] initWithValue:@"OffsetDateTime"],
240+ @"OffsetTime": [[QTEnum alloc] initWithValue:@"OffsetTime"],
238241 @"ObjectNode": [[QTEnum alloc] initWithValue:@"ObjectNode"],
239242 @"ObjectMapper": [[QTEnum alloc] initWithValue:@"ObjectMapper"],
240243 @"ObjectReader": [[QTEnum alloc] initWithValue:@"ObjectReader"],
@@ -558,6 +561,7 @@ NS_ASSUME_NONNULL_BEGIN
558561 + (QTEnum *)left { return QTEnum.values[@"left"]; }
559562 + (QTEnum *)let { return QTEnum.values[@"let"]; }
560563 + (QTEnum *)list { return QTEnum.values[@"list"]; }
564++ (QTEnum *)localDate { return QTEnum.values[@"LocalDate"]; }
561565 + (QTEnum *)longNode { return QTEnum.values[@"LongNode"]; }
562566 + (QTEnum *)locale { return QTEnum.values[@"Locale"]; }
563567 + (QTEnum *)lock { return QTEnum.values[@"lock"]; }
@@ -593,6 +597,8 @@ NS_ASSUME_NONNULL_BEGIN
593597 + (QTEnum *)nullptr { return QTEnum.values[@"nullptr"]; }
594598 + (QTEnum *)number { return QTEnum.values[@"number"]; }
595599 + (QTEnum *)object { return QTEnum.values[@"object"]; }
600++ (QTEnum *)offsetDateTime { return QTEnum.values[@"OffsetDateTime"]; }
601++ (QTEnum *)offsetTime { return QTEnum.values[@"OffsetTime"]; }
596602 + (QTEnum *)objectNode { return QTEnum.values[@"ObjectNode"]; }
597603 + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; }
598604 + (QTEnum *)objectReader { return QTEnum.values[@"ObjectReader"]; }
Mschema-phpdefault / TopLevel.php+12 −0
@@ -295,6 +295,7 @@ class EnumEnum {
295295 public static EnumEnum $LEFT;
296296 public static EnumEnum $LET;
297297 public static EnumEnum $LIST;
298+ public static EnumEnum $LOCAL_DATE;
298299 public static EnumEnum $LONG_NODE;
299300 public static EnumEnum $LOCALE;
300301 public static EnumEnum $LOCK;
@@ -330,6 +331,8 @@ class EnumEnum {
330331 public static EnumEnum $NULLPTR;
331332 public static EnumEnum $NUMBER;
332333 public static EnumEnum $OBJECT;
334+ public static EnumEnum $OFFSET_DATE_TIME;
335+ public static EnumEnum $OFFSET_TIME;
333336 public static EnumEnum $OBJECT_NODE;
334337 public static EnumEnum $OBJECT_MAPPER;
335338 public static EnumEnum $OBJECT_READER;
@@ -651,6 +654,7 @@ class EnumEnum {
651654 EnumEnum::$LEFT = new EnumEnum('left');
652655 EnumEnum::$LET = new EnumEnum('let');
653656 EnumEnum::$LIST = new EnumEnum('list');
657+ EnumEnum::$LOCAL_DATE = new EnumEnum('LocalDate');
654658 EnumEnum::$LONG_NODE = new EnumEnum('LongNode');
655659 EnumEnum::$LOCALE = new EnumEnum('Locale');
656660 EnumEnum::$LOCK = new EnumEnum('lock');
@@ -686,6 +690,8 @@ class EnumEnum {
686690 EnumEnum::$NULLPTR = new EnumEnum('nullptr');
687691 EnumEnum::$NUMBER = new EnumEnum('number');
688692 EnumEnum::$OBJECT = new EnumEnum('object');
693+ EnumEnum::$OFFSET_DATE_TIME = new EnumEnum('OffsetDateTime');
694+ EnumEnum::$OFFSET_TIME = new EnumEnum('OffsetTime');
689695 EnumEnum::$OBJECT_NODE = new EnumEnum('ObjectNode');
690696 EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper');
691697 EnumEnum::$OBJECT_READER = new EnumEnum('ObjectReader');
@@ -1019,6 +1025,7 @@ class EnumEnum {
10191025 case EnumEnum::$LEFT->enum: return 'left';
10201026 case EnumEnum::$LET->enum: return 'let';
10211027 case EnumEnum::$LIST->enum: return 'list';
1028+ case EnumEnum::$LOCAL_DATE->enum: return 'LocalDate';
10221029 case EnumEnum::$LONG_NODE->enum: return 'LongNode';
10231030 case EnumEnum::$LOCALE->enum: return 'Locale';
10241031 case EnumEnum::$LOCK->enum: return 'lock';
@@ -1054,6 +1061,8 @@ class EnumEnum {
10541061 case EnumEnum::$NULLPTR->enum: return 'nullptr';
10551062 case EnumEnum::$NUMBER->enum: return 'number';
10561063 case EnumEnum::$OBJECT->enum: return 'object';
1064+ case EnumEnum::$OFFSET_DATE_TIME->enum: return 'OffsetDateTime';
1065+ case EnumEnum::$OFFSET_TIME->enum: return 'OffsetTime';
10571066 case EnumEnum::$OBJECT_NODE->enum: return 'ObjectNode';
10581067 case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper';
10591068 case EnumEnum::$OBJECT_READER->enum: return 'ObjectReader';
@@ -1385,6 +1394,7 @@ class EnumEnum {
13851394 case 'left': return EnumEnum::$LEFT;
13861395 case 'let': return EnumEnum::$LET;
13871396 case 'list': return EnumEnum::$LIST;
1397+ case 'LocalDate': return EnumEnum::$LOCAL_DATE;
13881398 case 'LongNode': return EnumEnum::$LONG_NODE;
13891399 case 'Locale': return EnumEnum::$LOCALE;
13901400 case 'lock': return EnumEnum::$LOCK;
@@ -1420,6 +1430,8 @@ class EnumEnum {
14201430 case 'nullptr': return EnumEnum::$NULLPTR;
14211431 case 'number': return EnumEnum::$NUMBER;
14221432 case 'object': return EnumEnum::$OBJECT;
1433+ case 'OffsetDateTime': return EnumEnum::$OFFSET_DATE_TIME;
1434+ case 'OffsetTime': return EnumEnum::$OFFSET_TIME;
14231435 case 'ObjectNode': return EnumEnum::$OBJECT_NODE;
14241436 case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER;
14251437 case 'ObjectReader': return EnumEnum::$OBJECT_READER;
Mschema-pikedefault / TopLevel.pmod+4 −1
@@ -215,6 +215,7 @@ enum Enum {
215215 LEFT = "left", // json: "left"
216216 LET = "let", // json: "let"
217217 LIST = "list", // json: "list"
218+ LOCAL_DATE = "LocalDate", // json: "LocalDate"
218219 LONG_NODE = "LongNode", // json: "LongNode"
219220 LOCALE = "Locale", // json: "Locale"
220221 LOCK = "lock", // json: "lock"
@@ -250,6 +251,8 @@ enum Enum {
250251 NULLPTR = "nullptr", // json: "nullptr"
251252 NUMBER = "number", // json: "number"
252253 OBJECT = "object", // json: "object"
254+ OFFSET_DATE_TIME = "OffsetDateTime", // json: "OffsetDateTime"
255+ OFFSET_TIME = "OffsetTime", // json: "OffsetTime"
253256 OBJECT_NODE = "ObjectNode", // json: "ObjectNode"
254257 OBJECT_MAPPER = "ObjectMapper", // json: "ObjectMapper"
255258 OBJECT_READER = "ObjectReader", // json: "ObjectReader"
@@ -391,5 +394,5 @@ enum Enum {
391394 }
392395
393396 Enum Enum_from_JSON(mixed json) {
394- if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "ArrayNode"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "BooleanNode"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "DeserializationFeature"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "DoubleNode"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_dict"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "IntNode"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "LongNode"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MarshalJSON"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NullNode"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectNode"&&json != "ObjectMapper"&&json != "ObjectReader"&&json != "ObjectWriter"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&json != "SerializationFeature"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "TextNode"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "to_dict"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "UnmarshalJSON"&&json != "UseSerializers"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json;
397+ if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "ArrayNode"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "BooleanNode"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "DeserializationFeature"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "DoubleNode"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_dict"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "IntNode"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "LocalDate"&&json != "LongNode"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MarshalJSON"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NullNode"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "OffsetDateTime"&&json != "OffsetTime"&&json != "ObjectNode"&&json != "ObjectMapper"&&json != "ObjectReader"&&json != "ObjectWriter"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&json != "SerializationFeature"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "TextNode"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "to_dict"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "UnmarshalJSON"&&json != "UseSerializers"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json;
395398 }
Mschema-pythondefault / quicktype.py+3 −0
@@ -214,6 +214,7 @@ class EnumEnum(Enum):
214214 LEFT = "left"
215215 LET = "let"
216216 LIST = "list"
217+ LOCAL_DATE = "LocalDate"
217218 LONG_NODE = "LongNode"
218219 LOCALE = "Locale"
219220 LOCK = "lock"
@@ -249,6 +250,8 @@ class EnumEnum(Enum):
249250 NULLPTR = "nullptr"
250251 NUMBER = "number"
251252 OBJECT = "object"
253+ OFFSET_DATE_TIME = "OffsetDateTime"
254+ OFFSET_TIME = "OffsetTime"
252255 OBJECT_NODE = "ObjectNode"
253256 OBJECT_MAPPER = "ObjectMapper"
254257 OBJECT_READER = "ObjectReader"
Mschema-rubydefault / TopLevel.rb+4 −1
@@ -17,7 +17,7 @@ module Types
1717
1818 Hash = Strict::Hash
1919 String = Strict::String
20- Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "ArrayNode", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "BooleanNode", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "DeserializationFeature", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "DoubleNode", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_dict", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "IntNode", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "LongNode", "Locale", "lock", "long", "map", "MarshalJSON", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NullNode", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectNode", "ObjectMapper", "ObjectReader", "ObjectWriter", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "SerializationFeature", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "TextNode", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "to_dict", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "UnmarshalJSON", "UseSerializers", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy")
20+ Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "ArrayNode", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "BooleanNode", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "DeserializationFeature", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "DoubleNode", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_dict", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "IntNode", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "LocalDate", "LongNode", "Locale", "lock", "long", "map", "MarshalJSON", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NullNode", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "OffsetDateTime", "OffsetTime", "ObjectNode", "ObjectMapper", "ObjectReader", "ObjectWriter", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "SerializationFeature", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "TextNode", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "to_dict", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "UnmarshalJSON", "UseSerializers", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy")
2121 end
2222
2323 module Enum
@@ -203,6 +203,7 @@ module Enum
203203 Left = "left"
204204 Let = "let"
205205 List = "list"
206+ LocalDate = "LocalDate"
206207 LongNode = "LongNode"
207208 Locale = "Locale"
208209 Lock = "lock"
@@ -238,6 +239,8 @@ module Enum
238239 Nullptr = "nullptr"
239240 Number = "number"
240241 Object = "object"
242+ OffsetDateTime = "OffsetDateTime"
243+ OffsetTime = "OffsetTime"
241244 ObjectNode = "ObjectNode"
242245 ObjectMapper = "ObjectMapper"
243246 ObjectReader = "ObjectReader"
Mschema-rustdefault / module_under_test.rs+9 −0
@@ -455,6 +455,9 @@ pub enum Enum {
455455
456456 List,
457457
458+ #[serde(rename = "LocalDate")]
459+ LocalDate,
460+
458461 #[serde(rename = "LongNode")]
459462 LongNode,
460463
@@ -541,6 +544,12 @@ pub enum Enum {
541544
542545 Object,
543546
547+ #[serde(rename = "OffsetDateTime")]
548+ OffsetDateTime,
549+
550+ #[serde(rename = "OffsetTime")]
551+ OffsetTime,
552+
544553 #[serde(rename = "ObjectNode")]
545554 ObjectNode,
Mschema-scala3-upickledefault / TopLevel.scala+9 −0
@@ -265,6 +265,7 @@ enum EnumEnum :
265265 case Left
266266 case Let
267267 case EnumList
268+ case LocalDate
268269 case LongNode
269270 case Locale
270271 case Lock
@@ -300,6 +301,8 @@ enum EnumEnum :
300301 case Nullptr
301302 case Number
302303 case Object
304+ case OffsetDateTime
305+ case OffsetTime
303306 case ObjectNode
304307 case ObjectMapper
305308 case ObjectReader
@@ -623,6 +626,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
623626 case EnumEnum.Left => "left"
624627 case EnumEnum.Let => "let"
625628 case EnumEnum.EnumList => "list"
629+ case EnumEnum.LocalDate => "LocalDate"
626630 case EnumEnum.LongNode => "LongNode"
627631 case EnumEnum.Locale => "Locale"
628632 case EnumEnum.Lock => "lock"
@@ -658,6 +662,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
658662 case EnumEnum.Nullptr => "nullptr"
659663 case EnumEnum.Number => "number"
660664 case EnumEnum.Object => "object"
665+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
666+ case EnumEnum.OffsetTime => "OffsetTime"
661667 case EnumEnum.ObjectNode => "ObjectNode"
662668 case EnumEnum.ObjectMapper => "ObjectMapper"
663669 case EnumEnum.ObjectReader => "ObjectReader"
@@ -980,6 +986,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
980986 case "left" => EnumEnum.Left
981987 case "let" => EnumEnum.Let
982988 case "list" => EnumEnum.EnumList
989+ case "LocalDate" => EnumEnum.LocalDate
983990 case "LongNode" => EnumEnum.LongNode
984991 case "Locale" => EnumEnum.Locale
985992 case "lock" => EnumEnum.Lock
@@ -1015,6 +1022,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
10151022 case "nullptr" => EnumEnum.Nullptr
10161023 case "number" => EnumEnum.Number
10171024 case "object" => EnumEnum.Object
1025+ case "OffsetDateTime" => EnumEnum.OffsetDateTime
1026+ case "OffsetTime" => EnumEnum.OffsetTime
10181027 case "ObjectNode" => EnumEnum.ObjectNode
10191028 case "ObjectMapper" => EnumEnum.ObjectMapper
10201029 case "ObjectReader" => EnumEnum.ObjectReader
Mschema-scala3default / TopLevel.scala+9 −0
@@ -194,6 +194,7 @@ enum EnumEnum :
194194 case Left
195195 case Let
196196 case EnumList
197+ case LocalDate
197198 case LongNode
198199 case Locale
199200 case Lock
@@ -229,6 +230,8 @@ enum EnumEnum :
229230 case Nullptr
230231 case Number
231232 case Object
233+ case OffsetDateTime
234+ case OffsetTime
232235 case ObjectNode
233236 case ObjectMapper
234237 case ObjectReader
@@ -551,6 +554,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
551554 case "left" => scala.Right(EnumEnum.Left)
552555 case "let" => scala.Right(EnumEnum.Let)
553556 case "list" => scala.Right(EnumEnum.EnumList)
557+ case "LocalDate" => scala.Right(EnumEnum.LocalDate)
554558 case "LongNode" => scala.Right(EnumEnum.LongNode)
555559 case "Locale" => scala.Right(EnumEnum.Locale)
556560 case "lock" => scala.Right(EnumEnum.Lock)
@@ -586,6 +590,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
586590 case "nullptr" => scala.Right(EnumEnum.Nullptr)
587591 case "number" => scala.Right(EnumEnum.Number)
588592 case "object" => scala.Right(EnumEnum.Object)
593+ case "OffsetDateTime" => scala.Right(EnumEnum.OffsetDateTime)
594+ case "OffsetTime" => scala.Right(EnumEnum.OffsetTime)
589595 case "ObjectNode" => scala.Right(EnumEnum.ObjectNode)
590596 case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper)
591597 case "ObjectReader" => scala.Right(EnumEnum.ObjectReader)
@@ -909,6 +915,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
909915 case EnumEnum.Left => "left"
910916 case EnumEnum.Let => "let"
911917 case EnumEnum.EnumList => "list"
918+ case EnumEnum.LocalDate => "LocalDate"
912919 case EnumEnum.LongNode => "LongNode"
913920 case EnumEnum.Locale => "Locale"
914921 case EnumEnum.Lock => "lock"
@@ -944,6 +951,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
944951 case EnumEnum.Nullptr => "nullptr"
945952 case EnumEnum.Number => "number"
946953 case EnumEnum.Object => "object"
954+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
955+ case EnumEnum.OffsetTime => "OffsetTime"
947956 case EnumEnum.ObjectNode => "ObjectNode"
948957 case EnumEnum.ObjectMapper => "ObjectMapper"
949958 case EnumEnum.ObjectReader => "ObjectReader"
Mschema-schemadefault / TopLevel.schema+3 −0
@@ -198,6 +198,7 @@
198198 "left",
199199 "let",
200200 "list",
201+ "LocalDate",
201202 "LongNode",
202203 "Locale",
203204 "lock",
@@ -233,6 +234,8 @@
233234 "nullptr",
234235 "number",
235236 "object",
237+ "OffsetDateTime",
238+ "OffsetTime",
236239 "ObjectNode",
237240 "ObjectMapper",
238241 "ObjectReader",
Mschema-swiftdefault / quicktype.swift+3 −0
@@ -232,6 +232,7 @@ enum Enum: String, Codable {
232232 case enumLeft = "left"
233233 case enumLet = "let"
234234 case list = "list"
235+ case localDate = "LocalDate"
235236 case longNode = "LongNode"
236237 case locale = "Locale"
237238 case lock = "lock"
@@ -267,6 +268,8 @@ enum Enum: String, Codable {
267268 case nullptr = "nullptr"
268269 case number = "number"
269270 case object = "object"
271+ case offsetDateTime = "OffsetDateTime"
272+ case offsetTime = "OffsetTime"
270273 case objectNode = "ObjectNode"
271274 case objectMapper = "ObjectMapper"
272275 case objectReader = "ObjectReader"
Mschema-typescript-effect-schemadefault / TopLevel.ts+3 −0
@@ -184,6 +184,7 @@ export const Enum = S.Literal(
184184 "left",
185185 "let",
186186 "list",
187+ "LocalDate",
187188 "LongNode",
188189 "Locale",
189190 "lock",
@@ -219,6 +220,8 @@ export const Enum = S.Literal(
219220 "nullptr",
220221 "number",
221222 "object",
223+ "OffsetDateTime",
224+ "OffsetTime",
222225 "ObjectNode",
223226 "ObjectMapper",
224227 "ObjectReader",
Mschema-typescript-zoddefault / TopLevel.ts+3 −0
@@ -184,6 +184,7 @@ export const EnumSchema = z.enum([
184184 "left",
185185 "let",
186186 "list",
187+ "LocalDate",
187188 "LongNode",
188189 "Locale",
189190 "lock",
@@ -219,6 +220,8 @@ export const EnumSchema = z.enum([
219220 "nullptr",
220221 "number",
221222 "object",
223+ "OffsetDateTime",
224+ "OffsetTime",
222225 "ObjectNode",
223226 "ObjectMapper",
224227 "ObjectReader",
Mschema-typescriptdefault / TopLevel.ts+4 −1
@@ -12,7 +12,7 @@ export interface TopLevel {
1212 [property: string]: unknown;
1313 }
1414
15-export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "ArrayNode" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "BooleanNode" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "DeserializationFeature" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "DoubleNode" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_dict" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "IntNode" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "LongNode" | "Locale" | "lock" | "long" | "map" | "MarshalJSON" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NullNode" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectNode" | "ObjectMapper" | "ObjectReader" | "ObjectWriter" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "SerializationFeature" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "TextNode" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "to_dict" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "UnmarshalJSON" | "UseSerializers" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
15+export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "ArrayNode" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "BooleanNode" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "DeserializationFeature" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "DoubleNode" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_dict" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "IntNode" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "LocalDate" | "LongNode" | "Locale" | "lock" | "long" | "map" | "MarshalJSON" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NullNode" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "OffsetDateTime" | "OffsetTime" | "ObjectNode" | "ObjectMapper" | "ObjectReader" | "ObjectWriter" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "SerializationFeature" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "TextNode" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "to_dict" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "UnmarshalJSON" | "UseSerializers" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
1616
1717 // Converts JSON strings to/from your types
1818 // and asserts the results of JSON.parse at runtime
@@ -387,6 +387,7 @@ const typeMap: any = {
387387 "left",
388388 "let",
389389 "list",
390+ "LocalDate",
390391 "LongNode",
391392 "Locale",
392393 "lock",
@@ -422,6 +423,8 @@ const typeMap: any = {
422423 "nullptr",
423424 "number",
424425 "object",
426+ "OffsetDateTime",
427+ "OffsetTime",
425428 "ObjectNode",
426429 "ObjectMapper",
427430 "ObjectReader",
Test case

test/inputs/schema/keyword-unions.schema

49 generated files · +3,712 −175
Mschema-cjsondefault / TopLevel.c+312 −0
@@ -5725,6 +5725,50 @@ void cJSON_DeleteUnionList(struct UnionList * x) {
57255725 }
57265726 }
57275727
5728+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j) {
5729+ struct UnionLocalDate * x = cJSON_malloc(sizeof(struct UnionLocalDate));
5730+ if (NULL != x) {
5731+ memset(x, 0, sizeof(struct UnionLocalDate));
5732+ if (cJSON_IsNumber(j)) {
5733+ x->type = cJSON_Number;
5734+ x->value.number = cJSON_GetNumberValue(j);
5735+ }
5736+ else if (cJSON_IsObject(j)) {
5737+ x->type = cJSON_Object;
5738+ x->value.local_date = cJSON_GetLocalDateValue(j);
5739+ if (NULL == x->value.local_date) x->type = 0;
5740+ }
5741+ if (0 == x->type) { cJSON_free(x); return NULL; }
5742+ }
5743+ return x;
5744+}
5745+struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionLocalDate * x = j ? cJSON_GetUnionLocalDateValue(j) : NULL; cJSON_Delete(j); return x; }
5746+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x) { cJSON * j = cJSON_CreateUnionLocalDate(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
5747+
5748+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x) {
5749+ cJSON * j = NULL;
5750+ if (NULL != x) {
5751+ if (cJSON_Number == x->type) {
5752+ j = cJSON_CreateNumber(x->value.number);
5753+ }
5754+ else if (cJSON_Object == x->type) {
5755+ j = cJSON_CreateLocalDate(x->value.local_date);
5756+ }
5757+ }
5758+ return j;
5759+}
5760+
5761+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x) {
5762+ if (NULL != x) {
5763+ if (cJSON_Number == x->type) {
5764+ }
5765+ else if (cJSON_Object == x->type) {
5766+ cJSON_DeleteLocalDate(x->value.local_date);
5767+ }
5768+ cJSON_free(x);
5769+ }
5770+}
5771+
57285772 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j) {
57295773 struct UnionLocale * x = cJSON_malloc(sizeof(struct UnionLocale));
57305774 if (NULL != x) {
@@ -7001,6 +7045,94 @@ void cJSON_DeleteUnionOf(struct UnionOf * x) {
70017045 }
70027046 }
70037047
7048+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j) {
7049+ struct UnionOffsetDateTime * x = cJSON_malloc(sizeof(struct UnionOffsetDateTime));
7050+ if (NULL != x) {
7051+ memset(x, 0, sizeof(struct UnionOffsetDateTime));
7052+ if (cJSON_IsNumber(j)) {
7053+ x->type = cJSON_Number;
7054+ x->value.number = cJSON_GetNumberValue(j);
7055+ }
7056+ else if (cJSON_IsObject(j)) {
7057+ x->type = cJSON_Object;
7058+ x->value.offset_date_time = cJSON_GetOffsetDateTimeValue(j);
7059+ if (NULL == x->value.offset_date_time) x->type = 0;
7060+ }
7061+ if (0 == x->type) { cJSON_free(x); return NULL; }
7062+ }
7063+ return x;
7064+}
7065+struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetDateTime * x = j ? cJSON_GetUnionOffsetDateTimeValue(j) : NULL; cJSON_Delete(j); return x; }
7066+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { cJSON * j = cJSON_CreateUnionOffsetDateTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
7067+
7068+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x) {
7069+ cJSON * j = NULL;
7070+ if (NULL != x) {
7071+ if (cJSON_Number == x->type) {
7072+ j = cJSON_CreateNumber(x->value.number);
7073+ }
7074+ else if (cJSON_Object == x->type) {
7075+ j = cJSON_CreateOffsetDateTime(x->value.offset_date_time);
7076+ }
7077+ }
7078+ return j;
7079+}
7080+
7081+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x) {
7082+ if (NULL != x) {
7083+ if (cJSON_Number == x->type) {
7084+ }
7085+ else if (cJSON_Object == x->type) {
7086+ cJSON_DeleteOffsetDateTime(x->value.offset_date_time);
7087+ }
7088+ cJSON_free(x);
7089+ }
7090+}
7091+
7092+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j) {
7093+ struct UnionOffsetTime * x = cJSON_malloc(sizeof(struct UnionOffsetTime));
7094+ if (NULL != x) {
7095+ memset(x, 0, sizeof(struct UnionOffsetTime));
7096+ if (cJSON_IsNumber(j)) {
7097+ x->type = cJSON_Number;
7098+ x->value.number = cJSON_GetNumberValue(j);
7099+ }
7100+ else if (cJSON_IsObject(j)) {
7101+ x->type = cJSON_Object;
7102+ x->value.offset_time = cJSON_GetOffsetTimeValue(j);
7103+ if (NULL == x->value.offset_time) x->type = 0;
7104+ }
7105+ if (0 == x->type) { cJSON_free(x); return NULL; }
7106+ }
7107+ return x;
7108+}
7109+struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetTime * x = j ? cJSON_GetUnionOffsetTimeValue(j) : NULL; cJSON_Delete(j); return x; }
7110+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x) { cJSON * j = cJSON_CreateUnionOffsetTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
7111+
7112+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x) {
7113+ cJSON * j = NULL;
7114+ if (NULL != x) {
7115+ if (cJSON_Number == x->type) {
7116+ j = cJSON_CreateNumber(x->value.number);
7117+ }
7118+ else if (cJSON_Object == x->type) {
7119+ j = cJSON_CreateOffsetTime(x->value.offset_time);
7120+ }
7121+ }
7122+ return j;
7123+}
7124+
7125+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x) {
7126+ if (NULL != x) {
7127+ if (cJSON_Number == x->type) {
7128+ }
7129+ else if (cJSON_Object == x->type) {
7130+ cJSON_DeleteOffsetTime(x->value.offset_time);
7131+ }
7132+ cJSON_free(x);
7133+ }
7134+}
7135+
70047136 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j) {
70057137 struct UnionOneway * x = cJSON_malloc(sizeof(struct UnionOneway));
70067138 if (NULL != x) {
@@ -21951,6 +22083,55 @@ void cJSON_DeleteList(struct List * x) {
2195122083 }
2195222084 }
2195322085
22086+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
22087+ struct LocalDate * x = NULL;
22088+ if (NULL != s) {
22089+ cJSON * j = cJSON_Parse(s);
22090+ if (NULL != j) {
22091+ x = cJSON_GetLocalDateValue(j);
22092+ cJSON_Delete(j);
22093+ }
22094+ }
22095+ return x;
22096+}
22097+
22098+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
22099+ struct LocalDate * x = NULL;
22100+ if (NULL != j) {
22101+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
22102+ memset(x, 0, sizeof(struct LocalDate));
22103+ }
22104+ }
22105+ return x;
22106+}
22107+
22108+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
22109+ cJSON * j = NULL;
22110+ if (NULL != x) {
22111+ if (NULL != (j = cJSON_CreateObject())) {
22112+ }
22113+ }
22114+ return j;
22115+}
22116+
22117+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
22118+ char * s = NULL;
22119+ if (NULL != x) {
22120+ cJSON * j = cJSON_CreateLocalDate(x);
22121+ if (NULL != j) {
22122+ s = cJSON_Print(j);
22123+ cJSON_Delete(j);
22124+ }
22125+ }
22126+ return s;
22127+}
22128+
22129+void cJSON_DeleteLocalDate(struct LocalDate * x) {
22130+ if (NULL != x) {
22131+ cJSON_free(x);
22132+ }
22133+}
22134+
2195422135 struct Locale * cJSON_ParseLocale(const char * s) {
2195522136 struct Locale * x = NULL;
2195622137 if (NULL != s) {
@@ -23372,6 +23553,104 @@ void cJSON_DeleteOf(struct Of * x) {
2337223553 }
2337323554 }
2337423555
23556+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
23557+ struct OffsetDateTime * x = NULL;
23558+ if (NULL != s) {
23559+ cJSON * j = cJSON_Parse(s);
23560+ if (NULL != j) {
23561+ x = cJSON_GetOffsetDateTimeValue(j);
23562+ cJSON_Delete(j);
23563+ }
23564+ }
23565+ return x;
23566+}
23567+
23568+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
23569+ struct OffsetDateTime * x = NULL;
23570+ if (NULL != j) {
23571+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
23572+ memset(x, 0, sizeof(struct OffsetDateTime));
23573+ }
23574+ }
23575+ return x;
23576+}
23577+
23578+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
23579+ cJSON * j = NULL;
23580+ if (NULL != x) {
23581+ if (NULL != (j = cJSON_CreateObject())) {
23582+ }
23583+ }
23584+ return j;
23585+}
23586+
23587+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
23588+ char * s = NULL;
23589+ if (NULL != x) {
23590+ cJSON * j = cJSON_CreateOffsetDateTime(x);
23591+ if (NULL != j) {
23592+ s = cJSON_Print(j);
23593+ cJSON_Delete(j);
23594+ }
23595+ }
23596+ return s;
23597+}
23598+
23599+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
23600+ if (NULL != x) {
23601+ cJSON_free(x);
23602+ }
23603+}
23604+
23605+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
23606+ struct OffsetTime * x = NULL;
23607+ if (NULL != s) {
23608+ cJSON * j = cJSON_Parse(s);
23609+ if (NULL != j) {
23610+ x = cJSON_GetOffsetTimeValue(j);
23611+ cJSON_Delete(j);
23612+ }
23613+ }
23614+ return x;
23615+}
23616+
23617+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
23618+ struct OffsetTime * x = NULL;
23619+ if (NULL != j) {
23620+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
23621+ memset(x, 0, sizeof(struct OffsetTime));
23622+ }
23623+ }
23624+ return x;
23625+}
23626+
23627+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
23628+ cJSON * j = NULL;
23629+ if (NULL != x) {
23630+ if (NULL != (j = cJSON_CreateObject())) {
23631+ }
23632+ }
23633+ return j;
23634+}
23635+
23636+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
23637+ char * s = NULL;
23638+ if (NULL != x) {
23639+ cJSON * j = cJSON_CreateOffsetTime(x);
23640+ if (NULL != j) {
23641+ s = cJSON_Print(j);
23642+ cJSON_Delete(j);
23643+ }
23644+ }
23645+ return s;
23646+}
23647+
23648+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
23649+ if (NULL != x) {
23650+ cJSON_free(x);
23651+ }
23652+}
23653+
2337523654 struct Oneway * cJSON_ParseOneway(const char * s) {
2337623655 struct Oneway * x = NULL;
2337723656 if (NULL != s) {
@@ -33865,6 +34144,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3386534144 x->list = cJSON_GetUnionListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
3386634145 if (NULL == x->list) { cJSON_DeleteTopLevel(x); return NULL; }
3386734146 }
34147+ if (cJSON_HasObjectItem(j, "LocalDate")) {
34148+ if (!cJSON_IsUnionLocalDate(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteTopLevel(x); return NULL; }
34149+ x->local_date = cJSON_GetUnionLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
34150+ if (NULL == x->local_date) { cJSON_DeleteTopLevel(x); return NULL; }
34151+ }
3386834152 if (cJSON_HasObjectItem(j, "Locale")) {
3386934153 if (!cJSON_IsUnionLocale(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteTopLevel(x); return NULL; }
3387034154 x->locale = cJSON_GetUnionLocaleValue(cJSON_GetObjectItemCaseSensitive(j, "Locale"));
@@ -34065,6 +34349,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3406534349 x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
3406634350 if (NULL == x->of) { cJSON_DeleteTopLevel(x); return NULL; }
3406734351 }
34352+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
34353+ if (!cJSON_IsUnionOffsetDateTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
34354+ x->offset_date_time = cJSON_GetUnionOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
34355+ if (NULL == x->offset_date_time) { cJSON_DeleteTopLevel(x); return NULL; }
34356+ }
34357+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
34358+ if (!cJSON_IsUnionOffsetTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
34359+ x->offset_time = cJSON_GetUnionOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
34360+ if (NULL == x->offset_time) { cJSON_DeleteTopLevel(x); return NULL; }
34361+ }
3406834362 if (cJSON_HasObjectItem(j, "oneway")) {
3406934363 if (!cJSON_IsUnionOneway(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteTopLevel(x); return NULL; }
3407034364 x->oneway = cJSON_GetUnionOnewayValue(cJSON_GetObjectItemCaseSensitive(j, "oneway"));
@@ -35281,6 +35575,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3528135575 if (NULL != x->list) {
3528235576 cJSON_AddItemToObject(j, "list", cJSON_CreateUnionList(x->list));
3528335577 }
35578+ if (NULL != x->local_date) {
35579+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateUnionLocalDate(x->local_date));
35580+ }
3528435581 if (NULL != x->locale) {
3528535582 cJSON_AddItemToObject(j, "Locale", cJSON_CreateUnionLocale(x->locale));
3528635583 }
@@ -35401,6 +35698,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3540135698 if (NULL != x->of) {
3540235699 cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of));
3540335700 }
35701+ if (NULL != x->offset_date_time) {
35702+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateUnionOffsetDateTime(x->offset_date_time));
35703+ }
35704+ if (NULL != x->offset_time) {
35705+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateUnionOffsetTime(x->offset_time));
35706+ }
3540435707 if (NULL != x->oneway) {
3540535708 cJSON_AddItemToObject(j, "oneway", cJSON_CreateUnionOneway(x->oneway));
3540635709 }
@@ -36365,6 +36668,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3636536668 if (NULL != x->list) {
3636636669 cJSON_DeleteUnionList(x->list);
3636736670 }
36671+ if (NULL != x->local_date) {
36672+ cJSON_DeleteUnionLocalDate(x->local_date);
36673+ }
3636836674 if (NULL != x->locale) {
3636936675 cJSON_DeleteUnionLocale(x->locale);
3637036676 }
@@ -36485,6 +36791,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3648536791 if (NULL != x->of) {
3648636792 cJSON_DeleteUnionOf(x->of);
3648736793 }
36794+ if (NULL != x->offset_date_time) {
36795+ cJSON_DeleteUnionOffsetDateTime(x->offset_date_time);
36796+ }
36797+ if (NULL != x->offset_time) {
36798+ cJSON_DeleteUnionOffsetTime(x->offset_time);
36799+ }
3648836800 if (NULL != x->oneway) {
3648936801 cJSON_DeleteUnionOneway(x->oneway);
3649036802 }
Mschema-cjsondefault / TopLevel.h+75 −0
@@ -1478,6 +1478,17 @@ struct UnionList {
14781478 } value;
14791479 };
14801480
1481+struct LocalDate {
1482+};
1483+
1484+struct UnionLocalDate {
1485+ int type;
1486+ union {
1487+ double number;
1488+ struct LocalDate * local_date;
1489+ } value;
1490+};
1491+
14811492 struct Locale {
14821493 };
14831494
@@ -1797,6 +1808,28 @@ struct UnionOf {
17971808 } value;
17981809 };
17991810
1811+struct OffsetDateTime {
1812+};
1813+
1814+struct UnionOffsetDateTime {
1815+ int type;
1816+ union {
1817+ double number;
1818+ struct OffsetDateTime * offset_date_time;
1819+ } value;
1820+};
1821+
1822+struct OffsetTime {
1823+};
1824+
1825+struct UnionOffsetTime {
1826+ int type;
1827+ union {
1828+ double number;
1829+ struct OffsetTime * offset_time;
1830+ } value;
1831+};
1832+
18001833 struct Oneway {
18011834 };
18021835
@@ -4127,6 +4160,7 @@ struct TopLevel {
41274160 struct UnionLeft * left;
41284161 struct UnionLet * let;
41294162 struct UnionList * list;
4163+ struct UnionLocalDate * local_date;
41304164 struct UnionLocale * locale;
41314165 struct UnionLock * lock;
41324166 struct UnionLong * top_level_long;
@@ -4167,6 +4201,8 @@ struct TopLevel {
41674201 struct UnionObjectReader * object_reader;
41684202 struct UnionObjectWriter * object_writer;
41694203 struct UnionOf * of;
4204+ struct UnionOffsetDateTime * offset_date_time;
4205+ struct UnionOffsetTime * offset_time;
41704206 struct UnionOneway * oneway;
41714207 struct UnionOpen * open;
41724208 struct UnionOperator * top_level_operator;
@@ -5210,6 +5246,13 @@ void cJSON_DeleteUnionList(struct UnionList * x);
52105246 struct UnionList * cJSON_ParseUnionList(const char * s);
52115247 char * cJSON_PrintUnionList(const struct UnionList * x);
52125248
5249+#define cJSON_IsUnionLocalDate(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5250+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j);
5251+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x);
5252+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x);
5253+struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s);
5254+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x);
5255+
52135256 #define cJSON_IsUnionLocale(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
52145257 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j);
52155258 cJSON * cJSON_CreateUnionLocale(const struct UnionLocale * x);
@@ -5413,6 +5456,20 @@ void cJSON_DeleteUnionOf(struct UnionOf * x);
54135456 struct UnionOf * cJSON_ParseUnionOf(const char * s);
54145457 char * cJSON_PrintUnionOf(const struct UnionOf * x);
54155458
5459+#define cJSON_IsUnionOffsetDateTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5460+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j);
5461+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5462+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x);
5463+struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s);
5464+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5465+
5466+#define cJSON_IsUnionOffsetTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5467+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j);
5468+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x);
5469+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x);
5470+struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s);
5471+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x);
5472+
54165473 #define cJSON_IsUnionOneway(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
54175474 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j);
54185475 cJSON * cJSON_CreateUnionOneway(const struct UnionOneway * x);
@@ -7558,6 +7615,12 @@ cJSON * cJSON_CreateList(const struct List * x);
75587615 char * cJSON_PrintList(const struct List * x);
75597616 void cJSON_DeleteList(struct List * x);
75607617
7618+struct LocalDate * cJSON_ParseLocalDate(const char * s);
7619+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
7620+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
7621+char * cJSON_PrintLocalDate(const struct LocalDate * x);
7622+void cJSON_DeleteLocalDate(struct LocalDate * x);
7623+
75617624 struct Locale * cJSON_ParseLocale(const char * s);
75627625 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
75637626 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -7732,6 +7795,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
77327795 char * cJSON_PrintOf(const struct Of * x);
77337796 void cJSON_DeleteOf(struct Of * x);
77347797
7798+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
7799+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
7800+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
7801+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
7802+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
7803+
7804+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
7805+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
7806+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
7807+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
7808+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
7809+
77357810 struct Oneway * cJSON_ParseOneway(const char * s);
77367811 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
77377812 cJSON * cJSON_CreateOneway(const struct Oneway * x);
Mschema-cplusplusdefault / quicktype.hpp+180 −0
@@ -1649,6 +1649,18 @@ namespace quicktype {
16491649
16501650 using UnionList = std::variant<List, double>;
16511651
1652+ class LocalDate {
1653+ public:
1654+ LocalDate() = default;
1655+ virtual ~LocalDate() = default;
1656+
1657+ private:
1658+
1659+ public:
1660+ };
1661+
1662+ using UnionLocalDate = std::variant<LocalDate, double>;
1663+
16521664 class Locale {
16531665 public:
16541666 Locale() = default;
@@ -1997,6 +2009,30 @@ namespace quicktype {
19972009
19982010 using UnionOf = std::variant<Of, double>;
19992011
2012+ class OffsetDateTime {
2013+ public:
2014+ OffsetDateTime() = default;
2015+ virtual ~OffsetDateTime() = default;
2016+
2017+ private:
2018+
2019+ public:
2020+ };
2021+
2022+ using UnionOffsetDateTime = std::variant<OffsetDateTime, double>;
2023+
2024+ class OffsetTime {
2025+ public:
2026+ OffsetTime() = default;
2027+ virtual ~OffsetTime() = default;
2028+
2029+ private:
2030+
2031+ public:
2032+ };
2033+
2034+ using UnionOffsetTime = std::variant<OffsetTime, double>;
2035+
20002036 class Oneway {
20012037 public:
20022038 Oneway() = default;
@@ -4527,6 +4563,7 @@ namespace quicktype {
45274563 std::optional<UnionLeft> left;
45284564 std::optional<UnionLet> let;
45294565 std::optional<UnionList> list;
4566+ std::optional<UnionLocalDate> local_date;
45304567 std::optional<UnionLocale> locale;
45314568 std::optional<UnionLock> lock;
45324569 std::optional<UnionLong> top_level_long;
@@ -4567,6 +4604,8 @@ namespace quicktype {
45674604 std::optional<UnionObjectReader> object_reader;
45684605 std::optional<UnionObjectWriter> object_writer;
45694606 std::optional<UnionOf> of;
4607+ std::optional<UnionOffsetDateTime> offset_date_time;
4608+ std::optional<UnionOffsetTime> offset_time;
45704609 std::optional<UnionOneway> oneway;
45714610 std::optional<UnionOpen> open;
45724611 std::optional<UnionOperator> top_level_operator;
@@ -5436,6 +5475,10 @@ namespace quicktype {
54365475 std::optional<UnionList> & get_mutable_list() { return list; }
54375476 void set_list(const std::optional<UnionList> & value) { this->list = value; }
54385477
5478+ const std::optional<UnionLocalDate> & get_local_date() const { return local_date; }
5479+ std::optional<UnionLocalDate> & get_mutable_local_date() { return local_date; }
5480+ void set_local_date(const std::optional<UnionLocalDate> & value) { this->local_date = value; }
5481+
54395482 const std::optional<UnionLocale> & get_locale() const { return locale; }
54405483 std::optional<UnionLocale> & get_mutable_locale() { return locale; }
54415484 void set_locale(const std::optional<UnionLocale> & value) { this->locale = value; }
@@ -5596,6 +5639,14 @@ namespace quicktype {
55965639 std::optional<UnionOf> & get_mutable_of() { return of; }
55975640 void set_of(const std::optional<UnionOf> & value) { this->of = value; }
55985641
5642+ const std::optional<UnionOffsetDateTime> & get_offset_date_time() const { return offset_date_time; }
5643+ std::optional<UnionOffsetDateTime> & get_mutable_offset_date_time() { return offset_date_time; }
5644+ void set_offset_date_time(const std::optional<UnionOffsetDateTime> & value) { this->offset_date_time = value; }
5645+
5646+ const std::optional<UnionOffsetTime> & get_offset_time() const { return offset_time; }
5647+ std::optional<UnionOffsetTime> & get_mutable_offset_time() { return offset_time; }
5648+ void set_offset_time(const std::optional<UnionOffsetTime> & value) { this->offset_time = value; }
5649+
55995650 const std::optional<UnionOneway> & get_oneway() const { return oneway; }
56005651 std::optional<UnionOneway> & get_mutable_oneway() { return oneway; }
56015652 void set_oneway(const std::optional<UnionOneway> & value) { this->oneway = value; }
@@ -6513,6 +6564,9 @@ void to_json(json & j, const Let & x);
65136564 void from_json(const json & j, List & x);
65146565 void to_json(json & j, const List & x);
65156566
6567+void from_json(const json & j, LocalDate & x);
6568+void to_json(json & j, const LocalDate & x);
6569+
65166570 void from_json(const json & j, Locale & x);
65176571 void to_json(json & j, const Locale & x);
65186572
@@ -6600,6 +6654,12 @@ void to_json(json & j, const ObjectWriter & x);
66006654 void from_json(const json & j, Of & x);
66016655 void to_json(json & j, const Of & x);
66026656
6657+void from_json(const json & j, OffsetDateTime & x);
6658+void to_json(json & j, const OffsetDateTime & x);
6659+
6660+void from_json(const json & j, OffsetTime & x);
6661+void to_json(json & j, const OffsetTime & x);
6662+
66036663 void from_json(const json & j, Oneway & x);
66046664 void to_json(json & j, const Oneway & x);
66056665
@@ -7969,6 +8029,12 @@ struct adl_serializer<std::variant<quicktype::List, double>> {
79698029 static void to_json(json & j, const std::variant<quicktype::List, double> & x);
79708030 };
79718031
8032+template <>
8033+struct adl_serializer<std::variant<quicktype::LocalDate, double>> {
8034+ static void from_json(const json & j, std::variant<quicktype::LocalDate, double> & x);
8035+ static void to_json(json & j, const std::variant<quicktype::LocalDate, double> & x);
8036+};
8037+
79728038 template <>
79738039 struct adl_serializer<std::variant<quicktype::Locale, double>> {
79748040 static void from_json(const json & j, std::variant<quicktype::Locale, double> & x);
@@ -8143,6 +8209,18 @@ struct adl_serializer<std::variant<quicktype::Of, double>> {
81438209 static void to_json(json & j, const std::variant<quicktype::Of, double> & x);
81448210 };
81458211
8212+template <>
8213+struct adl_serializer<std::variant<quicktype::OffsetDateTime, double>> {
8214+ static void from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x);
8215+ static void to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x);
8216+};
8217+
8218+template <>
8219+struct adl_serializer<std::variant<quicktype::OffsetTime, double>> {
8220+ static void from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x);
8221+ static void to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x);
8222+};
8223+
81468224 template <>
81478225 struct adl_serializer<std::variant<quicktype::Oneway, double>> {
81488226 static void from_json(const json & j, std::variant<quicktype::Oneway, double> & x);
@@ -10744,6 +10822,17 @@ namespace quicktype {
1074410822 (void)x;
1074510823 }
1074610824
10825+ inline void from_json(const json & j, LocalDate& x) {
10826+ if (!j.is_object()) throw std::runtime_error("Expected object");
10827+ (void)j;
10828+ (void)x;
10829+ }
10830+
10831+ inline void to_json(json & j, const LocalDate & x) {
10832+ j = json::object();
10833+ (void)x;
10834+ }
10835+
1074710836 inline void from_json(const json & j, Locale& x) {
1074810837 if (!j.is_object()) throw std::runtime_error("Expected object");
1074910838 (void)j;
@@ -11063,6 +11152,28 @@ namespace quicktype {
1106311152 (void)x;
1106411153 }
1106511154
11155+ inline void from_json(const json & j, OffsetDateTime& x) {
11156+ if (!j.is_object()) throw std::runtime_error("Expected object");
11157+ (void)j;
11158+ (void)x;
11159+ }
11160+
11161+ inline void to_json(json & j, const OffsetDateTime & x) {
11162+ j = json::object();
11163+ (void)x;
11164+ }
11165+
11166+ inline void from_json(const json & j, OffsetTime& x) {
11167+ if (!j.is_object()) throw std::runtime_error("Expected object");
11168+ (void)j;
11169+ (void)x;
11170+ }
11171+
11172+ inline void to_json(json & j, const OffsetTime & x) {
11173+ j = json::object();
11174+ (void)x;
11175+ }
11176+
1106611177 inline void from_json(const json & j, Oneway& x) {
1106711178 if (!j.is_object()) throw std::runtime_error("Expected object");
1106811179 (void)j;
@@ -13578,6 +13689,8 @@ namespace quicktype {
1357813689 x.set_let(get_stack_optional<std::variant<Let, double>>(j, "let"));
1357913690 if (j.find("list") != j.end() && j.at("list").is_null()) throw std::runtime_error("Unexpected null");
1358013691 x.set_list(get_stack_optional<std::variant<List, double>>(j, "list"));
13692+ if (j.find("LocalDate") != j.end() && j.at("LocalDate").is_null()) throw std::runtime_error("Unexpected null");
13693+ x.set_local_date(get_stack_optional<std::variant<LocalDate, double>>(j, "LocalDate"));
1358113694 if (j.find("Locale") != j.end() && j.at("Locale").is_null()) throw std::runtime_error("Unexpected null");
1358213695 x.set_locale(get_stack_optional<std::variant<Locale, double>>(j, "Locale"));
1358313696 if (j.find("lock") != j.end() && j.at("lock").is_null()) throw std::runtime_error("Unexpected null");
@@ -13658,6 +13771,10 @@ namespace quicktype {
1365813771 x.set_object_writer(get_stack_optional<std::variant<ObjectWriter, double>>(j, "ObjectWriter"));
1365913772 if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null");
1366013773 x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of"));
13774+ if (j.find("OffsetDateTime") != j.end() && j.at("OffsetDateTime").is_null()) throw std::runtime_error("Unexpected null");
13775+ x.set_offset_date_time(get_stack_optional<std::variant<OffsetDateTime, double>>(j, "OffsetDateTime"));
13776+ if (j.find("OffsetTime") != j.end() && j.at("OffsetTime").is_null()) throw std::runtime_error("Unexpected null");
13777+ x.set_offset_time(get_stack_optional<std::variant<OffsetTime, double>>(j, "OffsetTime"));
1366113778 if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null");
1366213779 x.set_oneway(get_stack_optional<std::variant<Oneway, double>>(j, "oneway"));
1366313780 if (j.find("open") != j.end() && j.at("open").is_null()) throw std::runtime_error("Unexpected null");
@@ -14108,6 +14225,7 @@ namespace quicktype {
1410814225 j["left"] = x.get_left();
1410914226 j["let"] = x.get_let();
1411014227 j["list"] = x.get_list();
14228+ j["LocalDate"] = x.get_local_date();
1411114229 j["Locale"] = x.get_locale();
1411214230 j["lock"] = x.get_lock();
1411314231 j["long"] = x.get_top_level_long();
@@ -14148,6 +14266,8 @@ namespace quicktype {
1414814266 j["ObjectReader"] = x.get_object_reader();
1414914267 j["ObjectWriter"] = x.get_object_writer();
1415014268 j["of"] = x.get_of();
14269+ j["OffsetDateTime"] = x.get_offset_date_time();
14270+ j["OffsetTime"] = x.get_offset_time();
1415114271 j["oneway"] = x.get_oneway();
1415214272 j["open"] = x.get_open();
1415314273 j["operator"] = x.get_top_level_operator();
@@ -16882,6 +17002,26 @@ namespace nlohmann {
1688217002 }
1688317003 }
1688417004
17005+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::from_json(const json & j, std::variant<quicktype::LocalDate, double> & x) {
17006+ if (j.is_number())
17007+ x = j.get<double>();
17008+ else if (j.is_object())
17009+ x = j.get<quicktype::LocalDate>();
17010+ else throw std::runtime_error("Could not deserialise!");
17011+ }
17012+
17013+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::to_json(json & j, const std::variant<quicktype::LocalDate, double> & x) {
17014+ switch (x.index()) {
17015+ case 0:
17016+ j = std::get<quicktype::LocalDate>(x);
17017+ break;
17018+ case 1:
17019+ j = std::get<double>(x);
17020+ break;
17021+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17022+ }
17023+ }
17024+
1688517025 inline void adl_serializer<std::variant<quicktype::Locale, double>>::from_json(const json & j, std::variant<quicktype::Locale, double> & x) {
1688617026 if (j.is_number())
1688717027 x = j.get<double>();
@@ -17462,6 +17602,46 @@ namespace nlohmann {
1746217602 }
1746317603 }
1746417604
17605+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x) {
17606+ if (j.is_number())
17607+ x = j.get<double>();
17608+ else if (j.is_object())
17609+ x = j.get<quicktype::OffsetDateTime>();
17610+ else throw std::runtime_error("Could not deserialise!");
17611+ }
17612+
17613+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x) {
17614+ switch (x.index()) {
17615+ case 0:
17616+ j = std::get<quicktype::OffsetDateTime>(x);
17617+ break;
17618+ case 1:
17619+ j = std::get<double>(x);
17620+ break;
17621+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17622+ }
17623+ }
17624+
17625+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x) {
17626+ if (j.is_number())
17627+ x = j.get<double>();
17628+ else if (j.is_object())
17629+ x = j.get<quicktype::OffsetTime>();
17630+ else throw std::runtime_error("Could not deserialise!");
17631+ }
17632+
17633+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x) {
17634+ switch (x.index()) {
17635+ case 0:
17636+ j = std::get<quicktype::OffsetTime>(x);
17637+ break;
17638+ case 1:
17639+ j = std::get<double>(x);
17640+ break;
17641+ default: throw std::runtime_error("Input JSON does not conform to schema!");
17642+ }
17643+ }
17644+
1746517645 inline void adl_serializer<std::variant<quicktype::Oneway, double>>::from_json(const json & j, std::variant<quicktype::Oneway, double> & x) {
1746617646 if (j.is_number())
1746717647 x = j.get<double>();
Mschema-crystaldefault / TopLevel.cr+30 −0
@@ -436,6 +436,9 @@ class TopLevel
436436
437437 property list : UnionList?
438438
439+ @[JSON::Field(key: "LocalDate")]
440+ property local_date : UnionLocalDate?
441+
439442 @[JSON::Field(key: "Locale")]
440443 property locale : UnionLocale?
441444
@@ -537,6 +540,12 @@ class TopLevel
537540 @[JSON::Field(key: "of")]
538541 property top_level_of : UnionOf?
539542
543+ @[JSON::Field(key: "OffsetDateTime")]
544+ property offset_date_time : UnionOffsetDateTime?
545+
546+ @[JSON::Field(key: "OffsetTime")]
547+ property offset_time : UnionOffsetTime?
548+
540549 property oneway : UnionOneway?
541550
542551 property open : UnionOpen?
@@ -1671,6 +1680,11 @@ class List
16711680
16721681 end
16731682
1683+class LocalDate
1684+ include JSON::Serializable
1685+
1686+end
1687+
16741688 class Locale
16751689 include JSON::Serializable
16761690
@@ -1846,6 +1860,16 @@ class ObjectWriter
18461860
18471861 end
18481862
1863+class OffsetDateTime
1864+ include JSON::Serializable
1865+
1866+end
1867+
1868+class OffsetTime
1869+ include JSON::Serializable
1870+
1871+end
1872+
18491873 class Oneway
18501874 include JSON::Serializable
18511875
@@ -2949,6 +2973,8 @@ alias UnionLet = Float64 | Let
29492973
29502974 alias UnionList = Float64 | List
29512975
2976+alias UnionLocalDate = Float64 | LocalDate
2977+
29522978 alias UnionLocale = Float64 | Locale
29532979
29542980 alias UnionLock = Float64 | Lock
@@ -3019,6 +3045,10 @@ alias UnionObjectReader = Float64 | ObjectReader
30193045
30203046 alias UnionObjectWriter = Float64 | ObjectWriter
30213047
3048+alias UnionOffsetDateTime = Float64 | OffsetDateTime
3049+
3050+alias UnionOffsetTime = Float64 | OffsetTime
3051+
30223052 alias UnionOneway = Float64 | Oneway
30233053
30243054 alias UnionOpen = Float64 | Open
Mschema-csharp-recordsdefault / QuickType.cs+165 −0
@@ -577,6 +577,9 @@ namespace QuickType
577577 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
578578 public UnionList? List { get; set; }
579579
580+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
581+ public UnionLocalDate? LocalDate { get; set; }
582+
580583 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
581584 public UnionLocale? Locale { get; set; }
582585
@@ -697,6 +700,12 @@ namespace QuickType
697700 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
698701 public UnionOf? Of { get; set; }
699702
703+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
704+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
705+
706+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
707+ public UnionOffsetTime? OffsetTime { get; set; }
708+
700709 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
701710 public UnionOneway? Oneway { get; set; }
702711
@@ -1791,6 +1800,10 @@ namespace QuickType
17911800 {
17921801 }
17931802
1803+ public partial record LocalDate
1804+ {
1805+ }
1806+
17941807 public partial record Locale
17951808 {
17961809 }
@@ -1943,6 +1956,14 @@ namespace QuickType
19431956 {
19441957 }
19451958
1959+ public partial record OffsetDateTime
1960+ {
1961+ }
1962+
1963+ public partial record OffsetTime
1964+ {
1965+ }
1966+
19461967 public partial record Oneway
19471968 {
19481969 }
@@ -4082,6 +4103,15 @@ namespace QuickType
40824103 public static implicit operator UnionList(List List) => new UnionList { List = List };
40834104 }
40844105
4106+ public partial struct UnionLocalDate
4107+ {
4108+ public double? Double;
4109+ public LocalDate? LocalDate;
4110+
4111+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4112+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4113+ }
4114+
40854115 public partial struct UnionLocale
40864116 {
40874117 public double? Double;
@@ -4424,6 +4454,24 @@ namespace QuickType
44244454 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
44254455 }
44264456
4457+ public partial struct UnionOffsetDateTime
4458+ {
4459+ public double? Double;
4460+ public OffsetDateTime? OffsetDateTime;
4461+
4462+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4463+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4464+ }
4465+
4466+ public partial struct UnionOffsetTime
4467+ {
4468+ public double? Double;
4469+ public OffsetTime? OffsetTime;
4470+
4471+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4472+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4473+ }
4474+
44274475 public partial struct UnionOneway
44284476 {
44294477 public double? Double;
@@ -5752,6 +5800,7 @@ namespace QuickType
57525800 UnionJsonReaderConverter.Singleton,
57535801 UnionJsonTokenTypeConverter.Singleton,
57545802 UnionKSerializerConverter.Singleton,
5803+ UnionLocalDateConverter.Singleton,
57555804 UnionLocaleConverter.Singleton,
57565805 UnionLongNodeConverter.Singleton,
57575806 UnionMapEntryConverter.Singleton,
@@ -5767,6 +5816,8 @@ namespace QuickType
57675816 UnionObjectNodeConverter.Singleton,
57685817 UnionObjectReaderConverter.Singleton,
57695818 UnionObjectWriterConverter.Singleton,
5819+ UnionOffsetDateTimeConverter.Singleton,
5820+ UnionOffsetTimeConverter.Singleton,
57705821 UnionPrimitiveKindConverter.Singleton,
57715822 UnionProtocolConverter.Singleton,
57725823 UnionRegExpConverter.Singleton,
@@ -7628,6 +7679,44 @@ namespace QuickType
76287679 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
76297680 }
76307681
7682+ internal class UnionLocalDateConverter : JsonConverter
7683+ {
7684+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7685+
7686+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7687+ {
7688+ switch (reader.TokenType)
7689+ {
7690+ case JsonToken.Integer:
7691+ case JsonToken.Float:
7692+ var doubleValue = serializer.Deserialize<double>(reader);
7693+ return new UnionLocalDate { Double = doubleValue };
7694+ case JsonToken.StartObject:
7695+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7696+ return new UnionLocalDate { LocalDate = objectValue };
7697+ }
7698+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7699+ }
7700+
7701+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7702+ {
7703+ var value = (UnionLocalDate)untypedValue;
7704+ if (value.Double != null)
7705+ {
7706+ serializer.Serialize(writer, value.Double.Value);
7707+ return;
7708+ }
7709+ if (value.LocalDate != null)
7710+ {
7711+ serializer.Serialize(writer, value.LocalDate);
7712+ return;
7713+ }
7714+ throw new Exception("Cannot marshal type UnionLocalDate");
7715+ }
7716+
7717+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7718+ }
7719+
76317720 internal class UnionLocaleConverter : JsonConverter
76327721 {
76337722 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -8198,6 +8287,82 @@ namespace QuickType
81988287 public static readonly UnionObjectWriterConverter Singleton = new UnionObjectWriterConverter();
81998288 }
82008289
8290+ internal class UnionOffsetDateTimeConverter : JsonConverter
8291+ {
8292+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
8293+
8294+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
8295+ {
8296+ switch (reader.TokenType)
8297+ {
8298+ case JsonToken.Integer:
8299+ case JsonToken.Float:
8300+ var doubleValue = serializer.Deserialize<double>(reader);
8301+ return new UnionOffsetDateTime { Double = doubleValue };
8302+ case JsonToken.StartObject:
8303+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
8304+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
8305+ }
8306+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
8307+ }
8308+
8309+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
8310+ {
8311+ var value = (UnionOffsetDateTime)untypedValue;
8312+ if (value.Double != null)
8313+ {
8314+ serializer.Serialize(writer, value.Double.Value);
8315+ return;
8316+ }
8317+ if (value.OffsetDateTime != null)
8318+ {
8319+ serializer.Serialize(writer, value.OffsetDateTime);
8320+ return;
8321+ }
8322+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
8323+ }
8324+
8325+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
8326+ }
8327+
8328+ internal class UnionOffsetTimeConverter : JsonConverter
8329+ {
8330+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
8331+
8332+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
8333+ {
8334+ switch (reader.TokenType)
8335+ {
8336+ case JsonToken.Integer:
8337+ case JsonToken.Float:
8338+ var doubleValue = serializer.Deserialize<double>(reader);
8339+ return new UnionOffsetTime { Double = doubleValue };
8340+ case JsonToken.StartObject:
8341+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
8342+ return new UnionOffsetTime { OffsetTime = objectValue };
8343+ }
8344+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
8345+ }
8346+
8347+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
8348+ {
8349+ var value = (UnionOffsetTime)untypedValue;
8350+ if (value.Double != null)
8351+ {
8352+ serializer.Serialize(writer, value.Double.Value);
8353+ return;
8354+ }
8355+ if (value.OffsetTime != null)
8356+ {
8357+ serializer.Serialize(writer, value.OffsetTime);
8358+ return;
8359+ }
8360+ throw new Exception("Cannot marshal type UnionOffsetTime");
8361+ }
8362+
8363+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
8364+ }
8365+
82018366 internal class UnionPrimitiveKindConverter : JsonConverter
82028367 {
82038368 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
Mschema-csharp-SystemTextJsondefault / QuickType.cs+162 −0
@@ -758,6 +758,10 @@ namespace QuickType
758758 [JsonPropertyName("list")]
759759 public UnionList? List { get; set; }
760760
761+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
762+ [JsonPropertyName("LocalDate")]
763+ public UnionLocalDate? LocalDate { get; set; }
764+
761765 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
762766 [JsonPropertyName("Locale")]
763767 public UnionLocale? Locale { get; set; }
@@ -918,6 +922,14 @@ namespace QuickType
918922 [JsonPropertyName("of")]
919923 public UnionOf? Of { get; set; }
920924
925+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
926+ [JsonPropertyName("OffsetDateTime")]
927+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
928+
929+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
930+ [JsonPropertyName("OffsetTime")]
931+ public UnionOffsetTime? OffsetTime { get; set; }
932+
921933 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
922934 [JsonPropertyName("oneway")]
923935 public UnionOneway? Oneway { get; set; }
@@ -2151,6 +2163,10 @@ namespace QuickType
21512163 {
21522164 }
21532165
2166+ public partial class LocalDate
2167+ {
2168+ }
2169+
21542170 public partial class Locale
21552171 {
21562172 }
@@ -2303,6 +2319,14 @@ namespace QuickType
23032319 {
23042320 }
23052321
2322+ public partial class OffsetDateTime
2323+ {
2324+ }
2325+
2326+ public partial class OffsetTime
2327+ {
2328+ }
2329+
23062330 public partial class Oneway
23072331 {
23082332 }
@@ -4452,6 +4476,15 @@ namespace QuickType
44524476 public static implicit operator UnionList(List List) => new UnionList { List = List };
44534477 }
44544478
4479+ public partial struct UnionLocalDate
4480+ {
4481+ public double? Double;
4482+ public LocalDate? LocalDate;
4483+
4484+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4485+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4486+ }
4487+
44554488 public partial struct UnionLocale
44564489 {
44574490 public double? Double;
@@ -4794,6 +4827,24 @@ namespace QuickType
47944827 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
47954828 }
47964829
4830+ public partial struct UnionOffsetDateTime
4831+ {
4832+ public double? Double;
4833+ public OffsetDateTime? OffsetDateTime;
4834+
4835+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4836+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4837+ }
4838+
4839+ public partial struct UnionOffsetTime
4840+ {
4841+ public double? Double;
4842+ public OffsetTime? OffsetTime;
4843+
4844+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4845+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4846+ }
4847+
47974848 public partial struct UnionOneway
47984849 {
47994850 public double? Double;
@@ -6102,6 +6153,7 @@ namespace QuickType
61026153 UnionJsonReaderConverter.Singleton,
61036154 UnionJsonTokenTypeConverter.Singleton,
61046155 UnionKSerializerConverter.Singleton,
6156+ UnionLocalDateConverter.Singleton,
61056157 UnionLocaleConverter.Singleton,
61066158 UnionLongNodeConverter.Singleton,
61076159 UnionMapEntryConverter.Singleton,
@@ -6117,6 +6169,8 @@ namespace QuickType
61176169 UnionObjectNodeConverter.Singleton,
61186170 UnionObjectReaderConverter.Singleton,
61196171 UnionObjectWriterConverter.Singleton,
6172+ UnionOffsetDateTimeConverter.Singleton,
6173+ UnionOffsetTimeConverter.Singleton,
61206174 UnionPrimitiveKindConverter.Singleton,
61216175 UnionProtocolConverter.Singleton,
61226176 UnionRegExpConverter.Singleton,
@@ -7898,6 +7952,42 @@ namespace QuickType
78987952 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
78997953 }
79007954
7955+ internal class UnionLocalDateConverter : JsonConverter<UnionLocalDate>
7956+ {
7957+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate);
7958+
7959+ public override UnionLocalDate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7960+ {
7961+ switch (reader.TokenType)
7962+ {
7963+ case JsonTokenType.Number:
7964+ var doubleValue1 = reader.GetDouble();
7965+ return new UnionLocalDate { Double = doubleValue1 };
7966+ case JsonTokenType.StartObject:
7967+ var objectValue = JsonSerializer.Deserialize<LocalDate>(ref reader, options);
7968+ return new UnionLocalDate { LocalDate = objectValue };
7969+ }
7970+ throw new JsonException("Cannot unmarshal type UnionLocalDate");
7971+ }
7972+
7973+ public override void Write(Utf8JsonWriter writer, UnionLocalDate value, JsonSerializerOptions options)
7974+ {
7975+ if (value.Double != null)
7976+ {
7977+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7978+ return;
7979+ }
7980+ if (value.LocalDate != null)
7981+ {
7982+ JsonSerializer.Serialize(writer, value.LocalDate, options);
7983+ return;
7984+ }
7985+ throw new NotSupportedException("Cannot marshal type UnionLocalDate");
7986+ }
7987+
7988+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7989+ }
7990+
79017991 internal class UnionLocaleConverter : JsonConverter<UnionLocale>
79027992 {
79037993 public override bool CanConvert(Type t) => t == typeof(UnionLocale);
@@ -8438,6 +8528,78 @@ namespace QuickType
84388528 public static readonly UnionObjectWriterConverter Singleton = new UnionObjectWriterConverter();
84398529 }
84408530
8531+ internal class UnionOffsetDateTimeConverter : JsonConverter<UnionOffsetDateTime>
8532+ {
8533+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime);
8534+
8535+ public override UnionOffsetDateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
8536+ {
8537+ switch (reader.TokenType)
8538+ {
8539+ case JsonTokenType.Number:
8540+ var doubleValue1 = reader.GetDouble();
8541+ return new UnionOffsetDateTime { Double = doubleValue1 };
8542+ case JsonTokenType.StartObject:
8543+ var objectValue = JsonSerializer.Deserialize<OffsetDateTime>(ref reader, options);
8544+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
8545+ }
8546+ throw new JsonException("Cannot unmarshal type UnionOffsetDateTime");
8547+ }
8548+
8549+ public override void Write(Utf8JsonWriter writer, UnionOffsetDateTime value, JsonSerializerOptions options)
8550+ {
8551+ if (value.Double != null)
8552+ {
8553+ JsonSerializer.Serialize(writer, value.Double.Value, options);
8554+ return;
8555+ }
8556+ if (value.OffsetDateTime != null)
8557+ {
8558+ JsonSerializer.Serialize(writer, value.OffsetDateTime, options);
8559+ return;
8560+ }
8561+ throw new NotSupportedException("Cannot marshal type UnionOffsetDateTime");
8562+ }
8563+
8564+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
8565+ }
8566+
8567+ internal class UnionOffsetTimeConverter : JsonConverter<UnionOffsetTime>
8568+ {
8569+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime);
8570+
8571+ public override UnionOffsetTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
8572+ {
8573+ switch (reader.TokenType)
8574+ {
8575+ case JsonTokenType.Number:
8576+ var doubleValue1 = reader.GetDouble();
8577+ return new UnionOffsetTime { Double = doubleValue1 };
8578+ case JsonTokenType.StartObject:
8579+ var objectValue = JsonSerializer.Deserialize<OffsetTime>(ref reader, options);
8580+ return new UnionOffsetTime { OffsetTime = objectValue };
8581+ }
8582+ throw new JsonException("Cannot unmarshal type UnionOffsetTime");
8583+ }
8584+
8585+ public override void Write(Utf8JsonWriter writer, UnionOffsetTime value, JsonSerializerOptions options)
8586+ {
8587+ if (value.Double != null)
8588+ {
8589+ JsonSerializer.Serialize(writer, value.Double.Value, options);
8590+ return;
8591+ }
8592+ if (value.OffsetTime != null)
8593+ {
8594+ JsonSerializer.Serialize(writer, value.OffsetTime, options);
8595+ return;
8596+ }
8597+ throw new NotSupportedException("Cannot marshal type UnionOffsetTime");
8598+ }
8599+
8600+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
8601+ }
8602+
84418603 internal class UnionPrimitiveKindConverter : JsonConverter<UnionPrimitiveKind>
84428604 {
84438605 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind);
Mschema-csharpdefault / QuickType.cs+165 −0
@@ -577,6 +577,9 @@ namespace QuickType
577577 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
578578 public UnionList? List { get; set; }
579579
580+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
581+ public UnionLocalDate? LocalDate { get; set; }
582+
580583 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
581584 public UnionLocale? Locale { get; set; }
582585
@@ -697,6 +700,12 @@ namespace QuickType
697700 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
698701 public UnionOf? Of { get; set; }
699702
703+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
704+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
705+
706+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
707+ public UnionOffsetTime? OffsetTime { get; set; }
708+
700709 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
701710 public UnionOneway? Oneway { get; set; }
702711
@@ -1799,6 +1808,10 @@ namespace QuickType
17991808 {
18001809 }
18011810
1811+ public partial class LocalDate
1812+ {
1813+ }
1814+
18021815 public partial class Locale
18031816 {
18041817 }
@@ -1951,6 +1964,14 @@ namespace QuickType
19511964 {
19521965 }
19531966
1967+ public partial class OffsetDateTime
1968+ {
1969+ }
1970+
1971+ public partial class OffsetTime
1972+ {
1973+ }
1974+
19541975 public partial class Oneway
19551976 {
19561977 }
@@ -4100,6 +4121,15 @@ namespace QuickType
41004121 public static implicit operator UnionList(List List) => new UnionList { List = List };
41014122 }
41024123
4124+ public partial struct UnionLocalDate
4125+ {
4126+ public double? Double;
4127+ public LocalDate? LocalDate;
4128+
4129+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4130+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4131+ }
4132+
41034133 public partial struct UnionLocale
41044134 {
41054135 public double? Double;
@@ -4442,6 +4472,24 @@ namespace QuickType
44424472 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
44434473 }
44444474
4475+ public partial struct UnionOffsetDateTime
4476+ {
4477+ public double? Double;
4478+ public OffsetDateTime? OffsetDateTime;
4479+
4480+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4481+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4482+ }
4483+
4484+ public partial struct UnionOffsetTime
4485+ {
4486+ public double? Double;
4487+ public OffsetTime? OffsetTime;
4488+
4489+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4490+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4491+ }
4492+
44454493 public partial struct UnionOneway
44464494 {
44474495 public double? Double;
@@ -5752,6 +5800,7 @@ namespace QuickType
57525800 UnionJsonReaderConverter.Singleton,
57535801 UnionJsonTokenTypeConverter.Singleton,
57545802 UnionKSerializerConverter.Singleton,
5803+ UnionLocalDateConverter.Singleton,
57555804 UnionLocaleConverter.Singleton,
57565805 UnionLongNodeConverter.Singleton,
57575806 UnionMapEntryConverter.Singleton,
@@ -5767,6 +5816,8 @@ namespace QuickType
57675816 UnionObjectNodeConverter.Singleton,
57685817 UnionObjectReaderConverter.Singleton,
57695818 UnionObjectWriterConverter.Singleton,
5819+ UnionOffsetDateTimeConverter.Singleton,
5820+ UnionOffsetTimeConverter.Singleton,
57705821 UnionPrimitiveKindConverter.Singleton,
57715822 UnionProtocolConverter.Singleton,
57725823 UnionRegExpConverter.Singleton,
@@ -7628,6 +7679,44 @@ namespace QuickType
76287679 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
76297680 }
76307681
7682+ internal class UnionLocalDateConverter : JsonConverter
7683+ {
7684+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7685+
7686+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7687+ {
7688+ switch (reader.TokenType)
7689+ {
7690+ case JsonToken.Integer:
7691+ case JsonToken.Float:
7692+ var doubleValue = serializer.Deserialize<double>(reader);
7693+ return new UnionLocalDate { Double = doubleValue };
7694+ case JsonToken.StartObject:
7695+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7696+ return new UnionLocalDate { LocalDate = objectValue };
7697+ }
7698+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7699+ }
7700+
7701+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7702+ {
7703+ var value = (UnionLocalDate)untypedValue;
7704+ if (value.Double != null)
7705+ {
7706+ serializer.Serialize(writer, value.Double.Value);
7707+ return;
7708+ }
7709+ if (value.LocalDate != null)
7710+ {
7711+ serializer.Serialize(writer, value.LocalDate);
7712+ return;
7713+ }
7714+ throw new Exception("Cannot marshal type UnionLocalDate");
7715+ }
7716+
7717+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7718+ }
7719+
76317720 internal class UnionLocaleConverter : JsonConverter
76327721 {
76337722 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -8198,6 +8287,82 @@ namespace QuickType
81988287 public static readonly UnionObjectWriterConverter Singleton = new UnionObjectWriterConverter();
81998288 }
82008289
8290+ internal class UnionOffsetDateTimeConverter : JsonConverter
8291+ {
8292+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
8293+
8294+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
8295+ {
8296+ switch (reader.TokenType)
8297+ {
8298+ case JsonToken.Integer:
8299+ case JsonToken.Float:
8300+ var doubleValue = serializer.Deserialize<double>(reader);
8301+ return new UnionOffsetDateTime { Double = doubleValue };
8302+ case JsonToken.StartObject:
8303+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
8304+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
8305+ }
8306+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
8307+ }
8308+
8309+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
8310+ {
8311+ var value = (UnionOffsetDateTime)untypedValue;
8312+ if (value.Double != null)
8313+ {
8314+ serializer.Serialize(writer, value.Double.Value);
8315+ return;
8316+ }
8317+ if (value.OffsetDateTime != null)
8318+ {
8319+ serializer.Serialize(writer, value.OffsetDateTime);
8320+ return;
8321+ }
8322+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
8323+ }
8324+
8325+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
8326+ }
8327+
8328+ internal class UnionOffsetTimeConverter : JsonConverter
8329+ {
8330+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
8331+
8332+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
8333+ {
8334+ switch (reader.TokenType)
8335+ {
8336+ case JsonToken.Integer:
8337+ case JsonToken.Float:
8338+ var doubleValue = serializer.Deserialize<double>(reader);
8339+ return new UnionOffsetTime { Double = doubleValue };
8340+ case JsonToken.StartObject:
8341+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
8342+ return new UnionOffsetTime { OffsetTime = objectValue };
8343+ }
8344+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
8345+ }
8346+
8347+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
8348+ {
8349+ var value = (UnionOffsetTime)untypedValue;
8350+ if (value.Double != null)
8351+ {
8352+ serializer.Serialize(writer, value.Double.Value);
8353+ return;
8354+ }
8355+ if (value.OffsetTime != null)
8356+ {
8357+ serializer.Serialize(writer, value.OffsetTime);
8358+ return;
8359+ }
8360+ throw new Exception("Cannot marshal type UnionOffsetTime");
8361+ }
8362+
8363+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
8364+ }
8365+
82018366 internal class UnionPrimitiveKindConverter : JsonConverter
82028367 {
82038368 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
Mschema-dartdefault / TopLevel.dart+42 −0
@@ -193,6 +193,7 @@ class TopLevel {
193193 final dynamic left;
194194 final dynamic let;
195195 final dynamic list;
196+ final dynamic localDate;
196197 final dynamic locale;
197198 final dynamic lock;
198199 final dynamic long;
@@ -233,6 +234,8 @@ class TopLevel {
233234 final dynamic objectReader;
234235 final dynamic objectWriter;
235236 final dynamic of;
237+ final dynamic offsetDateTime;
238+ final dynamic offsetTime;
236239 final dynamic oneway;
237240 final dynamic open;
238241 final dynamic topLevelOperator;
@@ -550,6 +553,7 @@ class TopLevel {
550553 this.left,
551554 this.let,
552555 this.list,
556+ this.localDate,
553557 this.locale,
554558 this.lock,
555559 this.long,
@@ -590,6 +594,8 @@ class TopLevel {
590594 this.objectReader,
591595 this.objectWriter,
592596 this.of,
597+ this.offsetDateTime,
598+ this.offsetTime,
593599 this.oneway,
594600 this.open,
595601 this.topLevelOperator,
@@ -908,6 +914,7 @@ class TopLevel {
908914 left: json["left"],
909915 let: json["let"],
910916 list: json["list"],
917+ localDate: json["LocalDate"],
911918 locale: json["Locale"],
912919 lock: json["lock"],
913920 long: json["long"],
@@ -948,6 +955,8 @@ class TopLevel {
948955 objectReader: json["ObjectReader"],
949956 objectWriter: json["ObjectWriter"],
950957 of: json["of"],
958+ offsetDateTime: json["OffsetDateTime"],
959+ offsetTime: json["OffsetTime"],
951960 oneway: json["oneway"],
952961 open: json["open"],
953962 topLevelOperator: json["operator"],
@@ -1266,6 +1275,7 @@ class TopLevel {
12661275 "left": left,
12671276 "let": let,
12681277 "list": list,
1278+ "LocalDate": localDate,
12691279 "Locale": locale,
12701280 "lock": lock,
12711281 "long": long,
@@ -1306,6 +1316,8 @@ class TopLevel {
13061316 "ObjectReader": objectReader,
13071317 "ObjectWriter": objectWriter,
13081318 "of": of,
1319+ "OffsetDateTime": offsetDateTime,
1320+ "OffsetTime": offsetTime,
13091321 "oneway": oneway,
13101322 "open": open,
13111323 "operator": topLevelOperator,
@@ -2890,6 +2902,16 @@ class ListClass {
28902902 };
28912903 }
28922904
2905+class LocalDate {
2906+ LocalDate();
2907+
2908+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
2909+ );
2910+
2911+ Map<String, dynamic> toJson() => {
2912+ };
2913+}
2914+
28932915 class Locale {
28942916 Locale();
28952917
@@ -3240,6 +3262,26 @@ class Of {
32403262 };
32413263 }
32423264
3265+class OffsetDateTime {
3266+ OffsetDateTime();
3267+
3268+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
3269+ );
3270+
3271+ Map<String, dynamic> toJson() => {
3272+ };
3273+}
3274+
3275+class OffsetTime {
3276+ OffsetTime();
3277+
3278+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
3279+ );
3280+
3281+ Map<String, dynamic> toJson() => {
3282+ };
3283+}
3284+
32433285 class Oneway {
32443286 Oneway();
Mschema-elixirdefault / QuickType.ex+133 −1
@@ -4993,6 +4993,35 @@ defmodule ListClass do
49934993 end
49944994 end
49954995
4996+defmodule LocalDate do
4997+ defstruct []
4998+
4999+ @type t :: %__MODULE__{
5000+ }
5001+
5002+ def from_map(m) when is_map(m) do
5003+ %LocalDate{
5004+ }
5005+ end
5006+
5007+ def from_json(json) do
5008+ json
5009+ |> Jason.decode!()
5010+ |> from_map()
5011+ end
5012+
5013+ def to_map(_struct) do
5014+ %{
5015+ }
5016+ end
5017+
5018+ def to_json(struct) do
5019+ struct
5020+ |> to_map()
5021+ |> Jason.encode!()
5022+ end
5023+end
5024+
49965025 defmodule Locale do
49975026 defstruct []
49985027
@@ -6037,6 +6066,64 @@ defmodule Of do
60376066 end
60386067 end
60396068
6069+defmodule OffsetDateTime do
6070+ defstruct []
6071+
6072+ @type t :: %__MODULE__{
6073+ }
6074+
6075+ def from_map(m) when is_map(m) do
6076+ %OffsetDateTime{
6077+ }
6078+ end
6079+
6080+ def from_json(json) do
6081+ json
6082+ |> Jason.decode!()
6083+ |> from_map()
6084+ end
6085+
6086+ def to_map(_struct) do
6087+ %{
6088+ }
6089+ end
6090+
6091+ def to_json(struct) do
6092+ struct
6093+ |> to_map()
6094+ |> Jason.encode!()
6095+ end
6096+end
6097+
6098+defmodule OffsetTime do
6099+ defstruct []
6100+
6101+ @type t :: %__MODULE__{
6102+ }
6103+
6104+ def from_map(m) when is_map(m) do
6105+ %OffsetTime{
6106+ }
6107+ end
6108+
6109+ def from_json(json) do
6110+ json
6111+ |> Jason.decode!()
6112+ |> from_map()
6113+ end
6114+
6115+ def to_map(_struct) do
6116+ %{
6117+ }
6118+ end
6119+
6120+ def to_json(struct) do
6121+ struct
6122+ |> to_map()
6123+ |> Jason.encode!()
6124+ end
6125+end
6126+
60406127 defmodule Oneway do
60416128 defstruct []
60426129
@@ -10272,7 +10359,7 @@ defmodule Yield do
1027210359 end
1027310360
1027410361 defmodule TopLevel do
10275- defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :array_node, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :boolean_node, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :deserialization_feature, :dict, :dictionary, :did_set, :top_level_do, :double, :double_node, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :int_node, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :k_serializer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :long_node, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :null_node, :nullptr, :number, :object, :object_mapper, :object_node, :object_reader, :object_writer, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :primitive_kind, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serial_descriptor, :serializable, :serialization_feature, :serialize, :serializer_provider, :serial_name, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :text_node, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
10362+ defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :array_node, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :boolean_node, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :deserialization_feature, :dict, :dictionary, :did_set, :top_level_do, :double, :double_node, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :int_node, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :k_serializer, :lambda, :lazy, :left, :let, :list, :local_date, :locale, :lock, :long, :long_node, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :null_node, :nullptr, :number, :object, :object_mapper, :object_node, :object_reader, :object_writer, :of, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :primitive_kind, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serial_descriptor, :serializable, :serialization_feature, :serialize, :serializer_provider, :serial_name, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :text_node, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
1027610363
1027710364 @type t :: %__MODULE__{
1027810365 empty: Empty.t() | float() | nil,
@@ -10459,6 +10546,7 @@ defmodule TopLevel do
1045910546 left: Left.t() | float() | nil,
1046010547 let: Let.t() | float() | nil,
1046110548 list: ListClass.t() | float() | nil,
10549+ local_date: LocalDate.t() | float() | nil,
1046210550 locale: Locale.t() | float() | nil,
1046310551 lock: Lock.t() | float() | nil,
1046410552 long: Long.t() | float() | nil,
@@ -10499,6 +10587,8 @@ defmodule TopLevel do
1049910587 object_reader: ObjectReader.t() | float() | nil,
1050010588 object_writer: ObjectWriter.t() | float() | nil,
1050110589 of: Of.t() | float() | nil,
10590+ offset_date_time: OffsetDateTime.t() | float() | nil,
10591+ offset_time: OffsetTime.t() | float() | nil,
1050210592 oneway: Oneway.t() | float() | nil,
1050310593 open: Open.t() | float() | nil,
1050410594 operator: Operator.t() | float() | nil,
@@ -12836,6 +12926,18 @@ defmodule TopLevel do
1283612926 def encode_list(value) when is_nil(value), do: value
1283712927 def encode_list(_), do: {:error, "Unexpected type when encoding TopLevel.list"}
1283812928
12929+ def decode_local_date(%{} = value), do: LocalDate.from_map(value)
12930+ def decode_local_date(value) when is_float(value), do: value
12931+ def decode_local_date(value) when is_integer(value), do: value
12932+ def decode_local_date(value) when is_nil(value), do: value
12933+ def decode_local_date(_), do: {:error, "Unexpected type when decoding TopLevel.local_date"}
12934+
12935+ def encode_local_date(%LocalDate{} = value), do: LocalDate.to_map(value)
12936+ def encode_local_date(value) when is_float(value), do: value
12937+ def encode_local_date(value) when is_integer(value), do: value
12938+ def encode_local_date(value) when is_nil(value), do: value
12939+ def encode_local_date(_), do: {:error, "Unexpected type when encoding TopLevel.local_date"}
12940+
1283912941 def decode_locale(%{} = value), do: Locale.from_map(value)
1284012942 def decode_locale(value) when is_float(value), do: value
1284112943 def decode_locale(value) when is_integer(value), do: value
@@ -13316,6 +13418,30 @@ defmodule TopLevel do
1331613418 def encode_of(value) when is_nil(value), do: value
1331713419 def encode_of(_), do: {:error, "Unexpected type when encoding TopLevel.of"}
1331813420
13421+ def decode_offset_date_time(%{} = value), do: OffsetDateTime.from_map(value)
13422+ def decode_offset_date_time(value) when is_float(value), do: value
13423+ def decode_offset_date_time(value) when is_integer(value), do: value
13424+ def decode_offset_date_time(value) when is_nil(value), do: value
13425+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_date_time"}
13426+
13427+ def encode_offset_date_time(%OffsetDateTime{} = value), do: OffsetDateTime.to_map(value)
13428+ def encode_offset_date_time(value) when is_float(value), do: value
13429+ def encode_offset_date_time(value) when is_integer(value), do: value
13430+ def encode_offset_date_time(value) when is_nil(value), do: value
13431+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_date_time"}
13432+
13433+ def decode_offset_time(%{} = value), do: OffsetTime.from_map(value)
13434+ def decode_offset_time(value) when is_float(value), do: value
13435+ def decode_offset_time(value) when is_integer(value), do: value
13436+ def decode_offset_time(value) when is_nil(value), do: value
13437+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_time"}
13438+
13439+ def encode_offset_time(%OffsetTime{} = value), do: OffsetTime.to_map(value)
13440+ def encode_offset_time(value) when is_float(value), do: value
13441+ def encode_offset_time(value) when is_integer(value), do: value
13442+ def encode_offset_time(value) when is_nil(value), do: value
13443+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_time"}
13444+
1331913445 def decode_oneway(%{} = value), do: Oneway.from_map(value)
1332013446 def decode_oneway(value) when is_float(value), do: value
1332113447 def decode_oneway(value) when is_integer(value), do: value
@@ -15074,6 +15200,7 @@ defmodule TopLevel do
1507415200 left: decode_left(m["left"]),
1507515201 let: decode_let(m["let"]),
1507615202 list: decode_list(m["list"]),
15203+ local_date: decode_local_date(m["LocalDate"]),
1507715204 locale: decode_locale(m["Locale"]),
1507815205 lock: decode_lock(m["lock"]),
1507915206 long: decode_long(m["long"]),
@@ -15114,6 +15241,8 @@ defmodule TopLevel do
1511415241 object_reader: decode_object_reader(m["ObjectReader"]),
1511515242 object_writer: decode_object_writer(m["ObjectWriter"]),
1511615243 of: decode_of(m["of"]),
15244+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
15245+ offset_time: decode_offset_time(m["OffsetTime"]),
1511715246 oneway: decode_oneway(m["oneway"]),
1511815247 open: decode_open(m["open"]),
1511915248 operator: decode_operator(m["operator"]),
@@ -15440,6 +15569,7 @@ defmodule TopLevel do
1544015569 "left" => encode_left(struct.left),
1544115570 "let" => encode_let(struct.let),
1544215571 "list" => encode_list(struct.list),
15572+ "LocalDate" => encode_local_date(struct.local_date),
1544315573 "Locale" => encode_locale(struct.locale),
1544415574 "lock" => encode_lock(struct.lock),
1544515575 "long" => encode_long(struct.long),
@@ -15480,6 +15610,8 @@ defmodule TopLevel do
1548015610 "ObjectReader" => encode_object_reader(struct.object_reader),
1548115611 "ObjectWriter" => encode_object_writer(struct.object_writer),
1548215612 "of" => encode_of(struct.of),
15613+ "OffsetDateTime" => encode_offset_date_time(struct.offset_date_time),
15614+ "OffsetTime" => encode_offset_time(struct.offset_time),
1548315615 "oneway" => encode_oneway(struct.oneway),
1548415616 "open" => encode_open(struct.open),
1548515617 "operator" => encode_operator(struct.operator),
Mschema-elmdefault / QuickType.elm+105 −0
@@ -180,6 +180,7 @@ module QuickType exposing
180180 , Lazy
181181 , Left
182182 , ListClass
183+ , LocalDate
183184 , Locale
184185 , Lock
185186 , Long
@@ -216,6 +217,8 @@ module QuickType exposing
216217 , ObjectNode
217218 , ObjectReader
218219 , ObjectWriter
220+ , OffsetDateTime
221+ , OffsetTime
219222 , Oneway
220223 , Open
221224 , Operator
@@ -534,6 +537,7 @@ module QuickType exposing
534537 , UnionLazy(..)
535538 , UnionLeft(..)
536539 , UnionList(..)
540+ , UnionLocalDate(..)
537541 , UnionLocale(..)
538542 , UnionLock(..)
539543 , UnionLong(..)
@@ -570,6 +574,8 @@ module QuickType exposing
570574 , UnionObjectNode(..)
571575 , UnionObjectReader(..)
572576 , UnionObjectWriter(..)
577+ , UnionOffsetDateTime(..)
578+ , UnionOffsetTime(..)
573579 , UnionOneway(..)
574580 , UnionOpen(..)
575581 , UnionOperator(..)
@@ -915,6 +921,7 @@ type alias QuickType =
915921 , left : Maybe UnionLeft
916922 , quickTypeLet : Maybe UnionLet
917923 , list : Maybe UnionList
924+ , localDate : Maybe UnionLocalDate
918925 , locale : Maybe UnionLocale
919926 , lock : Maybe UnionLock
920927 , long : Maybe UnionLong
@@ -955,6 +962,8 @@ type alias QuickType =
955962 , objectReader : Maybe UnionObjectReader
956963 , objectWriter : Maybe UnionObjectWriter
957964 , quickTypeOf : Maybe UnionOf
965+ , offsetDateTime : Maybe UnionOffsetDateTime
966+ , offsetTime : Maybe UnionOffsetTime
958967 , oneway : Maybe UnionOneway
959968 , open : Maybe UnionOpen
960969 , operator : Maybe UnionOperator
@@ -2408,6 +2417,14 @@ type alias ListClass =
24082417 {
24092418 }
24102419
2420+type UnionLocalDate
2421+ = DoubleInUnionLocalDate Float
2422+ | LocalDateInUnionLocalDate LocalDate
2423+
2424+type alias LocalDate =
2425+ {
2426+ }
2427+
24112428 type UnionLocale
24122429 = DoubleInUnionLocale Float
24132430 | LocaleInUnionLocale Locale
@@ -2696,6 +2713,22 @@ type alias ObjectWriter =
26962713 {
26972714 }
26982715
2716+type UnionOffsetDateTime
2717+ = DoubleInUnionOffsetDateTime Float
2718+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2719+
2720+type alias OffsetDateTime =
2721+ {
2722+ }
2723+
2724+type UnionOffsetTime
2725+ = DoubleInUnionOffsetTime Float
2726+ | OffsetTimeInUnionOffsetTime OffsetTime
2727+
2728+type alias OffsetTime =
2729+ {
2730+ }
2731+
26992732 type UnionOneway
27002733 = DoubleInUnionOneway Float
27012734 | OnewayInUnionOneway Oneway
@@ -4118,6 +4151,7 @@ quickType =
41184151 |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing)
41194152 |> Jpipe.custom (optionalField "let" (Jdec.map Just unionLet) Nothing)
41204153 |> Jpipe.custom (optionalField "list" (Jdec.map Just unionList) Nothing)
4154+ |> Jpipe.custom (optionalField "LocalDate" (Jdec.map Just unionLocalDate) Nothing)
41214155 |> Jpipe.custom (optionalField "Locale" (Jdec.map Just unionLocale) Nothing)
41224156 |> Jpipe.custom (optionalField "lock" (Jdec.map Just unionLock) Nothing)
41234157 |> Jpipe.custom (optionalField "long" (Jdec.map Just unionLong) Nothing)
@@ -4158,6 +4192,8 @@ quickType =
41584192 |> Jpipe.custom (optionalField "ObjectReader" (Jdec.map Just unionObjectReader) Nothing)
41594193 |> Jpipe.custom (optionalField "ObjectWriter" (Jdec.map Just unionObjectWriter) Nothing)
41604194 |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing)
4195+ |> Jpipe.custom (optionalField "OffsetDateTime" (Jdec.map Just unionOffsetDateTime) Nothing)
4196+ |> Jpipe.custom (optionalField "OffsetTime" (Jdec.map Just unionOffsetTime) Nothing)
41614197 |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing)
41624198 |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing)
41634199 |> Jpipe.custom (optionalField "operator" (Jdec.map Just unionOperator) Nothing)
@@ -4477,6 +4513,7 @@ encodeQuickType x =
44774513 , ("left", makeNullableEncoder encodeUnionLeft x.left)
44784514 , ("let", makeNullableEncoder encodeUnionLet x.quickTypeLet)
44794515 , ("list", makeNullableEncoder encodeUnionList x.list)
4516+ , ("LocalDate", makeNullableEncoder encodeUnionLocalDate x.localDate)
44804517 , ("Locale", makeNullableEncoder encodeUnionLocale x.locale)
44814518 , ("lock", makeNullableEncoder encodeUnionLock x.lock)
44824519 , ("long", makeNullableEncoder encodeUnionLong x.long)
@@ -4517,6 +4554,8 @@ encodeQuickType x =
45174554 , ("ObjectReader", makeNullableEncoder encodeUnionObjectReader x.objectReader)
45184555 , ("ObjectWriter", makeNullableEncoder encodeUnionObjectWriter x.objectWriter)
45194556 , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf)
4557+ , ("OffsetDateTime", makeNullableEncoder encodeUnionOffsetDateTime x.offsetDateTime)
4558+ , ("OffsetTime", makeNullableEncoder encodeUnionOffsetTime x.offsetTime)
45204559 , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway)
45214560 , ("open", makeNullableEncoder encodeUnionOpen x.open)
45224561 , ("operator", makeNullableEncoder encodeUnionOperator x.operator)
@@ -8280,6 +8319,28 @@ encodeListClass x =
82808319 [
82818320 ]
82828321
8322+unionLocalDate : Jdec.Decoder UnionLocalDate
8323+unionLocalDate =
8324+ Jdec.oneOf
8325+ [ Jdec.map DoubleInUnionLocalDate Jdec.float
8326+ , Jdec.map LocalDateInUnionLocalDate localDate
8327+ ]
8328+
8329+encodeUnionLocalDate : UnionLocalDate -> Jenc.Value
8330+encodeUnionLocalDate x = case x of
8331+ DoubleInUnionLocalDate y -> Jenc.float y
8332+ LocalDateInUnionLocalDate y -> encodeLocalDate y
8333+
8334+localDate : Jdec.Decoder LocalDate
8335+localDate =
8336+ Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate)
8337+
8338+encodeLocalDate : LocalDate -> Jenc.Value
8339+encodeLocalDate x =
8340+ Jenc.object
8341+ [
8342+ ]
8343+
82838344 unionLocale : Jdec.Decoder UnionLocale
82848345 unionLocale =
82858346 Jdec.oneOf
@@ -9072,6 +9133,50 @@ encodeObjectWriter x =
90729133 [
90739134 ]
90749135
9136+unionOffsetDateTime : Jdec.Decoder UnionOffsetDateTime
9137+unionOffsetDateTime =
9138+ Jdec.oneOf
9139+ [ Jdec.map DoubleInUnionOffsetDateTime Jdec.float
9140+ , Jdec.map OffsetDateTimeInUnionOffsetDateTime offsetDateTime
9141+ ]
9142+
9143+encodeUnionOffsetDateTime : UnionOffsetDateTime -> Jenc.Value
9144+encodeUnionOffsetDateTime x = case x of
9145+ DoubleInUnionOffsetDateTime y -> Jenc.float y
9146+ OffsetDateTimeInUnionOffsetDateTime y -> encodeOffsetDateTime y
9147+
9148+offsetDateTime : Jdec.Decoder OffsetDateTime
9149+offsetDateTime =
9150+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime)
9151+
9152+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
9153+encodeOffsetDateTime x =
9154+ Jenc.object
9155+ [
9156+ ]
9157+
9158+unionOffsetTime : Jdec.Decoder UnionOffsetTime
9159+unionOffsetTime =
9160+ Jdec.oneOf
9161+ [ Jdec.map DoubleInUnionOffsetTime Jdec.float
9162+ , Jdec.map OffsetTimeInUnionOffsetTime offsetTime
9163+ ]
9164+
9165+encodeUnionOffsetTime : UnionOffsetTime -> Jenc.Value
9166+encodeUnionOffsetTime x = case x of
9167+ DoubleInUnionOffsetTime y -> Jenc.float y
9168+ OffsetTimeInUnionOffsetTime y -> encodeOffsetTime y
9169+
9170+offsetTime : Jdec.Decoder OffsetTime
9171+offsetTime =
9172+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime)
9173+
9174+encodeOffsetTime : OffsetTime -> Jenc.Value
9175+encodeOffsetTime x =
9176+ Jenc.object
9177+ [
9178+ ]
9179+
90759180 unionOneway : Jdec.Decoder UnionOneway
90769181 unionOneway =
90779182 Jdec.oneOf
Mschema-flowdefault / TopLevel.js+27 −0
@@ -194,6 +194,7 @@ export type TopLevel = {
194194 left?: UnionLeft;
195195 let?: UnionLet;
196196 list?: UnionList;
197+ LocalDate?: UnionLocalDate;
197198 Locale?: UnionLocale;
198199 lock?: UnionLock;
199200 long?: UnionLong;
@@ -234,6 +235,8 @@ export type TopLevel = {
234235 ObjectReader?: UnionObjectReader;
235236 ObjectWriter?: UnionObjectWriter;
236237 of?: UnionOf;
238+ OffsetDateTime?: UnionOffsetDateTime;
239+ OffsetTime?: UnionOffsetTime;
237240 oneway?: UnionOneway;
238241 open?: UnionOpen;
239242 operator?: UnionOperator;
@@ -573,6 +576,11 @@ export type UnionKSerializer = KSerializer | number;
573576 export type KSerializer = {
574577 };
575578
579+export type UnionLocalDate = LocalDate | number;
580+
581+export type LocalDate = {
582+};
583+
576584 export type UnionLocale = Locale | number;
577585
578586 export type Locale = {
@@ -648,6 +656,16 @@ export type UnionObjectWriter = ObjectWriter | number;
648656 export type ObjectWriter = {
649657 };
650658
659+export type UnionOffsetDateTime = OffsetDateTime | number;
660+
661+export type OffsetDateTime = {
662+};
663+
664+export type UnionOffsetTime = OffsetTime | number;
665+
666+export type OffsetTime = {
667+};
668+
651669 export type UnionPrimitiveKind = PrimitiveKind | number;
652670
653671 export type PrimitiveKind = {
@@ -2508,6 +2526,7 @@ const typeMap: any = {
25082526 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
25092527 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
25102528 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
2529+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
25112530 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
25122531 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
25132532 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -2548,6 +2567,8 @@ const typeMap: any = {
25482567 { json: "ObjectReader", js: "ObjectReader", typ: u(undefined, u(r("ObjectReader"), 3.14)) },
25492568 { json: "ObjectWriter", js: "ObjectWriter", typ: u(undefined, u(r("ObjectWriter"), 3.14)) },
25502569 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
2570+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
2571+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
25512572 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
25522573 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
25532574 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -2762,6 +2783,8 @@ const typeMap: any = {
27622783 ], false),
27632784 "KSerializer": o([
27642785 ], false),
2786+ "LocalDate": o([
2787+ ], false),
27652788 "Locale": o([
27662789 ], false),
27672790 "LongNode": o([
@@ -2792,6 +2815,10 @@ const typeMap: any = {
27922815 ], false),
27932816 "ObjectWriter": o([
27942817 ], false),
2818+ "OffsetDateTime": o([
2819+ ], false),
2820+ "OffsetTime": o([
2821+ ], false),
27952822 "PrimitiveKind": o([
27962823 ], false),
27972824 "Protocol": o([
Mschema-golangdefault / quicktype.go+78 −0
@@ -206,6 +206,7 @@ type TopLevel struct {
206206 Left *UnionLeft `json:"left"`
207207 Let *UnionLet `json:"let"`
208208 List *UnionList `json:"list"`
209+ LocalDate *UnionLocalDate `json:"LocalDate"`
209210 Locale *UnionLocale `json:"Locale"`
210211 Lock *UnionLock `json:"lock"`
211212 Long *UnionLong `json:"long"`
@@ -246,6 +247,8 @@ type TopLevel struct {
246247 ObjectReader *UnionObjectReader `json:"ObjectReader"`
247248 ObjectWriter *UnionObjectWriter `json:"ObjectWriter"`
248249 Of *UnionOf `json:"of"`
250+ OffsetDateTime *UnionOffsetDateTime `json:"OffsetDateTime"`
251+ OffsetTime *UnionOffsetTime `json:"OffsetTime"`
249252 Oneway *UnionOneway `json:"oneway"`
250253 Open *UnionOpen `json:"open"`
251254 Operator *UnionOperator `json:"operator"`
@@ -913,6 +916,9 @@ type Let struct {
913916 type List struct {
914917 }
915918
919+type LocalDate struct {
920+}
921+
916922 type Locale struct {
917923 }
918924
@@ -1027,6 +1033,12 @@ type ObjectWriter struct {
10271033 type Of struct {
10281034 }
10291035
1036+type OffsetDateTime struct {
1037+}
1038+
1039+type OffsetTime struct {
1040+}
1041+
10301042 type Oneway struct {
10311043 }
10321044
@@ -5357,6 +5369,28 @@ func (x *UnionList) MarshalJSON() ([]byte, error) {
53575369 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.List != nil, x.List, false, nil, false, nil, false)
53585370 }
53595371
5372+type UnionLocalDate struct {
5373+ Double *float64
5374+ LocalDate *LocalDate
5375+}
5376+
5377+func (x *UnionLocalDate) UnmarshalJSON(data []byte) error {
5378+ x.LocalDate = nil
5379+ var c LocalDate
5380+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5381+ if err != nil {
5382+ return err
5383+ }
5384+ if object {
5385+ x.LocalDate = &c
5386+ }
5387+ return nil
5388+}
5389+
5390+func (x *UnionLocalDate) MarshalJSON() ([]byte, error) {
5391+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.LocalDate != nil, x.LocalDate, false, nil, false, nil, false)
5392+}
5393+
53605394 type UnionLocale struct {
53615395 Double *float64
53625396 Locale *Locale
@@ -6193,6 +6227,50 @@ func (x *UnionOf) MarshalJSON() ([]byte, error) {
61936227 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Of != nil, x.Of, false, nil, false, nil, false)
61946228 }
61956229
6230+type UnionOffsetDateTime struct {
6231+ Double *float64
6232+ OffsetDateTime *OffsetDateTime
6233+}
6234+
6235+func (x *UnionOffsetDateTime) UnmarshalJSON(data []byte) error {
6236+ x.OffsetDateTime = nil
6237+ var c OffsetDateTime
6238+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
6239+ if err != nil {
6240+ return err
6241+ }
6242+ if object {
6243+ x.OffsetDateTime = &c
6244+ }
6245+ return nil
6246+}
6247+
6248+func (x *UnionOffsetDateTime) MarshalJSON() ([]byte, error) {
6249+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetDateTime != nil, x.OffsetDateTime, false, nil, false, nil, false)
6250+}
6251+
6252+type UnionOffsetTime struct {
6253+ Double *float64
6254+ OffsetTime *OffsetTime
6255+}
6256+
6257+func (x *UnionOffsetTime) UnmarshalJSON(data []byte) error {
6258+ x.OffsetTime = nil
6259+ var c OffsetTime
6260+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
6261+ if err != nil {
6262+ return err
6263+ }
6264+ if object {
6265+ x.OffsetTime = &c
6266+ }
6267+ return nil
6268+}
6269+
6270+func (x *UnionOffsetTime) MarshalJSON() ([]byte, error) {
6271+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetTime != nil, x.OffsetTime, false, nil, false, nil, false)
6272+}
6273+
61966274 type UnionOneway struct {
61976275 Double *float64
61986276 Oneway *Oneway
Mschema-haskelldefault / QuickType.hs+85 −1
@@ -169,6 +169,7 @@ module QuickType
169169 , Lazy (..)
170170 , LeftClass (..)
171171 , List (..)
172+ , LocalDate (..)
172173 , Locale (..)
173174 , Lock (..)
174175 , Long (..)
@@ -205,6 +206,8 @@ module QuickType
205206 , ObjectNode (..)
206207 , ObjectReader (..)
207208 , ObjectWriter (..)
209+ , OffsetDateTime (..)
210+ , OffsetTime (..)
208211 , Oneway (..)
209212 , Open (..)
210213 , Operator (..)
@@ -523,6 +526,7 @@ module QuickType
523526 , UnionLazy (..)
524527 , UnionLeft (..)
525528 , UnionList (..)
529+ , UnionLocalDate (..)
526530 , UnionLocale (..)
527531 , UnionLock (..)
528532 , UnionLong (..)
@@ -559,6 +563,8 @@ module QuickType
559563 , UnionObjectNode (..)
560564 , UnionObjectReader (..)
561565 , UnionObjectWriter (..)
566+ , UnionOffsetDateTime (..)
567+ , UnionOffsetTime (..)
562568 , UnionOneway (..)
563569 , UnionOpen (..)
564570 , UnionOperator (..)
@@ -905,6 +911,7 @@ data QuickType = QuickType
905911 , leftQuickType :: Maybe UnionLeft
906912 , quickTypeLetQuickType :: Maybe UnionLet
907913 , listQuickType :: Maybe UnionList
914+ , localDateQuickType :: Maybe UnionLocalDate
908915 , localeQuickType :: Maybe UnionLocale
909916 , lockQuickType :: Maybe UnionLock
910917 , longQuickType :: Maybe UnionLong
@@ -945,6 +952,8 @@ data QuickType = QuickType
945952 , objectReaderQuickType :: Maybe UnionObjectReader
946953 , objectWriterQuickType :: Maybe UnionObjectWriter
947954 , quickTypeOfQuickType :: Maybe UnionOf
955+ , offsetDateTimeQuickType :: Maybe UnionOffsetDateTime
956+ , offsetTimeQuickType :: Maybe UnionOffsetTime
948957 , onewayQuickType :: Maybe UnionOneway
949958 , openQuickType :: Maybe UnionOpen
950959 , operatorQuickType :: Maybe UnionOperator
@@ -2572,6 +2581,15 @@ data List = List
25722581 {
25732582 } deriving (Show)
25742583
2584+data UnionLocalDate
2585+ = DoubleInUnionLocalDate Double
2586+ | LocalDateInUnionLocalDate LocalDate
2587+ deriving (Show)
2588+
2589+data LocalDate = LocalDate
2590+ {
2591+ } deriving (Show)
2592+
25752593 data UnionLocale
25762594 = DoubleInUnionLocale Double
25772595 | LocaleInUnionLocale Locale
@@ -2896,6 +2914,24 @@ data ObjectWriter = ObjectWriter
28962914 {
28972915 } deriving (Show)
28982916
2917+data UnionOffsetDateTime
2918+ = DoubleInUnionOffsetDateTime Double
2919+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2920+ deriving (Show)
2921+
2922+data OffsetDateTime = OffsetDateTime
2923+ {
2924+ } deriving (Show)
2925+
2926+data UnionOffsetTime
2927+ = DoubleInUnionOffsetTime Double
2928+ | OffsetTimeInUnionOffsetTime OffsetTime
2929+ deriving (Show)
2930+
2931+data OffsetTime = OffsetTime
2932+ {
2933+ } deriving (Show)
2934+
28992935 data UnionOneway
29002936 = DoubleInUnionOneway Double
29012937 | OnewayInUnionOneway Oneway
@@ -4268,7 +4304,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
42684304 decodeTopLevel = decode
42694305
42704306 instance ToJSON QuickType where
4271- toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType arrayNodeQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType booleanNodeQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType deserializationFeatureQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType doubleNodeQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromDictQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType intNodeQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType kSerializerQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType longNodeQuickType mapQuickType mapEntryQuickType marshalJSONQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullNodeQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType objectNodeQuickType objectReaderQuickType objectWriterQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType primitiveKindQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serialDescriptorQuickType serializableQuickType serializationFeatureQuickType serializeQuickType serializerProviderQuickType serialNameQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType textNodeQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toDictQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unmarshalJSONQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4307+ toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType arrayNodeQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType booleanNodeQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType deserializationFeatureQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType doubleNodeQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromDictQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType intNodeQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType kSerializerQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localDateQuickType localeQuickType lockQuickType longQuickType longNodeQuickType mapQuickType mapEntryQuickType marshalJSONQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullNodeQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType objectNodeQuickType objectReaderQuickType objectWriterQuickType quickTypeOfQuickType offsetDateTimeQuickType offsetTimeQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType primitiveKindQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serialDescriptorQuickType serializableQuickType serializationFeatureQuickType serializeQuickType serializerProviderQuickType serialNameQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType textNodeQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toDictQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unmarshalJSONQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
42724308 object $ foldMap (maybe [] pure)
42734309 [ ("_" .=) <$> emptyQuickType
42744310 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4454,6 +4490,7 @@ instance ToJSON QuickType where
44544490 , ("left" .=) <$> leftQuickType
44554491 , ("let" .=) <$> quickTypeLetQuickType
44564492 , ("list" .=) <$> listQuickType
4493+ , ("LocalDate" .=) <$> localDateQuickType
44574494 , ("Locale" .=) <$> localeQuickType
44584495 , ("lock" .=) <$> lockQuickType
44594496 , ("long" .=) <$> longQuickType
@@ -4494,6 +4531,8 @@ instance ToJSON QuickType where
44944531 , ("ObjectReader" .=) <$> objectReaderQuickType
44954532 , ("ObjectWriter" .=) <$> objectWriterQuickType
44964533 , ("of" .=) <$> quickTypeOfQuickType
4534+ , ("OffsetDateTime" .=) <$> offsetDateTimeQuickType
4535+ , ("OffsetTime" .=) <$> offsetTimeQuickType
44974536 , ("oneway" .=) <$> onewayQuickType
44984537 , ("open" .=) <$> openQuickType
44994538 , ("operator" .=) <$> operatorQuickType
@@ -4813,6 +4852,7 @@ instance FromJSON QuickType where
48134852 <*> v .:! "left"
48144853 <*> v .:! "let"
48154854 <*> v .:! "list"
4855+ <*> v .:! "LocalDate"
48164856 <*> v .:! "Locale"
48174857 <*> v .:! "lock"
48184858 <*> v .:! "long"
@@ -4853,6 +4893,8 @@ instance FromJSON QuickType where
48534893 <*> v .:! "ObjectReader"
48544894 <*> v .:! "ObjectWriter"
48554895 <*> v .:! "of"
4896+ <*> v .:! "OffsetDateTime"
4897+ <*> v .:! "OffsetTime"
48564898 <*> v .:! "oneway"
48574899 <*> v .:! "open"
48584900 <*> v .:! "operator"
@@ -7309,6 +7351,20 @@ instance ToJSON List where
73097351 instance FromJSON List where
73107352 parseJSON (Object _) = return List
73117353
7354+instance ToJSON UnionLocalDate where
7355+ toJSON (DoubleInUnionLocalDate x) = toJSON x
7356+ toJSON (LocalDateInUnionLocalDate x) = toJSON x
7357+
7358+instance FromJSON UnionLocalDate where
7359+ parseJSON xs@(Number _) = (fmap DoubleInUnionLocalDate . parseJSON) xs
7360+ parseJSON xs@(Object _) = (fmap LocalDateInUnionLocalDate . parseJSON) xs
7361+
7362+instance ToJSON LocalDate where
7363+ toJSON = \_ -> emptyObject
7364+
7365+instance FromJSON LocalDate where
7366+ parseJSON (Object _) = return LocalDate
7367+
73127368 instance ToJSON UnionLocale where
73137369 toJSON (DoubleInUnionLocale x) = toJSON x
73147370 toJSON (LocaleInUnionLocale x) = toJSON x
@@ -7813,6 +7869,34 @@ instance ToJSON ObjectWriter where
78137869 instance FromJSON ObjectWriter where
78147870 parseJSON (Object _) = return ObjectWriter
78157871
7872+instance ToJSON UnionOffsetDateTime where
7873+ toJSON (DoubleInUnionOffsetDateTime x) = toJSON x
7874+ toJSON (OffsetDateTimeInUnionOffsetDateTime x) = toJSON x
7875+
7876+instance FromJSON UnionOffsetDateTime where
7877+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetDateTime . parseJSON) xs
7878+ parseJSON xs@(Object _) = (fmap OffsetDateTimeInUnionOffsetDateTime . parseJSON) xs
7879+
7880+instance ToJSON OffsetDateTime where
7881+ toJSON = \_ -> emptyObject
7882+
7883+instance FromJSON OffsetDateTime where
7884+ parseJSON (Object _) = return OffsetDateTime
7885+
7886+instance ToJSON UnionOffsetTime where
7887+ toJSON (DoubleInUnionOffsetTime x) = toJSON x
7888+ toJSON (OffsetTimeInUnionOffsetTime x) = toJSON x
7889+
7890+instance FromJSON UnionOffsetTime where
7891+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetTime . parseJSON) xs
7892+ parseJSON xs@(Object _) = (fmap OffsetTimeInUnionOffsetTime . parseJSON) xs
7893+
7894+instance ToJSON OffsetTime where
7895+ toJSON = \_ -> emptyObject
7896+
7897+instance FromJSON OffsetTime where
7898+ parseJSON (Object _) = return OffsetTime
7899+
78167900 instance ToJSON UnionOneway where
78177901 toJSON (DoubleInUnionOneway x) = toJSON x
78187902 toJSON (OnewayInUnionOneway x) = toJSON x
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class LocalDate {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetDateTime {
7+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetTime {
7+}
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -187,6 +187,7 @@ public class TopLevel {
187187 private UnionLeft left;
188188 private UnionLet let;
189189 private UnionList list;
190+ private UnionLocalDate localDate;
190191 private UnionLocale locale;
191192 private UnionLock lock;
192193 private UnionLong topLevelLong;
@@ -227,6 +228,8 @@ public class TopLevel {
227228 private UnionObjectReader objectReader;
228229 private UnionObjectWriter objectWriter;
229230 private UnionOf of;
231+ private UnionOffsetDateTime offsetDateTime;
232+ private UnionOffsetTime offsetTime;
230233 private UnionOneway oneway;
231234 private UnionOpen open;
232235 private UnionOperator operator;
@@ -1279,6 +1282,11 @@ public class TopLevel {
12791282 @JsonProperty("list")
12801283 public void setList(UnionList value) { this.list = value; }
12811284
1285+ @JsonProperty("LocalDate")
1286+ public UnionLocalDate getLocalDate() { return localDate; }
1287+ @JsonProperty("LocalDate")
1288+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1289+
12821290 @JsonProperty("Locale")
12831291 public UnionLocale getLocale() { return locale; }
12841292 @JsonProperty("Locale")
@@ -1479,6 +1487,16 @@ public class TopLevel {
14791487 @JsonProperty("of")
14801488 public void setOf(UnionOf value) { this.of = value; }
14811489
1490+ @JsonProperty("OffsetDateTime")
1491+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1492+ @JsonProperty("OffsetDateTime")
1493+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1494+
1495+ @JsonProperty("OffsetTime")
1496+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1497+ @JsonProperty("OffsetTime")
1498+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1499+
14821500 @JsonProperty("oneway")
14831501 public UnionOneway getOneway() { return oneway; }
14841502 @JsonProperty("oneway")
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionLocalDate.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionLocalDate.Deserializer.class)
11+@JsonSerialize(using = UnionLocalDate.Serializer.class)
12+public class UnionLocalDate {
13+ public Double doubleValue;
14+ public LocalDate localDateValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionLocalDate> {
17+ @Override
18+ public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionLocalDate value = new UnionLocalDate();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.localDateValue = jsonParser.readValueAs(LocalDate.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionLocalDate");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionLocalDate> {
37+ @Override
38+ public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.localDateValue != null) {
44+ jsonGenerator.writeObject(obj.localDateValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetDateTime.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionOffsetDateTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetDateTime.Serializer.class)
12+public class UnionOffsetDateTime {
13+ public Double doubleValue;
14+ public OffsetDateTime offsetDateTimeValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> {
17+ @Override
18+ public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetDateTime value = new UnionOffsetDateTime();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.offsetDateTimeValue = jsonParser.readValueAs(OffsetDateTime.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetDateTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetDateTime> {
37+ @Override
38+ public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetDateTimeValue != null) {
44+ jsonGenerator.writeObject(obj.offsetDateTimeValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetTime.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionOffsetTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetTime.Serializer.class)
12+public class UnionOffsetTime {
13+ public Double doubleValue;
14+ public OffsetTime offsetTimeValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetTime> {
17+ @Override
18+ public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetTime value = new UnionOffsetTime();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.offsetTimeValue = jsonParser.readValueAs(OffsetTime.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetTime> {
37+ @Override
38+ public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetTimeValue != null) {
44+ jsonGenerator.writeObject(obj.offsetTimeValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class LocalDateClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetDateTimeClass {
7+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetTimeClass {
7+}
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -187,6 +187,7 @@ public class TopLevel {
187187 private UnionLeft left;
188188 private UnionLet let;
189189 private UnionList list;
190+ private UnionLocalDate localDate;
190191 private UnionLocale locale;
191192 private UnionLock lock;
192193 private UnionLong topLevelLong;
@@ -227,6 +228,8 @@ public class TopLevel {
227228 private UnionObjectReader objectReader;
228229 private UnionObjectWriter objectWriter;
229230 private UnionOf of;
231+ private UnionOffsetDateTime offsetDateTime;
232+ private UnionOffsetTime offsetTime;
230233 private UnionOneway oneway;
231234 private UnionOpen open;
232235 private UnionOperator operator;
@@ -1279,6 +1282,11 @@ public class TopLevel {
12791282 @JsonProperty("list")
12801283 public void setList(UnionList value) { this.list = value; }
12811284
1285+ @JsonProperty("LocalDate")
1286+ public UnionLocalDate getLocalDate() { return localDate; }
1287+ @JsonProperty("LocalDate")
1288+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1289+
12821290 @JsonProperty("Locale")
12831291 public UnionLocale getLocale() { return locale; }
12841292 @JsonProperty("Locale")
@@ -1479,6 +1487,16 @@ public class TopLevel {
14791487 @JsonProperty("of")
14801488 public void setOf(UnionOf value) { this.of = value; }
14811489
1490+ @JsonProperty("OffsetDateTime")
1491+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1492+ @JsonProperty("OffsetDateTime")
1493+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1494+
1495+ @JsonProperty("OffsetTime")
1496+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1497+ @JsonProperty("OffsetTime")
1498+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1499+
14821500 @JsonProperty("oneway")
14831501 public UnionOneway getOneway() { return oneway; }
14841502 @JsonProperty("oneway")
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionLocalDate.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionLocalDate.Deserializer.class)
11+@JsonSerialize(using = UnionLocalDate.Serializer.class)
12+public class UnionLocalDate {
13+ public Double doubleValue;
14+ public LocalDateClass localDateClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionLocalDate> {
17+ @Override
18+ public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionLocalDate value = new UnionLocalDate();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionLocalDate");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionLocalDate> {
37+ @Override
38+ public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.localDateClassValue != null) {
44+ jsonGenerator.writeObject(obj.localDateClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetDateTime.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionOffsetDateTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetDateTime.Serializer.class)
12+public class UnionOffsetDateTime {
13+ public Double doubleValue;
14+ public OffsetDateTimeClass offsetDateTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> {
17+ @Override
18+ public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetDateTime value = new UnionOffsetDateTime();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetDateTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetDateTime> {
37+ @Override
38+ public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetDateTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetDateTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetTime.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionOffsetTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetTime.Serializer.class)
12+public class UnionOffsetTime {
13+ public Double doubleValue;
14+ public OffsetTimeClass offsetTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetTime> {
17+ @Override
18+ public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetTime value = new UnionOffsetTime();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetTime> {
37+ @Override
38+ public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class LocalDateClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetDateTimeClass {
7+}
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClass.java+7 −0
@@ -0,0 +1,7 @@
1+package io.quicktype;
2+
3+import com.fasterxml.jackson.annotation.*;
4+
5+@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE)
6+public class OffsetTimeClass {
7+}
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
@@ -187,6 +187,7 @@ public class TopLevel {
187187 private UnionLeft left;
188188 private UnionLet let;
189189 private UnionList list;
190+ private UnionLocalDate localDate;
190191 private UnionLocale locale;
191192 private UnionLock lock;
192193 private UnionLong topLevelLong;
@@ -227,6 +228,8 @@ public class TopLevel {
227228 private UnionObjectReader objectReader;
228229 private UnionObjectWriter objectWriter;
229230 private UnionOf of;
231+ private UnionOffsetDateTime offsetDateTime;
232+ private UnionOffsetTime offsetTime;
230233 private UnionOneway oneway;
231234 private UnionOpen open;
232235 private UnionOperator operator;
@@ -1279,6 +1282,11 @@ public class TopLevel {
12791282 @JsonProperty("list")
12801283 public void setList(UnionList value) { this.list = value; }
12811284
1285+ @JsonProperty("LocalDate")
1286+ public UnionLocalDate getLocalDate() { return localDate; }
1287+ @JsonProperty("LocalDate")
1288+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1289+
12821290 @JsonProperty("Locale")
12831291 public UnionLocale getLocale() { return locale; }
12841292 @JsonProperty("Locale")
@@ -1479,6 +1487,16 @@ public class TopLevel {
14791487 @JsonProperty("of")
14801488 public void setOf(UnionOf value) { this.of = value; }
14811489
1490+ @JsonProperty("OffsetDateTime")
1491+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1492+ @JsonProperty("OffsetDateTime")
1493+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1494+
1495+ @JsonProperty("OffsetTime")
1496+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1497+ @JsonProperty("OffsetTime")
1498+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1499+
14821500 @JsonProperty("oneway")
14831501 public UnionOneway getOneway() { return oneway; }
14841502 @JsonProperty("oneway")
Aschema-javadefault / src / main / java / io / quicktype / UnionLocalDate.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionLocalDate.Deserializer.class)
11+@JsonSerialize(using = UnionLocalDate.Serializer.class)
12+public class UnionLocalDate {
13+ public Double doubleValue;
14+ public LocalDateClass localDateClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionLocalDate> {
17+ @Override
18+ public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionLocalDate value = new UnionLocalDate();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionLocalDate");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionLocalDate> {
37+ @Override
38+ public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.localDateClassValue != null) {
44+ jsonGenerator.writeObject(obj.localDateClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetDateTime.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionOffsetDateTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetDateTime.Serializer.class)
12+public class UnionOffsetDateTime {
13+ public Double doubleValue;
14+ public OffsetDateTimeClass offsetDateTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> {
17+ @Override
18+ public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetDateTime value = new UnionOffsetDateTime();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetDateTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetDateTime> {
37+ @Override
38+ public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetDateTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetDateTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetTime.java+50 −0
@@ -0,0 +1,50 @@
1+package io.quicktype;
2+
3+import java.io.IOException;
4+import java.io.IOException;
5+import com.fasterxml.jackson.core.*;
6+import com.fasterxml.jackson.databind.*;
7+import com.fasterxml.jackson.databind.annotation.*;
8+import com.fasterxml.jackson.core.type.*;
9+
10+@JsonDeserialize(using = UnionOffsetTime.Deserializer.class)
11+@JsonSerialize(using = UnionOffsetTime.Serializer.class)
12+public class UnionOffsetTime {
13+ public Double doubleValue;
14+ public OffsetTimeClass offsetTimeClassValue;
15+
16+ static class Deserializer extends JsonDeserializer<UnionOffsetTime> {
17+ @Override
18+ public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
19+ UnionOffsetTime value = new UnionOffsetTime();
20+ switch (jsonParser.currentToken()) {
21+ case VALUE_NULL:
22+ break;
23+ case VALUE_NUMBER_INT:
24+ case VALUE_NUMBER_FLOAT:
25+ value.doubleValue = jsonParser.readValueAs(Double.class);
26+ break;
27+ case START_OBJECT:
28+ value.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class);
29+ break;
30+ default: throw new IOException("Cannot deserialize UnionOffsetTime");
31+ }
32+ return value;
33+ }
34+ }
35+
36+ static class Serializer extends JsonSerializer<UnionOffsetTime> {
37+ @Override
38+ public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
39+ if (obj.doubleValue != null) {
40+ jsonGenerator.writeObject(obj.doubleValue);
41+ return;
42+ }
43+ if (obj.offsetTimeClassValue != null) {
44+ jsonGenerator.writeObject(obj.offsetTimeClassValue);
45+ return;
46+ }
47+ jsonGenerator.writeNull();
48+ }
49+ }
50+}
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
@@ -54,6 +54,7 @@ let _JSONParser;
5454 let _JSONReader;
5555 let _JSONTokenType;
5656 let _KSerializer;
57+let _LocalDate;
5758 let _Locale;
5859 let _LongNode;
5960 let _MapEntry;
@@ -69,6 +70,8 @@ let _ObjectMapper;
6970 let _ObjectNode;
7071 let _ObjectReader;
7172 let _ObjectWriter;
73+let _OffsetDateTime;
74+let _OffsetTime;
7275 let _PrimitiveKind;
7376 let _Protocol;
7477 let _RegExp;
@@ -449,6 +452,8 @@ _JSONTokenType = PropTypes.shape({
449452 });
450453 _KSerializer = PropTypes.shape({
451454 });
455+_LocalDate = PropTypes.shape({
456+});
452457 _Locale = PropTypes.shape({
453458 });
454459 _LongNode = PropTypes.shape({
@@ -479,6 +484,10 @@ _ObjectReader = PropTypes.shape({
479484 });
480485 _ObjectWriter = PropTypes.shape({
481486 });
487+_OffsetDateTime = PropTypes.shape({
488+});
489+_OffsetTime = PropTypes.shape({
490+});
482491 _PrimitiveKind = PropTypes.shape({
483492 });
484493 _Protocol = PropTypes.shape({
@@ -1260,6 +1269,7 @@ _TopLevel = PropTypes.shape({
12601269 "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]),
12611270 "let": PropTypes.oneOfType([_Let, PropTypes.number, PropTypes.oneOf([null])]),
12621271 "list": PropTypes.oneOfType([_List, PropTypes.number, PropTypes.oneOf([null])]),
1272+ "LocalDate": PropTypes.oneOfType([_LocalDate, PropTypes.number, PropTypes.oneOf([null])]),
12631273 "Locale": PropTypes.oneOfType([_Locale, PropTypes.number, PropTypes.oneOf([null])]),
12641274 "lock": PropTypes.oneOfType([_Lock, PropTypes.number, PropTypes.oneOf([null])]),
12651275 "long": PropTypes.oneOfType([_Long, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1300,6 +1310,8 @@ _TopLevel = PropTypes.shape({
13001310 "ObjectReader": PropTypes.oneOfType([_ObjectReader, PropTypes.number, PropTypes.oneOf([null])]),
13011311 "ObjectWriter": PropTypes.oneOfType([_ObjectWriter, PropTypes.number, PropTypes.oneOf([null])]),
13021312 "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]),
1313+ "OffsetDateTime": PropTypes.oneOfType([_OffsetDateTime, PropTypes.number, PropTypes.oneOf([null])]),
1314+ "OffsetTime": PropTypes.oneOfType([_OffsetTime, PropTypes.number, PropTypes.oneOf([null])]),
13031315 "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]),
13041316 "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]),
13051317 "operator": PropTypes.oneOfType([_Operator, PropTypes.number, PropTypes.oneOf([null])]),
Mschema-javascriptdefault / TopLevel.js+9 −0
@@ -377,6 +377,7 @@ const typeMap = {
377377 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
378378 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
379379 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
380+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
380381 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
381382 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
382383 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -417,6 +418,8 @@ const typeMap = {
417418 { json: "ObjectReader", js: "ObjectReader", typ: u(undefined, u(r("ObjectReader"), 3.14)) },
418419 { json: "ObjectWriter", js: "ObjectWriter", typ: u(undefined, u(r("ObjectWriter"), 3.14)) },
419420 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
421+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
422+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
420423 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
421424 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
422425 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -631,6 +634,8 @@ const typeMap = {
631634 ], false),
632635 "KSerializer": o([
633636 ], false),
637+ "LocalDate": o([
638+ ], false),
634639 "Locale": o([
635640 ], false),
636641 "LongNode": o([
@@ -661,6 +666,10 @@ const typeMap = {
661666 ], false),
662667 "ObjectWriter": o([
663668 ], false),
669+ "OffsetDateTime": o([
670+ ], false),
671+ "OffsetTime": o([
672+ ], false),
664673 "PrimitiveKind": o([
665674 ], false),
666675 "Protocol": o([
Mschema-objective-cdefault / QTTopLevel.h+15 −0
@@ -160,6 +160,7 @@
160160 @class QTLeft;
161161 @class QTLet;
162162 @class QTList;
163+@class QTLocalDate;
163164 @class QTLocale;
164165 @class QTLock;
165166 @class QTLongNode;
@@ -194,6 +195,8 @@
194195 @class QTObjectReader;
195196 @class QTObjectWriter;
196197 @class QTOf;
198+@class QTOffsetDateTime;
199+@class QTOffsetTime;
197200 @class QTOneway;
198201 @class QTOpen;
199202 @class QTOperator;
@@ -557,6 +560,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
557560 @property (nonatomic, nullable, copy) id left;
558561 @property (nonatomic, nullable, copy) id let;
559562 @property (nonatomic, nullable, copy) id list;
563+@property (nonatomic, nullable, copy) id localDate;
560564 @property (nonatomic, nullable, copy) id locale;
561565 @property (nonatomic, nullable, copy) id lock;
562566 @property (nonatomic, nullable, copy) id qtTopLevelLong;
@@ -597,6 +601,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
597601 @property (nonatomic, nullable, copy) id objectReader;
598602 @property (nonatomic, nullable, copy) id objectWriter;
599603 @property (nonatomic, nullable, copy) id of;
604+@property (nonatomic, nullable, copy) id offsetDateTime;
605+@property (nonatomic, nullable, copy) id offsetTime;
600606 @property (nonatomic, nullable, copy) id oneway;
601607 @property (nonatomic, nullable, copy) id open;
602608 @property (nonatomic, nullable, copy) id operator;
@@ -1197,6 +1203,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11971203 @interface QTList : NSObject
11981204 @end
11991205
1206+@interface QTLocalDate : NSObject
1207+@end
1208+
12001209 @interface QTLocale : NSObject
12011210 @end
12021211
@@ -1299,6 +1308,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12991308 @interface QTOf : NSObject
13001309 @end
13011310
1311+@interface QTOffsetDateTime : NSObject
1312+@end
1313+
1314+@interface QTOffsetTime : NSObject
1315+@end
1316+
13021317 @interface QTOneway : NSObject
13031318 @end
Mschema-objective-cdefault / QTTopLevel.m+135 −0
@@ -783,6 +783,11 @@ NS_ASSUME_NONNULL_BEGIN
783783 - (NSDictionary *)JSONDictionary;
784784 @end
785785
786+@interface QTLocalDate (JSONConversion)
787++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
788+- (NSDictionary *)JSONDictionary;
789+@end
790+
786791 @interface QTLocale (JSONConversion)
787792 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
788793 - (NSDictionary *)JSONDictionary;
@@ -953,6 +958,16 @@ NS_ASSUME_NONNULL_BEGIN
953958 - (NSDictionary *)JSONDictionary;
954959 @end
955960
961+@interface QTOffsetDateTime (JSONConversion)
962++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
963+- (NSDictionary *)JSONDictionary;
964+@end
965+
966+@interface QTOffsetTime (JSONConversion)
967++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
968+- (NSDictionary *)JSONDictionary;
969+@end
970+
956971 @interface QTOneway (JSONConversion)
957972 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
958973 - (NSDictionary *)JSONDictionary;
@@ -2008,6 +2023,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
20082023 @"left": @"left",
20092024 @"let": @"let",
20102025 @"list": @"list",
2026+ @"LocalDate": @"localDate",
20112027 @"Locale": @"locale",
20122028 @"lock": @"lock",
20132029 @"long": @"qtTopLevelLong",
@@ -2048,6 +2064,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
20482064 @"ObjectReader": @"objectReader",
20492065 @"ObjectWriter": @"objectWriter",
20502066 @"of": @"of",
2067+ @"OffsetDateTime": @"offsetDateTime",
2068+ @"OffsetTime": @"offsetTime",
20512069 @"oneway": @"oneway",
20522070 @"open": @"open",
20532071 @"operator": @"operator",
@@ -8249,6 +8267,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
82498267 }
82508268 @end
82518269
8270+@implementation QTLocalDate
8271++ (NSDictionary<NSString *, NSString *> *)properties
8272+{
8273+ static NSDictionary<NSString *, NSString *> *properties;
8274+ return properties = properties ? properties : @{
8275+ };
8276+}
8277+
8278++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
8279+{
8280+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
8281+}
8282+
8283+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8284+{
8285+ if (self = [super init]) {
8286+ [self setValuesForKeysWithDictionary:dict];
8287+ }
8288+ return self;
8289+}
8290+
8291+- (void)setValue:(nullable id)value forKey:(NSString *)key
8292+{
8293+ id resolved = QTLocalDate.properties[key];
8294+ if (resolved) [super setValue:value forKey:resolved];
8295+}
8296+
8297+- (void)setNilValueForKey:(NSString *)key
8298+{
8299+ id resolved = QTLocalDate.properties[key];
8300+ if (resolved) [super setValue:@(0) forKey:resolved];
8301+}
8302+
8303+- (NSDictionary *)JSONDictionary
8304+{
8305+ return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues];
8306+}
8307+@end
8308+
82528309 @implementation QTLocale
82538310 + (NSDictionary<NSString *, NSString *> *)properties
82548311 {
@@ -9575,6 +9632,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
95759632 }
95769633 @end
95779634
9635+@implementation QTOffsetDateTime
9636++ (NSDictionary<NSString *, NSString *> *)properties
9637+{
9638+ static NSDictionary<NSString *, NSString *> *properties;
9639+ return properties = properties ? properties : @{
9640+ };
9641+}
9642+
9643++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9644+{
9645+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
9646+}
9647+
9648+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9649+{
9650+ if (self = [super init]) {
9651+ [self setValuesForKeysWithDictionary:dict];
9652+ }
9653+ return self;
9654+}
9655+
9656+- (void)setValue:(nullable id)value forKey:(NSString *)key
9657+{
9658+ id resolved = QTOffsetDateTime.properties[key];
9659+ if (resolved) [super setValue:value forKey:resolved];
9660+}
9661+
9662+- (void)setNilValueForKey:(NSString *)key
9663+{
9664+ id resolved = QTOffsetDateTime.properties[key];
9665+ if (resolved) [super setValue:@(0) forKey:resolved];
9666+}
9667+
9668+- (NSDictionary *)JSONDictionary
9669+{
9670+ return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues];
9671+}
9672+@end
9673+
9674+@implementation QTOffsetTime
9675++ (NSDictionary<NSString *, NSString *> *)properties
9676+{
9677+ static NSDictionary<NSString *, NSString *> *properties;
9678+ return properties = properties ? properties : @{
9679+ };
9680+}
9681+
9682++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9683+{
9684+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
9685+}
9686+
9687+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9688+{
9689+ if (self = [super init]) {
9690+ [self setValuesForKeysWithDictionary:dict];
9691+ }
9692+ return self;
9693+}
9694+
9695+- (void)setValue:(nullable id)value forKey:(NSString *)key
9696+{
9697+ id resolved = QTOffsetTime.properties[key];
9698+ if (resolved) [super setValue:value forKey:resolved];
9699+}
9700+
9701+- (void)setNilValueForKey:(NSString *)key
9702+{
9703+ id resolved = QTOffsetTime.properties[key];
9704+ if (resolved) [super setValue:@(0) forKey:resolved];
9705+}
9706+
9707+- (NSDictionary *)JSONDictionary
9708+{
9709+ return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues];
9710+}
9711+@end
9712+
95789713 @implementation QTOneway
95799714 + (NSDictionary<NSString *, NSString *> *)properties
95809715 {
Mschema-phpdefault / TopLevel.php+556 −172
@@ -188,6 +188,7 @@ class TopLevel {
188188 private Left|float|null $left; // json:left Optional
189189 private Let|float|null $let; // json:let Optional
190190 private ListClass|float|null $list; // json:list Optional
191+ private LocalDate|float|null $localDate; // json:LocalDate Optional
191192 private LocaleClass|float|null $locale; // json:Locale Optional
192193 private Lock|float|null $lock; // json:lock Optional
193194 private Long|float|null $long; // json:long Optional
@@ -228,6 +229,8 @@ class TopLevel {
228229 private ObjectReader|float|null $objectReader; // json:ObjectReader Optional
229230 private ObjectWriter|float|null $objectWriter; // json:ObjectWriter Optional
230231 private Of|float|null $of; // json:of Optional
232+ private OffsetDateTime|float|null $offsetDateTime; // json:OffsetDateTime Optional
233+ private OffsetTime|float|null $offsetTime; // json:OffsetTime Optional
231234 private Oneway|float|null $oneway; // json:oneway Optional
232235 private Open|float|null $open; // json:open Optional
233236 private Operator|float|null $operator; // json:operator Optional
@@ -545,6 +548,7 @@ class TopLevel {
545548 * @param Left|float|null $left
546549 * @param Let|float|null $let
547550 * @param ListClass|float|null $list
551+ * @param LocalDate|float|null $localDate
548552 * @param LocaleClass|float|null $locale
549553 * @param Lock|float|null $lock
550554 * @param Long|float|null $long
@@ -585,6 +589,8 @@ class TopLevel {
585589 * @param ObjectReader|float|null $objectReader
586590 * @param ObjectWriter|float|null $objectWriter
587591 * @param Of|float|null $of
592+ * @param OffsetDateTime|float|null $offsetDateTime
593+ * @param OffsetTime|float|null $offsetTime
588594 * @param Oneway|float|null $oneway
589595 * @param Open|float|null $open
590596 * @param Operator|float|null $operator
@@ -717,7 +723,7 @@ class TopLevel {
717723 * @param Yes|float|null $yes
718724 * @param YieldClass|float|null $yield
719725 */
720- public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, ArrayNode|float|null $arrayNode, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BooleanNode|float|null $booleanNode, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, DeserializationFeature|float|null $deserializationFeature, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, DoubleNode|float|null $doubleNode, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromDict|float|null $fromDict, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, IntNode|float|null $intNode, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, KSerializer|float|null $kSerializer, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, LongNode|float|null $longNode, Map|float|null $map, MapEntry|float|null $mapEntry, MarshalJSON|float|null $marshalJSON, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, NullNode|float|null $nullNode, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, ObjectNode|float|null $objectNode, ObjectReader|float|null $objectReader, ObjectWriter|float|null $objectWriter, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrimitiveKind|float|null $primitiveKind, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, SerializationFeature|float|null $serializationFeature, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, TextNode|float|null $textNode, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToDict|float|null $toDict, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, UnmarshalJSON|float|null $unmarshalJSON, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, UseSerializers|float|null $useSerializers, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) {
726+ public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, ArrayNode|float|null $arrayNode, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BooleanNode|float|null $booleanNode, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, DeserializationFeature|float|null $deserializationFeature, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, DoubleNode|float|null $doubleNode, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromDict|float|null $fromDict, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, IntNode|float|null $intNode, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, KSerializer|float|null $kSerializer, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocalDate|float|null $localDate, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, LongNode|float|null $longNode, Map|float|null $map, MapEntry|float|null $mapEntry, MarshalJSON|float|null $marshalJSON, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, NullNode|float|null $nullNode, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, ObjectNode|float|null $objectNode, ObjectReader|float|null $objectReader, ObjectWriter|float|null $objectWriter, Of|float|null $of, OffsetDateTime|float|null $offsetDateTime, OffsetTime|float|null $offsetTime, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrimitiveKind|float|null $primitiveKind, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, SerializationFeature|float|null $serializationFeature, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, TextNode|float|null $textNode, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToDict|float|null $toDict, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, UnmarshalJSON|float|null $unmarshalJSON, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, UseSerializers|float|null $useSerializers, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) {
721727 $this->empty = $empty;
722728 $this->topLevelBool = $topLevelBool;
723729 $this->complex = $complex;
@@ -902,6 +908,7 @@ class TopLevel {
902908 $this->left = $left;
903909 $this->let = $let;
904910 $this->list = $list;
911+ $this->localDate = $localDate;
905912 $this->locale = $locale;
906913 $this->lock = $lock;
907914 $this->long = $long;
@@ -942,6 +949,8 @@ class TopLevel {
942949 $this->objectReader = $objectReader;
943950 $this->objectWriter = $objectWriter;
944951 $this->of = $of;
952+ $this->offsetDateTime = $offsetDateTime;
953+ $this->offsetTime = $offsetTime;
945954 $this->oneway = $oneway;
946955 $this->open = $open;
947956 $this->operator = $operator;
@@ -15040,6 +15049,82 @@ class TopLevel {
1504015049 return ListClass::sample(); /*214:list*/
1504115050 }
1504215051
15052+ /**
15053+ * @param stdClass|float|null $value
15054+ * @throws Exception
15055+ * @return LocalDate|float|null
15056+ */
15057+ public static function fromLocalDate(stdClass|float|null $value): LocalDate|float|null {
15058+ if (is_null($value)) {
15059+ return $value; /*null*/
15060+ } elseif (is_object($value)) {
15061+ return LocalDate::from($value); /*class*/
15062+ } elseif (is_float($value) || is_int($value)) {
15063+ return $value; /*float*/
15064+ } else {
15065+ throw new Exception('Cannot deserialize union value in TopLevel');
15066+ }
15067+ }
15068+
15069+ /**
15070+ * @throws Exception
15071+ * @return stdClass|float|null
15072+ */
15073+ public function toLocalDate(): stdClass|float|null {
15074+ if (TopLevel::validateLocalDate($this->localDate)) {
15075+ if (is_null($this->localDate)) {
15076+ return $this->localDate; /*null*/
15077+ } elseif ($this->localDate instanceof LocalDate) {
15078+ return $this->localDate->to(); /*class*/
15079+ } elseif (is_float($this->localDate) || is_int($this->localDate)) {
15080+ return $this->localDate; /*float*/
15081+ } else {
15082+ throw new Exception('Union value has no matching member in TopLevel');
15083+ }
15084+ }
15085+ throw new Exception('never get to this TopLevel::localDate');
15086+ }
15087+
15088+ /**
15089+ * @param LocalDate|float|null
15090+ * @return bool
15091+ * @throws Exception
15092+ */
15093+ public static function validateLocalDate(LocalDate|float|null $value): bool {
15094+ if (is_null($value)) {
15095+ if (!is_null($value)) {
15096+ throw new Exception("Attribute Error:TopLevel::localDate");
15097+ }
15098+ } elseif ($value instanceof LocalDate) {
15099+ $value->validate();
15100+ } elseif (is_float($value) || is_int($value)) {
15101+ if (!is_float($value) && !is_int($value)) {
15102+ throw new Exception("Attribute Error:TopLevel::localDate");
15103+ }
15104+ } else {
15105+ throw new Exception("Attribute Error:TopLevel::localDate");
15106+ }
15107+ return true;
15108+ }
15109+
15110+ /**
15111+ * @throws Exception
15112+ * @return LocalDate|float|null
15113+ */
15114+ public function getLocalDate(): LocalDate|float|null {
15115+ if (TopLevel::validateLocalDate($this->localDate)) {
15116+ return $this->localDate;
15117+ }
15118+ throw new Exception('never get to getLocalDate TopLevel::localDate');
15119+ }
15120+
15121+ /**
15122+ * @return LocalDate|float|null
15123+ */
15124+ public static function sampleLocalDate(): LocalDate|float|null {
15125+ return LocalDate::sample(); /*215:localDate*/
15126+ }
15127+
1504315128 /**
1504415129 * @param stdClass|float|null $value
1504515130 * @throws Exception
@@ -15113,7 +15198,7 @@ class TopLevel {
1511315198 * @return LocaleClass|float|null
1511415199 */
1511515200 public static function sampleLocale(): LocaleClass|float|null {
15116- return LocaleClass::sample(); /*215:locale*/
15201+ return LocaleClass::sample(); /*216:locale*/
1511715202 }
1511815203
1511915204 /**
@@ -15189,7 +15274,7 @@ class TopLevel {
1518915274 * @return Lock|float|null
1519015275 */
1519115276 public static function sampleLock(): Lock|float|null {
15192- return Lock::sample(); /*216:lock*/
15277+ return Lock::sample(); /*217:lock*/
1519315278 }
1519415279
1519515280 /**
@@ -15265,7 +15350,7 @@ class TopLevel {
1526515350 * @return Long|float|null
1526615351 */
1526715352 public static function sampleLong(): Long|float|null {
15268- return Long::sample(); /*217:long*/
15353+ return Long::sample(); /*218:long*/
1526915354 }
1527015355
1527115356 /**
@@ -15341,7 +15426,7 @@ class TopLevel {
1534115426 * @return LongNode|float|null
1534215427 */
1534315428 public static function sampleLongNode(): LongNode|float|null {
15344- return LongNode::sample(); /*218:longNode*/
15429+ return LongNode::sample(); /*219:longNode*/
1534515430 }
1534615431
1534715432 /**
@@ -15417,7 +15502,7 @@ class TopLevel {
1541715502 * @return Map|float|null
1541815503 */
1541915504 public static function sampleMap(): Map|float|null {
15420- return Map::sample(); /*219:map*/
15505+ return Map::sample(); /*220:map*/
1542115506 }
1542215507
1542315508 /**
@@ -15493,7 +15578,7 @@ class TopLevel {
1549315578 * @return MapEntry|float|null
1549415579 */
1549515580 public static function sampleMapEntry(): MapEntry|float|null {
15496- return MapEntry::sample(); /*220:mapEntry*/
15581+ return MapEntry::sample(); /*221:mapEntry*/
1549715582 }
1549815583
1549915584 /**
@@ -15569,7 +15654,7 @@ class TopLevel {
1556915654 * @return MarshalJSON|float|null
1557015655 */
1557115656 public static function sampleMarshalJSON(): MarshalJSON|float|null {
15572- return MarshalJSON::sample(); /*221:marshalJSON*/
15657+ return MarshalJSON::sample(); /*222:marshalJSON*/
1557315658 }
1557415659
1557515660 /**
@@ -15645,7 +15730,7 @@ class TopLevel {
1564515730 * @return MetadataPropertyHandling|float|null
1564615731 */
1564715732 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
15648- return MetadataPropertyHandling::sample(); /*222:metadataPropertyHandling*/
15733+ return MetadataPropertyHandling::sample(); /*223:metadataPropertyHandling*/
1564915734 }
1565015735
1565115736 /**
@@ -15721,7 +15806,7 @@ class TopLevel {
1572115806 * @return Module|float|null
1572215807 */
1572315808 public static function sampleModule(): Module|float|null {
15724- return Module::sample(); /*223:module*/
15809+ return Module::sample(); /*224:module*/
1572515810 }
1572615811
1572715812 /**
@@ -15797,7 +15882,7 @@ class TopLevel {
1579715882 * @return Mutable|float|null
1579815883 */
1579915884 public static function sampleMutable(): Mutable|float|null {
15800- return Mutable::sample(); /*224:mutable*/
15885+ return Mutable::sample(); /*225:mutable*/
1580115886 }
1580215887
1580315888 /**
@@ -15873,7 +15958,7 @@ class TopLevel {
1587315958 * @return Mutating|float|null
1587415959 */
1587515960 public static function sampleMutating(): Mutating|float|null {
15876- return Mutating::sample(); /*225:mutating*/
15961+ return Mutating::sample(); /*226:mutating*/
1587715962 }
1587815963
1587915964 /**
@@ -15949,7 +16034,7 @@ class TopLevel {
1594916034 * @return NamespaceClass|float|null
1595016035 */
1595116036 public static function sampleNamespace(): NamespaceClass|float|null {
15952- return NamespaceClass::sample(); /*226:namespace*/
16037+ return NamespaceClass::sample(); /*227:namespace*/
1595316038 }
1595416039
1595516040 /**
@@ -16025,7 +16110,7 @@ class TopLevel {
1602516110 * @return Native|float|null
1602616111 */
1602716112 public static function sampleNative(): Native|float|null {
16028- return Native::sample(); /*227:native*/
16113+ return Native::sample(); /*228:native*/
1602916114 }
1603016115
1603116116 /**
@@ -16101,7 +16186,7 @@ class TopLevel {
1610116186 * @return NewClass|float|null
1610216187 */
1610316188 public static function sampleNew(): NewClass|float|null {
16104- return NewClass::sample(); /*228:new*/
16189+ return NewClass::sample(); /*229:new*/
1610516190 }
1610616191
1610716192 /**
@@ -16177,7 +16262,7 @@ class TopLevel {
1617716262 * @return Newtonsoft|float|null
1617816263 */
1617916264 public static function sampleNewtonsoft(): Newtonsoft|float|null {
16180- return Newtonsoft::sample(); /*229:newtonsoft*/
16265+ return Newtonsoft::sample(); /*230:newtonsoft*/
1618116266 }
1618216267
1618316268 /**
@@ -16253,7 +16338,7 @@ class TopLevel {
1625316338 * @return Nil|float|null
1625416339 */
1625516340 public static function sampleNil(): Nil|float|null {
16256- return Nil::sample(); /*230:nil*/
16341+ return Nil::sample(); /*231:nil*/
1625716342 }
1625816343
1625916344 /**
@@ -16329,7 +16414,7 @@ class TopLevel {
1632916414 * @return No|float|null
1633016415 */
1633116416 public static function sampleNo(): No|float|null {
16332- return No::sample(); /*231:no*/
16417+ return No::sample(); /*232:no*/
1633316418 }
1633416419
1633516420 /**
@@ -16405,7 +16490,7 @@ class TopLevel {
1640516490 * @return Noexcept|float|null
1640616491 */
1640716492 public static function sampleNoexcept(): Noexcept|float|null {
16408- return Noexcept::sample(); /*232:noexcept*/
16493+ return Noexcept::sample(); /*233:noexcept*/
1640916494 }
1641016495
1641116496 /**
@@ -16481,7 +16566,7 @@ class TopLevel {
1648116566 * @return Nonatomic|float|null
1648216567 */
1648316568 public static function sampleNonatomic(): Nonatomic|float|null {
16484- return Nonatomic::sample(); /*233:nonatomic*/
16569+ return Nonatomic::sample(); /*234:nonatomic*/
1648516570 }
1648616571
1648716572 /**
@@ -16557,7 +16642,7 @@ class TopLevel {
1655716642 * @return NoneClass|float|null
1655816643 */
1655916644 public static function sampleTopLevelNone(): NoneClass|float|null {
16560- return NoneClass::sample(); /*234:topLevelNone*/
16645+ return NoneClass::sample(); /*235:topLevelNone*/
1656116646 }
1656216647
1656316648 /**
@@ -16633,7 +16718,7 @@ class TopLevel {
1663316718 * @return None|float|null
1663416719 */
1663516720 public static function sampleNone(): None|float|null {
16636- return None::sample(); /*235:none*/
16721+ return None::sample(); /*236:none*/
1663716722 }
1663816723
1663916724 /**
@@ -16709,7 +16794,7 @@ class TopLevel {
1670916794 * @return Nonlocal|float|null
1671016795 */
1671116796 public static function sampleNonlocal(): Nonlocal|float|null {
16712- return Nonlocal::sample(); /*236:nonlocal*/
16797+ return Nonlocal::sample(); /*237:nonlocal*/
1671316798 }
1671416799
1671516800 /**
@@ -16785,7 +16870,7 @@ class TopLevel {
1678516870 * @return Nonmutating|float|null
1678616871 */
1678716872 public static function sampleNonmutating(): Nonmutating|float|null {
16788- return Nonmutating::sample(); /*237:nonmutating*/
16873+ return Nonmutating::sample(); /*238:nonmutating*/
1678916874 }
1679016875
1679116876 /**
@@ -16861,7 +16946,7 @@ class TopLevel {
1686116946 * @return NoSuchMethod|float|null
1686216947 */
1686316948 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16864- return NoSuchMethod::sample(); /*238:noSuchMethod*/
16949+ return NoSuchMethod::sample(); /*239:noSuchMethod*/
1686516950 }
1686616951
1686716952 /**
@@ -16937,7 +17022,7 @@ class TopLevel {
1693717022 * @return Not|float|null
1693817023 */
1693917024 public static function sampleNot(): Not|float|null {
16940- return Not::sample(); /*239:not*/
17025+ return Not::sample(); /*240:not*/
1694117026 }
1694217027
1694317028 /**
@@ -17013,7 +17098,7 @@ class TopLevel {
1701317098 * @return NotEq|float|null
1701417099 */
1701517100 public static function sampleNotEq(): NotEq|float|null {
17016- return NotEq::sample(); /*240:notEq*/
17101+ return NotEq::sample(); /*241:notEq*/
1701717102 }
1701817103
1701917104 /**
@@ -17089,7 +17174,7 @@ class TopLevel {
1708917174 * @return NSError|float|null
1709017175 */
1709117176 public static function sampleNSError(): NSError|float|null {
17092- return NSError::sample(); /*241:nsError*/
17177+ return NSError::sample(); /*242:nsError*/
1709317178 }
1709417179
1709517180 /**
@@ -17165,7 +17250,7 @@ class TopLevel {
1716517250 * @return NSObject|float|null
1716617251 */
1716717252 public static function sampleNSObject(): NSObject|float|null {
17168- return NSObject::sample(); /*242:nsObject*/
17253+ return NSObject::sample(); /*243:nsObject*/
1716917254 }
1717017255
1717117256 /**
@@ -17241,7 +17326,7 @@ class TopLevel {
1724117326 * @return NSString|float|null
1724217327 */
1724317328 public static function sampleNSString(): NSString|float|null {
17244- return NSString::sample(); /*243:nsString*/
17329+ return NSString::sample(); /*244:nsString*/
1724517330 }
1724617331
1724717332 /**
@@ -17317,7 +17402,7 @@ class TopLevel {
1731717402 * @return NULLClass|float|null
1731817403 */
1731917404 public static function sampleNull(): NULLClass|float|null {
17320- return NULLClass::sample(); /*244:null*/
17405+ return NULLClass::sample(); /*245:null*/
1732117406 }
1732217407
1732317408 /**
@@ -17393,7 +17478,7 @@ class TopLevel {
1739317478 * @return UnionNullNull|float|null
1739417479 */
1739517480 public static function sampleTopLevelNull(): UnionNullNull|float|null {
17396- return UnionNullNull::sample(); /*245:topLevelNull*/
17481+ return UnionNullNull::sample(); /*246:topLevelNull*/
1739717482 }
1739817483
1739917484 /**
@@ -17469,7 +17554,7 @@ class TopLevel {
1746917554 * @return NullNode|float|null
1747017555 */
1747117556 public static function sampleNullNode(): NullNode|float|null {
17472- return NullNode::sample(); /*246:nullNode*/
17557+ return NullNode::sample(); /*247:nullNode*/
1747317558 }
1747417559
1747517560 /**
@@ -17545,7 +17630,7 @@ class TopLevel {
1754517630 * @return Nullptr|float|null
1754617631 */
1754717632 public static function sampleNullptr(): Nullptr|float|null {
17548- return Nullptr::sample(); /*247:nullptr*/
17633+ return Nullptr::sample(); /*248:nullptr*/
1754917634 }
1755017635
1755117636 /**
@@ -17621,7 +17706,7 @@ class TopLevel {
1762117706 * @return Number|float|null
1762217707 */
1762317708 public static function sampleNumber(): Number|float|null {
17624- return Number::sample(); /*248:number*/
17709+ return Number::sample(); /*249:number*/
1762517710 }
1762617711
1762717712 /**
@@ -17697,7 +17782,7 @@ class TopLevel {
1769717782 * @return ObjectClass|float|null
1769817783 */
1769917784 public static function sampleObject(): ObjectClass|float|null {
17700- return ObjectClass::sample(); /*249:object*/
17785+ return ObjectClass::sample(); /*250:object*/
1770117786 }
1770217787
1770317788 /**
@@ -17773,7 +17858,7 @@ class TopLevel {
1777317858 * @return ObjectMapper|float|null
1777417859 */
1777517860 public static function sampleObjectMapper(): ObjectMapper|float|null {
17776- return ObjectMapper::sample(); /*250:objectMapper*/
17861+ return ObjectMapper::sample(); /*251:objectMapper*/
1777717862 }
1777817863
1777917864 /**
@@ -17849,7 +17934,7 @@ class TopLevel {
1784917934 * @return ObjectNode|float|null
1785017935 */
1785117936 public static function sampleObjectNode(): ObjectNode|float|null {
17852- return ObjectNode::sample(); /*251:objectNode*/
17937+ return ObjectNode::sample(); /*252:objectNode*/
1785317938 }
1785417939
1785517940 /**
@@ -17925,7 +18010,7 @@ class TopLevel {
1792518010 * @return ObjectReader|float|null
1792618011 */
1792718012 public static function sampleObjectReader(): ObjectReader|float|null {
17928- return ObjectReader::sample(); /*252:objectReader*/
18013+ return ObjectReader::sample(); /*253:objectReader*/
1792918014 }
1793018015
1793118016 /**
@@ -18001,7 +18086,7 @@ class TopLevel {
1800118086 * @return ObjectWriter|float|null
1800218087 */
1800318088 public static function sampleObjectWriter(): ObjectWriter|float|null {
18004- return ObjectWriter::sample(); /*253:objectWriter*/
18089+ return ObjectWriter::sample(); /*254:objectWriter*/
1800518090 }
1800618091
1800718092 /**
@@ -18077,7 +18162,159 @@ class TopLevel {
1807718162 * @return Of|float|null
1807818163 */
1807918164 public static function sampleOf(): Of|float|null {
18080- return Of::sample(); /*254:of*/
18165+ return Of::sample(); /*255:of*/
18166+ }
18167+
18168+ /**
18169+ * @param stdClass|float|null $value
18170+ * @throws Exception
18171+ * @return OffsetDateTime|float|null
18172+ */
18173+ public static function fromOffsetDateTime(stdClass|float|null $value): OffsetDateTime|float|null {
18174+ if (is_null($value)) {
18175+ return $value; /*null*/
18176+ } elseif (is_object($value)) {
18177+ return OffsetDateTime::from($value); /*class*/
18178+ } elseif (is_float($value) || is_int($value)) {
18179+ return $value; /*float*/
18180+ } else {
18181+ throw new Exception('Cannot deserialize union value in TopLevel');
18182+ }
18183+ }
18184+
18185+ /**
18186+ * @throws Exception
18187+ * @return stdClass|float|null
18188+ */
18189+ public function toOffsetDateTime(): stdClass|float|null {
18190+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
18191+ if (is_null($this->offsetDateTime)) {
18192+ return $this->offsetDateTime; /*null*/
18193+ } elseif ($this->offsetDateTime instanceof OffsetDateTime) {
18194+ return $this->offsetDateTime->to(); /*class*/
18195+ } elseif (is_float($this->offsetDateTime) || is_int($this->offsetDateTime)) {
18196+ return $this->offsetDateTime; /*float*/
18197+ } else {
18198+ throw new Exception('Union value has no matching member in TopLevel');
18199+ }
18200+ }
18201+ throw new Exception('never get to this TopLevel::offsetDateTime');
18202+ }
18203+
18204+ /**
18205+ * @param OffsetDateTime|float|null
18206+ * @return bool
18207+ * @throws Exception
18208+ */
18209+ public static function validateOffsetDateTime(OffsetDateTime|float|null $value): bool {
18210+ if (is_null($value)) {
18211+ if (!is_null($value)) {
18212+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
18213+ }
18214+ } elseif ($value instanceof OffsetDateTime) {
18215+ $value->validate();
18216+ } elseif (is_float($value) || is_int($value)) {
18217+ if (!is_float($value) && !is_int($value)) {
18218+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
18219+ }
18220+ } else {
18221+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
18222+ }
18223+ return true;
18224+ }
18225+
18226+ /**
18227+ * @throws Exception
18228+ * @return OffsetDateTime|float|null
18229+ */
18230+ public function getOffsetDateTime(): OffsetDateTime|float|null {
18231+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
18232+ return $this->offsetDateTime;
18233+ }
18234+ throw new Exception('never get to getOffsetDateTime TopLevel::offsetDateTime');
18235+ }
18236+
18237+ /**
18238+ * @return OffsetDateTime|float|null
18239+ */
18240+ public static function sampleOffsetDateTime(): OffsetDateTime|float|null {
18241+ return OffsetDateTime::sample(); /*256:offsetDateTime*/
18242+ }
18243+
18244+ /**
18245+ * @param stdClass|float|null $value
18246+ * @throws Exception
18247+ * @return OffsetTime|float|null
18248+ */
18249+ public static function fromOffsetTime(stdClass|float|null $value): OffsetTime|float|null {
18250+ if (is_null($value)) {
18251+ return $value; /*null*/
18252+ } elseif (is_object($value)) {
18253+ return OffsetTime::from($value); /*class*/
18254+ } elseif (is_float($value) || is_int($value)) {
18255+ return $value; /*float*/
18256+ } else {
18257+ throw new Exception('Cannot deserialize union value in TopLevel');
18258+ }
18259+ }
18260+
18261+ /**
18262+ * @throws Exception
18263+ * @return stdClass|float|null
18264+ */
18265+ public function toOffsetTime(): stdClass|float|null {
18266+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
18267+ if (is_null($this->offsetTime)) {
18268+ return $this->offsetTime; /*null*/
18269+ } elseif ($this->offsetTime instanceof OffsetTime) {
18270+ return $this->offsetTime->to(); /*class*/
18271+ } elseif (is_float($this->offsetTime) || is_int($this->offsetTime)) {
18272+ return $this->offsetTime; /*float*/
18273+ } else {
18274+ throw new Exception('Union value has no matching member in TopLevel');
18275+ }
18276+ }
18277+ throw new Exception('never get to this TopLevel::offsetTime');
18278+ }
18279+
18280+ /**
18281+ * @param OffsetTime|float|null
18282+ * @return bool
18283+ * @throws Exception
18284+ */
18285+ public static function validateOffsetTime(OffsetTime|float|null $value): bool {
18286+ if (is_null($value)) {
18287+ if (!is_null($value)) {
18288+ throw new Exception("Attribute Error:TopLevel::offsetTime");
18289+ }
18290+ } elseif ($value instanceof OffsetTime) {
18291+ $value->validate();
18292+ } elseif (is_float($value) || is_int($value)) {
18293+ if (!is_float($value) && !is_int($value)) {
18294+ throw new Exception("Attribute Error:TopLevel::offsetTime");
18295+ }
18296+ } else {
18297+ throw new Exception("Attribute Error:TopLevel::offsetTime");
18298+ }
18299+ return true;
18300+ }
18301+
18302+ /**
18303+ * @throws Exception
18304+ * @return OffsetTime|float|null
18305+ */
18306+ public function getOffsetTime(): OffsetTime|float|null {
18307+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
18308+ return $this->offsetTime;
18309+ }
18310+ throw new Exception('never get to getOffsetTime TopLevel::offsetTime');
18311+ }
18312+
18313+ /**
18314+ * @return OffsetTime|float|null
18315+ */
18316+ public static function sampleOffsetTime(): OffsetTime|float|null {
18317+ return OffsetTime::sample(); /*257:offsetTime*/
1808118318 }
1808218319
1808318320 /**
@@ -18153,7 +18390,7 @@ class TopLevel {
1815318390 * @return Oneway|float|null
1815418391 */
1815518392 public static function sampleOneway(): Oneway|float|null {
18156- return Oneway::sample(); /*255:oneway*/
18393+ return Oneway::sample(); /*258:oneway*/
1815718394 }
1815818395
1815918396 /**
@@ -18229,7 +18466,7 @@ class TopLevel {
1822918466 * @return Open|float|null
1823018467 */
1823118468 public static function sampleOpen(): Open|float|null {
18232- return Open::sample(); /*256:open*/
18469+ return Open::sample(); /*259:open*/
1823318470 }
1823418471
1823518472 /**
@@ -18305,7 +18542,7 @@ class TopLevel {
1830518542 * @return Operator|float|null
1830618543 */
1830718544 public static function sampleOperator(): Operator|float|null {
18308- return Operator::sample(); /*257:operator*/
18545+ return Operator::sample(); /*260:operator*/
1830918546 }
1831018547
1831118548 /**
@@ -18381,7 +18618,7 @@ class TopLevel {
1838118618 * @return Optional|float|null
1838218619 */
1838318620 public static function sampleOptional(): Optional|float|null {
18384- return Optional::sample(); /*258:optional*/
18621+ return Optional::sample(); /*261:optional*/
1838518622 }
1838618623
1838718624 /**
@@ -18457,7 +18694,7 @@ class TopLevel {
1845718694 * @return OrClass|float|null
1845818695 */
1845918696 public static function sampleOr(): OrClass|float|null {
18460- return OrClass::sample(); /*259:or*/
18697+ return OrClass::sample(); /*262:or*/
1846118698 }
1846218699
1846318700 /**
@@ -18533,7 +18770,7 @@ class TopLevel {
1853318770 * @return OrEq|float|null
1853418771 */
1853518772 public static function sampleOrEq(): OrEq|float|null {
18536- return OrEq::sample(); /*260:orEq*/
18773+ return OrEq::sample(); /*263:orEq*/
1853718774 }
1853818775
1853918776 /**
@@ -18609,7 +18846,7 @@ class TopLevel {
1860918846 * @return Out|float|null
1861018847 */
1861118848 public static function sampleOut(): Out|float|null {
18612- return Out::sample(); /*261:out*/
18849+ return Out::sample(); /*264:out*/
1861318850 }
1861418851
1861518852 /**
@@ -18685,7 +18922,7 @@ class TopLevel {
1868518922 * @return OverrideClass|float|null
1868618923 */
1868718924 public static function sampleOverride(): OverrideClass|float|null {
18688- return OverrideClass::sample(); /*262:override*/
18925+ return OverrideClass::sample(); /*265:override*/
1868918926 }
1869018927
1869118928 /**
@@ -18761,7 +18998,7 @@ class TopLevel {
1876118998 * @return Package|float|null
1876218999 */
1876319000 public static function samplePackage(): Package|float|null {
18764- return Package::sample(); /*263:package*/
19001+ return Package::sample(); /*266:package*/
1876519002 }
1876619003
1876719004 /**
@@ -18837,7 +19074,7 @@ class TopLevel {
1883719074 * @return Params|float|null
1883819075 */
1883919076 public static function sampleParams(): Params|float|null {
18840- return Params::sample(); /*264:params*/
19077+ return Params::sample(); /*267:params*/
1884119078 }
1884219079
1884319080 /**
@@ -18913,7 +19150,7 @@ class TopLevel {
1891319150 * @return Pass|float|null
1891419151 */
1891519152 public static function samplePass(): Pass|float|null {
18916- return Pass::sample(); /*265:pass*/
19153+ return Pass::sample(); /*268:pass*/
1891719154 }
1891819155
1891919156 /**
@@ -18989,7 +19226,7 @@ class TopLevel {
1898919226 * @return Port|float|null
1899019227 */
1899119228 public static function samplePort(): Port|float|null {
18992- return Port::sample(); /*266:port*/
19229+ return Port::sample(); /*269:port*/
1899319230 }
1899419231
1899519232 /**
@@ -19065,7 +19302,7 @@ class TopLevel {
1906519302 * @return Postfix|float|null
1906619303 */
1906719304 public static function samplePostfix(): Postfix|float|null {
19068- return Postfix::sample(); /*267:postfix*/
19305+ return Postfix::sample(); /*270:postfix*/
1906919306 }
1907019307
1907119308 /**
@@ -19141,7 +19378,7 @@ class TopLevel {
1914119378 * @return Precedence|float|null
1914219379 */
1914319380 public static function samplePrecedence(): Precedence|float|null {
19144- return Precedence::sample(); /*268:precedence*/
19381+ return Precedence::sample(); /*271:precedence*/
1914519382 }
1914619383
1914719384 /**
@@ -19217,7 +19454,7 @@ class TopLevel {
1921719454 * @return Prefix|float|null
1921819455 */
1921919456 public static function samplePrefix(): Prefix|float|null {
19220- return Prefix::sample(); /*269:prefix*/
19457+ return Prefix::sample(); /*272:prefix*/
1922119458 }
1922219459
1922319460 /**
@@ -19293,7 +19530,7 @@ class TopLevel {
1929319530 * @return PrimitiveKind|float|null
1929419531 */
1929519532 public static function samplePrimitiveKind(): PrimitiveKind|float|null {
19296- return PrimitiveKind::sample(); /*270:primitiveKind*/
19533+ return PrimitiveKind::sample(); /*273:primitiveKind*/
1929719534 }
1929819535
1929919536 /**
@@ -19369,7 +19606,7 @@ class TopLevel {
1936919606 * @return PrintClass|float|null
1937019607 */
1937119608 public static function samplePrint(): PrintClass|float|null {
19372- return PrintClass::sample(); /*271:print*/
19609+ return PrintClass::sample(); /*274:print*/
1937319610 }
1937419611
1937519612 /**
@@ -19445,7 +19682,7 @@ class TopLevel {
1944519682 * @return Printf|float|null
1944619683 */
1944719684 public static function samplePrintf(): Printf|float|null {
19448- return Printf::sample(); /*272:printf*/
19685+ return Printf::sample(); /*275:printf*/
1944919686 }
1945019687
1945119688 /**
@@ -19521,7 +19758,7 @@ class TopLevel {
1952119758 * @return PrintMembers|float|null
1952219759 */
1952319760 public static function samplePrintMembers(): PrintMembers|float|null {
19524- return PrintMembers::sample(); /*273:printMembers*/
19761+ return PrintMembers::sample(); /*276:printMembers*/
1952519762 }
1952619763
1952719764 /**
@@ -19597,7 +19834,7 @@ class TopLevel {
1959719834 * @return PrivateClass|float|null
1959819835 */
1959919836 public static function samplePrivate(): PrivateClass|float|null {
19600- return PrivateClass::sample(); /*274:private*/
19837+ return PrivateClass::sample(); /*277:private*/
1960119838 }
1960219839
1960319840 /**
@@ -19673,7 +19910,7 @@ class TopLevel {
1967319910 * @return ProtectedClass|float|null
1967419911 */
1967519912 public static function sampleProtected(): ProtectedClass|float|null {
19676- return ProtectedClass::sample(); /*275:protected*/
19913+ return ProtectedClass::sample(); /*278:protected*/
1967719914 }
1967819915
1967919916 /**
@@ -19749,7 +19986,7 @@ class TopLevel {
1974919986 * @return Protocol|float|null
1975019987 */
1975119988 public static function sampleProtocol(): Protocol|float|null {
19752- return Protocol::sample(); /*276:protocol*/
19989+ return Protocol::sample(); /*279:protocol*/
1975319990 }
1975419991
1975519992 /**
@@ -19825,7 +20062,7 @@ class TopLevel {
1982520062 * @return ProtocolClass|float|null
1982620063 */
1982720064 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
19828- return ProtocolClass::sample(); /*277:topLevelProtocol*/
20065+ return ProtocolClass::sample(); /*280:topLevelProtocol*/
1982920066 }
1983020067
1983120068 /**
@@ -19901,7 +20138,7 @@ class TopLevel {
1990120138 * @return PublicClass|float|null
1990220139 */
1990320140 public static function samplePublic(): PublicClass|float|null {
19904- return PublicClass::sample(); /*278:public*/
20141+ return PublicClass::sample(); /*281:public*/
1990520142 }
1990620143
1990720144 /**
@@ -19977,7 +20214,7 @@ class TopLevel {
1997720214 * @return Quicktype|float|null
1997820215 */
1997920216 public static function sampleQuicktype(): Quicktype|float|null {
19980- return Quicktype::sample(); /*279:quicktype*/
20217+ return Quicktype::sample(); /*282:quicktype*/
1998120218 }
1998220219
1998320220 /**
@@ -20053,7 +20290,7 @@ class TopLevel {
2005320290 * @return Raise|float|null
2005420291 */
2005520292 public static function sampleRaise(): Raise|float|null {
20056- return Raise::sample(); /*280:raise*/
20293+ return Raise::sample(); /*283:raise*/
2005720294 }
2005820295
2005920296 /**
@@ -20129,7 +20366,7 @@ class TopLevel {
2012920366 * @return Range|float|null
2013020367 */
2013120368 public static function sampleRange(): Range|float|null {
20132- return Range::sample(); /*281:range*/
20369+ return Range::sample(); /*284:range*/
2013320370 }
2013420371
2013520372 /**
@@ -20205,7 +20442,7 @@ class TopLevel {
2020520442 * @return ReadonlyClass|float|null
2020620443 */
2020720444 public static function sampleReadonly(): ReadonlyClass|float|null {
20208- return ReadonlyClass::sample(); /*282:readonly*/
20445+ return ReadonlyClass::sample(); /*285:readonly*/
2020920446 }
2021020447
2021120448 /**
@@ -20281,7 +20518,7 @@ class TopLevel {
2028120518 * @return Ref|float|null
2028220519 */
2028320520 public static function sampleRef(): Ref|float|null {
20284- return Ref::sample(); /*283:ref*/
20521+ return Ref::sample(); /*286:ref*/
2028520522 }
2028620523
2028720524 /**
@@ -20357,7 +20594,7 @@ class TopLevel {
2035720594 * @return RegExp|float|null
2035820595 */
2035920596 public static function sampleRegExp(): RegExp|float|null {
20360- return RegExp::sample(); /*284:regExp*/
20597+ return RegExp::sample(); /*287:regExp*/
2036120598 }
2036220599
2036320600 /**
@@ -20433,7 +20670,7 @@ class TopLevel {
2043320670 * @return Register|float|null
2043420671 */
2043520672 public static function sampleRegister(): Register|float|null {
20436- return Register::sample(); /*285:register*/
20673+ return Register::sample(); /*288:register*/
2043720674 }
2043820675
2043920676 /**
@@ -20509,7 +20746,7 @@ class TopLevel {
2050920746 * @return ReinterpretCast|float|null
2051020747 */
2051120748 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
20512- return ReinterpretCast::sample(); /*286:reinterpretCast*/
20749+ return ReinterpretCast::sample(); /*289:reinterpretCast*/
2051320750 }
2051420751
2051520752 /**
@@ -20585,7 +20822,7 @@ class TopLevel {
2058520822 * @return Repeat|float|null
2058620823 */
2058720824 public static function sampleRepeat(): Repeat|float|null {
20588- return Repeat::sample(); /*287:repeat*/
20825+ return Repeat::sample(); /*290:repeat*/
2058920826 }
2059020827
2059120828 /**
@@ -20661,7 +20898,7 @@ class TopLevel {
2066120898 * @return RequireClass|float|null
2066220899 */
2066320900 public static function sampleRequire(): RequireClass|float|null {
20664- return RequireClass::sample(); /*288:require*/
20901+ return RequireClass::sample(); /*291:require*/
2066520902 }
2066620903
2066720904 /**
@@ -20737,7 +20974,7 @@ class TopLevel {
2073720974 * @return Required|float|null
2073820975 */
2073920976 public static function sampleRequired(): Required|float|null {
20740- return Required::sample(); /*289:required*/
20977+ return Required::sample(); /*292:required*/
2074120978 }
2074220979
2074320980 /**
@@ -20813,7 +21050,7 @@ class TopLevel {
2081321050 * @return Requires|float|null
2081421051 */
2081521052 public static function sampleRequires(): Requires|float|null {
20816- return Requires::sample(); /*290:requires*/
21053+ return Requires::sample(); /*293:requires*/
2081721054 }
2081821055
2081921056 /**
@@ -20889,7 +21126,7 @@ class TopLevel {
2088921126 * @return Restrict|float|null
2089021127 */
2089121128 public static function sampleRestrict(): Restrict|float|null {
20892- return Restrict::sample(); /*291:restrict*/
21129+ return Restrict::sample(); /*294:restrict*/
2089321130 }
2089421131
2089521132 /**
@@ -20965,7 +21202,7 @@ class TopLevel {
2096521202 * @return Retain|float|null
2096621203 */
2096721204 public static function sampleRetain(): Retain|float|null {
20968- return Retain::sample(); /*292:retain*/
21205+ return Retain::sample(); /*295:retain*/
2096921206 }
2097021207
2097121208 /**
@@ -21041,7 +21278,7 @@ class TopLevel {
2104121278 * @return Rethrows|float|null
2104221279 */
2104321280 public static function sampleRethrows(): Rethrows|float|null {
21044- return Rethrows::sample(); /*293:rethrows*/
21281+ return Rethrows::sample(); /*296:rethrows*/
2104521282 }
2104621283
2104721284 /**
@@ -21117,7 +21354,7 @@ class TopLevel {
2111721354 * @return ReturnClass|float|null
2111821355 */
2111921356 public static function sampleReturn(): ReturnClass|float|null {
21120- return ReturnClass::sample(); /*294:return*/
21357+ return ReturnClass::sample(); /*297:return*/
2112121358 }
2112221359
2112321360 /**
@@ -21193,7 +21430,7 @@ class TopLevel {
2119321430 * @return Right|float|null
2119421431 */
2119521432 public static function sampleRight(): Right|float|null {
21196- return Right::sample(); /*295:right*/
21433+ return Right::sample(); /*298:right*/
2119721434 }
2119821435
2119921436 /**
@@ -21269,7 +21506,7 @@ class TopLevel {
2126921506 * @return RuntimeType|float|null
2127021507 */
2127121508 public static function sampleRuntimeType(): RuntimeType|float|null {
21272- return RuntimeType::sample(); /*296:runtimeType*/
21509+ return RuntimeType::sample(); /*299:runtimeType*/
2127321510 }
2127421511
2127521512 /**
@@ -21345,7 +21582,7 @@ class TopLevel {
2134521582 * @return S|float|null
2134621583 */
2134721584 public static function sampleS(): S|float|null {
21348- return S::sample(); /*297:s*/
21585+ return S::sample(); /*300:s*/
2134921586 }
2135021587
2135121588 /**
@@ -21421,7 +21658,7 @@ class TopLevel {
2142121658 * @return Sbyte|float|null
2142221659 */
2142321660 public static function sampleSbyte(): Sbyte|float|null {
21424- return Sbyte::sample(); /*298:sbyte*/
21661+ return Sbyte::sample(); /*301:sbyte*/
2142521662 }
2142621663
2142721664 /**
@@ -21497,7 +21734,7 @@ class TopLevel {
2149721734 * @return Sealed|float|null
2149821735 */
2149921736 public static function sampleSealed(): Sealed|float|null {
21500- return Sealed::sample(); /*299:sealed*/
21737+ return Sealed::sample(); /*302:sealed*/
2150121738 }
2150221739
2150321740 /**
@@ -21573,7 +21810,7 @@ class TopLevel {
2157321810 * @return Sel|float|null
2157421811 */
2157521812 public static function sampleSel(): Sel|float|null {
21576- return Sel::sample(); /*300:sel*/
21813+ return Sel::sample(); /*303:sel*/
2157721814 }
2157821815
2157921816 /**
@@ -21649,7 +21886,7 @@ class TopLevel {
2164921886 * @return Select|float|null
2165021887 */
2165121888 public static function sampleSelect(): Select|float|null {
21652- return Select::sample(); /*301:select*/
21889+ return Select::sample(); /*304:select*/
2165321890 }
2165421891
2165521892 /**
@@ -21725,7 +21962,7 @@ class TopLevel {
2172521962 * @return SelfClass|float|null
2172621963 */
2172721964 public static function sampleSelf(): SelfClass|float|null {
21728- return SelfClass::sample(); /*302:self*/
21965+ return SelfClass::sample(); /*305:self*/
2172921966 }
2173021967
2173121968 /**
@@ -21801,7 +22038,7 @@ class TopLevel {
2180122038 * @return UnionSelfSelf|float|null
2180222039 */
2180322040 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
21804- return UnionSelfSelf::sample(); /*303:topLevelSelf*/
22041+ return UnionSelfSelf::sample(); /*306:topLevelSelf*/
2180522042 }
2180622043
2180722044 /**
@@ -21877,7 +22114,7 @@ class TopLevel {
2187722114 * @return Sendable|float|null
2187822115 */
2187922116 public static function sampleSendable(): Sendable|float|null {
21880- return Sendable::sample(); /*304:sendable*/
22117+ return Sendable::sample(); /*307:sendable*/
2188122118 }
2188222119
2188322120 /**
@@ -21953,7 +22190,7 @@ class TopLevel {
2195322190 * @return SerialDescriptor|float|null
2195422191 */
2195522192 public static function sampleSerialDescriptor(): SerialDescriptor|float|null {
21956- return SerialDescriptor::sample(); /*305:serialDescriptor*/
22193+ return SerialDescriptor::sample(); /*308:serialDescriptor*/
2195722194 }
2195822195
2195922196 /**
@@ -22029,7 +22266,7 @@ class TopLevel {
2202922266 * @return SerializableClass|float|null
2203022267 */
2203122268 public static function sampleSerializable(): SerializableClass|float|null {
22032- return SerializableClass::sample(); /*306:serializable*/
22269+ return SerializableClass::sample(); /*309:serializable*/
2203322270 }
2203422271
2203522272 /**
@@ -22105,7 +22342,7 @@ class TopLevel {
2210522342 * @return SerializationFeature|float|null
2210622343 */
2210722344 public static function sampleSerializationFeature(): SerializationFeature|float|null {
22108- return SerializationFeature::sample(); /*307:serializationFeature*/
22345+ return SerializationFeature::sample(); /*310:serializationFeature*/
2210922346 }
2211022347
2211122348 /**
@@ -22181,7 +22418,7 @@ class TopLevel {
2218122418 * @return Serialize|float|null
2218222419 */
2218322420 public static function sampleSerialize(): Serialize|float|null {
22184- return Serialize::sample(); /*308:serialize*/
22421+ return Serialize::sample(); /*311:serialize*/
2218522422 }
2218622423
2218722424 /**
@@ -22257,7 +22494,7 @@ class TopLevel {
2225722494 * @return SerializerProvider|float|null
2225822495 */
2225922496 public static function sampleSerializerProvider(): SerializerProvider|float|null {
22260- return SerializerProvider::sample(); /*309:serializerProvider*/
22497+ return SerializerProvider::sample(); /*312:serializerProvider*/
2226122498 }
2226222499
2226322500 /**
@@ -22333,7 +22570,7 @@ class TopLevel {
2233322570 * @return SerialName|float|null
2233422571 */
2233522572 public static function sampleSerialName(): SerialName|float|null {
22336- return SerialName::sample(); /*310:serialName*/
22573+ return SerialName::sample(); /*313:serialName*/
2233722574 }
2233822575
2233922576 /**
@@ -22409,7 +22646,7 @@ class TopLevel {
2240922646 * @return Set|float|null
2241022647 */
2241122648 public static function sampleSet(): Set|float|null {
22412- return Set::sample(); /*311:set*/
22649+ return Set::sample(); /*314:set*/
2241322650 }
2241422651
2241522652 /**
@@ -22485,7 +22722,7 @@ class TopLevel {
2248522722 * @return Short|float|null
2248622723 */
2248722724 public static function sampleShort(): Short|float|null {
22488- return Short::sample(); /*312:short*/
22725+ return Short::sample(); /*315:short*/
2248922726 }
2249022727
2249122728 /**
@@ -22561,7 +22798,7 @@ class TopLevel {
2256122798 * @return Signed|float|null
2256222799 */
2256322800 public static function sampleSigned(): Signed|float|null {
22564- return Signed::sample(); /*313:signed*/
22801+ return Signed::sample(); /*316:signed*/
2256522802 }
2256622803
2256722804 /**
@@ -22637,7 +22874,7 @@ class TopLevel {
2263722874 * @return SimpleModule|float|null
2263822875 */
2263922876 public static function sampleSimpleModule(): SimpleModule|float|null {
22640- return SimpleModule::sample(); /*314:simpleModule*/
22877+ return SimpleModule::sample(); /*317:simpleModule*/
2264122878 }
2264222879
2264322880 /**
@@ -22713,7 +22950,7 @@ class TopLevel {
2271322950 * @return Sizeof|float|null
2271422951 */
2271522952 public static function sampleSizeof(): Sizeof|float|null {
22716- return Sizeof::sample(); /*315:sizeof*/
22953+ return Sizeof::sample(); /*318:sizeof*/
2271722954 }
2271822955
2271922956 /**
@@ -22789,7 +23026,7 @@ class TopLevel {
2278923026 * @return Stackalloc|float|null
2279023027 */
2279123028 public static function sampleStackalloc(): Stackalloc|float|null {
22792- return Stackalloc::sample(); /*316:stackalloc*/
23029+ return Stackalloc::sample(); /*319:stackalloc*/
2279323030 }
2279423031
2279523032 /**
@@ -22865,7 +23102,7 @@ class TopLevel {
2286523102 * @return Standards|float|null
2286623103 */
2286723104 public static function sampleStandards(): Standards|float|null {
22868- return Standards::sample(); /*317:standards*/
23105+ return Standards::sample(); /*320:standards*/
2286923106 }
2287023107
2287123108 /**
@@ -22941,7 +23178,7 @@ class TopLevel {
2294123178 * @return StaticClass|float|null
2294223179 */
2294323180 public static function sampleStatic(): StaticClass|float|null {
22944- return StaticClass::sample(); /*318:static*/
23181+ return StaticClass::sample(); /*321:static*/
2294523182 }
2294623183
2294723184 /**
@@ -23017,7 +23254,7 @@ class TopLevel {
2301723254 * @return StaticAssert|float|null
2301823255 */
2301923256 public static function sampleStaticAssert(): StaticAssert|float|null {
23020- return StaticAssert::sample(); /*319:staticAssert*/
23257+ return StaticAssert::sample(); /*322:staticAssert*/
2302123258 }
2302223259
2302323260 /**
@@ -23093,7 +23330,7 @@ class TopLevel {
2309323330 * @return StaticCast|float|null
2309423331 */
2309523332 public static function sampleStaticCast(): StaticCast|float|null {
23096- return StaticCast::sample(); /*320:staticCast*/
23333+ return StaticCast::sample(); /*323:staticCast*/
2309723334 }
2309823335
2309923336 /**
@@ -23169,7 +23406,7 @@ class TopLevel {
2316923406 * @return StdDeserializer|float|null
2317023407 */
2317123408 public static function sampleStdDeserializer(): StdDeserializer|float|null {
23172- return StdDeserializer::sample(); /*321:stdDeserializer*/
23409+ return StdDeserializer::sample(); /*324:stdDeserializer*/
2317323410 }
2317423411
2317523412 /**
@@ -23245,7 +23482,7 @@ class TopLevel {
2324523482 * @return StdSerializer|float|null
2324623483 */
2324723484 public static function sampleStdSerializer(): StdSerializer|float|null {
23248- return StdSerializer::sample(); /*322:stdSerializer*/
23485+ return StdSerializer::sample(); /*325:stdSerializer*/
2324923486 }
2325023487
2325123488 /**
@@ -23321,7 +23558,7 @@ class TopLevel {
2332123558 * @return Strictfp|float|null
2332223559 */
2332323560 public static function sampleStrictfp(): Strictfp|float|null {
23324- return Strictfp::sample(); /*323:strictfp*/
23561+ return Strictfp::sample(); /*326:strictfp*/
2332523562 }
2332623563
2332723564 /**
@@ -23397,7 +23634,7 @@ class TopLevel {
2339723634 * @return StringClass|float|null
2339823635 */
2339923636 public static function sampleString(): StringClass|float|null {
23400- return StringClass::sample(); /*324:string*/
23637+ return StringClass::sample(); /*327:string*/
2340123638 }
2340223639
2340323640 /**
@@ -23473,7 +23710,7 @@ class TopLevel {
2347323710 * @return Struct|float|null
2347423711 */
2347523712 public static function sampleStruct(): Struct|float|null {
23476- return Struct::sample(); /*325:struct*/
23713+ return Struct::sample(); /*328:struct*/
2347723714 }
2347823715
2347923716 /**
@@ -23549,7 +23786,7 @@ class TopLevel {
2354923786 * @return Subscript|float|null
2355023787 */
2355123788 public static function sampleSubscript(): Subscript|float|null {
23552- return Subscript::sample(); /*326:subscript*/
23789+ return Subscript::sample(); /*329:subscript*/
2355323790 }
2355423791
2355523792 /**
@@ -23625,7 +23862,7 @@ class TopLevel {
2362523862 * @return Super|float|null
2362623863 */
2362723864 public static function sampleSuper(): Super|float|null {
23628- return Super::sample(); /*327:super*/
23865+ return Super::sample(); /*330:super*/
2362923866 }
2363023867
2363123868 /**
@@ -23701,7 +23938,7 @@ class TopLevel {
2370123938 * @return SwitchClass|float|null
2370223939 */
2370323940 public static function sampleSwitch(): SwitchClass|float|null {
23704- return SwitchClass::sample(); /*328:switch*/
23941+ return SwitchClass::sample(); /*331:switch*/
2370523942 }
2370623943
2370723944 /**
@@ -23777,7 +24014,7 @@ class TopLevel {
2377724014 * @return Symbol|float|null
2377824015 */
2377924016 public static function sampleSymbol(): Symbol|float|null {
23780- return Symbol::sample(); /*329:symbol*/
24017+ return Symbol::sample(); /*332:symbol*/
2378124018 }
2378224019
2378324020 /**
@@ -23853,7 +24090,7 @@ class TopLevel {
2385324090 * @return Synchronized|float|null
2385424091 */
2385524092 public static function sampleSynchronized(): Synchronized|float|null {
23856- return Synchronized::sample(); /*330:synchronized*/
24093+ return Synchronized::sample(); /*333:synchronized*/
2385724094 }
2385824095
2385924096 /**
@@ -23929,7 +24166,7 @@ class TopLevel {
2392924166 * @return System|float|null
2393024167 */
2393124168 public static function sampleSystem(): System|float|null {
23932- return System::sample(); /*331:system*/
24169+ return System::sample(); /*334:system*/
2393324170 }
2393424171
2393524172 /**
@@ -24005,7 +24242,7 @@ class TopLevel {
2400524242 * @return Template|float|null
2400624243 */
2400724244 public static function sampleTemplate(): Template|float|null {
24008- return Template::sample(); /*332:template*/
24245+ return Template::sample(); /*335:template*/
2400924246 }
2401024247
2401124248 /**
@@ -24081,7 +24318,7 @@ class TopLevel {
2408124318 * @return TextNode|float|null
2408224319 */
2408324320 public static function sampleTextNode(): TextNode|float|null {
24084- return TextNode::sample(); /*333:textNode*/
24321+ return TextNode::sample(); /*336:textNode*/
2408524322 }
2408624323
2408724324 /**
@@ -24157,7 +24394,7 @@ class TopLevel {
2415724394 * @return Then|float|null
2415824395 */
2415924396 public static function sampleThen(): Then|float|null {
24160- return Then::sample(); /*334:then*/
24397+ return Then::sample(); /*337:then*/
2416124398 }
2416224399
2416324400 /**
@@ -24233,7 +24470,7 @@ class TopLevel {
2423324470 * @return This|float|null
2423424471 */
2423524472 public static function sampleTopLevelThis(): This|float|null {
24236- return This::sample(); /*335:topLevelThis*/
24473+ return This::sample(); /*338:topLevelThis*/
2423724474 }
2423824475
2423924476 /**
@@ -24309,7 +24546,7 @@ class TopLevel {
2430924546 * @return ThreadLocal|float|null
2431024547 */
2431124548 public static function sampleThreadLocal(): ThreadLocal|float|null {
24312- return ThreadLocal::sample(); /*336:threadLocal*/
24549+ return ThreadLocal::sample(); /*339:threadLocal*/
2431324550 }
2431424551
2431524552 /**
@@ -24385,7 +24622,7 @@ class TopLevel {
2438524622 * @return ThrowClass|float|null
2438624623 */
2438724624 public static function sampleThrow(): ThrowClass|float|null {
24388- return ThrowClass::sample(); /*337:throw*/
24625+ return ThrowClass::sample(); /*340:throw*/
2438924626 }
2439024627
2439124628 /**
@@ -24461,7 +24698,7 @@ class TopLevel {
2446124698 * @return Throws|float|null
2446224699 */
2446324700 public static function sampleThrows(): Throws|float|null {
24464- return Throws::sample(); /*338:throws*/
24701+ return Throws::sample(); /*341:throws*/
2446524702 }
2446624703
2446724704 /**
@@ -24537,7 +24774,7 @@ class TopLevel {
2453724774 * @return TimeOnly|float|null
2453824775 */
2453924776 public static function sampleTimeOnly(): TimeOnly|float|null {
24540- return TimeOnly::sample(); /*339:timeOnly*/
24777+ return TimeOnly::sample(); /*342:timeOnly*/
2454124778 }
2454224779
2454324780 /**
@@ -24613,7 +24850,7 @@ class TopLevel {
2461324850 * @return TimeOnlyConverter|float|null
2461424851 */
2461524852 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
24616- return TimeOnlyConverter::sample(); /*340:timeOnlyConverter*/
24853+ return TimeOnlyConverter::sample(); /*343:timeOnlyConverter*/
2461724854 }
2461824855
2461924856 /**
@@ -24689,7 +24926,7 @@ class TopLevel {
2468924926 * @return TimeZone|float|null
2469024927 */
2469124928 public static function sampleTimeZone(): TimeZone|float|null {
24692- return TimeZone::sample(); /*341:timeZone*/
24929+ return TimeZone::sample(); /*344:timeZone*/
2469324930 }
2469424931
2469524932 /**
@@ -24765,7 +25002,7 @@ class TopLevel {
2476525002 * @return ToDict|float|null
2476625003 */
2476725004 public static function sampleToDict(): ToDict|float|null {
24768- return ToDict::sample(); /*342:toDict*/
25005+ return ToDict::sample(); /*345:toDict*/
2476925006 }
2477025007
2477125008 /**
@@ -24841,7 +25078,7 @@ class TopLevel {
2484125078 * @return ToJSON|float|null
2484225079 */
2484325080 public static function sampleToJSON(): ToJSON|float|null {
24844- return ToJSON::sample(); /*343:toJSON*/
25081+ return ToJSON::sample(); /*346:toJSON*/
2484525082 }
2484625083
2484725084 /**
@@ -24917,7 +25154,7 @@ class TopLevel {
2491725154 * @return TopLevelClass|float|null
2491825155 */
2491925156 public static function sampleTopLevel(): TopLevelClass|float|null {
24920- return TopLevelClass::sample(); /*344:topLevel*/
25157+ return TopLevelClass::sample(); /*347:topLevel*/
2492125158 }
2492225159
2492325160 /**
@@ -24993,7 +25230,7 @@ class TopLevel {
2499325230 * @return ToString|float|null
2499425231 */
2499525232 public static function sampleToString(): ToString|float|null {
24996- return ToString::sample(); /*345:toString*/
25233+ return ToString::sample(); /*348:toString*/
2499725234 }
2499825235
2499925236 /**
@@ -25069,7 +25306,7 @@ class TopLevel {
2506925306 * @return Transient|float|null
2507025307 */
2507125308 public static function sampleTransient(): Transient|float|null {
25072- return Transient::sample(); /*346:transient*/
25309+ return Transient::sample(); /*349:transient*/
2507325310 }
2507425311
2507525312 /**
@@ -25145,7 +25382,7 @@ class TopLevel {
2514525382 * @return TrueClass|float|null
2514625383 */
2514725384 public static function sampleTrue(): TrueClass|float|null {
25148- return TrueClass::sample(); /*347:true*/
25385+ return TrueClass::sample(); /*350:true*/
2514925386 }
2515025387
2515125388 /**
@@ -25221,7 +25458,7 @@ class TopLevel {
2522125458 * @return UnionTrueTrue|float|null
2522225459 */
2522325460 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
25224- return UnionTrueTrue::sample(); /*348:topLevelTrue*/
25461+ return UnionTrueTrue::sample(); /*351:topLevelTrue*/
2522525462 }
2522625463
2522725464 /**
@@ -25297,7 +25534,7 @@ class TopLevel {
2529725534 * @return TryClass|float|null
2529825535 */
2529925536 public static function sampleTry(): TryClass|float|null {
25300- return TryClass::sample(); /*349:try*/
25537+ return TryClass::sample(); /*352:try*/
2530125538 }
2530225539
2530325540 /**
@@ -25373,7 +25610,7 @@ class TopLevel {
2537325610 * @return Type|float|null
2537425611 */
2537525612 public static function sampleType(): Type|float|null {
25376- return Type::sample(); /*350:type*/
25613+ return Type::sample(); /*353:type*/
2537725614 }
2537825615
2537925616 /**
@@ -25449,7 +25686,7 @@ class TopLevel {
2544925686 * @return TypeClass|float|null
2545025687 */
2545125688 public static function sampleTopLevelType(): TypeClass|float|null {
25452- return TypeClass::sample(); /*351:topLevelType*/
25689+ return TypeClass::sample(); /*354:topLevelType*/
2545325690 }
2545425691
2545525692 /**
@@ -25525,7 +25762,7 @@ class TopLevel {
2552525762 * @return Typealias|float|null
2552625763 */
2552725764 public static function sampleTypealias(): Typealias|float|null {
25528- return Typealias::sample(); /*352:typealias*/
25765+ return Typealias::sample(); /*355:typealias*/
2552925766 }
2553025767
2553125768 /**
@@ -25601,7 +25838,7 @@ class TopLevel {
2560125838 * @return Typedef|float|null
2560225839 */
2560325840 public static function sampleTypedef(): Typedef|float|null {
25604- return Typedef::sample(); /*353:typedef*/
25841+ return Typedef::sample(); /*356:typedef*/
2560525842 }
2560625843
2560725844 /**
@@ -25677,7 +25914,7 @@ class TopLevel {
2567725914 * @return Typeid|float|null
2567825915 */
2567925916 public static function sampleTypeid(): Typeid|float|null {
25680- return Typeid::sample(); /*354:typeid*/
25917+ return Typeid::sample(); /*357:typeid*/
2568125918 }
2568225919
2568325920 /**
@@ -25753,7 +25990,7 @@ class TopLevel {
2575325990 * @return Typename|float|null
2575425991 */
2575525992 public static function sampleTypename(): Typename|float|null {
25756- return Typename::sample(); /*355:typename*/
25993+ return Typename::sample(); /*358:typename*/
2575725994 }
2575825995
2575925996 /**
@@ -25829,7 +26066,7 @@ class TopLevel {
2582926066 * @return Typeof|float|null
2583026067 */
2583126068 public static function sampleTypeof(): Typeof|float|null {
25832- return Typeof::sample(); /*356:typeof*/
26069+ return Typeof::sample(); /*359:typeof*/
2583326070 }
2583426071
2583526072 /**
@@ -25905,7 +26142,7 @@ class TopLevel {
2590526142 * @return Uint|float|null
2590626143 */
2590726144 public static function sampleUint(): Uint|float|null {
25908- return Uint::sample(); /*357:uint*/
26145+ return Uint::sample(); /*360:uint*/
2590926146 }
2591026147
2591126148 /**
@@ -25981,7 +26218,7 @@ class TopLevel {
2598126218 * @return Ulong|float|null
2598226219 */
2598326220 public static function sampleUlong(): Ulong|float|null {
25984- return Ulong::sample(); /*358:ulong*/
26221+ return Ulong::sample(); /*361:ulong*/
2598526222 }
2598626223
2598726224 /**
@@ -26057,7 +26294,7 @@ class TopLevel {
2605726294 * @return Unchecked|float|null
2605826295 */
2605926296 public static function sampleUnchecked(): Unchecked|float|null {
26060- return Unchecked::sample(); /*359:unchecked*/
26297+ return Unchecked::sample(); /*362:unchecked*/
2606126298 }
2606226299
2606326300 /**
@@ -26133,7 +26370,7 @@ class TopLevel {
2613326370 * @return Undefined|float|null
2613426371 */
2613526372 public static function sampleUndefined(): Undefined|float|null {
26136- return Undefined::sample(); /*360:undefined*/
26373+ return Undefined::sample(); /*363:undefined*/
2613726374 }
2613826375
2613926376 /**
@@ -26209,7 +26446,7 @@ class TopLevel {
2620926446 * @return UnionClass|float|null
2621026447 */
2621126448 public static function sampleUnion(): UnionClass|float|null {
26212- return UnionClass::sample(); /*361:union*/
26449+ return UnionClass::sample(); /*364:union*/
2621326450 }
2621426451
2621526452 /**
@@ -26285,7 +26522,7 @@ class TopLevel {
2628526522 * @return UnmarshalJSON|float|null
2628626523 */
2628726524 public static function sampleUnmarshalJSON(): UnmarshalJSON|float|null {
26288- return UnmarshalJSON::sample(); /*362:unmarshalJSON*/
26525+ return UnmarshalJSON::sample(); /*365:unmarshalJSON*/
2628926526 }
2629026527
2629126528 /**
@@ -26361,7 +26598,7 @@ class TopLevel {
2636126598 * @return Unowned|float|null
2636226599 */
2636326600 public static function sampleUnowned(): Unowned|float|null {
26364- return Unowned::sample(); /*363:unowned*/
26601+ return Unowned::sample(); /*366:unowned*/
2636526602 }
2636626603
2636726604 /**
@@ -26437,7 +26674,7 @@ class TopLevel {
2643726674 * @return Unsafe|float|null
2643826675 */
2643926676 public static function sampleUnsafe(): Unsafe|float|null {
26440- return Unsafe::sample(); /*364:unsafe*/
26677+ return Unsafe::sample(); /*367:unsafe*/
2644126678 }
2644226679
2644326680 /**
@@ -26513,7 +26750,7 @@ class TopLevel {
2651326750 * @return Unsigned|float|null
2651426751 */
2651526752 public static function sampleUnsigned(): Unsigned|float|null {
26516- return Unsigned::sample(); /*365:unsigned*/
26753+ return Unsigned::sample(); /*368:unsigned*/
2651726754 }
2651826755
2651926756 /**
@@ -26589,7 +26826,7 @@ class TopLevel {
2658926826 * @return UseSerializers|float|null
2659026827 */
2659126828 public static function sampleUseSerializers(): UseSerializers|float|null {
26592- return UseSerializers::sample(); /*366:useSerializers*/
26829+ return UseSerializers::sample(); /*369:useSerializers*/
2659326830 }
2659426831
2659526832 /**
@@ -26665,7 +26902,7 @@ class TopLevel {
2666526902 * @return Ushort|float|null
2666626903 */
2666726904 public static function sampleUshort(): Ushort|float|null {
26668- return Ushort::sample(); /*367:ushort*/
26905+ return Ushort::sample(); /*370:ushort*/
2666926906 }
2667026907
2667126908 /**
@@ -26741,7 +26978,7 @@ class TopLevel {
2674126978 * @return Using|float|null
2674226979 */
2674326980 public static function sampleUsing(): Using|float|null {
26744- return Using::sample(); /*368:using*/
26981+ return Using::sample(); /*371:using*/
2674526982 }
2674626983
2674726984 /**
@@ -26817,7 +27054,7 @@ class TopLevel {
2681727054 * @return Utf8JSONReader|float|null
2681827055 */
2681927056 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
26820- return Utf8JSONReader::sample(); /*369:utf8JSONReader*/
27057+ return Utf8JSONReader::sample(); /*372:utf8JSONReader*/
2682127058 }
2682227059
2682327060 /**
@@ -26893,7 +27130,7 @@ class TopLevel {
2689327130 * @return Utf8JSONWriter|float|null
2689427131 */
2689527132 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
26896- return Utf8JSONWriter::sample(); /*370:utf8JSONWriter*/
27133+ return Utf8JSONWriter::sample(); /*373:utf8JSONWriter*/
2689727134 }
2689827135
2689927136 /**
@@ -26969,7 +27206,7 @@ class TopLevel {
2696927206 * @return UUID|float|null
2697027207 */
2697127208 public static function sampleUUID(): UUID|float|null {
26972- return UUID::sample(); /*371:uuid*/
27209+ return UUID::sample(); /*374:uuid*/
2697327210 }
2697427211
2697527212 /**
@@ -27045,7 +27282,7 @@ class TopLevel {
2704527282 * @return VarClass|float|null
2704627283 */
2704727284 public static function sampleVar(): VarClass|float|null {
27048- return VarClass::sample(); /*372:var*/
27285+ return VarClass::sample(); /*375:var*/
2704927286 }
2705027287
2705127288 /**
@@ -27121,7 +27358,7 @@ class TopLevel {
2712127358 * @return Virtual|float|null
2712227359 */
2712327360 public static function sampleVirtual(): Virtual|float|null {
27124- return Virtual::sample(); /*373:virtual*/
27361+ return Virtual::sample(); /*376:virtual*/
2712527362 }
2712627363
2712727364 /**
@@ -27197,7 +27434,7 @@ class TopLevel {
2719727434 * @return VoidClass|float|null
2719827435 */
2719927436 public static function sampleVoid(): VoidClass|float|null {
27200- return VoidClass::sample(); /*374:void*/
27437+ return VoidClass::sample(); /*377:void*/
2720127438 }
2720227439
2720327440 /**
@@ -27273,7 +27510,7 @@ class TopLevel {
2727327510 * @return Volatile|float|null
2727427511 */
2727527512 public static function sampleVolatile(): Volatile|float|null {
27276- return Volatile::sample(); /*375:volatile*/
27513+ return Volatile::sample(); /*378:volatile*/
2727727514 }
2727827515
2727927516 /**
@@ -27349,7 +27586,7 @@ class TopLevel {
2734927586 * @return WcharT|float|null
2735027587 */
2735127588 public static function sampleWcharT(): WcharT|float|null {
27352- return WcharT::sample(); /*376:wcharT*/
27589+ return WcharT::sample(); /*379:wcharT*/
2735327590 }
2735427591
2735527592 /**
@@ -27425,7 +27662,7 @@ class TopLevel {
2742527662 * @return Weak|float|null
2742627663 */
2742727664 public static function sampleWeak(): Weak|float|null {
27428- return Weak::sample(); /*377:weak*/
27665+ return Weak::sample(); /*380:weak*/
2742927666 }
2743027667
2743127668 /**
@@ -27501,7 +27738,7 @@ class TopLevel {
2750127738 * @return Where|float|null
2750227739 */
2750327740 public static function sampleWhere(): Where|float|null {
27504- return Where::sample(); /*378:where*/
27741+ return Where::sample(); /*381:where*/
2750527742 }
2750627743
2750727744 /**
@@ -27577,7 +27814,7 @@ class TopLevel {
2757727814 * @return WhileClass|float|null
2757827815 */
2757927816 public static function sampleWhile(): WhileClass|float|null {
27580- return WhileClass::sample(); /*379:while*/
27817+ return WhileClass::sample(); /*382:while*/
2758127818 }
2758227819
2758327820 /**
@@ -27653,7 +27890,7 @@ class TopLevel {
2765327890 * @return WillSet|float|null
2765427891 */
2765527892 public static function sampleWillSet(): WillSet|float|null {
27656- return WillSet::sample(); /*380:willSet*/
27893+ return WillSet::sample(); /*383:willSet*/
2765727894 }
2765827895
2765927896 /**
@@ -27729,7 +27966,7 @@ class TopLevel {
2772927966 * @return With|float|null
2773027967 */
2773127968 public static function sampleWith(): With|float|null {
27732- return With::sample(); /*381:with*/
27969+ return With::sample(); /*384:with*/
2773327970 }
2773427971
2773527972 /**
@@ -27805,7 +28042,7 @@ class TopLevel {
2780528042 * @return XorClass|float|null
2780628043 */
2780728044 public static function sampleXor(): XorClass|float|null {
27808- return XorClass::sample(); /*382:xor*/
28045+ return XorClass::sample(); /*385:xor*/
2780928046 }
2781028047
2781128048 /**
@@ -27881,7 +28118,7 @@ class TopLevel {
2788128118 * @return XorEq|float|null
2788228119 */
2788328120 public static function sampleXorEq(): XorEq|float|null {
27884- return XorEq::sample(); /*383:xorEq*/
28121+ return XorEq::sample(); /*386:xorEq*/
2788528122 }
2788628123
2788728124 /**
@@ -27957,7 +28194,7 @@ class TopLevel {
2795728194 * @return Yes|float|null
2795828195 */
2795928196 public static function sampleYes(): Yes|float|null {
27960- return Yes::sample(); /*384:yes*/
28197+ return Yes::sample(); /*387:yes*/
2796128198 }
2796228199
2796328200 /**
@@ -28033,7 +28270,7 @@ class TopLevel {
2803328270 * @return YieldClass|float|null
2803428271 */
2803528272 public static function sampleYield(): YieldClass|float|null {
28036- return YieldClass::sample(); /*385:yield*/
28273+ return YieldClass::sample(); /*388:yield*/
2803728274 }
2803828275
2803928276 /**
@@ -28225,6 +28462,7 @@ class TopLevel {
2822528462 || TopLevel::validateLeft($this->left)
2822628463 || TopLevel::validateLet($this->let)
2822728464 || TopLevel::validateList($this->list)
28465+ || TopLevel::validateLocalDate($this->localDate)
2822828466 || TopLevel::validateLocale($this->locale)
2822928467 || TopLevel::validateLock($this->lock)
2823028468 || TopLevel::validateLong($this->long)
@@ -28265,6 +28503,8 @@ class TopLevel {
2826528503 || TopLevel::validateObjectReader($this->objectReader)
2826628504 || TopLevel::validateObjectWriter($this->objectWriter)
2826728505 || TopLevel::validateOf($this->of)
28506+ || TopLevel::validateOffsetDateTime($this->offsetDateTime)
28507+ || TopLevel::validateOffsetTime($this->offsetTime)
2826828508 || TopLevel::validateOneway($this->oneway)
2826928509 || TopLevel::validateOpen($this->open)
2827028510 || TopLevel::validateOperator($this->operator)
@@ -28588,6 +28828,7 @@ class TopLevel {
2858828828 $out->{'left'} = $this->toLeft();
2858928829 $out->{'let'} = $this->toLet();
2859028830 $out->{'list'} = $this->toList();
28831+ $out->{'LocalDate'} = $this->toLocalDate();
2859128832 $out->{'Locale'} = $this->toLocale();
2859228833 $out->{'lock'} = $this->toLock();
2859328834 $out->{'long'} = $this->toLong();
@@ -28628,6 +28869,8 @@ class TopLevel {
2862828869 $out->{'ObjectReader'} = $this->toObjectReader();
2862928870 $out->{'ObjectWriter'} = $this->toObjectWriter();
2863028871 $out->{'of'} = $this->toOf();
28872+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
28873+ $out->{'OffsetTime'} = $this->toOffsetTime();
2863128874 $out->{'oneway'} = $this->toOneway();
2863228875 $out->{'open'} = $this->toOpen();
2863328876 $out->{'operator'} = $this->toOperator();
@@ -28953,6 +29196,7 @@ class TopLevel {
2895329196 ,TopLevel::fromLeft($obj->{'left'})
2895429197 ,TopLevel::fromLet($obj->{'let'})
2895529198 ,TopLevel::fromList($obj->{'list'})
29199+ ,TopLevel::fromLocalDate($obj->{'LocalDate'})
2895629200 ,TopLevel::fromLocale($obj->{'Locale'})
2895729201 ,TopLevel::fromLock($obj->{'lock'})
2895829202 ,TopLevel::fromLong($obj->{'long'})
@@ -28993,6 +29237,8 @@ class TopLevel {
2899329237 ,TopLevel::fromObjectReader($obj->{'ObjectReader'})
2899429238 ,TopLevel::fromObjectWriter($obj->{'ObjectWriter'})
2899529239 ,TopLevel::fromOf($obj->{'of'})
29240+ ,TopLevel::fromOffsetDateTime($obj->{'OffsetDateTime'})
29241+ ,TopLevel::fromOffsetTime($obj->{'OffsetTime'})
2899629242 ,TopLevel::fromOneway($obj->{'oneway'})
2899729243 ,TopLevel::fromOpen($obj->{'open'})
2899829244 ,TopLevel::fromOperator($obj->{'operator'})
@@ -29316,6 +29562,7 @@ class TopLevel {
2931629562 ,TopLevel::sampleLeft()
2931729563 ,TopLevel::sampleLet()
2931829564 ,TopLevel::sampleList()
29565+ ,TopLevel::sampleLocalDate()
2931929566 ,TopLevel::sampleLocale()
2932029567 ,TopLevel::sampleLock()
2932129568 ,TopLevel::sampleLong()
@@ -29356,6 +29603,8 @@ class TopLevel {
2935629603 ,TopLevel::sampleObjectReader()
2935729604 ,TopLevel::sampleObjectWriter()
2935829605 ,TopLevel::sampleOf()
29606+ ,TopLevel::sampleOffsetDateTime()
29607+ ,TopLevel::sampleOffsetTime()
2935929608 ,TopLevel::sampleOneway()
2936029609 ,TopLevel::sampleOpen()
2936129610 ,TopLevel::sampleOperator()
@@ -37501,6 +37750,51 @@ class ListClass {
3750137750 }
3750237751 }
3750337752
37753+// This is an autogenerated file:LocalDate
37754+
37755+class LocalDate {
37756+
37757+ /**
37758+ */
37759+ public function __construct() {
37760+ }
37761+
37762+ /**
37763+ * @throws Exception
37764+ * @return bool
37765+ */
37766+ public function validate(): bool {
37767+ return true;
37768+ }
37769+
37770+ /**
37771+ * @return stdClass
37772+ * @throws Exception
37773+ */
37774+ public function to(): stdClass {
37775+ $out = new stdClass();
37776+ return $out;
37777+ }
37778+
37779+ /**
37780+ * @param stdClass $obj
37781+ * @return LocalDate
37782+ * @throws Exception
37783+ */
37784+ public static function from(stdClass $obj): LocalDate {
37785+ return new LocalDate(
37786+ );
37787+ }
37788+
37789+ /**
37790+ * @return LocalDate
37791+ */
37792+ public static function sample(): LocalDate {
37793+ return new LocalDate(
37794+ );
37795+ }
37796+}
37797+
3750437798 // This is an autogenerated file:LocaleClass
3750537799
3750637800 class LocaleClass {
@@ -39211,6 +39505,96 @@ class Of {
3921139505 }
3921239506 }
3921339507
39508+// This is an autogenerated file:OffsetDateTime
39509+
39510+class OffsetDateTime {
39511+
39512+ /**
39513+ */
39514+ public function __construct() {
39515+ }
39516+
39517+ /**
39518+ * @throws Exception
39519+ * @return bool
39520+ */
39521+ public function validate(): bool {
39522+ return true;
39523+ }
39524+
39525+ /**
39526+ * @return stdClass
39527+ * @throws Exception
39528+ */
39529+ public function to(): stdClass {
39530+ $out = new stdClass();
39531+ return $out;
39532+ }
39533+
39534+ /**
39535+ * @param stdClass $obj
39536+ * @return OffsetDateTime
39537+ * @throws Exception
39538+ */
39539+ public static function from(stdClass $obj): OffsetDateTime {
39540+ return new OffsetDateTime(
39541+ );
39542+ }
39543+
39544+ /**
39545+ * @return OffsetDateTime
39546+ */
39547+ public static function sample(): OffsetDateTime {
39548+ return new OffsetDateTime(
39549+ );
39550+ }
39551+}
39552+
39553+// This is an autogenerated file:OffsetTime
39554+
39555+class OffsetTime {
39556+
39557+ /**
39558+ */
39559+ public function __construct() {
39560+ }
39561+
39562+ /**
39563+ * @throws Exception
39564+ * @return bool
39565+ */
39566+ public function validate(): bool {
39567+ return true;
39568+ }
39569+
39570+ /**
39571+ * @return stdClass
39572+ * @throws Exception
39573+ */
39574+ public function to(): stdClass {
39575+ $out = new stdClass();
39576+ return $out;
39577+ }
39578+
39579+ /**
39580+ * @param stdClass $obj
39581+ * @return OffsetTime
39582+ * @throws Exception
39583+ */
39584+ public static function from(stdClass $obj): OffsetTime {
39585+ return new OffsetTime(
39586+ );
39587+ }
39588+
39589+ /**
39590+ * @return OffsetTime
39591+ */
39592+ public static function sample(): OffsetTime {
39593+ return new OffsetTime(
39594+ );
39595+ }
39596+}
39597+
3921439598 // This is an autogenerated file:Oneway
3921539599
3921639600 class Oneway {
Mschema-pikedefault / TopLevel.pmod+78 −0
@@ -197,6 +197,7 @@ class TopLevel {
197197 UnionLeft left; // json: "left"
198198 UnionLet let; // json: "let"
199199 UnionList list; // json: "list"
200+ UnionLocalDate local_date; // json: "LocalDate"
200201 UnionLocale locale; // json: "Locale"
201202 UnionLock lock; // json: "lock"
202203 UnionLong long; // json: "long"
@@ -237,6 +238,8 @@ class TopLevel {
237238 UnionObjectReader object_reader; // json: "ObjectReader"
238239 UnionObjectWriter object_writer; // json: "ObjectWriter"
239240 UnionOf of; // json: "of"
241+ UnionOffsetDateTime offset_date_time; // json: "OffsetDateTime"
242+ UnionOffsetTime offset_time; // json: "OffsetTime"
240243 UnionOneway oneway; // json: "oneway"
241244 UnionOpen open; // json: "open"
242245 UnionOperator operator; // json: "operator"
@@ -555,6 +558,7 @@ class TopLevel {
555558 "left" : left,
556559 "let" : let,
557560 "list" : list,
561+ "LocalDate" : local_date,
558562 "Locale" : locale,
559563 "lock" : lock,
560564 "long" : long,
@@ -595,6 +599,8 @@ class TopLevel {
595599 "ObjectReader" : object_reader,
596600 "ObjectWriter" : object_writer,
597601 "of" : of,
602+ "OffsetDateTime" : offset_date_time,
603+ "OffsetTime" : offset_time,
598604 "oneway" : oneway,
599605 "open" : open,
600606 "operator" : operator,
@@ -1102,6 +1108,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
11021108 retval.let = json["let"];
11031109 if (arrayp(json["list"])) error("Unexpected array");
11041110 retval.list = json["list"];
1111+ if (arrayp(json["LocalDate"])) error("Unexpected array");
1112+ retval.local_date = json["LocalDate"];
11051113 if (arrayp(json["Locale"])) error("Unexpected array");
11061114 retval.locale = json["Locale"];
11071115 if (arrayp(json["lock"])) error("Unexpected array");
@@ -1182,6 +1190,10 @@ TopLevel TopLevel_from_JSON(mixed json) {
11821190 retval.object_writer = json["ObjectWriter"];
11831191 if (arrayp(json["of"])) error("Unexpected array");
11841192 retval.of = json["of"];
1193+ if (arrayp(json["OffsetDateTime"])) error("Unexpected array");
1194+ retval.offset_date_time = json["OffsetDateTime"];
1195+ if (arrayp(json["OffsetTime"])) error("Unexpected array");
1196+ retval.offset_time = json["OffsetTime"];
11851197 if (arrayp(json["oneway"])) error("Unexpected array");
11861198 retval.oneway = json["oneway"];
11871199 if (arrayp(json["open"])) error("Unexpected array");
@@ -4836,6 +4848,28 @@ List List_from_JSON(mixed json) {
48364848 return retval;
48374849 }
48384850
4851+typedef float|LocalDate UnionLocalDate;
4852+
4853+UnionLocalDate UnionLocalDate_from_JSON(mixed json) {
4854+ return json;
4855+}
4856+
4857+class LocalDate {
4858+
4859+ string encode_json() {
4860+ mapping(string:mixed) json = ([
4861+ ]);
4862+
4863+ return Standards.JSON.encode(json);
4864+ }
4865+}
4866+
4867+LocalDate LocalDate_from_JSON(mixed json) {
4868+ LocalDate retval = LocalDate();
4869+
4870+ return retval;
4871+}
4872+
48394873 typedef float|Locale UnionLocale;
48404874
48414875 UnionLocale UnionLocale_from_JSON(mixed json) {
@@ -5650,6 +5684,50 @@ Of Of_from_JSON(mixed json) {
56505684 return retval;
56515685 }
56525686
5687+typedef float|OffsetDateTime UnionOffsetDateTime;
5688+
5689+UnionOffsetDateTime UnionOffsetDateTime_from_JSON(mixed json) {
5690+ return json;
5691+}
5692+
5693+class OffsetDateTime {
5694+
5695+ string encode_json() {
5696+ mapping(string:mixed) json = ([
5697+ ]);
5698+
5699+ return Standards.JSON.encode(json);
5700+ }
5701+}
5702+
5703+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5704+ OffsetDateTime retval = OffsetDateTime();
5705+
5706+ return retval;
5707+}
5708+
5709+typedef float|OffsetTime UnionOffsetTime;
5710+
5711+UnionOffsetTime UnionOffsetTime_from_JSON(mixed json) {
5712+ return json;
5713+}
5714+
5715+class OffsetTime {
5716+
5717+ string encode_json() {
5718+ mapping(string:mixed) json = ([
5719+ ]);
5720+
5721+ return Standards.JSON.encode(json);
5722+ }
5723+}
5724+
5725+OffsetTime OffsetTime_from_JSON(mixed json) {
5726+ OffsetTime retval = OffsetTime();
5727+
5728+ return retval;
5729+}
5730+
56535731 typedef float|Oneway UnionOneway;
56545732
56555733 UnionOneway UnionOneway_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+55 −1
@@ -2162,6 +2162,20 @@ class ListClass:
21622162 return result
21632163
21642164
2165+@dataclass
2166+class LocalDate:
2167+ pass
2168+
2169+ @staticmethod
2170+ def from_dict(obj: Any) -> 'LocalDate':
2171+ assert isinstance(obj, dict)
2172+ return LocalDate()
2173+
2174+ def to_dict(self) -> dict:
2175+ result: dict = {}
2176+ return result
2177+
2178+
21652179 @dataclass
21662180 class Locale:
21672181 pass
@@ -2666,6 +2680,34 @@ class Of:
26662680 return result
26672681
26682682
2683+@dataclass
2684+class OffsetDateTime:
2685+ pass
2686+
2687+ @staticmethod
2688+ def from_dict(obj: Any) -> 'OffsetDateTime':
2689+ assert isinstance(obj, dict)
2690+ return OffsetDateTime()
2691+
2692+ def to_dict(self) -> dict:
2693+ result: dict = {}
2694+ return result
2695+
2696+
2697+@dataclass
2698+class OffsetTime:
2699+ pass
2700+
2701+ @staticmethod
2702+ def from_dict(obj: Any) -> 'OffsetTime':
2703+ assert isinstance(obj, dict)
2704+ return OffsetTime()
2705+
2706+ def to_dict(self) -> dict:
2707+ result: dict = {}
2708+ return result
2709+
2710+
26692711 @dataclass
26702712 class Oneway:
26712713 pass
@@ -5176,6 +5218,7 @@ class TopLevel:
51765218 left: float | Left | None = None
51775219 let: float | Let | None = None
51785220 list: float | ListClass | None = None
5221+ local_date: float | LocalDate | None = None
51795222 locale: float | Locale | None = None
51805223 lock: float | Lock | None = None
51815224 long: float | Long | None = None
@@ -5216,6 +5259,8 @@ class TopLevel:
52165259 object_reader: float | ObjectReader | None = None
52175260 object_writer: float | ObjectWriter | None = None
52185261 of: float | Of | None = None
5262+ offset_date_time: float | OffsetDateTime | None = None
5263+ offset_time: float | OffsetTime | None = None
52195264 oneway: float | Oneway | None = None
52205265 open: float | Open | None = None
52215266 operator: float | Operator | None = None
@@ -5535,6 +5580,7 @@ class TopLevel:
55355580 left = from_union([from_float, Left.from_dict, from_none], obj.get("left"))
55365581 let = from_union([from_float, Let.from_dict, from_none], obj.get("let"))
55375582 list = from_union([from_float, ListClass.from_dict, from_none], obj.get("list"))
5583+ local_date = from_union([from_float, LocalDate.from_dict, from_none], obj.get("LocalDate"))
55385584 locale = from_union([from_float, Locale.from_dict, from_none], obj.get("Locale"))
55395585 lock = from_union([from_float, Lock.from_dict, from_none], obj.get("lock"))
55405586 long = from_union([from_float, Long.from_dict, from_none], obj.get("long"))
@@ -5575,6 +5621,8 @@ class TopLevel:
55755621 object_reader = from_union([from_float, ObjectReader.from_dict, from_none], obj.get("ObjectReader"))
55765622 object_writer = from_union([from_float, ObjectWriter.from_dict, from_none], obj.get("ObjectWriter"))
55775623 of = from_union([from_float, Of.from_dict, from_none], obj.get("of"))
5624+ offset_date_time = from_union([from_float, OffsetDateTime.from_dict, from_none], obj.get("OffsetDateTime"))
5625+ offset_time = from_union([from_float, OffsetTime.from_dict, from_none], obj.get("OffsetTime"))
55785626 oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway"))
55795627 open = from_union([from_float, Open.from_dict, from_none], obj.get("open"))
55805628 operator = from_union([from_float, Operator.from_dict, from_none], obj.get("operator"))
@@ -5706,7 +5754,7 @@ class TopLevel:
57065754 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
57075755 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
57085756 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5709- return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, array_node, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, boolean_node, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, deserialization_feature, top_level_dict, dictionary, did_set, do, double, double_node, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, top_level_from_dict, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, int_node, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, k_serializer, top_level_lambda, lazy, left, let, list, locale, lock, long, long_node, map, map_entry, marshal_json, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, null_node, nullptr, number, object, object_mapper, object_node, object_reader, object_writer, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, primitive_kind, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serial_descriptor, serializable, serialization_feature, serialize, serializer_provider, serial_name, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, text_node, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, top_level_to_dict, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unmarshal_json, unowned, unsafe, unsigned, use_serializers, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield)
5757+ return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, array_node, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, boolean_node, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, deserialization_feature, top_level_dict, dictionary, did_set, do, double, double_node, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, top_level_from_dict, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, int_node, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, k_serializer, top_level_lambda, lazy, left, let, list, local_date, locale, lock, long, long_node, map, map_entry, marshal_json, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, null_node, nullptr, number, object, object_mapper, object_node, object_reader, object_writer, of, offset_date_time, offset_time, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, primitive_kind, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serial_descriptor, serializable, serialization_feature, serialize, serializer_provider, serial_name, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, text_node, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, top_level_to_dict, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unmarshal_json, unowned, unsafe, unsigned, use_serializers, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield)
57105758
57115759 def to_dict(self) -> dict:
57125760 result: dict = {}
@@ -6078,6 +6126,8 @@ class TopLevel:
60786126 result["let"] = from_union([to_float, lambda x: to_class(Let, x), from_none], self.let)
60796127 if self.list is not None:
60806128 result["list"] = from_union([to_float, lambda x: to_class(ListClass, x), from_none], self.list)
6129+ if self.local_date is not None:
6130+ result["LocalDate"] = from_union([to_float, lambda x: to_class(LocalDate, x), from_none], self.local_date)
60816131 if self.locale is not None:
60826132 result["Locale"] = from_union([to_float, lambda x: to_class(Locale, x), from_none], self.locale)
60836133 if self.lock is not None:
@@ -6158,6 +6208,10 @@ class TopLevel:
61586208 result["ObjectWriter"] = from_union([to_float, lambda x: to_class(ObjectWriter, x), from_none], self.object_writer)
61596209 if self.of is not None:
61606210 result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of)
6211+ if self.offset_date_time is not None:
6212+ result["OffsetDateTime"] = from_union([to_float, lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time)
6213+ if self.offset_time is not None:
6214+ result["OffsetTime"] = from_union([to_float, lambda x: to_class(OffsetTime, x), from_none], self.offset_time)
61616215 if self.oneway is not None:
61626216 result["oneway"] = from_union([to_float, lambda x: to_class(Oneway, x), from_none], self.oneway)
61636217 if self.open is not None:
Mschema-ruby-syntaxdefault / TopLevel.rb+180 −0
@@ -9367,6 +9367,63 @@ class UnionList < Dry::Struct
93679367 end
93689368 end
93699369
9370+class LocalDate < Dry::Struct
9371+
9372+ def self.from_dynamic!(d)
9373+ d = Types::Hash[d]
9374+ new(
9375+ )
9376+ end
9377+
9378+ def self.from_json!(json)
9379+ from_dynamic!(JSON.parse(json))
9380+ end
9381+
9382+ def to_dynamic
9383+ {
9384+ }
9385+ end
9386+
9387+ def to_json(options = nil)
9388+ JSON.generate(to_dynamic, options)
9389+ end
9390+end
9391+
9392+class UnionLocalDate < Dry::Struct
9393+ attribute :double, Types::Double.optional
9394+ attribute :local_date, LocalDate.optional
9395+
9396+ def self.from_dynamic!(d)
9397+ if schema.key(:double).type.right.valid? d
9398+ return new(double: d, local_date: nil)
9399+ end
9400+ begin
9401+ value = LocalDate.from_dynamic!(d)
9402+ if schema.key(:local_date).type.right.valid? value
9403+ return new(local_date: value, double: nil)
9404+ end
9405+ rescue
9406+ end
9407+ raise "Invalid union"
9408+ end
9409+
9410+ def self.from_json!(json)
9411+ from_dynamic!(JSON.parse(json))
9412+ end
9413+
9414+ def to_dynamic
9415+ if double != nil
9416+ double
9417+ elsif local_date != nil
9418+ local_date.to_dynamic
9419+ end
9420+ end
9421+
9422+ def to_json(options = nil)
9423+ JSON.generate(to_dynamic, options)
9424+ end
9425+end
9426+
93709427 class Locale < Dry::Struct
93719428
93729429 def self.from_dynamic!(d)
@@ -11305,6 +11362,120 @@ class UnionOf < Dry::Struct
1130511362 end
1130611363 end
1130711364
11365+class OffsetDateTime < Dry::Struct
11366+
11367+ def self.from_dynamic!(d)
11368+ d = Types::Hash[d]
11369+ new(
11370+ )
11371+ end
11372+
11373+ def self.from_json!(json)
11374+ from_dynamic!(JSON.parse(json))
11375+ end
11376+
11377+ def to_dynamic
11378+ {
11379+ }
11380+ end
11381+
11382+ def to_json(options = nil)
11383+ JSON.generate(to_dynamic, options)
11384+ end
11385+end
11386+
11387+class UnionOffsetDateTime < Dry::Struct
11388+ attribute :double, Types::Double.optional
11389+ attribute :offset_date_time, OffsetDateTime.optional
11390+
11391+ def self.from_dynamic!(d)
11392+ if schema.key(:double).type.right.valid? d
11393+ return new(double: d, offset_date_time: nil)
11394+ end
11395+ begin
11396+ value = OffsetDateTime.from_dynamic!(d)
11397+ if schema.key(:offset_date_time).type.right.valid? value
11398+ return new(offset_date_time: value, double: nil)
11399+ end
11400+ rescue
11401+ end
11402+ raise "Invalid union"
11403+ end
11404+
11405+ def self.from_json!(json)
11406+ from_dynamic!(JSON.parse(json))
11407+ end
11408+
11409+ def to_dynamic
11410+ if double != nil
11411+ double
11412+ elsif offset_date_time != nil
11413+ offset_date_time.to_dynamic
11414+ end
11415+ end
11416+
11417+ def to_json(options = nil)
11418+ JSON.generate(to_dynamic, options)
11419+ end
11420+end
11421+
11422+class OffsetTime < Dry::Struct
11423+
11424+ def self.from_dynamic!(d)
11425+ d = Types::Hash[d]
11426+ new(
11427+ )
11428+ end
11429+
11430+ def self.from_json!(json)
11431+ from_dynamic!(JSON.parse(json))
11432+ end
11433+
11434+ def to_dynamic
11435+ {
11436+ }
11437+ end
11438+
11439+ def to_json(options = nil)
11440+ JSON.generate(to_dynamic, options)
11441+ end
11442+end
11443+
11444+class UnionOffsetTime < Dry::Struct
11445+ attribute :double, Types::Double.optional
11446+ attribute :offset_time, OffsetTime.optional
11447+
11448+ def self.from_dynamic!(d)
11449+ if schema.key(:double).type.right.valid? d
11450+ return new(double: d, offset_time: nil)
11451+ end
11452+ begin
11453+ value = OffsetTime.from_dynamic!(d)
11454+ if schema.key(:offset_time).type.right.valid? value
11455+ return new(offset_time: value, double: nil)
11456+ end
11457+ rescue
11458+ end
11459+ raise "Invalid union"
11460+ end
11461+
11462+ def self.from_json!(json)
11463+ from_dynamic!(JSON.parse(json))
11464+ end
11465+
11466+ def to_dynamic
11467+ if double != nil
11468+ double
11469+ elsif offset_time != nil
11470+ offset_time.to_dynamic
11471+ end
11472+ end
11473+
11474+ def to_json(options = nil)
11475+ JSON.generate(to_dynamic, options)
11476+ end
11477+end
11478+
1130811479 class Oneway < Dry::Struct
1130911480
1131011481 def self.from_dynamic!(d)
@@ -20382,6 +20553,7 @@ class TopLevel < Dry::Struct
2038220553 attribute :left, Types.Instance(UnionLeft).optional
2038320554 attribute :let, Types.Instance(UnionLet).optional
2038420555 attribute :list, Types.Instance(UnionList).optional
20556+ attribute :local_date, Types.Instance(UnionLocalDate).optional
2038520557 attribute :locale, Types.Instance(UnionLocale).optional
2038620558 attribute :lock, Types.Instance(UnionLock).optional
2038720559 attribute :long, Types.Instance(UnionLong).optional
@@ -20422,6 +20594,8 @@ class TopLevel < Dry::Struct
2042220594 attribute :object_reader, Types.Instance(UnionObjectReader).optional
2042320595 attribute :object_writer, Types.Instance(UnionObjectWriter).optional
2042420596 attribute :of, Types.Instance(UnionOf).optional
20597+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
20598+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
2042520599 attribute :oneway, Types.Instance(UnionOneway).optional
2042620600 attribute :top_level_open, Types.Instance(UnionOpen).optional
2042720601 attribute :operator, Types.Instance(UnionOperator).optional
@@ -20741,6 +20915,7 @@ class TopLevel < Dry::Struct
2074120915 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
2074220916 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
2074320917 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
20918+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
2074420919 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
2074520920 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
2074620921 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -20781,6 +20956,8 @@ class TopLevel < Dry::Struct
2078120956 object_reader: d.key?("ObjectReader") ? UnionObjectReader.from_dynamic!(d["ObjectReader"]) : nil,
2078220957 object_writer: d.key?("ObjectWriter") ? UnionObjectWriter.from_dynamic!(d["ObjectWriter"]) : nil,
2078320958 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
20959+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
20960+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
2078420961 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
2078520962 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
2078620963 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -21105,6 +21282,7 @@ class TopLevel < Dry::Struct
2110521282 "left" => left&.to_dynamic,
2110621283 "let" => let&.to_dynamic,
2110721284 "list" => list&.to_dynamic,
21285+ "LocalDate" => local_date&.to_dynamic,
2110821286 "Locale" => locale&.to_dynamic,
2110921287 "lock" => lock&.to_dynamic,
2111021288 "long" => long&.to_dynamic,
@@ -21145,6 +21323,8 @@ class TopLevel < Dry::Struct
2114521323 "ObjectReader" => object_reader&.to_dynamic,
2114621324 "ObjectWriter" => object_writer&.to_dynamic,
2114721325 "of" => of&.to_dynamic,
21326+ "OffsetDateTime" => offset_date_time&.to_dynamic,
21327+ "OffsetTime" => offset_time&.to_dynamic,
2114821328 "oneway" => oneway&.to_dynamic,
2114921329 "open" => top_level_open&.to_dynamic,
2115021330 "operator" => operator&.to_dynamic,
Mschema-rubydefault / TopLevel.rb+180 −0
@@ -9367,6 +9367,63 @@ class UnionList < Dry::Struct
93679367 end
93689368 end
93699369
9370+class LocalDate < Dry::Struct
9371+
9372+ def self.from_dynamic!(d)
9373+ d = Types::Hash[d]
9374+ new(
9375+ )
9376+ end
9377+
9378+ def self.from_json!(json)
9379+ from_dynamic!(JSON.parse(json))
9380+ end
9381+
9382+ def to_dynamic
9383+ {
9384+ }
9385+ end
9386+
9387+ def to_json(options = nil)
9388+ JSON.generate(to_dynamic, options)
9389+ end
9390+end
9391+
9392+class UnionLocalDate < Dry::Struct
9393+ attribute :double, Types::Double.optional
9394+ attribute :local_date, LocalDate.optional
9395+
9396+ def self.from_dynamic!(d)
9397+ if schema.key(:double).type.right.valid? d
9398+ return new(double: d, local_date: nil)
9399+ end
9400+ begin
9401+ value = LocalDate.from_dynamic!(d)
9402+ if schema.key(:local_date).type.right.valid? value
9403+ return new(local_date: value, double: nil)
9404+ end
9405+ rescue
9406+ end
9407+ raise "Invalid union"
9408+ end
9409+
9410+ def self.from_json!(json)
9411+ from_dynamic!(JSON.parse(json))
9412+ end
9413+
9414+ def to_dynamic
9415+ if double != nil
9416+ double
9417+ elsif local_date != nil
9418+ local_date.to_dynamic
9419+ end
9420+ end
9421+
9422+ def to_json(options = nil)
9423+ JSON.generate(to_dynamic, options)
9424+ end
9425+end
9426+
93709427 class Locale < Dry::Struct
93719428
93729429 def self.from_dynamic!(d)
@@ -11305,6 +11362,120 @@ class UnionOf < Dry::Struct
1130511362 end
1130611363 end
1130711364
11365+class OffsetDateTime < Dry::Struct
11366+
11367+ def self.from_dynamic!(d)
11368+ d = Types::Hash[d]
11369+ new(
11370+ )
11371+ end
11372+
11373+ def self.from_json!(json)
11374+ from_dynamic!(JSON.parse(json))
11375+ end
11376+
11377+ def to_dynamic
11378+ {
11379+ }
11380+ end
11381+
11382+ def to_json(options = nil)
11383+ JSON.generate(to_dynamic, options)
11384+ end
11385+end
11386+
11387+class UnionOffsetDateTime < Dry::Struct
11388+ attribute :double, Types::Double.optional
11389+ attribute :offset_date_time, OffsetDateTime.optional
11390+
11391+ def self.from_dynamic!(d)
11392+ if schema.key(:double).type.right.valid? d
11393+ return new(double: d, offset_date_time: nil)
11394+ end
11395+ begin
11396+ value = OffsetDateTime.from_dynamic!(d)
11397+ if schema.key(:offset_date_time).type.right.valid? value
11398+ return new(offset_date_time: value, double: nil)
11399+ end
11400+ rescue
11401+ end
11402+ raise "Invalid union"
11403+ end
11404+
11405+ def self.from_json!(json)
11406+ from_dynamic!(JSON.parse(json))
11407+ end
11408+
11409+ def to_dynamic
11410+ if double != nil
11411+ double
11412+ elsif offset_date_time != nil
11413+ offset_date_time.to_dynamic
11414+ end
11415+ end
11416+
11417+ def to_json(options = nil)
11418+ JSON.generate(to_dynamic, options)
11419+ end
11420+end
11421+
11422+class OffsetTime < Dry::Struct
11423+
11424+ def self.from_dynamic!(d)
11425+ d = Types::Hash[d]
11426+ new(
11427+ )
11428+ end
11429+
11430+ def self.from_json!(json)
11431+ from_dynamic!(JSON.parse(json))
11432+ end
11433+
11434+ def to_dynamic
11435+ {
11436+ }
11437+ end
11438+
11439+ def to_json(options = nil)
11440+ JSON.generate(to_dynamic, options)
11441+ end
11442+end
11443+
11444+class UnionOffsetTime < Dry::Struct
11445+ attribute :double, Types::Double.optional
11446+ attribute :offset_time, OffsetTime.optional
11447+
11448+ def self.from_dynamic!(d)
11449+ if schema.key(:double).type.right.valid? d
11450+ return new(double: d, offset_time: nil)
11451+ end
11452+ begin
11453+ value = OffsetTime.from_dynamic!(d)
11454+ if schema.key(:offset_time).type.right.valid? value
11455+ return new(offset_time: value, double: nil)
11456+ end
11457+ rescue
11458+ end
11459+ raise "Invalid union"
11460+ end
11461+
11462+ def self.from_json!(json)
11463+ from_dynamic!(JSON.parse(json))
11464+ end
11465+
11466+ def to_dynamic
11467+ if double != nil
11468+ double
11469+ elsif offset_time != nil
11470+ offset_time.to_dynamic
11471+ end
11472+ end
11473+
11474+ def to_json(options = nil)
11475+ JSON.generate(to_dynamic, options)
11476+ end
11477+end
11478+
1130811479 class Oneway < Dry::Struct
1130911480
1131011481 def self.from_dynamic!(d)
@@ -20382,6 +20553,7 @@ class TopLevel < Dry::Struct
2038220553 attribute :left, Types.Instance(UnionLeft).optional
2038320554 attribute :let, Types.Instance(UnionLet).optional
2038420555 attribute :list, Types.Instance(UnionList).optional
20556+ attribute :local_date, Types.Instance(UnionLocalDate).optional
2038520557 attribute :locale, Types.Instance(UnionLocale).optional
2038620558 attribute :lock, Types.Instance(UnionLock).optional
2038720559 attribute :long, Types.Instance(UnionLong).optional
@@ -20422,6 +20594,8 @@ class TopLevel < Dry::Struct
2042220594 attribute :object_reader, Types.Instance(UnionObjectReader).optional
2042320595 attribute :object_writer, Types.Instance(UnionObjectWriter).optional
2042420596 attribute :of, Types.Instance(UnionOf).optional
20597+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
20598+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
2042520599 attribute :oneway, Types.Instance(UnionOneway).optional
2042620600 attribute :top_level_open, Types.Instance(UnionOpen).optional
2042720601 attribute :operator, Types.Instance(UnionOperator).optional
@@ -20741,6 +20915,7 @@ class TopLevel < Dry::Struct
2074120915 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
2074220916 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
2074320917 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
20918+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
2074420919 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
2074520920 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
2074620921 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -20781,6 +20956,8 @@ class TopLevel < Dry::Struct
2078120956 object_reader: d.key?("ObjectReader") ? UnionObjectReader.from_dynamic!(d["ObjectReader"]) : nil,
2078220957 object_writer: d.key?("ObjectWriter") ? UnionObjectWriter.from_dynamic!(d["ObjectWriter"]) : nil,
2078320958 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
20959+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
20960+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
2078420961 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
2078520962 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
2078620963 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -21105,6 +21282,7 @@ class TopLevel < Dry::Struct
2110521282 "left" => left&.to_dynamic,
2110621283 "let" => let&.to_dynamic,
2110721284 "list" => list&.to_dynamic,
21285+ "LocalDate" => local_date&.to_dynamic,
2110821286 "Locale" => locale&.to_dynamic,
2110921287 "lock" => lock&.to_dynamic,
2111021288 "long" => long&.to_dynamic,
@@ -21145,6 +21323,8 @@ class TopLevel < Dry::Struct
2114521323 "ObjectReader" => object_reader&.to_dynamic,
2114621324 "ObjectWriter" => object_writer&.to_dynamic,
2114721325 "of" => of&.to_dynamic,
21326+ "OffsetDateTime" => offset_date_time&.to_dynamic,
21327+ "OffsetTime" => offset_time&.to_dynamic,
2114821328 "oneway" => oneway&.to_dynamic,
2114921329 "open" => top_level_open&.to_dynamic,
2115021330 "operator" => operator&.to_dynamic,
Mschema-rustdefault / module_under_test.rs+45 −0
@@ -454,6 +454,9 @@ pub struct TopLevel {
454454
455455 pub list: Option<UnionList>,
456456
457+ #[serde(rename = "LocalDate")]
458+ pub local_date: Option<UnionLocalDate>,
459+
457460 #[serde(rename = "Locale")]
458461 pub locale: Option<UnionLocale>,
459462
@@ -552,6 +555,12 @@ pub struct TopLevel {
552555
553556 pub of: Option<UnionOf>,
554557
558+ #[serde(rename = "OffsetDateTime")]
559+ pub offset_date_time: Option<UnionOffsetDateTime>,
560+
561+ #[serde(rename = "OffsetTime")]
562+ pub offset_time: Option<UnionOffsetTime>,
563+
555564 pub oneway: Option<UnionOneway>,
556565
557566 pub open: Option<UnionOpen>,
@@ -2772,6 +2781,18 @@ pub enum UnionList {
27722781 pub struct List {
27732782 }
27742783
2784+#[derive(Debug, Clone, Serialize, Deserialize)]
2785+#[serde(untagged)]
2786+pub enum UnionLocalDate {
2787+ Double(f64),
2788+
2789+ LocalDate(LocalDate),
2790+}
2791+
2792+#[derive(Debug, Clone, Serialize, Deserialize)]
2793+pub struct LocalDate {
2794+}
2795+
27752796 #[derive(Debug, Clone, Serialize, Deserialize)]
27762797 #[serde(untagged)]
27772798 pub enum UnionLocale {
@@ -3228,6 +3249,30 @@ pub enum UnionOf {
32283249 pub struct Of {
32293250 }
32303251
3252+#[derive(Debug, Clone, Serialize, Deserialize)]
3253+#[serde(untagged)]
3254+pub enum UnionOffsetDateTime {
3255+ Double(f64),
3256+
3257+ OffsetDateTime(OffsetDateTime),
3258+}
3259+
3260+#[derive(Debug, Clone, Serialize, Deserialize)]
3261+pub struct OffsetDateTime {
3262+}
3263+
3264+#[derive(Debug, Clone, Serialize, Deserialize)]
3265+#[serde(untagged)]
3266+pub enum UnionOffsetTime {
3267+ Double(f64),
3268+
3269+ OffsetTime(OffsetTime),
3270+}
3271+
3272+#[derive(Debug, Clone, Serialize, Deserialize)]
3273+pub struct OffsetTime {
3274+}
3275+
32313276 #[derive(Debug, Clone, Serialize, Deserialize)]
32323277 #[serde(untagged)]
32333278 pub enum UnionOneway {
Mschema-schemadefault / TopLevel.schema+57 −0
@@ -558,6 +558,9 @@
558558 "list": {
559559 "$ref": "#/definitions/UnionList"
560560 },
561+ "LocalDate": {
562+ "$ref": "#/definitions/UnionLocalDate"
563+ },
561564 "Locale": {
562565 "$ref": "#/definitions/UnionLocale"
563566 },
@@ -678,6 +681,12 @@
678681 "of": {
679682 "$ref": "#/definitions/UnionOf"
680683 },
684+ "OffsetDateTime": {
685+ "$ref": "#/definitions/UnionOffsetDateTime"
686+ },
687+ "OffsetTime": {
688+ "$ref": "#/definitions/UnionOffsetTime"
689+ },
681690 "oneway": {
682691 "$ref": "#/definitions/UnionOneway"
683692 },
@@ -1280,6 +1289,11 @@
12801289 "additionalProperties": false,
12811290 "title": "KSerializer"
12821291 },
1292+ "LocalDate": {
1293+ "type": "object",
1294+ "additionalProperties": false,
1295+ "title": "LocalDate"
1296+ },
12831297 "Locale": {
12841298 "type": "object",
12851299 "additionalProperties": false,
@@ -1355,6 +1369,16 @@
13551369 "additionalProperties": false,
13561370 "title": "ObjectWriter"
13571371 },
1372+ "OffsetDateTime": {
1373+ "type": "object",
1374+ "additionalProperties": false,
1375+ "title": "OffsetDateTime"
1376+ },
1377+ "OffsetTime": {
1378+ "type": "object",
1379+ "additionalProperties": false,
1380+ "title": "OffsetTime"
1381+ },
13581382 "PrimitiveKind": {
13591383 "type": "object",
13601384 "additionalProperties": false,
@@ -3296,6 +3320,17 @@
32963320 ],
32973321 "title": "UnionKSerializer"
32983322 },
3323+ "UnionLocalDate": {
3324+ "anyOf": [
3325+ {
3326+ "$ref": "#/definitions/LocalDate"
3327+ },
3328+ {
3329+ "type": "number"
3330+ }
3331+ ],
3332+ "title": "UnionLocalDate"
3333+ },
32993334 "UnionLocale": {
33003335 "anyOf": [
33013336 {
@@ -3461,6 +3496,28 @@
34613496 ],
34623497 "title": "UnionObjectWriter"
34633498 },
3499+ "UnionOffsetDateTime": {
3500+ "anyOf": [
3501+ {
3502+ "$ref": "#/definitions/OffsetDateTime"
3503+ },
3504+ {
3505+ "type": "number"
3506+ }
3507+ ],
3508+ "title": "UnionOffsetDateTime"
3509+ },
3510+ "UnionOffsetTime": {
3511+ "anyOf": [
3512+ {
3513+ "$ref": "#/definitions/OffsetTime"
3514+ },
3515+ {
3516+ "type": "number"
3517+ }
3518+ ],
3519+ "title": "UnionOffsetTime"
3520+ },
34643521 "UnionPrimitiveKind": {
34653522 "anyOf": [
34663523 {
Mschema-swiftdefault / quicktype.swift+225 −0
@@ -191,6 +191,7 @@ struct TopLevel: Codable {
191191 let topLevelLeft: UnionLeft?
192192 let topLevelLet: UnionLet?
193193 let list: UnionList?
194+ let localDate: UnionLocalDate?
194195 let locale: UnionLocale?
195196 let lock: UnionLock?
196197 let long: UnionLong?
@@ -231,6 +232,8 @@ struct TopLevel: Codable {
231232 let objectReader: UnionObjectReader?
232233 let objectWriter: UnionObjectWriter?
233234 let of: UnionOf?
235+ let offsetDateTime: UnionOffsetDateTime?
236+ let offsetTime: UnionOffsetTime?
234237 let oneway: UnionOneway?
235238 let topLevelOpen: UnionOpen?
236239 let topLevelOperator: UnionOperator?
@@ -548,6 +551,7 @@ struct TopLevel: Codable {
548551 case topLevelLeft = "left"
549552 case topLevelLet = "let"
550553 case list = "list"
554+ case localDate = "LocalDate"
551555 case locale = "Locale"
552556 case lock = "lock"
553557 case long = "long"
@@ -588,6 +592,8 @@ struct TopLevel: Codable {
588592 case objectReader = "ObjectReader"
589593 case objectWriter = "ObjectWriter"
590594 case of = "of"
595+ case offsetDateTime = "OffsetDateTime"
596+ case offsetTime = "OffsetTime"
591597 case oneway = "oneway"
592598 case topLevelOpen = "open"
593599 case topLevelOperator = "operator"
@@ -925,6 +931,7 @@ extension TopLevel {
925931 topLevelLeft: UnionLeft?? = nil,
926932 topLevelLet: UnionLet?? = nil,
927933 list: UnionList?? = nil,
934+ localDate: UnionLocalDate?? = nil,
928935 locale: UnionLocale?? = nil,
929936 lock: UnionLock?? = nil,
930937 long: UnionLong?? = nil,
@@ -965,6 +972,8 @@ extension TopLevel {
965972 objectReader: UnionObjectReader?? = nil,
966973 objectWriter: UnionObjectWriter?? = nil,
967974 of: UnionOf?? = nil,
975+ offsetDateTime: UnionOffsetDateTime?? = nil,
976+ offsetTime: UnionOffsetTime?? = nil,
968977 oneway: UnionOneway?? = nil,
969978 topLevelOpen: UnionOpen?? = nil,
970979 topLevelOperator: UnionOperator?? = nil,
@@ -1282,6 +1291,7 @@ extension TopLevel {
12821291 topLevelLeft: topLevelLeft ?? self.topLevelLeft,
12831292 topLevelLet: topLevelLet ?? self.topLevelLet,
12841293 list: list ?? self.list,
1294+ localDate: localDate ?? self.localDate,
12851295 locale: locale ?? self.locale,
12861296 lock: lock ?? self.lock,
12871297 long: long ?? self.long,
@@ -1322,6 +1332,8 @@ extension TopLevel {
13221332 objectReader: objectReader ?? self.objectReader,
13231333 objectWriter: objectWriter ?? self.objectWriter,
13241334 of: of ?? self.of,
1335+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
1336+ offsetTime: offsetTime ?? self.offsetTime,
13251337 oneway: oneway ?? self.oneway,
13261338 topLevelOpen: topLevelOpen ?? self.topLevelOpen,
13271339 topLevelOperator: topLevelOperator ?? self.topLevelOperator,
@@ -11263,6 +11275,77 @@ extension List {
1126311275 }
1126411276 }
1126511277
11278+enum UnionLocalDate: Codable {
11279+ case double(Double)
11280+ case localDate(LocalDate)
11281+
11282+ init(from decoder: Decoder) throws {
11283+ let container = try decoder.singleValueContainer()
11284+ if let x = try? container.decode(Double.self) {
11285+ self = .double(x)
11286+ return
11287+ }
11288+ if let x = try? container.decode(LocalDate.self) {
11289+ self = .localDate(x)
11290+ return
11291+ }
11292+ throw DecodingError.typeMismatch(UnionLocalDate.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionLocalDate"))
11293+ }
11294+
11295+ func encode(to encoder: Encoder) throws {
11296+ var container = encoder.singleValueContainer()
11297+ switch self {
11298+ case .double(let x):
11299+ try container.encode(x)
11300+ case .localDate(let x):
11301+ try container.encode(x)
11302+ }
11303+ }
11304+}
11305+
11306+// MARK: - LocalDate
11307+struct LocalDate: Codable {
11308+ private enum K: String, CodingKey { case unused }
11309+ init(from decoder: Decoder) throws {
11310+ _ = try decoder.container(keyedBy: K.self)
11311+ }
11312+ init() {
11313+ }
11314+}
11315+
11316+// MARK: LocalDate convenience initializers and mutators
11317+
11318+extension LocalDate {
11319+ init(data: Data) throws {
11320+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
11321+ }
11322+
11323+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11324+ guard let data = json.data(using: encoding) else {
11325+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11326+ }
11327+ try self.init(data: data)
11328+ }
11329+
11330+ init(fromURL url: URL) throws {
11331+ try self.init(data: try Data(contentsOf: url))
11332+ }
11333+
11334+ func with(
11335+ ) -> LocalDate {
11336+ return LocalDate(
11337+ )
11338+ }
11339+
11340+ func jsonData() throws -> Data {
11341+ return try newJSONEncoder().encode(self)
11342+ }
11343+
11344+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11345+ return String(data: try self.jsonData(), encoding: encoding)
11346+ }
11347+}
11348+
1126611349 enum UnionLocale: Codable {
1126711350 case double(Double)
1126811351 case localeClass(LocaleClass)
@@ -13748,6 +13831,148 @@ extension Of {
1374813831 }
1374913832 }
1375013833
13834+enum UnionOffsetDateTime: Codable {
13835+ case double(Double)
13836+ case offsetDateTime(OffsetDateTime)
13837+
13838+ init(from decoder: Decoder) throws {
13839+ let container = try decoder.singleValueContainer()
13840+ if let x = try? container.decode(Double.self) {
13841+ self = .double(x)
13842+ return
13843+ }
13844+ if let x = try? container.decode(OffsetDateTime.self) {
13845+ self = .offsetDateTime(x)
13846+ return
13847+ }
13848+ throw DecodingError.typeMismatch(UnionOffsetDateTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetDateTime"))
13849+ }
13850+
13851+ func encode(to encoder: Encoder) throws {
13852+ var container = encoder.singleValueContainer()
13853+ switch self {
13854+ case .double(let x):
13855+ try container.encode(x)
13856+ case .offsetDateTime(let x):
13857+ try container.encode(x)
13858+ }
13859+ }
13860+}
13861+
13862+// MARK: - OffsetDateTime
13863+struct OffsetDateTime: Codable {
13864+ private enum K: String, CodingKey { case unused }
13865+ init(from decoder: Decoder) throws {
13866+ _ = try decoder.container(keyedBy: K.self)
13867+ }
13868+ init() {
13869+ }
13870+}
13871+
13872+// MARK: OffsetDateTime convenience initializers and mutators
13873+
13874+extension OffsetDateTime {
13875+ init(data: Data) throws {
13876+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
13877+ }
13878+
13879+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13880+ guard let data = json.data(using: encoding) else {
13881+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13882+ }
13883+ try self.init(data: data)
13884+ }
13885+
13886+ init(fromURL url: URL) throws {
13887+ try self.init(data: try Data(contentsOf: url))
13888+ }
13889+
13890+ func with(
13891+ ) -> OffsetDateTime {
13892+ return OffsetDateTime(
13893+ )
13894+ }
13895+
13896+ func jsonData() throws -> Data {
13897+ return try newJSONEncoder().encode(self)
13898+ }
13899+
13900+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13901+ return String(data: try self.jsonData(), encoding: encoding)
13902+ }
13903+}
13904+
13905+enum UnionOffsetTime: Codable {
13906+ case double(Double)
13907+ case offsetTime(OffsetTime)
13908+
13909+ init(from decoder: Decoder) throws {
13910+ let container = try decoder.singleValueContainer()
13911+ if let x = try? container.decode(Double.self) {
13912+ self = .double(x)
13913+ return
13914+ }
13915+ if let x = try? container.decode(OffsetTime.self) {
13916+ self = .offsetTime(x)
13917+ return
13918+ }
13919+ throw DecodingError.typeMismatch(UnionOffsetTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetTime"))
13920+ }
13921+
13922+ func encode(to encoder: Encoder) throws {
13923+ var container = encoder.singleValueContainer()
13924+ switch self {
13925+ case .double(let x):
13926+ try container.encode(x)
13927+ case .offsetTime(let x):
13928+ try container.encode(x)
13929+ }
13930+ }
13931+}
13932+
13933+// MARK: - OffsetTime
13934+struct OffsetTime: Codable {
13935+ private enum K: String, CodingKey { case unused }
13936+ init(from decoder: Decoder) throws {
13937+ _ = try decoder.container(keyedBy: K.self)
13938+ }
13939+ init() {
13940+ }
13941+}
13942+
13943+// MARK: OffsetTime convenience initializers and mutators
13944+
13945+extension OffsetTime {
13946+ init(data: Data) throws {
13947+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
13948+ }
13949+
13950+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13951+ guard let data = json.data(using: encoding) else {
13952+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13953+ }
13954+ try self.init(data: data)
13955+ }
13956+
13957+ init(fromURL url: URL) throws {
13958+ try self.init(data: try Data(contentsOf: url))
13959+ }
13960+
13961+ func with(
13962+ ) -> OffsetTime {
13963+ return OffsetTime(
13964+ )
13965+ }
13966+
13967+ func jsonData() throws -> Data {
13968+ return try newJSONEncoder().encode(self)
13969+ }
13970+
13971+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13972+ return String(data: try self.jsonData(), encoding: encoding)
13973+ }
13974+}
13975+
1375113976 enum UnionOneway: Codable {
1375213977 case double(Double)
1375313978 case oneway(Oneway)
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
@@ -415,6 +415,12 @@ export class Open extends S.Class<Open>("Open")(S.Struct({}).pipe(S.filter(value
415415 export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
416416 ) {}
417417
418+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
419+) {}
420+
421+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
422+) {}
423+
418424 export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
419425 ) {}
420426
@@ -529,6 +535,9 @@ export class Lock extends S.Class<Lock>("Lock")(S.Struct({}).pipe(S.filter(value
529535 export class Locale extends S.Class<Locale>("Locale")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
530536 ) {}
531537
538+export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
539+) {}
540+
532541 export class List extends S.Class<List>("List")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
533542 ) {}
534543
@@ -1248,6 +1257,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12481257 "left": S.optional(S.Union(S.Number, Left)),
12491258 "let": S.optional(S.Union(S.Number, Let)),
12501259 "list": S.optional(S.Union(S.Number, List)),
1260+ "LocalDate": S.optional(S.Union(S.Number, LocalDate)),
12511261 "Locale": S.optional(S.Union(S.Number, Locale)),
12521262 "lock": S.optional(S.Union(S.Number, Lock)),
12531263 "long": S.optional(S.Union(S.Number, Long)),
@@ -1288,6 +1298,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12881298 "ObjectReader": S.optional(S.Union(S.Number, ObjectReader)),
12891299 "ObjectWriter": S.optional(S.Union(S.Number, ObjectWriter)),
12901300 "of": S.optional(S.Union(S.Number, Of)),
1301+ "OffsetDateTime": S.optional(S.Union(S.Number, OffsetDateTime)),
1302+ "OffsetTime": S.optional(S.Union(S.Number, OffsetTime)),
12911303 "oneway": S.optional(S.Union(S.Number, Oneway)),
12921304 "open": S.optional(S.Union(S.Number, Open)),
12931305 "operator": S.optional(S.Union(S.Number, Operator)),
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
@@ -713,6 +713,10 @@ export const ListSchema = z.object({
713713 });
714714 export type List = z.infer<typeof ListSchema>;
715715
716+export const LocalDateSchema = z.object({
717+});
718+export type LocalDate = z.infer<typeof LocalDateSchema>;
719+
716720 export const LocaleSchema = z.object({
717721 });
718722 export type Locale = z.infer<typeof LocaleSchema>;
@@ -865,6 +869,14 @@ export const OfSchema = z.object({
865869 });
866870 export type Of = z.infer<typeof OfSchema>;
867871
872+export const OffsetDateTimeSchema = z.object({
873+});
874+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
875+
876+export const OffsetTimeSchema = z.object({
877+});
878+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
879+
868880 export const OnewaySchema = z.object({
869881 });
870882 export type Oneway = z.infer<typeof OnewaySchema>;
@@ -1602,6 +1614,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
16021614 "left": z.union([LeftSchema, z.number()]).optional(),
16031615 "let": z.union([LetSchema, z.number()]).optional(),
16041616 "list": z.union([ListSchema, z.number()]).optional(),
1617+ "LocalDate": z.union([LocalDateSchema, z.number()]).optional(),
16051618 "Locale": z.union([LocaleSchema, z.number()]).optional(),
16061619 "lock": z.union([LockSchema, z.number()]).optional(),
16071620 "long": z.union([LongSchema, z.number()]).optional(),
@@ -1642,6 +1655,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
16421655 "ObjectReader": z.union([ObjectReaderSchema, z.number()]).optional(),
16431656 "ObjectWriter": z.union([ObjectWriterSchema, z.number()]).optional(),
16441657 "of": z.union([OfSchema, z.number()]).optional(),
1658+ "OffsetDateTime": z.union([OffsetDateTimeSchema, z.number()]).optional(),
1659+ "OffsetTime": z.union([OffsetTimeSchema, z.number()]).optional(),
16451660 "oneway": z.union([OnewaySchema, z.number()]).optional(),
16461661 "open": z.union([OpenSchema, z.number()]).optional(),
16471662 "operator": z.union([OperatorSchema, z.number()]).optional(),
Mschema-typescriptdefault / TopLevel.ts+12 −0
@@ -192,6 +192,7 @@ export interface TopLevel {
192192 left?: UnionLeft;
193193 let?: UnionLet;
194194 list?: UnionList;
195+ LocalDate?: UnionLocalDate;
195196 Locale?: UnionLocale;
196197 lock?: UnionLock;
197198 long?: UnionLong;
@@ -232,6 +233,8 @@ export interface TopLevel {
232233 ObjectReader?: UnionObjectReader;
233234 ObjectWriter?: UnionObjectWriter;
234235 of?: UnionOf;
236+ OffsetDateTime?: UnionOffsetDateTime;
237+ OffsetTime?: UnionOffsetTime;
235238 oneway?: UnionOneway;
236239 open?: UnionOpen;
237240 operator?: UnionOperator;
@@ -448,6 +451,8 @@ export type UnionJSONTokenType = object | number;
448451
449452 export type UnionKSerializer = object | number;
450453
454+export type UnionLocalDate = object | number;
455+
451456 export type UnionLocale = object | number;
452457
453458 export type UnionLongNode = object | number;
@@ -478,6 +483,10 @@ export type UnionObjectReader = object | number;
478483
479484 export type UnionObjectWriter = object | number;
480485
486+export type UnionOffsetDateTime = object | number;
487+
488+export type UnionOffsetTime = object | number;
489+
481490 export type UnionPrimitiveKind = object | number;
482491
483492 export type UnionProtocol = object | number;
@@ -1446,6 +1455,7 @@ const typeMap: any = {
14461455 { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) },
14471456 { json: "let", js: "let", typ: u(undefined, u(m("any"), 3.14)) },
14481457 { json: "list", js: "list", typ: u(undefined, u(m("any"), 3.14)) },
1458+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(m("any"), 3.14)) },
14491459 { json: "Locale", js: "Locale", typ: u(undefined, u(m("any"), 3.14)) },
14501460 { json: "lock", js: "lock", typ: u(undefined, u(m("any"), 3.14)) },
14511461 { json: "long", js: "long", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1486,6 +1496,8 @@ const typeMap: any = {
14861496 { json: "ObjectReader", js: "ObjectReader", typ: u(undefined, u(m("any"), 3.14)) },
14871497 { json: "ObjectWriter", js: "ObjectWriter", typ: u(undefined, u(m("any"), 3.14)) },
14881498 { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) },
1499+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(m("any"), 3.14)) },
1500+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(m("any"), 3.14)) },
14891501 { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) },
14901502 { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) },
14911503 { json: "operator", js: "operator", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.