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
23,184changed lines
+15,694 −7,490insertions / deletions
Base b848720ff991a5e25d8f194da6d4aed99b478368 · PR merge d1ec86ecd4ca95966e3a2cbfeb6c072b0d57dcfa · Head 39e70fbd4a594037509e3bb9dc1c9b0282650a21 · raw patch
Test case

test/inputs/json/priority/keywords.json

56 generated files · +9,962 −7,256
Mcjsondefault / TopLevel.c+665 −470
@@ -10921,6 +10921,61 @@ void cJSON_DeleteList(struct List * x) {
1092110921 }
1092210922 }
1092310923
10924+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
10925+ struct LocalDate * x = NULL;
10926+ if (NULL != s) {
10927+ cJSON * j = cJSON_Parse(s);
10928+ if (NULL != j) {
10929+ x = cJSON_GetLocalDateValue(j);
10930+ cJSON_Delete(j);
10931+ }
10932+ }
10933+ return x;
10934+}
10935+
10936+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
10937+ struct LocalDate * x = NULL;
10938+ if (NULL != j) {
10939+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
10940+ memset(x, 0, sizeof(struct LocalDate));
10941+ if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteLocalDate(x); return NULL; }
10942+ if (cJSON_HasObjectItem(j, "LocalDate")) {
10943+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteLocalDate(x); return NULL; }
10944+ x->local_date = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
10945+ }
10946+ }
10947+ }
10948+ return x;
10949+}
10950+
10951+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
10952+ cJSON * j = NULL;
10953+ if (NULL != x) {
10954+ if (NULL != (j = cJSON_CreateObject())) {
10955+ cJSON_AddNumberToObject(j, "LocalDate", x->local_date);
10956+ }
10957+ }
10958+ return j;
10959+}
10960+
10961+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
10962+ char * s = NULL;
10963+ if (NULL != x) {
10964+ cJSON * j = cJSON_CreateLocalDate(x);
10965+ if (NULL != j) {
10966+ s = cJSON_Print(j);
10967+ cJSON_Delete(j);
10968+ }
10969+ }
10970+ return s;
10971+}
10972+
10973+void cJSON_DeleteLocalDate(struct LocalDate * x) {
10974+ if (NULL != x) {
10975+ cJSON_free(x);
10976+ }
10977+}
10978+
1092410979 struct Locale * cJSON_ParseLocale(const char * s) {
1092510980 struct Locale * x = NULL;
1092610981 if (NULL != s) {
@@ -11966,61 +12021,6 @@ void cJSON_DeleteNew(struct New * x) {
1196612021 }
1196712022 }
1196812023
11969-struct Noexcept * cJSON_ParseNoexcept(const char * s) {
11970- struct Noexcept * x = NULL;
11971- if (NULL != s) {
11972- cJSON * j = cJSON_Parse(s);
11973- if (NULL != j) {
11974- x = cJSON_GetNoexceptValue(j);
11975- cJSON_Delete(j);
11976- }
11977- }
11978- return x;
11979-}
11980-
11981-struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) {
11982- struct Noexcept * x = NULL;
11983- if (NULL != j) {
11984- if (NULL != (x = cJSON_malloc(sizeof(struct Noexcept)))) {
11985- memset(x, 0, sizeof(struct Noexcept));
11986- if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteNoexcept(x); return NULL; }
11987- if (cJSON_HasObjectItem(j, "noexcept")) {
11988- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteNoexcept(x); return NULL; }
11989- x->noexcept_noexcept = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
11990- }
11991- }
11992- }
11993- return x;
11994-}
11995-
11996-cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) {
11997- cJSON * j = NULL;
11998- if (NULL != x) {
11999- if (NULL != (j = cJSON_CreateObject())) {
12000- cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept);
12001- }
12002- }
12003- return j;
12004-}
12005-
12006-char * cJSON_PrintNoexcept(const struct Noexcept * x) {
12007- char * s = NULL;
12008- if (NULL != x) {
12009- cJSON * j = cJSON_CreateNoexcept(x);
12010- if (NULL != j) {
12011- s = cJSON_Print(j);
12012- cJSON_Delete(j);
12013- }
12014- }
12015- return s;
12016-}
12017-
12018-void cJSON_DeleteNoexcept(struct Noexcept * x) {
12019- if (NULL != x) {
12020- cJSON_free(x);
12021- }
12022-}
12023-
1202412024 struct Obj3 * cJSON_ParseObj3(const char * s) {
1202512025 struct Obj3 * x = NULL;
1202612026 if (NULL != s) {
@@ -12307,6 +12307,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1230712307 x->list = cJSON_GetListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
1230812308 if (NULL == x->list) { cJSON_DeleteObj3(x); return NULL; }
1230912309 }
12310+ if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteObj3(x); return NULL; }
12311+ if (cJSON_HasObjectItem(j, "LocalDate")) {
12312+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteObj3(x); return NULL; }
12313+ x->local_date = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
12314+ if (NULL == x->local_date) { cJSON_DeleteObj3(x); return NULL; }
12315+ }
1231012316 if (!cJSON_HasObjectItem(j, "Locale")) { cJSON_DeleteObj3(x); return NULL; }
1231112317 if (cJSON_HasObjectItem(j, "Locale")) {
1231212318 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteObj3(x); return NULL; }
@@ -12421,12 +12427,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) {
1242112427 x->obj3_new = cJSON_GetNewValue(cJSON_GetObjectItemCaseSensitive(j, "new"));
1242212428 if (NULL == x->obj3_new) { cJSON_DeleteObj3(x); return NULL; }
1242312429 }
12424- if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteObj3(x); return NULL; }
12425- if (cJSON_HasObjectItem(j, "noexcept")) {
12426- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteObj3(x); return NULL; }
12427- x->obj3_noexcept = cJSON_GetNoexceptValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
12428- if (NULL == x->obj3_noexcept) { cJSON_DeleteObj3(x); return NULL; }
12429- }
1243012430 }
1243112431 }
1243212432 return x;
@@ -12481,6 +12481,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1248112481 cJSON_AddItemToObject(j, "left", cJSON_CreateLeft(x->left));
1248212482 cJSON_AddItemToObject(j, "let", cJSON_CreateLet(x->let));
1248312483 cJSON_AddItemToObject(j, "list", cJSON_CreateList(x->list));
12484+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateLocalDate(x->local_date));
1248412485 cJSON_AddItemToObject(j, "Locale", cJSON_CreateLocale(x->locale));
1248512486 cJSON_AddItemToObject(j, "lock", cJSON_CreateLock(x->lock));
1248612487 cJSON_AddItemToObject(j, "map", cJSON_CreateMap(x->map));
@@ -12500,7 +12501,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) {
1250012501 cJSON_AddItemToObject(j, "mutable", cJSON_CreateMutable(x->obj3_mutable));
1250112502 cJSON_AddItemToObject(j, "namespace", cJSON_CreateNamespace(x->obj3_namespace));
1250212503 cJSON_AddItemToObject(j, "new", cJSON_CreateNew(x->obj3_new));
12503- cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj3_noexcept));
1250412504 }
1250512505 }
1250612506 return j;
@@ -12652,6 +12652,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1265212652 if (NULL != x->list) {
1265312653 cJSON_DeleteList(x->list);
1265412654 }
12655+ if (NULL != x->local_date) {
12656+ cJSON_DeleteLocalDate(x->local_date);
12657+ }
1265512658 if (NULL != x->locale) {
1265612659 cJSON_DeleteLocale(x->locale);
1265712660 }
@@ -12709,9 +12712,6 @@ void cJSON_DeleteObj3(struct Obj3 * x) {
1270912712 if (NULL != x->obj3_new) {
1271012713 cJSON_DeleteNew(x->obj3_new);
1271112714 }
12712- if (NULL != x->obj3_noexcept) {
12713- cJSON_DeleteNoexcept(x->obj3_noexcept);
12714- }
1271512715 cJSON_free(x);
1271612716 }
1271712717 }
@@ -13266,6 +13266,61 @@ void cJSON_DeleteNumberClass(struct NumberClass * x) {
1326613266 }
1326713267 }
1326813268
13269+struct Noexcept * cJSON_ParseNoexcept(const char * s) {
13270+ struct Noexcept * x = NULL;
13271+ if (NULL != s) {
13272+ cJSON * j = cJSON_Parse(s);
13273+ if (NULL != j) {
13274+ x = cJSON_GetNoexceptValue(j);
13275+ cJSON_Delete(j);
13276+ }
13277+ }
13278+ return x;
13279+}
13280+
13281+struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) {
13282+ struct Noexcept * x = NULL;
13283+ if (NULL != j) {
13284+ if (NULL != (x = cJSON_malloc(sizeof(struct Noexcept)))) {
13285+ memset(x, 0, sizeof(struct Noexcept));
13286+ if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteNoexcept(x); return NULL; }
13287+ if (cJSON_HasObjectItem(j, "noexcept")) {
13288+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteNoexcept(x); return NULL; }
13289+ x->noexcept_noexcept = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
13290+ }
13291+ }
13292+ }
13293+ return x;
13294+}
13295+
13296+cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) {
13297+ cJSON * j = NULL;
13298+ if (NULL != x) {
13299+ if (NULL != (j = cJSON_CreateObject())) {
13300+ cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept);
13301+ }
13302+ }
13303+ return j;
13304+}
13305+
13306+char * cJSON_PrintNoexcept(const struct Noexcept * x) {
13307+ char * s = NULL;
13308+ if (NULL != x) {
13309+ cJSON * j = cJSON_CreateNoexcept(x);
13310+ if (NULL != j) {
13311+ s = cJSON_Print(j);
13312+ cJSON_Delete(j);
13313+ }
13314+ }
13315+ return s;
13316+}
13317+
13318+void cJSON_DeleteNoexcept(struct Noexcept * x) {
13319+ if (NULL != x) {
13320+ cJSON_free(x);
13321+ }
13322+}
13323+
1326913324 struct NoneClass * cJSON_ParseNoneClass(const char * s) {
1327013325 struct NoneClass * x = NULL;
1327113326 if (NULL != s) {
@@ -14421,6 +14476,116 @@ void cJSON_DeleteOf(struct Of * x) {
1442114476 }
1442214477 }
1442314478
14479+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
14480+ struct OffsetDateTime * x = NULL;
14481+ if (NULL != s) {
14482+ cJSON * j = cJSON_Parse(s);
14483+ if (NULL != j) {
14484+ x = cJSON_GetOffsetDateTimeValue(j);
14485+ cJSON_Delete(j);
14486+ }
14487+ }
14488+ return x;
14489+}
14490+
14491+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
14492+ struct OffsetDateTime * x = NULL;
14493+ if (NULL != j) {
14494+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
14495+ memset(x, 0, sizeof(struct OffsetDateTime));
14496+ if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteOffsetDateTime(x); return NULL; }
14497+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
14498+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteOffsetDateTime(x); return NULL; }
14499+ x->offset_date_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
14500+ }
14501+ }
14502+ }
14503+ return x;
14504+}
14505+
14506+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
14507+ cJSON * j = NULL;
14508+ if (NULL != x) {
14509+ if (NULL != (j = cJSON_CreateObject())) {
14510+ cJSON_AddNumberToObject(j, "OffsetDateTime", x->offset_date_time);
14511+ }
14512+ }
14513+ return j;
14514+}
14515+
14516+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
14517+ char * s = NULL;
14518+ if (NULL != x) {
14519+ cJSON * j = cJSON_CreateOffsetDateTime(x);
14520+ if (NULL != j) {
14521+ s = cJSON_Print(j);
14522+ cJSON_Delete(j);
14523+ }
14524+ }
14525+ return s;
14526+}
14527+
14528+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
14529+ if (NULL != x) {
14530+ cJSON_free(x);
14531+ }
14532+}
14533+
14534+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
14535+ struct OffsetTime * x = NULL;
14536+ if (NULL != s) {
14537+ cJSON * j = cJSON_Parse(s);
14538+ if (NULL != j) {
14539+ x = cJSON_GetOffsetTimeValue(j);
14540+ cJSON_Delete(j);
14541+ }
14542+ }
14543+ return x;
14544+}
14545+
14546+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
14547+ struct OffsetTime * x = NULL;
14548+ if (NULL != j) {
14549+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
14550+ memset(x, 0, sizeof(struct OffsetTime));
14551+ if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteOffsetTime(x); return NULL; }
14552+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
14553+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteOffsetTime(x); return NULL; }
14554+ x->offset_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
14555+ }
14556+ }
14557+ }
14558+ return x;
14559+}
14560+
14561+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
14562+ cJSON * j = NULL;
14563+ if (NULL != x) {
14564+ if (NULL != (j = cJSON_CreateObject())) {
14565+ cJSON_AddNumberToObject(j, "OffsetTime", x->offset_time);
14566+ }
14567+ }
14568+ return j;
14569+}
14570+
14571+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
14572+ char * s = NULL;
14573+ if (NULL != x) {
14574+ cJSON * j = cJSON_CreateOffsetTime(x);
14575+ if (NULL != j) {
14576+ s = cJSON_Print(j);
14577+ cJSON_Delete(j);
14578+ }
14579+ }
14580+ return s;
14581+}
14582+
14583+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
14584+ if (NULL != x) {
14585+ cJSON_free(x);
14586+ }
14587+}
14588+
1442414589 struct Oneway * cJSON_ParseOneway(const char * s) {
1442514590 struct Oneway * x = NULL;
1442614591 if (NULL != s) {
@@ -16084,192 +16249,27 @@ void cJSON_DeleteSbyte(struct Sbyte * x) {
1608416249 }
1608516250 }
1608616251
16087-struct Sealed * cJSON_ParseSealed(const char * s) {
16088- struct Sealed * x = NULL;
16252+struct Obj4 * cJSON_ParseObj4(const char * s) {
16253+ struct Obj4 * x = NULL;
1608916254 if (NULL != s) {
1609016255 cJSON * j = cJSON_Parse(s);
1609116256 if (NULL != j) {
16092- x = cJSON_GetSealedValue(j);
16257+ x = cJSON_GetObj4Value(j);
1609316258 cJSON_Delete(j);
1609416259 }
1609516260 }
1609616261 return x;
1609716262 }
1609816263
16099-struct Sealed * cJSON_GetSealedValue(const cJSON * j) {
16100- struct Sealed * x = NULL;
16264+struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
16265+ struct Obj4 * x = NULL;
1610116266 if (NULL != j) {
16102- if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) {
16103- memset(x, 0, sizeof(struct Sealed));
16104- if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; }
16105- if (cJSON_HasObjectItem(j, "sealed")) {
16106- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; }
16107- x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
16108- }
16109- }
16110- }
16111- return x;
16112-}
16113-
16114-cJSON * cJSON_CreateSealed(const struct Sealed * x) {
16115- cJSON * j = NULL;
16116- if (NULL != x) {
16117- if (NULL != (j = cJSON_CreateObject())) {
16118- cJSON_AddNumberToObject(j, "sealed", x->sealed);
16119- }
16120- }
16121- return j;
16122-}
16123-
16124-char * cJSON_PrintSealed(const struct Sealed * x) {
16125- char * s = NULL;
16126- if (NULL != x) {
16127- cJSON * j = cJSON_CreateSealed(x);
16128- if (NULL != j) {
16129- s = cJSON_Print(j);
16130- cJSON_Delete(j);
16131- }
16132- }
16133- return s;
16134-}
16135-
16136-void cJSON_DeleteSealed(struct Sealed * x) {
16137- if (NULL != x) {
16138- cJSON_free(x);
16139- }
16140-}
16141-
16142-struct Sel * cJSON_ParseSel(const char * s) {
16143- struct Sel * x = NULL;
16144- if (NULL != s) {
16145- cJSON * j = cJSON_Parse(s);
16146- if (NULL != j) {
16147- x = cJSON_GetSelValue(j);
16148- cJSON_Delete(j);
16149- }
16150- }
16151- return x;
16152-}
16153-
16154-struct Sel * cJSON_GetSelValue(const cJSON * j) {
16155- struct Sel * x = NULL;
16156- if (NULL != j) {
16157- if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) {
16158- memset(x, 0, sizeof(struct Sel));
16159- if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; }
16160- if (cJSON_HasObjectItem(j, "SEL")) {
16161- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; }
16162- x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
16163- }
16164- }
16165- }
16166- return x;
16167-}
16168-
16169-cJSON * cJSON_CreateSel(const struct Sel * x) {
16170- cJSON * j = NULL;
16171- if (NULL != x) {
16172- if (NULL != (j = cJSON_CreateObject())) {
16173- cJSON_AddNumberToObject(j, "SEL", x->sel);
16174- }
16175- }
16176- return j;
16177-}
16178-
16179-char * cJSON_PrintSel(const struct Sel * x) {
16180- char * s = NULL;
16181- if (NULL != x) {
16182- cJSON * j = cJSON_CreateSel(x);
16183- if (NULL != j) {
16184- s = cJSON_Print(j);
16185- cJSON_Delete(j);
16186- }
16187- }
16188- return s;
16189-}
16190-
16191-void cJSON_DeleteSel(struct Sel * x) {
16192- if (NULL != x) {
16193- cJSON_free(x);
16194- }
16195-}
16196-
16197-struct Select * cJSON_ParseSelect(const char * s) {
16198- struct Select * x = NULL;
16199- if (NULL != s) {
16200- cJSON * j = cJSON_Parse(s);
16201- if (NULL != j) {
16202- x = cJSON_GetSelectValue(j);
16203- cJSON_Delete(j);
16204- }
16205- }
16206- return x;
16207-}
16208-
16209-struct Select * cJSON_GetSelectValue(const cJSON * j) {
16210- struct Select * x = NULL;
16211- if (NULL != j) {
16212- if (NULL != (x = cJSON_malloc(sizeof(struct Select)))) {
16213- memset(x, 0, sizeof(struct Select));
16214- if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteSelect(x); return NULL; }
16215- if (cJSON_HasObjectItem(j, "select")) {
16216- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteSelect(x); return NULL; }
16217- x->select = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
16218- }
16219- }
16220- }
16221- return x;
16222-}
16223-
16224-cJSON * cJSON_CreateSelect(const struct Select * x) {
16225- cJSON * j = NULL;
16226- if (NULL != x) {
16227- if (NULL != (j = cJSON_CreateObject())) {
16228- cJSON_AddNumberToObject(j, "select", x->select);
16229- }
16230- }
16231- return j;
16232-}
16233-
16234-char * cJSON_PrintSelect(const struct Select * x) {
16235- char * s = NULL;
16236- if (NULL != x) {
16237- cJSON * j = cJSON_CreateSelect(x);
16238- if (NULL != j) {
16239- s = cJSON_Print(j);
16240- cJSON_Delete(j);
16241- }
16242- }
16243- return s;
16244-}
16245-
16246-void cJSON_DeleteSelect(struct Select * x) {
16247- if (NULL != x) {
16248- cJSON_free(x);
16249- }
16250-}
16251-
16252-struct Obj4 * cJSON_ParseObj4(const char * s) {
16253- struct Obj4 * x = NULL;
16254- if (NULL != s) {
16255- cJSON * j = cJSON_Parse(s);
16256- if (NULL != j) {
16257- x = cJSON_GetObj4Value(j);
16258- cJSON_Delete(j);
16259- }
16260- }
16261- return x;
16262-}
16263-
16264-struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
16265- struct Obj4 * x = NULL;
16266- if (NULL != j) {
16267- if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) {
16268- memset(x, 0, sizeof(struct Obj4));
16269- if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; }
16270- if (cJSON_HasObjectItem(j, "dummy")) {
16271- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; }
16272- x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
16267+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) {
16268+ memset(x, 0, sizeof(struct Obj4));
16269+ if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; }
16270+ if (cJSON_HasObjectItem(j, "dummy")) {
16271+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; }
16272+ x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
1627316273 }
1627416274 if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj4(x); return NULL; }
1627516275 if (cJSON_HasObjectItem(j, "noSuchMethod")) {
@@ -16331,6 +16331,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1633116331 x->number = cJSON_GetNumberClassValue(cJSON_GetObjectItemCaseSensitive(j, "number"));
1633216332 if (NULL == x->number) { cJSON_DeleteObj4(x); return NULL; }
1633316333 }
16334+ if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteObj4(x); return NULL; }
16335+ if (cJSON_HasObjectItem(j, "noexcept")) {
16336+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteObj4(x); return NULL; }
16337+ x->obj4_noexcept = cJSON_GetNoexceptValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept"));
16338+ if (NULL == x->obj4_noexcept) { cJSON_DeleteObj4(x); return NULL; }
16339+ }
1633416340 if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteObj4(x); return NULL; }
1633516341 if (cJSON_HasObjectItem(j, "none")) {
1633616342 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16457,6 +16463,18 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1645716463 x->of = cJSON_GetOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
1645816464 if (NULL == x->of) { cJSON_DeleteObj4(x); return NULL; }
1645916465 }
16466+ if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteObj4(x); return NULL; }
16467+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
16468+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteObj4(x); return NULL; }
16469+ x->offset_date_time = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
16470+ if (NULL == x->offset_date_time) { cJSON_DeleteObj4(x); return NULL; }
16471+ }
16472+ if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteObj4(x); return NULL; }
16473+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
16474+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteObj4(x); return NULL; }
16475+ x->offset_time = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
16476+ if (NULL == x->offset_time) { cJSON_DeleteObj4(x); return NULL; }
16477+ }
1646016478 if (!cJSON_HasObjectItem(j, "oneway")) { cJSON_DeleteObj4(x); return NULL; }
1646116479 if (cJSON_HasObjectItem(j, "oneway")) {
1646216480 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteObj4(x); return NULL; }
@@ -16637,24 +16655,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) {
1663716655 x->sbyte = cJSON_GetSbyteValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte"));
1663816656 if (NULL == x->sbyte) { cJSON_DeleteObj4(x); return NULL; }
1663916657 }
16640- if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj4(x); return NULL; }
16641- if (cJSON_HasObjectItem(j, "sealed")) {
16642- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj4(x); return NULL; }
16643- x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
16644- if (NULL == x->sealed) { cJSON_DeleteObj4(x); return NULL; }
16645- }
16646- if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj4(x); return NULL; }
16647- if (cJSON_HasObjectItem(j, "SEL")) {
16648- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj4(x); return NULL; }
16649- x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
16650- if (NULL == x->sel) { cJSON_DeleteObj4(x); return NULL; }
16651- }
16652- if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj4(x); return NULL; }
16653- if (cJSON_HasObjectItem(j, "select")) {
16654- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj4(x); return NULL; }
16655- x->select = cJSON_GetSelectValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
16656- if (NULL == x->select) { cJSON_DeleteObj4(x); return NULL; }
16657- }
1665816658 }
1665916659 }
1666016660 return x;
@@ -16675,6 +16675,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1667516675 cJSON_AddItemToObject(j, "NSString", cJSON_CreateNsString(x->ns_string));
1667616676 cJSON_AddItemToObject(j, "NULL", cJSON_CreateNullClass(x->null));
1667716677 cJSON_AddItemToObject(j, "number", cJSON_CreateNumberClass(x->number));
16678+ cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj4_noexcept));
1667816679 cJSON_AddItemToObject(j, "none", cJSON_CreateNoneClass(x->obj4_none));
1667916680 cJSON_AddItemToObject(j, "not", cJSON_CreateNot(x->obj4_not));
1668016681 cJSON_AddItemToObject(j, "not_eq", cJSON_CreateNotEq(x->obj4_not_eq));
@@ -16696,6 +16697,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1669616697 cJSON_AddItemToObject(j, "object", cJSON_CreateObjectClass(x->object));
1669716698 cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateObjectMapper(x->object_mapper));
1669816699 cJSON_AddItemToObject(j, "of", cJSON_CreateOf(x->of));
16700+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateOffsetDateTime(x->offset_date_time));
16701+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateOffsetTime(x->offset_time));
1669916702 cJSON_AddItemToObject(j, "oneway", cJSON_CreateOneway(x->oneway));
1670016703 cJSON_AddItemToObject(j, "open", cJSON_CreateOpen(x->open));
1670116704 cJSON_AddItemToObject(j, "optional", cJSON_CreateOptional(x->optional));
@@ -16726,9 +16729,6 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) {
1672616729 cJSON_AddItemToObject(j, "runtimeType", cJSON_CreateRuntimeType(x->runtime_type));
1672716730 cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s));
1672816731 cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte));
16729- cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed));
16730- cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel));
16731- cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select));
1673216732 }
1673316733 }
1673416734 return j;
@@ -16778,6 +16778,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1677816778 if (NULL != x->number) {
1677916779 cJSON_DeleteNumberClass(x->number);
1678016780 }
16781+ if (NULL != x->obj4_noexcept) {
16782+ cJSON_DeleteNoexcept(x->obj4_noexcept);
16783+ }
1678116784 if (NULL != x->obj4_none) {
1678216785 cJSON_DeleteNoneClass(x->obj4_none);
1678316786 }
@@ -16841,6 +16844,12 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1684116844 if (NULL != x->of) {
1684216845 cJSON_DeleteOf(x->of);
1684316846 }
16847+ if (NULL != x->offset_date_time) {
16848+ cJSON_DeleteOffsetDateTime(x->offset_date_time);
16849+ }
16850+ if (NULL != x->offset_time) {
16851+ cJSON_DeleteOffsetTime(x->offset_time);
16852+ }
1684416853 if (NULL != x->oneway) {
1684516854 cJSON_DeleteOneway(x->oneway);
1684616855 }
@@ -16931,15 +16940,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) {
1693116940 if (NULL != x->sbyte) {
1693216941 cJSON_DeleteSbyte(x->sbyte);
1693316942 }
16934- if (NULL != x->sealed) {
16935- cJSON_DeleteSealed(x->sealed);
16936- }
16937- if (NULL != x->sel) {
16938- cJSON_DeleteSel(x->sel);
16939- }
16940- if (NULL != x->select) {
16941- cJSON_DeleteSelect(x->select);
16942- }
1694316943 cJSON_free(x);
1694416944 }
1694516945 }
@@ -18209,61 +18209,6 @@ void cJSON_DeleteUnion(struct Union * x) {
1820918209 }
1821018210 }
1821118211
18212-struct Unsigned * cJSON_ParseUnsigned(const char * s) {
18213- struct Unsigned * x = NULL;
18214- if (NULL != s) {
18215- cJSON * j = cJSON_Parse(s);
18216- if (NULL != j) {
18217- x = cJSON_GetUnsignedValue(j);
18218- cJSON_Delete(j);
18219- }
18220- }
18221- return x;
18222-}
18223-
18224-struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j) {
18225- struct Unsigned * x = NULL;
18226- if (NULL != j) {
18227- if (NULL != (x = cJSON_malloc(sizeof(struct Unsigned)))) {
18228- memset(x, 0, sizeof(struct Unsigned));
18229- if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteUnsigned(x); return NULL; }
18230- if (cJSON_HasObjectItem(j, "unsigned")) {
18231- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteUnsigned(x); return NULL; }
18232- x->unsigned_unsigned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
18233- }
18234- }
18235- }
18236- return x;
18237-}
18238-
18239-cJSON * cJSON_CreateUnsigned(const struct Unsigned * x) {
18240- cJSON * j = NULL;
18241- if (NULL != x) {
18242- if (NULL != (j = cJSON_CreateObject())) {
18243- cJSON_AddNumberToObject(j, "unsigned", x->unsigned_unsigned);
18244- }
18245- }
18246- return j;
18247-}
18248-
18249-char * cJSON_PrintUnsigned(const struct Unsigned * x) {
18250- char * s = NULL;
18251- if (NULL != x) {
18252- cJSON * j = cJSON_CreateUnsigned(x);
18253- if (NULL != j) {
18254- s = cJSON_Print(j);
18255- cJSON_Delete(j);
18256- }
18257- }
18258- return s;
18259-}
18260-
18261-void cJSON_DeleteUnsigned(struct Unsigned * x) {
18262- if (NULL != x) {
18263- cJSON_free(x);
18264- }
18265-}
18266-
1826718212 struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) {
1826818213 struct PrimitiveKind * x = NULL;
1826918214 if (NULL != s) {
@@ -18374,20 +18319,185 @@ void cJSON_DeleteObj5True(struct Obj5True * x) {
1837418319 }
1837518320 }
1837618321
18377-struct Self * cJSON_ParseSelf(const char * s) {
18378- struct Self * x = NULL;
18322+struct Sealed * cJSON_ParseSealed(const char * s) {
18323+ struct Sealed * x = NULL;
1837918324 if (NULL != s) {
1838018325 cJSON * j = cJSON_Parse(s);
1838118326 if (NULL != j) {
18382- x = cJSON_GetSelfValue(j);
18327+ x = cJSON_GetSealedValue(j);
1838318328 cJSON_Delete(j);
1838418329 }
1838518330 }
1838618331 return x;
1838718332 }
1838818333
18389-struct Self * cJSON_GetSelfValue(const cJSON * j) {
18390- struct Self * x = NULL;
18334+struct Sealed * cJSON_GetSealedValue(const cJSON * j) {
18335+ struct Sealed * x = NULL;
18336+ if (NULL != j) {
18337+ if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) {
18338+ memset(x, 0, sizeof(struct Sealed));
18339+ if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; }
18340+ if (cJSON_HasObjectItem(j, "sealed")) {
18341+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; }
18342+ x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
18343+ }
18344+ }
18345+ }
18346+ return x;
18347+}
18348+
18349+cJSON * cJSON_CreateSealed(const struct Sealed * x) {
18350+ cJSON * j = NULL;
18351+ if (NULL != x) {
18352+ if (NULL != (j = cJSON_CreateObject())) {
18353+ cJSON_AddNumberToObject(j, "sealed", x->sealed);
18354+ }
18355+ }
18356+ return j;
18357+}
18358+
18359+char * cJSON_PrintSealed(const struct Sealed * x) {
18360+ char * s = NULL;
18361+ if (NULL != x) {
18362+ cJSON * j = cJSON_CreateSealed(x);
18363+ if (NULL != j) {
18364+ s = cJSON_Print(j);
18365+ cJSON_Delete(j);
18366+ }
18367+ }
18368+ return s;
18369+}
18370+
18371+void cJSON_DeleteSealed(struct Sealed * x) {
18372+ if (NULL != x) {
18373+ cJSON_free(x);
18374+ }
18375+}
18376+
18377+struct Sel * cJSON_ParseSel(const char * s) {
18378+ struct Sel * x = NULL;
18379+ if (NULL != s) {
18380+ cJSON * j = cJSON_Parse(s);
18381+ if (NULL != j) {
18382+ x = cJSON_GetSelValue(j);
18383+ cJSON_Delete(j);
18384+ }
18385+ }
18386+ return x;
18387+}
18388+
18389+struct Sel * cJSON_GetSelValue(const cJSON * j) {
18390+ struct Sel * x = NULL;
18391+ if (NULL != j) {
18392+ if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) {
18393+ memset(x, 0, sizeof(struct Sel));
18394+ if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; }
18395+ if (cJSON_HasObjectItem(j, "SEL")) {
18396+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; }
18397+ x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
18398+ }
18399+ }
18400+ }
18401+ return x;
18402+}
18403+
18404+cJSON * cJSON_CreateSel(const struct Sel * x) {
18405+ cJSON * j = NULL;
18406+ if (NULL != x) {
18407+ if (NULL != (j = cJSON_CreateObject())) {
18408+ cJSON_AddNumberToObject(j, "SEL", x->sel);
18409+ }
18410+ }
18411+ return j;
18412+}
18413+
18414+char * cJSON_PrintSel(const struct Sel * x) {
18415+ char * s = NULL;
18416+ if (NULL != x) {
18417+ cJSON * j = cJSON_CreateSel(x);
18418+ if (NULL != j) {
18419+ s = cJSON_Print(j);
18420+ cJSON_Delete(j);
18421+ }
18422+ }
18423+ return s;
18424+}
18425+
18426+void cJSON_DeleteSel(struct Sel * x) {
18427+ if (NULL != x) {
18428+ cJSON_free(x);
18429+ }
18430+}
18431+
18432+struct Select * cJSON_ParseSelect(const char * s) {
18433+ struct Select * x = NULL;
18434+ if (NULL != s) {
18435+ cJSON * j = cJSON_Parse(s);
18436+ if (NULL != j) {
18437+ x = cJSON_GetSelectValue(j);
18438+ cJSON_Delete(j);
18439+ }
18440+ }
18441+ return x;
18442+}
18443+
18444+struct Select * cJSON_GetSelectValue(const cJSON * j) {
18445+ struct Select * x = NULL;
18446+ if (NULL != j) {
18447+ if (NULL != (x = cJSON_malloc(sizeof(struct Select)))) {
18448+ memset(x, 0, sizeof(struct Select));
18449+ if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteSelect(x); return NULL; }
18450+ if (cJSON_HasObjectItem(j, "select")) {
18451+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteSelect(x); return NULL; }
18452+ x->select = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
18453+ }
18454+ }
18455+ }
18456+ return x;
18457+}
18458+
18459+cJSON * cJSON_CreateSelect(const struct Select * x) {
18460+ cJSON * j = NULL;
18461+ if (NULL != x) {
18462+ if (NULL != (j = cJSON_CreateObject())) {
18463+ cJSON_AddNumberToObject(j, "select", x->select);
18464+ }
18465+ }
18466+ return j;
18467+}
18468+
18469+char * cJSON_PrintSelect(const struct Select * x) {
18470+ char * s = NULL;
18471+ if (NULL != x) {
18472+ cJSON * j = cJSON_CreateSelect(x);
18473+ if (NULL != j) {
18474+ s = cJSON_Print(j);
18475+ cJSON_Delete(j);
18476+ }
18477+ }
18478+ return s;
18479+}
18480+
18481+void cJSON_DeleteSelect(struct Select * x) {
18482+ if (NULL != x) {
18483+ cJSON_free(x);
18484+ }
18485+}
18486+
18487+struct Self * cJSON_ParseSelf(const char * s) {
18488+ struct Self * x = NULL;
18489+ if (NULL != s) {
18490+ cJSON * j = cJSON_Parse(s);
18491+ if (NULL != j) {
18492+ x = cJSON_GetSelfValue(j);
18493+ cJSON_Delete(j);
18494+ }
18495+ }
18496+ return x;
18497+}
18498+
18499+struct Self * cJSON_GetSelfValue(const cJSON * j) {
18500+ struct Self * x = NULL;
1839118501 if (NULL != j) {
1839218502 if (NULL != (x = cJSON_malloc(sizeof(struct Self)))) {
1839318503 memset(x, 0, sizeof(struct Self));
@@ -20299,61 +20409,6 @@ void cJSON_DeleteUnowned(struct Unowned * x) {
2029920409 }
2030020410 }
2030120411
20302-struct Unsafe * cJSON_ParseUnsafe(const char * s) {
20303- struct Unsafe * x = NULL;
20304- if (NULL != s) {
20305- cJSON * j = cJSON_Parse(s);
20306- if (NULL != j) {
20307- x = cJSON_GetUnsafeValue(j);
20308- cJSON_Delete(j);
20309- }
20310- }
20311- return x;
20312-}
20313-
20314-struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) {
20315- struct Unsafe * x = NULL;
20316- if (NULL != j) {
20317- if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) {
20318- memset(x, 0, sizeof(struct Unsafe));
20319- if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; }
20320- if (cJSON_HasObjectItem(j, "unsafe")) {
20321- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; }
20322- x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
20323- }
20324- }
20325- }
20326- return x;
20327-}
20328-
20329-cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) {
20330- cJSON * j = NULL;
20331- if (NULL != x) {
20332- if (NULL != (j = cJSON_CreateObject())) {
20333- cJSON_AddNumberToObject(j, "unsafe", x->unsafe);
20334- }
20335- }
20336- return j;
20337-}
20338-
20339-char * cJSON_PrintUnsafe(const struct Unsafe * x) {
20340- char * s = NULL;
20341- if (NULL != x) {
20342- cJSON * j = cJSON_CreateUnsafe(x);
20343- if (NULL != j) {
20344- s = cJSON_Print(j);
20345- cJSON_Delete(j);
20346- }
20347- }
20348- return s;
20349-}
20350-
20351-void cJSON_DeleteUnsafe(struct Unsafe * x) {
20352- if (NULL != x) {
20353- cJSON_free(x);
20354- }
20355-}
20356-
2035720412 struct UseSerializers * cJSON_ParseUseSerializers(const char * s) {
2035820413 struct UseSerializers * x = NULL;
2035920414 if (NULL != s) {
@@ -20409,61 +20464,6 @@ void cJSON_DeleteUseSerializers(struct UseSerializers * x) {
2040920464 }
2041020465 }
2041120466
20412-struct Ushort * cJSON_ParseUshort(const char * s) {
20413- struct Ushort * x = NULL;
20414- if (NULL != s) {
20415- cJSON * j = cJSON_Parse(s);
20416- if (NULL != j) {
20417- x = cJSON_GetUshortValue(j);
20418- cJSON_Delete(j);
20419- }
20420- }
20421- return x;
20422-}
20423-
20424-struct Ushort * cJSON_GetUshortValue(const cJSON * j) {
20425- struct Ushort * x = NULL;
20426- if (NULL != j) {
20427- if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) {
20428- memset(x, 0, sizeof(struct Ushort));
20429- if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; }
20430- if (cJSON_HasObjectItem(j, "ushort")) {
20431- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; }
20432- x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
20433- }
20434- }
20435- }
20436- return x;
20437-}
20438-
20439-cJSON * cJSON_CreateUshort(const struct Ushort * x) {
20440- cJSON * j = NULL;
20441- if (NULL != x) {
20442- if (NULL != (j = cJSON_CreateObject())) {
20443- cJSON_AddNumberToObject(j, "ushort", x->ushort);
20444- }
20445- }
20446- return j;
20447-}
20448-
20449-char * cJSON_PrintUshort(const struct Ushort * x) {
20450- char * s = NULL;
20451- if (NULL != x) {
20452- cJSON * j = cJSON_CreateUshort(x);
20453- if (NULL != j) {
20454- s = cJSON_Print(j);
20455- cJSON_Delete(j);
20456- }
20457- }
20458- return s;
20459-}
20460-
20461-void cJSON_DeleteUshort(struct Ushort * x) {
20462- if (NULL != x) {
20463- cJSON_free(x);
20464- }
20465-}
20466-
2046720467 struct Obj5 * cJSON_ParseObj5(const char * s) {
2046820468 struct Obj5 * x = NULL;
2046920469 if (NULL != s) {
@@ -20624,12 +20624,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2062420624 x->obj5_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union"));
2062520625 if (NULL == x->obj5_union) { cJSON_DeleteObj5(x); return NULL; }
2062620626 }
20627- if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj5(x); return NULL; }
20628- if (cJSON_HasObjectItem(j, "unsigned")) {
20629- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj5(x); return NULL; }
20630- x->obj5_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
20631- if (NULL == x->obj5_unsigned) { cJSON_DeleteObj5(x); return NULL; }
20632- }
2063320627 if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; }
2063420628 if (cJSON_HasObjectItem(j, "PrimitiveKind")) {
2063520629 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20642,6 +20636,24 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2064220636 x->purple_true = cJSON_GetObj5TrueValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
2064320637 if (NULL == x->purple_true) { cJSON_DeleteObj5(x); return NULL; }
2064420638 }
20639+ if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj5(x); return NULL; }
20640+ if (cJSON_HasObjectItem(j, "sealed")) {
20641+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj5(x); return NULL; }
20642+ x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed"));
20643+ if (NULL == x->sealed) { cJSON_DeleteObj5(x); return NULL; }
20644+ }
20645+ if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj5(x); return NULL; }
20646+ if (cJSON_HasObjectItem(j, "SEL")) {
20647+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj5(x); return NULL; }
20648+ x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL"));
20649+ if (NULL == x->sel) { cJSON_DeleteObj5(x); return NULL; }
20650+ }
20651+ if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj5(x); return NULL; }
20652+ if (cJSON_HasObjectItem(j, "select")) {
20653+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj5(x); return NULL; }
20654+ x->select = cJSON_GetSelectValue(cJSON_GetObjectItemCaseSensitive(j, "select"));
20655+ if (NULL == x->select) { cJSON_DeleteObj5(x); return NULL; }
20656+ }
2064520657 if (!cJSON_HasObjectItem(j, "Self")) { cJSON_DeleteObj5(x); return NULL; }
2064620658 if (cJSON_HasObjectItem(j, "Self")) {
2064720659 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Self"))) { cJSON_DeleteObj5(x); return NULL; }
@@ -20852,24 +20864,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2085220864 x->unowned = cJSON_GetUnownedValue(cJSON_GetObjectItemCaseSensitive(j, "unowned"));
2085320865 if (NULL == x->unowned) { cJSON_DeleteObj5(x); return NULL; }
2085420866 }
20855- if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj5(x); return NULL; }
20856- if (cJSON_HasObjectItem(j, "unsafe")) {
20857- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj5(x); return NULL; }
20858- x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
20859- if (NULL == x->unsafe) { cJSON_DeleteObj5(x); return NULL; }
20860- }
2086120867 if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj5(x); return NULL; }
2086220868 if (cJSON_HasObjectItem(j, "UseSerializers")) {
2086320869 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj5(x); return NULL; }
2086420870 x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"));
2086520871 if (NULL == x->use_serializers) { cJSON_DeleteObj5(x); return NULL; }
2086620872 }
20867- if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj5(x); return NULL; }
20868- if (cJSON_HasObjectItem(j, "ushort")) {
20869- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj5(x); return NULL; }
20870- x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
20871- if (NULL == x->ushort) { cJSON_DeleteObj5(x); return NULL; }
20872- }
2087320873 }
2087420874 }
2087520875 return x;
@@ -20903,9 +20903,11 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2090320903 cJSON_AddItemToObject(j, "typename", cJSON_CreateTypename(x->obj5_typename));
2090420904 cJSON_AddItemToObject(j, "typeof", cJSON_CreateTypeof(x->obj5_typeof));
2090520905 cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union));
20906- cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned));
2090720906 cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind));
2090820907 cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true));
20908+ cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed));
20909+ cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel));
20910+ cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select));
2090920911 cJSON_AddItemToObject(j, "Self", cJSON_CreateSelf(x->self));
2091020912 cJSON_AddItemToObject(j, "Sendable", cJSON_CreateSendable(x->sendable));
2091120913 cJSON_AddItemToObject(j, "SerialDescriptor", cJSON_CreateSerialDescriptor(x->serial_descriptor));
@@ -20941,9 +20943,7 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2094120943 cJSON_AddItemToObject(j, "unchecked", cJSON_CreateUnchecked(x->unchecked));
2094220944 cJSON_AddItemToObject(j, "undefined", cJSON_CreateUndefined(x->undefined));
2094320945 cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned));
20944- cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe));
2094520946 cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers));
20946- cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
2094720947 }
2094820948 }
2094920949 return j;
@@ -21032,15 +21032,21 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2103221032 if (NULL != x->obj5_union) {
2103321033 cJSON_DeleteUnion(x->obj5_union);
2103421034 }
21035- if (NULL != x->obj5_unsigned) {
21036- cJSON_DeleteUnsigned(x->obj5_unsigned);
21037- }
2103821035 if (NULL != x->primitive_kind) {
2103921036 cJSON_DeletePrimitiveKind(x->primitive_kind);
2104021037 }
2104121038 if (NULL != x->purple_true) {
2104221039 cJSON_DeleteObj5True(x->purple_true);
2104321040 }
21041+ if (NULL != x->sealed) {
21042+ cJSON_DeleteSealed(x->sealed);
21043+ }
21044+ if (NULL != x->sel) {
21045+ cJSON_DeleteSel(x->sel);
21046+ }
21047+ if (NULL != x->select) {
21048+ cJSON_DeleteSelect(x->select);
21049+ }
2104421050 if (NULL != x->self) {
2104521051 cJSON_DeleteSelf(x->self);
2104621052 }
@@ -21146,15 +21152,64 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2114621152 if (NULL != x->unowned) {
2114721153 cJSON_DeleteUnowned(x->unowned);
2114821154 }
21149- if (NULL != x->unsafe) {
21150- cJSON_DeleteUnsafe(x->unsafe);
21151- }
2115221155 if (NULL != x->use_serializers) {
2115321156 cJSON_DeleteUseSerializers(x->use_serializers);
2115421157 }
21155- if (NULL != x->ushort) {
21156- cJSON_DeleteUshort(x->ushort);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Unsigned * cJSON_ParseUnsigned(const char * s) {
21163+ struct Unsigned * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetUnsignedValue(j);
21168+ cJSON_Delete(j);
2115721169 }
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j) {
21175+ struct Unsigned * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Unsigned)))) {
21178+ memset(x, 0, sizeof(struct Unsigned));
21179+ if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteUnsigned(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "unsigned")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteUnsigned(x); return NULL; }
21182+ x->unsigned_unsigned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
21183+ }
21184+ }
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateUnsigned(const struct Unsigned * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "unsigned", x->unsigned_unsigned);
21194+ }
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintUnsigned(const struct Unsigned * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateUnsigned(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
21206+ }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteUnsigned(struct Unsigned * x) {
21212+ if (NULL != x) {
2115821213 cJSON_free(x);
2115921214 }
2116021215 }
@@ -21599,6 +21654,116 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2159921654 }
2160021655 }
2160121656
21657+struct Unsafe * cJSON_ParseUnsafe(const char * s) {
21658+ struct Unsafe * x = NULL;
21659+ if (NULL != s) {
21660+ cJSON * j = cJSON_Parse(s);
21661+ if (NULL != j) {
21662+ x = cJSON_GetUnsafeValue(j);
21663+ cJSON_Delete(j);
21664+ }
21665+ }
21666+ return x;
21667+}
21668+
21669+struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) {
21670+ struct Unsafe * x = NULL;
21671+ if (NULL != j) {
21672+ if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) {
21673+ memset(x, 0, sizeof(struct Unsafe));
21674+ if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; }
21675+ if (cJSON_HasObjectItem(j, "unsafe")) {
21676+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; }
21677+ x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
21678+ }
21679+ }
21680+ }
21681+ return x;
21682+}
21683+
21684+cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) {
21685+ cJSON * j = NULL;
21686+ if (NULL != x) {
21687+ if (NULL != (j = cJSON_CreateObject())) {
21688+ cJSON_AddNumberToObject(j, "unsafe", x->unsafe);
21689+ }
21690+ }
21691+ return j;
21692+}
21693+
21694+char * cJSON_PrintUnsafe(const struct Unsafe * x) {
21695+ char * s = NULL;
21696+ if (NULL != x) {
21697+ cJSON * j = cJSON_CreateUnsafe(x);
21698+ if (NULL != j) {
21699+ s = cJSON_Print(j);
21700+ cJSON_Delete(j);
21701+ }
21702+ }
21703+ return s;
21704+}
21705+
21706+void cJSON_DeleteUnsafe(struct Unsafe * x) {
21707+ if (NULL != x) {
21708+ cJSON_free(x);
21709+ }
21710+}
21711+
21712+struct Ushort * cJSON_ParseUshort(const char * s) {
21713+ struct Ushort * x = NULL;
21714+ if (NULL != s) {
21715+ cJSON * j = cJSON_Parse(s);
21716+ if (NULL != j) {
21717+ x = cJSON_GetUshortValue(j);
21718+ cJSON_Delete(j);
21719+ }
21720+ }
21721+ return x;
21722+}
21723+
21724+struct Ushort * cJSON_GetUshortValue(const cJSON * j) {
21725+ struct Ushort * x = NULL;
21726+ if (NULL != j) {
21727+ if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) {
21728+ memset(x, 0, sizeof(struct Ushort));
21729+ if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; }
21730+ if (cJSON_HasObjectItem(j, "ushort")) {
21731+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; }
21732+ x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
21733+ }
21734+ }
21735+ }
21736+ return x;
21737+}
21738+
21739+cJSON * cJSON_CreateUshort(const struct Ushort * x) {
21740+ cJSON * j = NULL;
21741+ if (NULL != x) {
21742+ if (NULL != (j = cJSON_CreateObject())) {
21743+ cJSON_AddNumberToObject(j, "ushort", x->ushort);
21744+ }
21745+ }
21746+ return j;
21747+}
21748+
21749+char * cJSON_PrintUshort(const struct Ushort * x) {
21750+ char * s = NULL;
21751+ if (NULL != x) {
21752+ cJSON * j = cJSON_CreateUshort(x);
21753+ if (NULL != j) {
21754+ s = cJSON_Print(j);
21755+ cJSON_Delete(j);
21756+ }
21757+ }
21758+ return s;
21759+}
21760+
21761+void cJSON_DeleteUshort(struct Ushort * x) {
21762+ if (NULL != x) {
21763+ cJSON_free(x);
21764+ }
21765+}
21766+
2160221767 struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s) {
2160321768 struct Utf8JsonReader * x = NULL;
2160421769 if (NULL != s) {
@@ -22171,6 +22336,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2217122336 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2217222337 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2217322338 }
22339+ if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj6(x); return NULL; }
22340+ if (cJSON_HasObjectItem(j, "unsigned")) {
22341+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj6(x); return NULL; }
22342+ x->obj6_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned"));
22343+ if (NULL == x->obj6_unsigned) { cJSON_DeleteObj6(x); return NULL; }
22344+ }
2217422345 if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteObj6(x); return NULL; }
2217522346 if (cJSON_HasObjectItem(j, "using")) {
2217622347 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -22219,6 +22390,18 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2221922390 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2222022391 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2222122392 }
22393+ if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj6(x); return NULL; }
22394+ if (cJSON_HasObjectItem(j, "unsafe")) {
22395+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj6(x); return NULL; }
22396+ x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe"));
22397+ if (NULL == x->unsafe) { cJSON_DeleteObj6(x); return NULL; }
22398+ }
22399+ if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj6(x); return NULL; }
22400+ if (cJSON_HasObjectItem(j, "ushort")) {
22401+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj6(x); return NULL; }
22402+ x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort"));
22403+ if (NULL == x->ushort) { cJSON_DeleteObj6(x); return NULL; }
22404+ }
2222222405 if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteObj6(x); return NULL; }
2222322406 if (cJSON_HasObjectItem(j, "Utf8JsonReader")) {
2222422407 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -22289,6 +22472,7 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2228922472 if (NULL != x) {
2229022473 if (NULL != (j = cJSON_CreateObject())) {
2229122474 cJSON_AddNumberToObject(j, "dummy", x->dummy);
22475+ cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj6_unsigned));
2229222476 cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj6_using));
2229322477 cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual));
2229422478 cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void));
@@ -22297,6 +22481,8 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2229722481 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2229822482 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2229922483 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
22484+ cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe));
22485+ cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
2230022486 cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
2230122487 cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
2230222488 cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
@@ -22326,6 +22512,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2232622512
2232722513 void cJSON_DeleteObj6(struct Obj6 * x) {
2232822514 if (NULL != x) {
22515+ if (NULL != x->obj6_unsigned) {
22516+ cJSON_DeleteUnsigned(x->obj6_unsigned);
22517+ }
2232922518 if (NULL != x->obj6_using) {
2233022519 cJSON_DeleteUsing(x->obj6_using);
2233122520 }
@@ -22350,6 +22539,12 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2235022539 if (NULL != x->obj6_xor_eq) {
2235122540 cJSON_DeleteXorEq(x->obj6_xor_eq);
2235222541 }
22542+ if (NULL != x->unsafe) {
22543+ cJSON_DeleteUnsafe(x->unsafe);
22544+ }
22545+ if (NULL != x->ushort) {
22546+ cJSON_DeleteUshort(x->ushort);
22547+ }
2235322548 if (NULL != x->utf8_json_reader) {
2235422549 cJSON_DeleteUtf8JsonReader(x->utf8_json_reader);
2235522550 }
Mcjsondefault / TopLevel.h+110 −77
@@ -877,6 +877,10 @@ struct List {
877877 int64_t list;
878878 };
879879
880+struct LocalDate {
881+ int64_t local_date;
882+};
883+
880884 struct Locale {
881885 int64_t locale;
882886 };
@@ -953,10 +957,6 @@ struct New {
953957 int64_t new_new;
954958 };
955959
956-struct Noexcept {
957- int64_t noexcept_noexcept;
958-};
959-
960960 struct Obj3 {
961961 int64_t dummy;
962962 struct Guard * guard;
@@ -1003,6 +1003,7 @@ struct Obj3 {
10031003 struct Left * left;
10041004 struct Let * let;
10051005 struct List * list;
1006+ struct LocalDate * local_date;
10061007 struct Locale * locale;
10071008 struct Lock * lock;
10081009 struct Map * map;
@@ -1022,7 +1023,6 @@ struct Obj3 {
10221023 struct Mutable * obj3_mutable;
10231024 struct Namespace * obj3_namespace;
10241025 struct New * obj3_new;
1025- struct Noexcept * obj3_noexcept;
10261026 };
10271027
10281028 struct NoSuchMethod {
@@ -1065,6 +1065,10 @@ struct NumberClass {
10651065 int64_t number;
10661066 };
10671067
1068+struct Noexcept {
1069+ int64_t noexcept_noexcept;
1070+};
1071+
10681072 struct NoneClass {
10691073 int64_t none;
10701074 };
@@ -1149,6 +1153,14 @@ struct Of {
11491153 int64_t of;
11501154 };
11511155
1156+struct OffsetDateTime {
1157+ int64_t offset_date_time;
1158+};
1159+
1160+struct OffsetTime {
1161+ int64_t offset_time;
1162+};
1163+
11521164 struct Oneway {
11531165 int64_t oneway;
11541166 };
@@ -1269,18 +1281,6 @@ struct Sbyte {
12691281 int64_t sbyte;
12701282 };
12711283
1272-struct Sealed {
1273- int64_t sealed;
1274-};
1275-
1276-struct Sel {
1277- int64_t sel;
1278-};
1279-
1280-struct Select {
1281- int64_t select;
1282-};
1283-
12841284 struct Obj4 {
12851285 int64_t dummy;
12861286 struct NoSuchMethod * no_such_method;
@@ -1293,6 +1293,7 @@ struct Obj4 {
12931293 struct NsString * ns_string;
12941294 struct NullClass * null;
12951295 struct NumberClass * number;
1296+ struct Noexcept * obj4_noexcept;
12961297 struct NoneClass * obj4_none;
12971298 struct Not * obj4_not;
12981299 struct NotEq * obj4_not_eq;
@@ -1314,6 +1315,8 @@ struct Obj4 {
13141315 struct ObjectClass * object;
13151316 struct ObjectMapper * object_mapper;
13161317 struct Of * of;
1318+ struct OffsetDateTime * offset_date_time;
1319+ struct OffsetTime * offset_time;
13171320 struct Oneway * oneway;
13181321 struct Open * open;
13191322 struct Optional * optional;
@@ -1344,9 +1347,6 @@ struct Obj4 {
13441347 struct RuntimeType * runtime_type;
13451348 struct S * s;
13461349 struct Sbyte * sbyte;
1347- struct Sealed * sealed;
1348- struct Sel * sel;
1349- struct Select * select;
13501350 };
13511351
13521352 struct KSerializer {
@@ -1441,10 +1441,6 @@ struct Union {
14411441 int64_t union_union;
14421442 };
14431443
1444-struct Unsigned {
1445- int64_t unsigned_unsigned;
1446-};
1447-
14481444 struct PrimitiveKind {
14491445 int64_t primitive_kind;
14501446 };
@@ -1453,6 +1449,18 @@ struct Obj5True {
14531449 int64_t true_true;
14541450 };
14551451
1452+struct Sealed {
1453+ int64_t sealed;
1454+};
1455+
1456+struct Sel {
1457+ int64_t sel;
1458+};
1459+
1460+struct Select {
1461+ int64_t select;
1462+};
1463+
14561464 struct Self {
14571465 int64_t self;
14581466 };
@@ -1593,18 +1601,10 @@ struct Unowned {
15931601 int64_t unowned;
15941602 };
15951603
1596-struct Unsafe {
1597- int64_t unsafe;
1598-};
1599-
16001604 struct UseSerializers {
16011605 int64_t use_serializers;
16021606 };
16031607
1604-struct Ushort {
1605- int64_t ushort;
1606-};
1607-
16081608 struct Obj5 {
16091609 int64_t dummy;
16101610 struct KSerializer * k_serializer;
@@ -1630,9 +1630,11 @@ struct Obj5 {
16301630 struct Typename * obj5_typename;
16311631 struct Typeof * obj5_typeof;
16321632 struct Union * obj5_union;
1633- struct Unsigned * obj5_unsigned;
16341633 struct PrimitiveKind * primitive_kind;
16351634 struct Obj5True * purple_true;
1635+ struct Sealed * sealed;
1636+ struct Sel * sel;
1637+ struct Select * select;
16361638 struct Self * self;
16371639 struct Sendable * sendable;
16381640 struct SerialDescriptor * serial_descriptor;
@@ -1668,9 +1670,11 @@ struct Obj5 {
16681670 struct Unchecked * unchecked;
16691671 struct Undefined * undefined;
16701672 struct Unowned * unowned;
1671- struct Unsafe * unsafe;
16721673 struct UseSerializers * use_serializers;
1673- struct Ushort * ushort;
1674+};
1675+
1676+struct Unsigned {
1677+ int64_t unsigned_unsigned;
16741678 };
16751679
16761680 struct Using {
@@ -1705,6 +1709,14 @@ struct XorEq {
17051709 int64_t xor_eq_xor_eq;
17061710 };
17071711
1712+struct Unsafe {
1713+ int64_t unsafe;
1714+};
1715+
1716+struct Ushort {
1717+ int64_t ushort;
1718+};
1719+
17081720 struct Utf8JsonReader {
17091721 int64_t utf8_json_reader;
17101722 };
@@ -1747,6 +1759,7 @@ struct Yield {
17471759
17481760 struct Obj6 {
17491761 int64_t dummy;
1762+ struct Unsigned * obj6_unsigned;
17501763 struct Using * obj6_using;
17511764 struct Virtual * obj6_virtual;
17521765 struct Void * obj6_void;
@@ -1755,6 +1768,8 @@ struct Obj6 {
17551768 struct While * obj6_while;
17561769 struct Xor * obj6_xor;
17571770 struct XorEq * obj6_xor_eq;
1771+ struct Unsafe * unsafe;
1772+ struct Ushort * ushort;
17581773 struct Utf8JsonReader * utf8_json_reader;
17591774 struct Utf8JsonWriter * utf8_json_writer;
17601775 struct Uuid * uuid;
@@ -2824,6 +2839,12 @@ cJSON * cJSON_CreateList(const struct List * x);
28242839 char * cJSON_PrintList(const struct List * x);
28252840 void cJSON_DeleteList(struct List * x);
28262841
2842+struct LocalDate * cJSON_ParseLocalDate(const char * s);
2843+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
2844+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
2845+char * cJSON_PrintLocalDate(const struct LocalDate * x);
2846+void cJSON_DeleteLocalDate(struct LocalDate * x);
2847+
28272848 struct Locale * cJSON_ParseLocale(const char * s);
28282849 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
28292850 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -2938,12 +2959,6 @@ cJSON * cJSON_CreateNew(const struct New * x);
29382959 char * cJSON_PrintNew(const struct New * x);
29392960 void cJSON_DeleteNew(struct New * x);
29402961
2941-struct Noexcept * cJSON_ParseNoexcept(const char * s);
2942-struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
2943-cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
2944-char * cJSON_PrintNoexcept(const struct Noexcept * x);
2945-void cJSON_DeleteNoexcept(struct Noexcept * x);
2946-
29472962 struct Obj3 * cJSON_ParseObj3(const char * s);
29482963 struct Obj3 * cJSON_GetObj3Value(const cJSON * j);
29492964 cJSON * cJSON_CreateObj3(const struct Obj3 * x);
@@ -3010,6 +3025,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x);
30103025 char * cJSON_PrintNumberClass(const struct NumberClass * x);
30113026 void cJSON_DeleteNumberClass(struct NumberClass * x);
30123027
3028+struct Noexcept * cJSON_ParseNoexcept(const char * s);
3029+struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
3030+cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
3031+char * cJSON_PrintNoexcept(const struct Noexcept * x);
3032+void cJSON_DeleteNoexcept(struct Noexcept * x);
3033+
30133034 struct NoneClass * cJSON_ParseNoneClass(const char * s);
30143035 struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j);
30153036 cJSON * cJSON_CreateNoneClass(const struct NoneClass * x);
@@ -3136,6 +3157,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
31363157 char * cJSON_PrintOf(const struct Of * x);
31373158 void cJSON_DeleteOf(struct Of * x);
31383159
3160+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
3161+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
3162+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
3163+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
3164+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
3165+
3166+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
3167+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
3168+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
3169+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
3170+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
3171+
31393172 struct Oneway * cJSON_ParseOneway(const char * s);
31403173 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
31413174 cJSON * cJSON_CreateOneway(const struct Oneway * x);
@@ -3316,24 +3349,6 @@ cJSON * cJSON_CreateSbyte(const struct Sbyte * x);
33163349 char * cJSON_PrintSbyte(const struct Sbyte * x);
33173350 void cJSON_DeleteSbyte(struct Sbyte * x);
33183351
3319-struct Sealed * cJSON_ParseSealed(const char * s);
3320-struct Sealed * cJSON_GetSealedValue(const cJSON * j);
3321-cJSON * cJSON_CreateSealed(const struct Sealed * x);
3322-char * cJSON_PrintSealed(const struct Sealed * x);
3323-void cJSON_DeleteSealed(struct Sealed * x);
3324-
3325-struct Sel * cJSON_ParseSel(const char * s);
3326-struct Sel * cJSON_GetSelValue(const cJSON * j);
3327-cJSON * cJSON_CreateSel(const struct Sel * x);
3328-char * cJSON_PrintSel(const struct Sel * x);
3329-void cJSON_DeleteSel(struct Sel * x);
3330-
3331-struct Select * cJSON_ParseSelect(const char * s);
3332-struct Select * cJSON_GetSelectValue(const cJSON * j);
3333-cJSON * cJSON_CreateSelect(const struct Select * x);
3334-char * cJSON_PrintSelect(const struct Select * x);
3335-void cJSON_DeleteSelect(struct Select * x);
3336-
33373352 struct Obj4 * cJSON_ParseObj4(const char * s);
33383353 struct Obj4 * cJSON_GetObj4Value(const cJSON * j);
33393354 cJSON * cJSON_CreateObj4(const struct Obj4 * x);
@@ -3478,12 +3493,6 @@ cJSON * cJSON_CreateUnion(const struct Union * x);
34783493 char * cJSON_PrintUnion(const struct Union * x);
34793494 void cJSON_DeleteUnion(struct Union * x);
34803495
3481-struct Unsigned * cJSON_ParseUnsigned(const char * s);
3482-struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j);
3483-cJSON * cJSON_CreateUnsigned(const struct Unsigned * x);
3484-char * cJSON_PrintUnsigned(const struct Unsigned * x);
3485-void cJSON_DeleteUnsigned(struct Unsigned * x);
3486-
34873496 struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s);
34883497 struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j);
34893498 cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x);
@@ -3496,6 +3505,24 @@ cJSON * cJSON_CreateObj5True(const struct Obj5True * x);
34963505 char * cJSON_PrintObj5True(const struct Obj5True * x);
34973506 void cJSON_DeleteObj5True(struct Obj5True * x);
34983507
3508+struct Sealed * cJSON_ParseSealed(const char * s);
3509+struct Sealed * cJSON_GetSealedValue(const cJSON * j);
3510+cJSON * cJSON_CreateSealed(const struct Sealed * x);
3511+char * cJSON_PrintSealed(const struct Sealed * x);
3512+void cJSON_DeleteSealed(struct Sealed * x);
3513+
3514+struct Sel * cJSON_ParseSel(const char * s);
3515+struct Sel * cJSON_GetSelValue(const cJSON * j);
3516+cJSON * cJSON_CreateSel(const struct Sel * x);
3517+char * cJSON_PrintSel(const struct Sel * x);
3518+void cJSON_DeleteSel(struct Sel * x);
3519+
3520+struct Select * cJSON_ParseSelect(const char * s);
3521+struct Select * cJSON_GetSelectValue(const cJSON * j);
3522+cJSON * cJSON_CreateSelect(const struct Select * x);
3523+char * cJSON_PrintSelect(const struct Select * x);
3524+void cJSON_DeleteSelect(struct Select * x);
3525+
34993526 struct Self * cJSON_ParseSelf(const char * s);
35003527 struct Self * cJSON_GetSelfValue(const cJSON * j);
35013528 cJSON * cJSON_CreateSelf(const struct Self * x);
@@ -3706,30 +3733,24 @@ cJSON * cJSON_CreateUnowned(const struct Unowned * x);
37063733 char * cJSON_PrintUnowned(const struct Unowned * x);
37073734 void cJSON_DeleteUnowned(struct Unowned * x);
37083735
3709-struct Unsafe * cJSON_ParseUnsafe(const char * s);
3710-struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j);
3711-cJSON * cJSON_CreateUnsafe(const struct Unsafe * x);
3712-char * cJSON_PrintUnsafe(const struct Unsafe * x);
3713-void cJSON_DeleteUnsafe(struct Unsafe * x);
3714-
37153736 struct UseSerializers * cJSON_ParseUseSerializers(const char * s);
37163737 struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j);
37173738 cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x);
37183739 char * cJSON_PrintUseSerializers(const struct UseSerializers * x);
37193740 void cJSON_DeleteUseSerializers(struct UseSerializers * x);
37203741
3721-struct Ushort * cJSON_ParseUshort(const char * s);
3722-struct Ushort * cJSON_GetUshortValue(const cJSON * j);
3723-cJSON * cJSON_CreateUshort(const struct Ushort * x);
3724-char * cJSON_PrintUshort(const struct Ushort * x);
3725-void cJSON_DeleteUshort(struct Ushort * x);
3726-
37273742 struct Obj5 * cJSON_ParseObj5(const char * s);
37283743 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
37293744 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
37303745 char * cJSON_PrintObj5(const struct Obj5 * x);
37313746 void cJSON_DeleteObj5(struct Obj5 * x);
37323747
3748+struct Unsigned * cJSON_ParseUnsigned(const char * s);
3749+struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j);
3750+cJSON * cJSON_CreateUnsigned(const struct Unsigned * x);
3751+char * cJSON_PrintUnsigned(const struct Unsigned * x);
3752+void cJSON_DeleteUnsigned(struct Unsigned * x);
3753+
37333754 struct Using * cJSON_ParseUsing(const char * s);
37343755 struct Using * cJSON_GetUsingValue(const cJSON * j);
37353756 cJSON * cJSON_CreateUsing(const struct Using * x);
@@ -3778,6 +3799,18 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
37783799 char * cJSON_PrintXorEq(const struct XorEq * x);
37793800 void cJSON_DeleteXorEq(struct XorEq * x);
37803801
3802+struct Unsafe * cJSON_ParseUnsafe(const char * s);
3803+struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j);
3804+cJSON * cJSON_CreateUnsafe(const struct Unsafe * x);
3805+char * cJSON_PrintUnsafe(const struct Unsafe * x);
3806+void cJSON_DeleteUnsafe(struct Unsafe * x);
3807+
3808+struct Ushort * cJSON_ParseUshort(const char * s);
3809+struct Ushort * cJSON_GetUshortValue(const cJSON * j);
3810+cJSON * cJSON_CreateUshort(const struct Ushort * x);
3811+char * cJSON_PrintUshort(const struct Ushort * x);
3812+void cJSON_DeleteUshort(struct Ushort * x);
3813+
37813814 struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s);
37823815 struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j);
37833816 cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x);
Mcplusplusdefault / quicktype.hpp+349 −244
@@ -3109,6 +3109,20 @@ namespace quicktype {
31093109 void set_list(const int64_t & value) { this->list = value; }
31103110 };
31113111
3112+ class LocalDate {
3113+ public:
3114+ LocalDate() = default;
3115+ virtual ~LocalDate() = default;
3116+
3117+ private:
3118+ int64_t local_date;
3119+
3120+ public:
3121+ const int64_t & get_local_date() const { return local_date; }
3122+ int64_t & get_mutable_local_date() { return local_date; }
3123+ void set_local_date(const int64_t & value) { this->local_date = value; }
3124+ };
3125+
31123126 class Locale {
31133127 public:
31143128 Locale() = default;
@@ -3375,20 +3389,6 @@ namespace quicktype {
33753389 void set_new_new(const int64_t & value) { this->new_new = value; }
33763390 };
33773391
3378- class Noexcept {
3379- public:
3380- Noexcept() = default;
3381- virtual ~Noexcept() = default;
3382-
3383- private:
3384- int64_t noexcept_noexcept;
3385-
3386- public:
3387- const int64_t & get_noexcept_noexcept() const { return noexcept_noexcept; }
3388- int64_t & get_mutable_noexcept_noexcept() { return noexcept_noexcept; }
3389- void set_noexcept_noexcept(const int64_t & value) { this->noexcept_noexcept = value; }
3390- };
3391-
33923392 class Obj3 {
33933393 public:
33943394 Obj3() = default;
@@ -3440,6 +3440,7 @@ namespace quicktype {
34403440 Left left;
34413441 Let let;
34423442 List list;
3443+ LocalDate local_date;
34433444 Locale locale;
34443445 Lock lock;
34453446 Map map;
@@ -3459,7 +3460,6 @@ namespace quicktype {
34593460 Mutable obj3_mutable;
34603461 Namespace obj3_namespace;
34613462 New obj3_new;
3462- Noexcept obj3_noexcept;
34633463
34643464 public:
34653465 const int64_t & get_dummy() const { return dummy; }
@@ -3642,6 +3642,10 @@ namespace quicktype {
36423642 List & get_mutable_list() { return list; }
36433643 void set_list(const List & value) { this->list = value; }
36443644
3645+ const LocalDate & get_local_date() const { return local_date; }
3646+ LocalDate & get_mutable_local_date() { return local_date; }
3647+ void set_local_date(const LocalDate & value) { this->local_date = value; }
3648+
36453649 const Locale & get_locale() const { return locale; }
36463650 Locale & get_mutable_locale() { return locale; }
36473651 void set_locale(const Locale & value) { this->locale = value; }
@@ -3717,10 +3721,6 @@ namespace quicktype {
37173721 const New & get_obj3_new() const { return obj3_new; }
37183722 New & get_mutable_obj3_new() { return obj3_new; }
37193723 void set_obj3_new(const New & value) { this->obj3_new = value; }
3720-
3721- const Noexcept & get_obj3_noexcept() const { return obj3_noexcept; }
3722- Noexcept & get_mutable_obj3_noexcept() { return obj3_noexcept; }
3723- void set_obj3_noexcept(const Noexcept & value) { this->obj3_noexcept = value; }
37243724 };
37253725
37263726 class NoSuchMethod {
@@ -3863,6 +3863,20 @@ namespace quicktype {
38633863 void set_number(const int64_t & value) { this->number = value; }
38643864 };
38653865
3866+ class Noexcept {
3867+ public:
3868+ Noexcept() = default;
3869+ virtual ~Noexcept() = default;
3870+
3871+ private:
3872+ int64_t noexcept_noexcept;
3873+
3874+ public:
3875+ const int64_t & get_noexcept_noexcept() const { return noexcept_noexcept; }
3876+ int64_t & get_mutable_noexcept_noexcept() { return noexcept_noexcept; }
3877+ void set_noexcept_noexcept(const int64_t & value) { this->noexcept_noexcept = value; }
3878+ };
3879+
38663880 class NoneClass {
38673881 public:
38683882 NoneClass() = default;
@@ -4143,6 +4157,34 @@ namespace quicktype {
41434157 void set_of(const int64_t & value) { this->of = value; }
41444158 };
41454159
4160+ class OffsetDateTime {
4161+ public:
4162+ OffsetDateTime() = default;
4163+ virtual ~OffsetDateTime() = default;
4164+
4165+ private:
4166+ int64_t offset_date_time;
4167+
4168+ public:
4169+ const int64_t & get_offset_date_time() const { return offset_date_time; }
4170+ int64_t & get_mutable_offset_date_time() { return offset_date_time; }
4171+ void set_offset_date_time(const int64_t & value) { this->offset_date_time = value; }
4172+ };
4173+
4174+ class OffsetTime {
4175+ public:
4176+ OffsetTime() = default;
4177+ virtual ~OffsetTime() = default;
4178+
4179+ private:
4180+ int64_t offset_time;
4181+
4182+ public:
4183+ const int64_t & get_offset_time() const { return offset_time; }
4184+ int64_t & get_mutable_offset_time() { return offset_time; }
4185+ void set_offset_time(const int64_t & value) { this->offset_time = value; }
4186+ };
4187+
41464188 class Oneway {
41474189 public:
41484190 Oneway() = default;
@@ -4577,48 +4619,6 @@ namespace quicktype {
45774619 void set_sbyte(const int64_t & value) { this->sbyte = value; }
45784620 };
45794621
4580- class Sealed {
4581- public:
4582- Sealed() = default;
4583- virtual ~Sealed() = default;
4584-
4585- private:
4586- int64_t sealed;
4587-
4588- public:
4589- const int64_t & get_sealed() const { return sealed; }
4590- int64_t & get_mutable_sealed() { return sealed; }
4591- void set_sealed(const int64_t & value) { this->sealed = value; }
4592- };
4593-
4594- class Sel {
4595- public:
4596- Sel() = default;
4597- virtual ~Sel() = default;
4598-
4599- private:
4600- int64_t sel;
4601-
4602- public:
4603- const int64_t & get_sel() const { return sel; }
4604- int64_t & get_mutable_sel() { return sel; }
4605- void set_sel(const int64_t & value) { this->sel = value; }
4606- };
4607-
4608- class Select {
4609- public:
4610- Select() = default;
4611- virtual ~Select() = default;
4612-
4613- private:
4614- int64_t select;
4615-
4616- public:
4617- const int64_t & get_select() const { return select; }
4618- int64_t & get_mutable_select() { return select; }
4619- void set_select(const int64_t & value) { this->select = value; }
4620- };
4621-
46224622 class Obj4 {
46234623 public:
46244624 Obj4() = default;
@@ -4636,6 +4636,7 @@ namespace quicktype {
46364636 NsString ns_string;
46374637 Null null;
46384638 Number number;
4639+ Noexcept obj4_noexcept;
46394640 NoneClass obj4_none;
46404641 Not obj4_not;
46414642 NotEq obj4_not_eq;
@@ -4656,6 +4657,8 @@ namespace quicktype {
46564657 Object object;
46574658 ObjectMapper object_mapper;
46584659 Of of;
4660+ OffsetDateTime offset_date_time;
4661+ OffsetTime offset_time;
46594662 Oneway oneway;
46604663 Open open;
46614664 Optional optional;
@@ -4687,9 +4690,6 @@ namespace quicktype {
46874690 RuntimeType runtime_type;
46884691 S s;
46894692 Sbyte sbyte;
4690- Sealed sealed;
4691- Sel sel;
4692- Select select;
46934693
46944694 public:
46954695 const int64_t & get_dummy() const { return dummy; }
@@ -4736,6 +4736,10 @@ namespace quicktype {
47364736 Number & get_mutable_number() { return number; }
47374737 void set_number(const Number & value) { this->number = value; }
47384738
4739+ const Noexcept & get_obj4_noexcept() const { return obj4_noexcept; }
4740+ Noexcept & get_mutable_obj4_noexcept() { return obj4_noexcept; }
4741+ void set_obj4_noexcept(const Noexcept & value) { this->obj4_noexcept = value; }
4742+
47394743 const NoneClass & get_obj4_none() const { return obj4_none; }
47404744 NoneClass & get_mutable_obj4_none() { return obj4_none; }
47414745 void set_obj4_none(const NoneClass & value) { this->obj4_none = value; }
@@ -4816,6 +4820,14 @@ namespace quicktype {
48164820 Of & get_mutable_of() { return of; }
48174821 void set_of(const Of & value) { this->of = value; }
48184822
4823+ const OffsetDateTime & get_offset_date_time() const { return offset_date_time; }
4824+ OffsetDateTime & get_mutable_offset_date_time() { return offset_date_time; }
4825+ void set_offset_date_time(const OffsetDateTime & value) { this->offset_date_time = value; }
4826+
4827+ const OffsetTime & get_offset_time() const { return offset_time; }
4828+ OffsetTime & get_mutable_offset_time() { return offset_time; }
4829+ void set_offset_time(const OffsetTime & value) { this->offset_time = value; }
4830+
48194831 const Oneway & get_oneway() const { return oneway; }
48204832 Oneway & get_mutable_oneway() { return oneway; }
48214833 void set_oneway(const Oneway & value) { this->oneway = value; }
@@ -4939,18 +4951,6 @@ namespace quicktype {
49394951 const Sbyte & get_sbyte() const { return sbyte; }
49404952 Sbyte & get_mutable_sbyte() { return sbyte; }
49414953 void set_sbyte(const Sbyte & value) { this->sbyte = value; }
4942-
4943- const Sealed & get_sealed() const { return sealed; }
4944- Sealed & get_mutable_sealed() { return sealed; }
4945- void set_sealed(const Sealed & value) { this->sealed = value; }
4946-
4947- const Sel & get_sel() const { return sel; }
4948- Sel & get_mutable_sel() { return sel; }
4949- void set_sel(const Sel & value) { this->sel = value; }
4950-
4951- const Select & get_select() const { return select; }
4952- Select & get_mutable_select() { return select; }
4953- void set_select(const Select & value) { this->select = value; }
49544954 };
49554955
49564956 class KSerializer {
@@ -5261,20 +5261,6 @@ namespace quicktype {
52615261 void set_union_union(const int64_t & value) { this->union_union = value; }
52625262 };
52635263
5264- class Unsigned {
5265- public:
5266- Unsigned() = default;
5267- virtual ~Unsigned() = default;
5268-
5269- private:
5270- int64_t unsigned_unsigned;
5271-
5272- public:
5273- const int64_t & get_unsigned_unsigned() const { return unsigned_unsigned; }
5274- int64_t & get_mutable_unsigned_unsigned() { return unsigned_unsigned; }
5275- void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; }
5276- };
5277-
52785264 class PrimitiveKind {
52795265 public:
52805266 PrimitiveKind() = default;
@@ -5303,6 +5289,48 @@ namespace quicktype {
53035289 void set_true_true(const int64_t & value) { this->true_true = value; }
53045290 };
53055291
5292+ class Sealed {
5293+ public:
5294+ Sealed() = default;
5295+ virtual ~Sealed() = default;
5296+
5297+ private:
5298+ int64_t sealed;
5299+
5300+ public:
5301+ const int64_t & get_sealed() const { return sealed; }
5302+ int64_t & get_mutable_sealed() { return sealed; }
5303+ void set_sealed(const int64_t & value) { this->sealed = value; }
5304+ };
5305+
5306+ class Sel {
5307+ public:
5308+ Sel() = default;
5309+ virtual ~Sel() = default;
5310+
5311+ private:
5312+ int64_t sel;
5313+
5314+ public:
5315+ const int64_t & get_sel() const { return sel; }
5316+ int64_t & get_mutable_sel() { return sel; }
5317+ void set_sel(const int64_t & value) { this->sel = value; }
5318+ };
5319+
5320+ class Select {
5321+ public:
5322+ Select() = default;
5323+ virtual ~Select() = default;
5324+
5325+ private:
5326+ int64_t select;
5327+
5328+ public:
5329+ const int64_t & get_select() const { return select; }
5330+ int64_t & get_mutable_select() { return select; }
5331+ void set_select(const int64_t & value) { this->select = value; }
5332+ };
5333+
53065334 class Self {
53075335 public:
53085336 Self() = default;
@@ -5807,20 +5835,6 @@ namespace quicktype {
58075835 void set_unowned(const int64_t & value) { this->unowned = value; }
58085836 };
58095837
5810- class Unsafe {
5811- public:
5812- Unsafe() = default;
5813- virtual ~Unsafe() = default;
5814-
5815- private:
5816- int64_t unsafe;
5817-
5818- public:
5819- const int64_t & get_unsafe() const { return unsafe; }
5820- int64_t & get_mutable_unsafe() { return unsafe; }
5821- void set_unsafe(const int64_t & value) { this->unsafe = value; }
5822- };
5823-
58245838 class UseSerializers {
58255839 public:
58265840 UseSerializers() = default;
@@ -5835,20 +5849,6 @@ namespace quicktype {
58355849 void set_use_serializers(const int64_t & value) { this->use_serializers = value; }
58365850 };
58375851
5838- class Ushort {
5839- public:
5840- Ushort() = default;
5841- virtual ~Ushort() = default;
5842-
5843- private:
5844- int64_t ushort;
5845-
5846- public:
5847- const int64_t & get_ushort() const { return ushort; }
5848- int64_t & get_mutable_ushort() { return ushort; }
5849- void set_ushort(const int64_t & value) { this->ushort = value; }
5850- };
5851-
58525852 class Obj5 {
58535853 public:
58545854 Obj5() = default;
@@ -5878,9 +5878,11 @@ namespace quicktype {
58785878 Typeid obj5_typeid;
58795879 Typename obj5_typename;
58805880 Union obj5_union;
5881- Unsigned obj5_unsigned;
58825881 PrimitiveKind primitive_kind;
58835882 TrueClass purple_true;
5883+ Sealed sealed;
5884+ Sel sel;
5885+ Select select;
58845886 Self self;
58855887 Sendable sendable;
58865888 SerialDescriptor serial_descriptor;
@@ -5917,9 +5919,7 @@ namespace quicktype {
59175919 Unchecked unchecked;
59185920 Undefined undefined;
59195921 Unowned unowned;
5920- Unsafe unsafe;
59215922 UseSerializers use_serializers;
5922- Ushort ushort;
59235923
59245924 public:
59255925 const int64_t & get_dummy() const { return dummy; }
@@ -6014,10 +6014,6 @@ namespace quicktype {
60146014 Union & get_mutable_obj5_union() { return obj5_union; }
60156015 void set_obj5_union(const Union & value) { this->obj5_union = value; }
60166016
6017- const Unsigned & get_obj5_unsigned() const { return obj5_unsigned; }
6018- Unsigned & get_mutable_obj5_unsigned() { return obj5_unsigned; }
6019- void set_obj5_unsigned(const Unsigned & value) { this->obj5_unsigned = value; }
6020-
60216017 const PrimitiveKind & get_primitive_kind() const { return primitive_kind; }
60226018 PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; }
60236019 void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; }
@@ -6026,6 +6022,18 @@ namespace quicktype {
60266022 TrueClass & get_mutable_purple_true() { return purple_true; }
60276023 void set_purple_true(const TrueClass & value) { this->purple_true = value; }
60286024
6025+ const Sealed & get_sealed() const { return sealed; }
6026+ Sealed & get_mutable_sealed() { return sealed; }
6027+ void set_sealed(const Sealed & value) { this->sealed = value; }
6028+
6029+ const Sel & get_sel() const { return sel; }
6030+ Sel & get_mutable_sel() { return sel; }
6031+ void set_sel(const Sel & value) { this->sel = value; }
6032+
6033+ const Select & get_select() const { return select; }
6034+ Select & get_mutable_select() { return select; }
6035+ void set_select(const Select & value) { this->select = value; }
6036+
60296037 const Self & get_self() const { return self; }
60306038 Self & get_mutable_self() { return self; }
60316039 void set_self(const Self & value) { this->self = value; }
@@ -6170,17 +6178,23 @@ namespace quicktype {
61706178 Unowned & get_mutable_unowned() { return unowned; }
61716179 void set_unowned(const Unowned & value) { this->unowned = value; }
61726180
6173- const Unsafe & get_unsafe() const { return unsafe; }
6174- Unsafe & get_mutable_unsafe() { return unsafe; }
6175- void set_unsafe(const Unsafe & value) { this->unsafe = value; }
6176-
61776181 const UseSerializers & get_use_serializers() const { return use_serializers; }
61786182 UseSerializers & get_mutable_use_serializers() { return use_serializers; }
61796183 void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; }
6184+ };
61806185
6181- const Ushort & get_ushort() const { return ushort; }
6182- Ushort & get_mutable_ushort() { return ushort; }
6183- void set_ushort(const Ushort & value) { this->ushort = value; }
6186+ class Unsigned {
6187+ public:
6188+ Unsigned() = default;
6189+ virtual ~Unsigned() = default;
6190+
6191+ private:
6192+ int64_t unsigned_unsigned;
6193+
6194+ public:
6195+ const int64_t & get_unsigned_unsigned() const { return unsigned_unsigned; }
6196+ int64_t & get_mutable_unsigned_unsigned() { return unsigned_unsigned; }
6197+ void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; }
61846198 };
61856199
61866200 class Using {
@@ -6295,6 +6309,34 @@ namespace quicktype {
62956309 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
62966310 };
62976311
6312+ class Unsafe {
6313+ public:
6314+ Unsafe() = default;
6315+ virtual ~Unsafe() = default;
6316+
6317+ private:
6318+ int64_t unsafe;
6319+
6320+ public:
6321+ const int64_t & get_unsafe() const { return unsafe; }
6322+ int64_t & get_mutable_unsafe() { return unsafe; }
6323+ void set_unsafe(const int64_t & value) { this->unsafe = value; }
6324+ };
6325+
6326+ class Ushort {
6327+ public:
6328+ Ushort() = default;
6329+ virtual ~Ushort() = default;
6330+
6331+ private:
6332+ int64_t ushort;
6333+
6334+ public:
6335+ const int64_t & get_ushort() const { return ushort; }
6336+ int64_t & get_mutable_ushort() { return ushort; }
6337+ void set_ushort(const int64_t & value) { this->ushort = value; }
6338+ };
6339+
62986340 class Utf8JsonReader {
62996341 public:
63006342 Utf8JsonReader() = default;
@@ -6442,6 +6484,7 @@ namespace quicktype {
64426484
64436485 private:
64446486 int64_t dummy;
6487+ Unsigned obj6_unsigned;
64456488 Using obj6_using;
64466489 Virtual obj6_virtual;
64476490 Void obj6_void;
@@ -6450,6 +6493,8 @@ namespace quicktype {
64506493 While obj6_while;
64516494 Xor obj6_xor;
64526495 XorEq obj6_xor_eq;
6496+ Unsafe unsafe;
6497+ Ushort ushort;
64536498 Utf8JsonReader utf8_json_reader;
64546499 Utf8JsonWriter utf8_json_writer;
64556500 Uuid uuid;
@@ -6466,6 +6511,10 @@ namespace quicktype {
64666511 int64_t & get_mutable_dummy() { return dummy; }
64676512 void set_dummy(const int64_t & value) { this->dummy = value; }
64686513
6514+ const Unsigned & get_obj6_unsigned() const { return obj6_unsigned; }
6515+ Unsigned & get_mutable_obj6_unsigned() { return obj6_unsigned; }
6516+ void set_obj6_unsigned(const Unsigned & value) { this->obj6_unsigned = value; }
6517+
64696518 const Using & get_obj6_using() const { return obj6_using; }
64706519 Using & get_mutable_obj6_using() { return obj6_using; }
64716520 void set_obj6_using(const Using & value) { this->obj6_using = value; }
@@ -6498,6 +6547,14 @@ namespace quicktype {
64986547 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
64996548 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
65006549
6550+ const Unsafe & get_unsafe() const { return unsafe; }
6551+ Unsafe & get_mutable_unsafe() { return unsafe; }
6552+ void set_unsafe(const Unsafe & value) { this->unsafe = value; }
6553+
6554+ const Ushort & get_ushort() const { return ushort; }
6555+ Ushort & get_mutable_ushort() { return ushort; }
6556+ void set_ushort(const Ushort & value) { this->ushort = value; }
6557+
65016558 const Utf8JsonReader & get_utf8_json_reader() const { return utf8_json_reader; }
65026559 Utf8JsonReader & get_mutable_utf8_json_reader() { return utf8_json_reader; }
65036560 void set_utf8_json_reader(const Utf8JsonReader & value) { this->utf8_json_reader = value; }
@@ -7107,6 +7164,9 @@ namespace quicktype {
71077164 void from_json(const json & j, List & x);
71087165 void to_json(json & j, const List & x);
71097166
7167+ void from_json(const json & j, LocalDate & x);
7168+ void to_json(json & j, const LocalDate & x);
7169+
71107170 void from_json(const json & j, Locale & x);
71117171 void to_json(json & j, const Locale & x);
71127172
@@ -7164,9 +7224,6 @@ namespace quicktype {
71647224 void from_json(const json & j, New & x);
71657225 void to_json(json & j, const New & x);
71667226
7167- void from_json(const json & j, Noexcept & x);
7168- void to_json(json & j, const Noexcept & x);
7169-
71707227 void from_json(const json & j, Obj3 & x);
71717228 void to_json(json & j, const Obj3 & x);
71727229
@@ -7200,6 +7257,9 @@ namespace quicktype {
72007257 void from_json(const json & j, Number & x);
72017258 void to_json(json & j, const Number & x);
72027259
7260+ void from_json(const json & j, Noexcept & x);
7261+ void to_json(json & j, const Noexcept & x);
7262+
72037263 void from_json(const json & j, NoneClass & x);
72047264 void to_json(json & j, const NoneClass & x);
72057265
@@ -7260,6 +7320,12 @@ namespace quicktype {
72607320 void from_json(const json & j, Of & x);
72617321 void to_json(json & j, const Of & x);
72627322
7323+ void from_json(const json & j, OffsetDateTime & x);
7324+ void to_json(json & j, const OffsetDateTime & x);
7325+
7326+ void from_json(const json & j, OffsetTime & x);
7327+ void to_json(json & j, const OffsetTime & x);
7328+
72637329 void from_json(const json & j, Oneway & x);
72647330 void to_json(json & j, const Oneway & x);
72657331
@@ -7353,15 +7419,6 @@ namespace quicktype {
73537419 void from_json(const json & j, Sbyte & x);
73547420 void to_json(json & j, const Sbyte & x);
73557421
7356- void from_json(const json & j, Sealed & x);
7357- void to_json(json & j, const Sealed & x);
7358-
7359- void from_json(const json & j, Sel & x);
7360- void to_json(json & j, const Sel & x);
7361-
7362- void from_json(const json & j, Select & x);
7363- void to_json(json & j, const Select & x);
7364-
73657422 void from_json(const json & j, Obj4 & x);
73667423 void to_json(json & j, const Obj4 & x);
73677424
@@ -7431,15 +7488,21 @@ namespace quicktype {
74317488 void from_json(const json & j, Union & x);
74327489 void to_json(json & j, const Union & x);
74337490
7434- void from_json(const json & j, Unsigned & x);
7435- void to_json(json & j, const Unsigned & x);
7436-
74377491 void from_json(const json & j, PrimitiveKind & x);
74387492 void to_json(json & j, const PrimitiveKind & x);
74397493
74407494 void from_json(const json & j, TrueClass & x);
74417495 void to_json(json & j, const TrueClass & x);
74427496
7497+ void from_json(const json & j, Sealed & x);
7498+ void to_json(json & j, const Sealed & x);
7499+
7500+ void from_json(const json & j, Sel & x);
7501+ void to_json(json & j, const Sel & x);
7502+
7503+ void from_json(const json & j, Select & x);
7504+ void to_json(json & j, const Select & x);
7505+
74437506 void from_json(const json & j, Self & x);
74447507 void to_json(json & j, const Self & x);
74457508
@@ -7548,18 +7611,15 @@ namespace quicktype {
75487611 void from_json(const json & j, Unowned & x);
75497612 void to_json(json & j, const Unowned & x);
75507613
7551- void from_json(const json & j, Unsafe & x);
7552- void to_json(json & j, const Unsafe & x);
7553-
75547614 void from_json(const json & j, UseSerializers & x);
75557615 void to_json(json & j, const UseSerializers & x);
75567616
7557- void from_json(const json & j, Ushort & x);
7558- void to_json(json & j, const Ushort & x);
7559-
75607617 void from_json(const json & j, Obj5 & x);
75617618 void to_json(json & j, const Obj5 & x);
75627619
7620+ void from_json(const json & j, Unsigned & x);
7621+ void to_json(json & j, const Unsigned & x);
7622+
75637623 void from_json(const json & j, Using & x);
75647624 void to_json(json & j, const Using & x);
75657625
@@ -7584,6 +7644,12 @@ namespace quicktype {
75847644 void from_json(const json & j, XorEq & x);
75857645 void to_json(json & j, const XorEq & x);
75867646
7647+ void from_json(const json & j, Unsafe & x);
7648+ void to_json(json & j, const Unsafe & x);
7649+
7650+ void from_json(const json & j, Ushort & x);
7651+ void to_json(json & j, const Ushort & x);
7652+
75877653 void from_json(const json & j, Utf8JsonReader & x);
75887654 void to_json(json & j, const Utf8JsonReader & x);
75897655
@@ -9791,6 +9857,17 @@ namespace quicktype {
97919857 j["list"] = x.get_list();
97929858 }
97939859
9860+ inline void from_json(const json & j, LocalDate& x) {
9861+ if (!j.is_object()) throw std::runtime_error("Expected object");
9862+ if (j.find("LocalDate") != j.end() && !j.at("LocalDate").is_number_integer()) throw std::runtime_error("Expected integer");
9863+ x.set_local_date(j.at("LocalDate").get<int64_t>());
9864+ }
9865+
9866+ inline void to_json(json & j, const LocalDate & x) {
9867+ j = json::object();
9868+ j["LocalDate"] = x.get_local_date();
9869+ }
9870+
97949871 inline void from_json(const json & j, Locale& x) {
97959872 if (!j.is_object()) throw std::runtime_error("Expected object");
97969873 if (j.find("Locale") != j.end() && !j.at("Locale").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10000,17 +10077,6 @@ namespace quicktype {
1000010077 j["new"] = x.get_new_new();
1000110078 }
1000210079
10003- inline void from_json(const json & j, Noexcept& x) {
10004- if (!j.is_object()) throw std::runtime_error("Expected object");
10005- if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
10006- x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
10007- }
10008-
10009- inline void to_json(json & j, const Noexcept & x) {
10010- j = json::object();
10011- j["noexcept"] = x.get_noexcept_noexcept();
10012- }
10013-
1001410080 inline void from_json(const json & j, Obj3& x) {
1001510081 if (!j.is_object()) throw std::runtime_error("Expected object");
1001610082 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10059,6 +10125,7 @@ namespace quicktype {
1005910125 x.set_left(j.at("left").get<Left>());
1006010126 x.set_let(j.at("let").get<Let>());
1006110127 x.set_list(j.at("list").get<List>());
10128+ x.set_local_date(j.at("LocalDate").get<LocalDate>());
1006210129 x.set_locale(j.at("Locale").get<Locale>());
1006310130 x.set_lock(j.at("lock").get<Lock>());
1006410131 x.set_map(j.at("map").get<Map>());
@@ -10078,7 +10145,6 @@ namespace quicktype {
1007810145 x.set_obj3_mutable(j.at("mutable").get<Mutable>());
1007910146 x.set_obj3_namespace(j.at("namespace").get<Namespace>());
1008010147 x.set_obj3_new(j.at("new").get<New>());
10081- x.set_obj3_noexcept(j.at("noexcept").get<Noexcept>());
1008210148 }
1008310149
1008410150 inline void to_json(json & j, const Obj3 & x) {
@@ -10128,6 +10194,7 @@ namespace quicktype {
1012810194 j["left"] = x.get_left();
1012910195 j["let"] = x.get_let();
1013010196 j["list"] = x.get_list();
10197+ j["LocalDate"] = x.get_local_date();
1013110198 j["Locale"] = x.get_locale();
1013210199 j["lock"] = x.get_lock();
1013310200 j["map"] = x.get_map();
@@ -10147,7 +10214,6 @@ namespace quicktype {
1014710214 j["mutable"] = x.get_obj3_mutable();
1014810215 j["namespace"] = x.get_obj3_namespace();
1014910216 j["new"] = x.get_obj3_new();
10150- j["noexcept"] = x.get_obj3_noexcept();
1015110217 }
1015210218
1015310219 inline void from_json(const json & j, NoSuchMethod& x) {
@@ -10260,6 +10326,17 @@ namespace quicktype {
1026010326 j["number"] = x.get_number();
1026110327 }
1026210328
10329+ inline void from_json(const json & j, Noexcept& x) {
10330+ if (!j.is_object()) throw std::runtime_error("Expected object");
10331+ if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
10332+ x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
10333+ }
10334+
10335+ inline void to_json(json & j, const Noexcept & x) {
10336+ j = json::object();
10337+ j["noexcept"] = x.get_noexcept_noexcept();
10338+ }
10339+
1026310340 inline void from_json(const json & j, NoneClass& x) {
1026410341 if (!j.is_object()) throw std::runtime_error("Expected object");
1026510342 if (j.find("none") != j.end() && !j.at("none").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10480,6 +10557,28 @@ namespace quicktype {
1048010557 j["of"] = x.get_of();
1048110558 }
1048210559
10560+ inline void from_json(const json & j, OffsetDateTime& x) {
10561+ if (!j.is_object()) throw std::runtime_error("Expected object");
10562+ if (j.find("OffsetDateTime") != j.end() && !j.at("OffsetDateTime").is_number_integer()) throw std::runtime_error("Expected integer");
10563+ x.set_offset_date_time(j.at("OffsetDateTime").get<int64_t>());
10564+ }
10565+
10566+ inline void to_json(json & j, const OffsetDateTime & x) {
10567+ j = json::object();
10568+ j["OffsetDateTime"] = x.get_offset_date_time();
10569+ }
10570+
10571+ inline void from_json(const json & j, OffsetTime& x) {
10572+ if (!j.is_object()) throw std::runtime_error("Expected object");
10573+ if (j.find("OffsetTime") != j.end() && !j.at("OffsetTime").is_number_integer()) throw std::runtime_error("Expected integer");
10574+ x.set_offset_time(j.at("OffsetTime").get<int64_t>());
10575+ }
10576+
10577+ inline void to_json(json & j, const OffsetTime & x) {
10578+ j = json::object();
10579+ j["OffsetTime"] = x.get_offset_time();
10580+ }
10581+
1048310582 inline void from_json(const json & j, Oneway& x) {
1048410583 if (!j.is_object()) throw std::runtime_error("Expected object");
1048510584 if (j.find("oneway") != j.end() && !j.at("oneway").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10821,39 +10920,6 @@ namespace quicktype {
1082110920 j["sbyte"] = x.get_sbyte();
1082210921 }
1082310922
10824- inline void from_json(const json & j, Sealed& x) {
10825- if (!j.is_object()) throw std::runtime_error("Expected object");
10826- if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer");
10827- x.set_sealed(j.at("sealed").get<int64_t>());
10828- }
10829-
10830- inline void to_json(json & j, const Sealed & x) {
10831- j = json::object();
10832- j["sealed"] = x.get_sealed();
10833- }
10834-
10835- inline void from_json(const json & j, Sel& x) {
10836- if (!j.is_object()) throw std::runtime_error("Expected object");
10837- if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer");
10838- x.set_sel(j.at("SEL").get<int64_t>());
10839- }
10840-
10841- inline void to_json(json & j, const Sel & x) {
10842- j = json::object();
10843- j["SEL"] = x.get_sel();
10844- }
10845-
10846- inline void from_json(const json & j, Select& x) {
10847- if (!j.is_object()) throw std::runtime_error("Expected object");
10848- if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
10849- x.set_select(j.at("select").get<int64_t>());
10850- }
10851-
10852- inline void to_json(json & j, const Select & x) {
10853- j = json::object();
10854- j["select"] = x.get_select();
10855- }
10856-
1085710923 inline void from_json(const json & j, Obj4& x) {
1085810924 if (!j.is_object()) throw std::runtime_error("Expected object");
1085910925 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10868,6 +10934,7 @@ namespace quicktype {
1086810934 x.set_ns_string(j.at("NSString").get<NsString>());
1086910935 x.set_null(j.at("NULL").get<Null>());
1087010936 x.set_number(j.at("number").get<Number>());
10937+ x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>());
1087110938 x.set_obj4_none(j.at("none").get<NoneClass>());
1087210939 x.set_obj4_not(j.at("not").get<Not>());
1087310940 x.set_obj4_not_eq(j.at("not_eq").get<NotEq>());
@@ -10888,6 +10955,8 @@ namespace quicktype {
1088810955 x.set_object(j.at("object").get<Object>());
1088910956 x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>());
1089010957 x.set_of(j.at("of").get<Of>());
10958+ x.set_offset_date_time(j.at("OffsetDateTime").get<OffsetDateTime>());
10959+ x.set_offset_time(j.at("OffsetTime").get<OffsetTime>());
1089110960 x.set_oneway(j.at("oneway").get<Oneway>());
1089210961 x.set_open(j.at("open").get<Open>());
1089310962 x.set_optional(j.at("optional").get<Optional>());
@@ -10919,9 +10988,6 @@ namespace quicktype {
1091910988 x.set_runtime_type(j.at("runtimeType").get<RuntimeType>());
1092010989 x.set_s(j.at("s").get<S>());
1092110990 x.set_sbyte(j.at("sbyte").get<Sbyte>());
10922- x.set_sealed(j.at("sealed").get<Sealed>());
10923- x.set_sel(j.at("SEL").get<Sel>());
10924- x.set_select(j.at("select").get<Select>());
1092510991 }
1092610992
1092710993 inline void to_json(json & j, const Obj4 & x) {
@@ -10937,6 +11003,7 @@ namespace quicktype {
1093711003 j["NSString"] = x.get_ns_string();
1093811004 j["NULL"] = x.get_null();
1093911005 j["number"] = x.get_number();
11006+ j["noexcept"] = x.get_obj4_noexcept();
1094011007 j["none"] = x.get_obj4_none();
1094111008 j["not"] = x.get_obj4_not();
1094211009 j["not_eq"] = x.get_obj4_not_eq();
@@ -10957,6 +11024,8 @@ namespace quicktype {
1095711024 j["object"] = x.get_object();
1095811025 j["ObjectMapper"] = x.get_object_mapper();
1095911026 j["of"] = x.get_of();
11027+ j["OffsetDateTime"] = x.get_offset_date_time();
11028+ j["OffsetTime"] = x.get_offset_time();
1096011029 j["oneway"] = x.get_oneway();
1096111030 j["open"] = x.get_open();
1096211031 j["optional"] = x.get_optional();
@@ -10988,9 +11057,6 @@ namespace quicktype {
1098811057 j["runtimeType"] = x.get_runtime_type();
1098911058 j["s"] = x.get_s();
1099011059 j["sbyte"] = x.get_sbyte();
10991- j["sealed"] = x.get_sealed();
10992- j["SEL"] = x.get_sel();
10993- j["select"] = x.get_select();
1099411060 }
1099511061
1099611062 inline void from_json(const json & j, KSerializer& x) {
@@ -11235,17 +11301,6 @@ namespace quicktype {
1123511301 j["union"] = x.get_union_union();
1123611302 }
1123711303
11238- inline void from_json(const json & j, Unsigned& x) {
11239- if (!j.is_object()) throw std::runtime_error("Expected object");
11240- if (j.find("unsigned") != j.end() && !j.at("unsigned").is_number_integer()) throw std::runtime_error("Expected integer");
11241- x.set_unsigned_unsigned(j.at("unsigned").get<int64_t>());
11242- }
11243-
11244- inline void to_json(json & j, const Unsigned & x) {
11245- j = json::object();
11246- j["unsigned"] = x.get_unsigned_unsigned();
11247- }
11248-
1124911304 inline void from_json(const json & j, PrimitiveKind& x) {
1125011305 if (!j.is_object()) throw std::runtime_error("Expected object");
1125111306 if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11268,6 +11323,39 @@ namespace quicktype {
1126811323 j["true"] = x.get_true_true();
1126911324 }
1127011325
11326+ inline void from_json(const json & j, Sealed& x) {
11327+ if (!j.is_object()) throw std::runtime_error("Expected object");
11328+ if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer");
11329+ x.set_sealed(j.at("sealed").get<int64_t>());
11330+ }
11331+
11332+ inline void to_json(json & j, const Sealed & x) {
11333+ j = json::object();
11334+ j["sealed"] = x.get_sealed();
11335+ }
11336+
11337+ inline void from_json(const json & j, Sel& x) {
11338+ if (!j.is_object()) throw std::runtime_error("Expected object");
11339+ if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer");
11340+ x.set_sel(j.at("SEL").get<int64_t>());
11341+ }
11342+
11343+ inline void to_json(json & j, const Sel & x) {
11344+ j = json::object();
11345+ j["SEL"] = x.get_sel();
11346+ }
11347+
11348+ inline void from_json(const json & j, Select& x) {
11349+ if (!j.is_object()) throw std::runtime_error("Expected object");
11350+ if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
11351+ x.set_select(j.at("select").get<int64_t>());
11352+ }
11353+
11354+ inline void to_json(json & j, const Select & x) {
11355+ j = json::object();
11356+ j["select"] = x.get_select();
11357+ }
11358+
1127111359 inline void from_json(const json & j, Self& x) {
1127211360 if (!j.is_object()) throw std::runtime_error("Expected object");
1127311361 if (j.find("Self") != j.end() && !j.at("Self").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11664,17 +11752,6 @@ namespace quicktype {
1166411752 j["unowned"] = x.get_unowned();
1166511753 }
1166611754
11667- inline void from_json(const json & j, Unsafe& x) {
11668- if (!j.is_object()) throw std::runtime_error("Expected object");
11669- if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer");
11670- x.set_unsafe(j.at("unsafe").get<int64_t>());
11671- }
11672-
11673- inline void to_json(json & j, const Unsafe & x) {
11674- j = json::object();
11675- j["unsafe"] = x.get_unsafe();
11676- }
11677-
1167811755 inline void from_json(const json & j, UseSerializers& x) {
1167911756 if (!j.is_object()) throw std::runtime_error("Expected object");
1168011757 if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11686,17 +11763,6 @@ namespace quicktype {
1168611763 j["UseSerializers"] = x.get_use_serializers();
1168711764 }
1168811765
11689- inline void from_json(const json & j, Ushort& x) {
11690- if (!j.is_object()) throw std::runtime_error("Expected object");
11691- if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
11692- x.set_ushort(j.at("ushort").get<int64_t>());
11693- }
11694-
11695- inline void to_json(json & j, const Ushort & x) {
11696- j = json::object();
11697- j["ushort"] = x.get_ushort();
11698- }
11699-
1170011766 inline void from_json(const json & j, Obj5& x) {
1170111767 if (!j.is_object()) throw std::runtime_error("Expected object");
1170211768 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11723,9 +11789,11 @@ namespace quicktype {
1172311789 x.set_obj5_typeid(j.at("typeid").get<Typeid>());
1172411790 x.set_obj5_typename(j.at("typename").get<Typename>());
1172511791 x.set_obj5_union(j.at("union").get<Union>());
11726- x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>());
1172711792 x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>());
1172811793 x.set_purple_true(j.at("true").get<TrueClass>());
11794+ x.set_sealed(j.at("sealed").get<Sealed>());
11795+ x.set_sel(j.at("SEL").get<Sel>());
11796+ x.set_select(j.at("select").get<Select>());
1172911797 x.set_self(j.at("Self").get<Self>());
1173011798 x.set_sendable(j.at("Sendable").get<Sendable>());
1173111799 x.set_serial_descriptor(j.at("SerialDescriptor").get<SerialDescriptor>());
@@ -11762,9 +11830,7 @@ namespace quicktype {
1176211830 x.set_unchecked(j.at("unchecked").get<Unchecked>());
1176311831 x.set_undefined(j.at("undefined").get<Undefined>());
1176411832 x.set_unowned(j.at("unowned").get<Unowned>());
11765- x.set_unsafe(j.at("unsafe").get<Unsafe>());
1176611833 x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>());
11767- x.set_ushort(j.at("ushort").get<Ushort>());
1176811834 }
1176911835
1177011836 inline void to_json(json & j, const Obj5 & x) {
@@ -11792,9 +11858,11 @@ namespace quicktype {
1179211858 j["typeid"] = x.get_obj5_typeid();
1179311859 j["typename"] = x.get_obj5_typename();
1179411860 j["union"] = x.get_obj5_union();
11795- j["unsigned"] = x.get_obj5_unsigned();
1179611861 j["PrimitiveKind"] = x.get_primitive_kind();
1179711862 j["true"] = x.get_purple_true();
11863+ j["sealed"] = x.get_sealed();
11864+ j["SEL"] = x.get_sel();
11865+ j["select"] = x.get_select();
1179811866 j["Self"] = x.get_self();
1179911867 j["Sendable"] = x.get_sendable();
1180011868 j["SerialDescriptor"] = x.get_serial_descriptor();
@@ -11831,9 +11899,18 @@ namespace quicktype {
1183111899 j["unchecked"] = x.get_unchecked();
1183211900 j["undefined"] = x.get_undefined();
1183311901 j["unowned"] = x.get_unowned();
11834- j["unsafe"] = x.get_unsafe();
1183511902 j["UseSerializers"] = x.get_use_serializers();
11836- j["ushort"] = x.get_ushort();
11903+ }
11904+
11905+ inline void from_json(const json & j, Unsigned& x) {
11906+ if (!j.is_object()) throw std::runtime_error("Expected object");
11907+ if (j.find("unsigned") != j.end() && !j.at("unsigned").is_number_integer()) throw std::runtime_error("Expected integer");
11908+ x.set_unsigned_unsigned(j.at("unsigned").get<int64_t>());
11909+ }
11910+
11911+ inline void to_json(json & j, const Unsigned & x) {
11912+ j = json::object();
11913+ j["unsigned"] = x.get_unsigned_unsigned();
1183711914 }
1183811915
1183911916 inline void from_json(const json & j, Using& x) {
@@ -11924,6 +12001,28 @@ namespace quicktype {
1192412001 j["xor_eq"] = x.get_xor_eq_xor_eq();
1192512002 }
1192612003
12004+ inline void from_json(const json & j, Unsafe& x) {
12005+ if (!j.is_object()) throw std::runtime_error("Expected object");
12006+ if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer");
12007+ x.set_unsafe(j.at("unsafe").get<int64_t>());
12008+ }
12009+
12010+ inline void to_json(json & j, const Unsafe & x) {
12011+ j = json::object();
12012+ j["unsafe"] = x.get_unsafe();
12013+ }
12014+
12015+ inline void from_json(const json & j, Ushort& x) {
12016+ if (!j.is_object()) throw std::runtime_error("Expected object");
12017+ if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer");
12018+ x.set_ushort(j.at("ushort").get<int64_t>());
12019+ }
12020+
12021+ inline void to_json(json & j, const Ushort & x) {
12022+ j = json::object();
12023+ j["ushort"] = x.get_ushort();
12024+ }
12025+
1192712026 inline void from_json(const json & j, Utf8JsonReader& x) {
1192812027 if (!j.is_object()) throw std::runtime_error("Expected object");
1192912028 if (j.find("Utf8JsonReader") != j.end() && !j.at("Utf8JsonReader").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -12038,6 +12137,7 @@ namespace quicktype {
1203812137 if (!j.is_object()) throw std::runtime_error("Expected object");
1203912138 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1204012139 x.set_dummy(j.at("dummy").get<int64_t>());
12140+ x.set_obj6_unsigned(j.at("unsigned").get<Unsigned>());
1204112141 x.set_obj6_using(j.at("using").get<Using>());
1204212142 x.set_obj6_virtual(j.at("virtual").get<Virtual>());
1204312143 x.set_obj6_void(j.at("void").get<Void>());
@@ -12046,6 +12146,8 @@ namespace quicktype {
1204612146 x.set_obj6_while(j.at("while").get<While>());
1204712147 x.set_obj6_xor(j.at("xor").get<Xor>());
1204812148 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
12149+ x.set_unsafe(j.at("unsafe").get<Unsafe>());
12150+ x.set_ushort(j.at("ushort").get<Ushort>());
1204912151 x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
1205012152 x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
1205112153 x.set_uuid(j.at("UUID").get<Uuid>());
@@ -12061,6 +12163,7 @@ namespace quicktype {
1206112163 inline void to_json(json & j, const Obj6 & x) {
1206212164 j = json::object();
1206312165 j["dummy"] = x.get_dummy();
12166+ j["unsigned"] = x.get_obj6_unsigned();
1206412167 j["using"] = x.get_obj6_using();
1206512168 j["virtual"] = x.get_obj6_virtual();
1206612169 j["void"] = x.get_obj6_void();
@@ -12069,6 +12172,8 @@ namespace quicktype {
1206912172 j["while"] = x.get_obj6_while();
1207012173 j["xor"] = x.get_obj6_xor();
1207112174 j["xor_eq"] = x.get_obj6_xor_eq();
12175+ j["unsafe"] = x.get_unsafe();
12176+ j["ushort"] = x.get_ushort();
1207212177 j["Utf8JsonReader"] = x.get_utf8_json_reader();
1207312178 j["Utf8JsonWriter"] = x.get_utf8_json_writer();
1207412179 j["UUID"] = x.get_uuid();
Mcrystaldefault / TopLevel.cr+90 −60
@@ -1246,6 +1246,9 @@ class Obj3
12461246
12471247 property list : List
12481248
1249+ @[JSON::Field(key: "LocalDate")]
1250+ property local_date : LocalDate
1251+
12491252 @[JSON::Field(key: "Locale")]
12501253 property locale : Locale
12511254
@@ -1275,8 +1278,6 @@ class Obj3
12751278 @[JSON::Field(key: "NO")]
12761279 property no : No
12771280
1278- property noexcept : Noexcept
1279-
12801281 @[JSON::Field(key: "if")]
12811282 property obj3_if : If
12821283
@@ -1583,6 +1584,13 @@ class List
15831584 property list : Int64
15841585 end
15851586
1587+class LocalDate
1588+ include JSON::Serializable
1589+
1590+ @[JSON::Field(key: "LocalDate")]
1591+ property local_date : Int64
1592+end
1593+
15861594 class Locale
15871595 include JSON::Serializable
15881596
@@ -1664,12 +1672,6 @@ class No
16641672 property no : Int64
16651673 end
16661674
1667-class Noexcept
1668- include JSON::Serializable
1669-
1670- property noexcept : Int64
1671-end
1672-
16731675 class If
16741676 include JSON::Serializable
16751677
@@ -1706,6 +1708,8 @@ class Obj4
17061708 @[JSON::Field(key: "noSuchMethod")]
17071709 property no_such_method : NoSuchMethod
17081710
1711+ property noexcept : Noexcept
1712+
17091713 property nonatomic : Nonatomic
17101714
17111715 @[JSON::Field(key: "None")]
@@ -1762,14 +1766,17 @@ class Obj4
17621766 @[JSON::Field(key: "return")]
17631767 property obj4_return : Return
17641768
1765- @[JSON::Field(key: "select")]
1766- property obj4_select : Select
1767-
17681769 property object : ObjectClass
17691770
17701771 @[JSON::Field(key: "ObjectMapper")]
17711772 property object_mapper : ObjectMapper
17721773
1774+ @[JSON::Field(key: "OffsetDateTime")]
1775+ property offset_date_time : OffsetDateTime
1776+
1777+ @[JSON::Field(key: "OffsetTime")]
1778+ property offset_time : OffsetTime
1779+
17731780 property oneway : Oneway
17741781
17751782 property open : Open
@@ -1847,11 +1854,6 @@ class Obj4
18471854 property s : S
18481855
18491856 property sbyte : Sbyte
1850-
1851- property sealed : Sealed
1852-
1853- @[JSON::Field(key: "SEL")]
1854- property sel : Sel
18551857 end
18561858
18571859 class NoSuchMethod
@@ -1861,6 +1863,12 @@ class NoSuchMethod
18611863 property no_such_method : Int64
18621864 end
18631865
1866+class Noexcept
1867+ include JSON::Serializable
1868+
1869+ property noexcept : Int64
1870+end
1871+
18641872 class Nonatomic
18651873 include JSON::Serializable
18661874
@@ -1998,13 +2006,6 @@ class Return
19982006 property return_return : Int64
19992007 end
20002008
2001-class Select
2002- include JSON::Serializable
2003-
2004- @[JSON::Field(key: "select")]
2005- property select_select : Int64
2006-end
2007-
20082009 class ObjectClass
20092010 include JSON::Serializable
20102011
@@ -2018,6 +2019,20 @@ class ObjectMapper
20182019 property object_mapper : Int64
20192020 end
20202021
2022+class OffsetDateTime
2023+ include JSON::Serializable
2024+
2025+ @[JSON::Field(key: "OffsetDateTime")]
2026+ property offset_date_time : Int64
2027+end
2028+
2029+class OffsetTime
2030+ include JSON::Serializable
2031+
2032+ @[JSON::Field(key: "OffsetTime")]
2033+ property offset_time : Int64
2034+end
2035+
20212036 class Oneway
20222037 include JSON::Serializable
20232038
@@ -2244,19 +2259,6 @@ class Sbyte
22442259 property sbyte : Int64
22452260 end
22462261
2247-class Sealed
2248- include JSON::Serializable
2249-
2250- property sealed : Int64
2251-end
2252-
2253-class Sel
2254- include JSON::Serializable
2255-
2256- @[JSON::Field(key: "SEL")]
2257- property sel : Int64
2258-end
2259-
22602262 class Obj5
22612263 include JSON::Serializable
22622264
@@ -2265,6 +2267,9 @@ class Obj5
22652267 @[JSON::Field(key: "KSerializer")]
22662268 property k_serializer : KSerializer
22672269
2270+ @[JSON::Field(key: "select")]
2271+ property obj5_select : Select
2272+
22682273 @[JSON::Field(key: "Self")]
22692274 property obj5_self : Self
22702275
@@ -2307,6 +2312,11 @@ class Obj5
23072312 @[JSON::Field(key: "type")]
23082313 property purple_type : TypeClass
23092314
2315+ property sealed : Sealed
2316+
2317+ @[JSON::Field(key: "SEL")]
2318+ property sel : Sel
2319+
23102320 @[JSON::Field(key: "Sendable")]
23112321 property sendable : Sendable
23122322
@@ -2410,14 +2420,8 @@ class Obj5
24102420
24112421 property unowned : Unowned
24122422
2413- property unsafe : Unsafe
2414-
2415- property unsigned : Unsigned
2416-
24172423 @[JSON::Field(key: "UseSerializers")]
24182424 property use_serializers : UseSerializers
2419-
2420- property ushort : Ushort
24212425 end
24222426
24232427 class KSerializer
@@ -2427,6 +2431,13 @@ class KSerializer
24272431 property k_serializer : Int64
24282432 end
24292433
2434+class Select
2435+ include JSON::Serializable
2436+
2437+ @[JSON::Field(key: "select")]
2438+ property select_select : Int64
2439+end
2440+
24302441 class Self
24312442 include JSON::Serializable
24322443
@@ -2525,6 +2536,19 @@ class TypeClass
25252536 property type_type : Int64
25262537 end
25272538
2539+class Sealed
2540+ include JSON::Serializable
2541+
2542+ property sealed : Int64
2543+end
2544+
2545+class Sel
2546+ include JSON::Serializable
2547+
2548+ @[JSON::Field(key: "SEL")]
2549+ property sel : Int64
2550+end
2551+
25282552 class Sendable
25292553 include JSON::Serializable
25302554
@@ -2808,18 +2832,6 @@ class Unowned
28082832 property unowned : Int64
28092833 end
28102834
2811-class Unsafe
2812- include JSON::Serializable
2813-
2814- property unsafe : Int64
2815-end
2816-
2817-class Unsigned
2818- include JSON::Serializable
2819-
2820- property unsigned : Int64
2821-end
2822-
28232835 class UseSerializers
28242836 include JSON::Serializable
28252837
@@ -2827,12 +2839,6 @@ class UseSerializers
28272839 property use_serializers : Int64
28282840 end
28292841
2830-class Ushort
2831- include JSON::Serializable
2832-
2833- property ushort : Int64
2834-end
2835-
28362842 class Obj6
28372843 include JSON::Serializable
28382844
@@ -2847,6 +2853,12 @@ class Obj6
28472853 @[JSON::Field(key: "yield")]
28482854 property obj6_yield : Yield
28492855
2856+ property unsafe : Unsafe
2857+
2858+ property unsigned : Unsigned
2859+
2860+ property ushort : Ushort
2861+
28502862 property using : Using
28512863
28522864 @[JSON::Field(key: "Utf8JsonReader")]
@@ -2904,6 +2916,24 @@ class Yield
29042916 property yield_yield : Int64
29052917 end
29062918
2919+class Unsafe
2920+ include JSON::Serializable
2921+
2922+ property unsafe : Int64
2923+end
2924+
2925+class Unsigned
2926+ include JSON::Serializable
2927+
2928+ property unsigned : Int64
2929+end
2930+
2931+class Ushort
2932+ include JSON::Serializable
2933+
2934+ property ushort : Int64
2935+end
2936+
29072937 class Using
29082938 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+90 −63
@@ -1360,6 +1360,9 @@ namespace QuickType
13601360 [JsonProperty("list", Required = Required.Always)]
13611361 public List List { get; set; }
13621362
1363+ [JsonProperty("LocalDate", Required = Required.Always)]
1364+ public LocalDate LocalDate { get; set; }
1365+
13631366 [JsonProperty("Locale", Required = Required.Always)]
13641367 public Locale Locale { get; set; }
13651368
@@ -1404,9 +1407,6 @@ namespace QuickType
14041407
14051408 [JsonProperty("NO", Required = Required.Always)]
14061409 public No No { get; set; }
1407-
1408- [JsonProperty("noexcept", Required = Required.Always)]
1409- public Noexcept Noexcept { get; set; }
14101410 }
14111411
14121412 public partial record Guard
@@ -1697,6 +1697,12 @@ namespace QuickType
16971697 public long ListList { get; set; }
16981698 }
16991699
1700+ public partial record LocalDate
1701+ {
1702+ [JsonProperty("LocalDate", Required = Required.Always)]
1703+ public long LocalDateLocalDate { get; set; }
1704+ }
1705+
17001706 public partial record Locale
17011707 {
17021708 [JsonProperty("Locale", Required = Required.Always)]
@@ -1787,12 +1793,6 @@ namespace QuickType
17871793 public long NoNo { get; set; }
17881794 }
17891795
1790- public partial record Noexcept
1791- {
1792- [JsonProperty("noexcept", Required = Required.Always)]
1793- public long NoexceptNoexcept { get; set; }
1794- }
1795-
17961796 public partial record Obj4
17971797 {
17981798 [JsonProperty("dummy", Required = Required.Always)]
@@ -1801,6 +1801,9 @@ namespace QuickType
18011801 [JsonProperty("noSuchMethod", Required = Required.Always)]
18021802 public NoSuchMethod NoSuchMethod { get; set; }
18031803
1804+ [JsonProperty("noexcept", Required = Required.Always)]
1805+ public Noexcept Noexcept { get; set; }
1806+
18041807 [JsonProperty("nonatomic", Required = Required.Always)]
18051808 public Nonatomic Nonatomic { get; set; }
18061809
@@ -1861,6 +1864,12 @@ namespace QuickType
18611864 [JsonProperty("of", Required = Required.Always)]
18621865 public Of Of { get; set; }
18631866
1867+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
1868+ public OffsetDateTime OffsetDateTime { get; set; }
1869+
1870+ [JsonProperty("OffsetTime", Required = Required.Always)]
1871+ public OffsetTime OffsetTime { get; set; }
1872+
18641873 [JsonProperty("oneway", Required = Required.Always)]
18651874 public Oneway Oneway { get; set; }
18661875
@@ -1980,15 +1989,6 @@ namespace QuickType
19801989
19811990 [JsonProperty("sbyte", Required = Required.Always)]
19821991 public Sbyte Sbyte { get; set; }
1983-
1984- [JsonProperty("sealed", Required = Required.Always)]
1985- public Sealed Sealed { get; set; }
1986-
1987- [JsonProperty("SEL", Required = Required.Always)]
1988- public Sel Sel { get; set; }
1989-
1990- [JsonProperty("select", Required = Required.Always)]
1991- public Select Select { get; set; }
19921992 }
19931993
19941994 public partial record NoSuchMethod
@@ -1997,6 +1997,12 @@ namespace QuickType
19971997 public long NoSuchMethodNoSuchMethod { get; set; }
19981998 }
19991999
2000+ public partial record Noexcept
2001+ {
2002+ [JsonProperty("noexcept", Required = Required.Always)]
2003+ public long NoexceptNoexcept { get; set; }
2004+ }
2005+
20002006 public partial record Nonatomic
20012007 {
20022008 [JsonProperty("nonatomic", Required = Required.Always)]
@@ -2117,6 +2123,18 @@ namespace QuickType
21172123 public long OfOf { get; set; }
21182124 }
21192125
2126+ public partial record OffsetDateTime
2127+ {
2128+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
2129+ public long OffsetDateTimeOffsetDateTime { get; set; }
2130+ }
2131+
2132+ public partial record OffsetTime
2133+ {
2134+ [JsonProperty("OffsetTime", Required = Required.Always)]
2135+ public long OffsetTimeOffsetTime { get; set; }
2136+ }
2137+
21202138 public partial record Oneway
21212139 {
21222140 [JsonProperty("oneway", Required = Required.Always)]
@@ -2357,24 +2375,6 @@ namespace QuickType
23572375 public long SbyteSbyte { get; set; }
23582376 }
23592377
2360- public partial record Sealed
2361- {
2362- [JsonProperty("sealed", Required = Required.Always)]
2363- public long SealedSealed { get; set; }
2364- }
2365-
2366- public partial record Sel
2367- {
2368- [JsonProperty("SEL", Required = Required.Always)]
2369- public long SelSel { get; set; }
2370- }
2371-
2372- public partial record Select
2373- {
2374- [JsonProperty("select", Required = Required.Always)]
2375- public long SelectSelect { get; set; }
2376- }
2377-
23782378 public partial record Obj5
23792379 {
23802380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2401,6 +2401,15 @@ namespace QuickType
24012401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24022402 public PrimitiveKind PrimitiveKind { get; set; }
24032403
2404+ [JsonProperty("sealed", Required = Required.Always)]
2405+ public Sealed Sealed { get; set; }
2406+
2407+ [JsonProperty("SEL", Required = Required.Always)]
2408+ public Sel Sel { get; set; }
2409+
2410+ [JsonProperty("select", Required = Required.Always)]
2411+ public Select Select { get; set; }
2412+
24042413 [JsonProperty("Self", Required = Required.Always)]
24052414 public Self Self { get; set; }
24062415
@@ -2560,17 +2569,8 @@ namespace QuickType
25602569 [JsonProperty("unowned", Required = Required.Always)]
25612570 public Unowned Unowned { get; set; }
25622571
2563- [JsonProperty("unsafe", Required = Required.Always)]
2564- public Unsafe Unsafe { get; set; }
2565-
2566- [JsonProperty("unsigned", Required = Required.Always)]
2567- public Unsigned Unsigned { get; set; }
2568-
25692572 [JsonProperty("UseSerializers", Required = Required.Always)]
25702573 public UseSerializers UseSerializers { get; set; }
2571-
2572- [JsonProperty("ushort", Required = Required.Always)]
2573- public Ushort Ushort { get; set; }
25742574 }
25752575
25762576 public partial record KSerializer
@@ -2615,6 +2615,24 @@ namespace QuickType
26152615 public long PrimitiveKindPrimitiveKind { get; set; }
26162616 }
26172617
2618+ public partial record Sealed
2619+ {
2620+ [JsonProperty("sealed", Required = Required.Always)]
2621+ public long SealedSealed { get; set; }
2622+ }
2623+
2624+ public partial record Sel
2625+ {
2626+ [JsonProperty("SEL", Required = Required.Always)]
2627+ public long SelSel { get; set; }
2628+ }
2629+
2630+ public partial record Select
2631+ {
2632+ [JsonProperty("select", Required = Required.Always)]
2633+ public long SelectSelect { get; set; }
2634+ }
2635+
26182636 public partial record Self
26192637 {
26202638 [JsonProperty("Self", Required = Required.Always)]
@@ -2933,35 +2951,26 @@ namespace QuickType
29332951 public long UnownedUnowned { get; set; }
29342952 }
29352953
2936- public partial record Unsafe
2937- {
2938- [JsonProperty("unsafe", Required = Required.Always)]
2939- public long UnsafeUnsafe { get; set; }
2940- }
2941-
2942- public partial record Unsigned
2943- {
2944- [JsonProperty("unsigned", Required = Required.Always)]
2945- public long UnsignedUnsigned { get; set; }
2946- }
2947-
29482954 public partial record UseSerializers
29492955 {
29502956 [JsonProperty("UseSerializers", Required = Required.Always)]
29512957 public long UseSerializersUseSerializers { get; set; }
29522958 }
29532959
2954- public partial record Ushort
2955- {
2956- [JsonProperty("ushort", Required = Required.Always)]
2957- public long UshortUshort { get; set; }
2958- }
2959-
29602960 public partial record Obj6
29612961 {
29622962 [JsonProperty("dummy", Required = Required.Always)]
29632963 public long Dummy { get; set; }
29642964
2965+ [JsonProperty("unsafe", Required = Required.Always)]
2966+ public Unsafe Unsafe { get; set; }
2967+
2968+ [JsonProperty("unsigned", Required = Required.Always)]
2969+ public Unsigned Unsigned { get; set; }
2970+
2971+ [JsonProperty("ushort", Required = Required.Always)]
2972+ public Ushort Ushort { get; set; }
2973+
29652974 [JsonProperty("using", Required = Required.Always)]
29662975 public Using Using { get; set; }
29672976
@@ -3017,6 +3026,24 @@ namespace QuickType
30173026 public Yield Yield { get; set; }
30183027 }
30193028
3029+ public partial record Unsafe
3030+ {
3031+ [JsonProperty("unsafe", Required = Required.Always)]
3032+ public long UnsafeUnsafe { get; set; }
3033+ }
3034+
3035+ public partial record Unsigned
3036+ {
3037+ [JsonProperty("unsigned", Required = Required.Always)]
3038+ public long UnsignedUnsigned { get; set; }
3039+ }
3040+
3041+ public partial record Ushort
3042+ {
3043+ [JsonProperty("ushort", Required = Required.Always)]
3044+ public long UshortUshort { get; set; }
3045+ }
3046+
30203047 public partial record Using
30213048 {
30223049 [JsonProperty("using", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+110 −77
@@ -1671,6 +1671,10 @@ namespace QuickType
16711671 [JsonPropertyName("list")]
16721672 public List List { get; set; }
16731673
1674+ [JsonRequired]
1675+ [JsonPropertyName("LocalDate")]
1676+ public LocalDate LocalDate { get; set; }
1677+
16741678 [JsonRequired]
16751679 [JsonPropertyName("Locale")]
16761680 public Locale Locale { get; set; }
@@ -1730,10 +1734,6 @@ namespace QuickType
17301734 [JsonRequired]
17311735 [JsonPropertyName("NO")]
17321736 public No No { get; set; }
1733-
1734- [JsonRequired]
1735- [JsonPropertyName("noexcept")]
1736- public Noexcept Noexcept { get; set; }
17371737 }
17381738
17391739 public partial class Guard
@@ -2072,6 +2072,13 @@ namespace QuickType
20722072 public long ListList { get; set; }
20732073 }
20742074
2075+ public partial class LocalDate
2076+ {
2077+ [JsonRequired]
2078+ [JsonPropertyName("LocalDate")]
2079+ public long LocalDateLocalDate { get; set; }
2080+ }
2081+
20752082 public partial class Locale
20762083 {
20772084 [JsonRequired]
@@ -2177,13 +2184,6 @@ namespace QuickType
21772184 public long NoNo { get; set; }
21782185 }
21792186
2180- public partial class Noexcept
2181- {
2182- [JsonRequired]
2183- [JsonPropertyName("noexcept")]
2184- public long NoexceptNoexcept { get; set; }
2185- }
2186-
21872187 public partial class Obj4
21882188 {
21892189 [JsonRequired]
@@ -2194,6 +2194,10 @@ namespace QuickType
21942194 [JsonPropertyName("noSuchMethod")]
21952195 public NoSuchMethod NoSuchMethod { get; set; }
21962196
2197+ [JsonRequired]
2198+ [JsonPropertyName("noexcept")]
2199+ public Noexcept Noexcept { get; set; }
2200+
21972201 [JsonRequired]
21982202 [JsonPropertyName("nonatomic")]
21992203 public Nonatomic Nonatomic { get; set; }
@@ -2270,6 +2274,14 @@ namespace QuickType
22702274 [JsonPropertyName("of")]
22712275 public Of Of { get; set; }
22722276
2277+ [JsonRequired]
2278+ [JsonPropertyName("OffsetDateTime")]
2279+ public OffsetDateTime OffsetDateTime { get; set; }
2280+
2281+ [JsonRequired]
2282+ [JsonPropertyName("OffsetTime")]
2283+ public OffsetTime OffsetTime { get; set; }
2284+
22732285 [JsonRequired]
22742286 [JsonPropertyName("oneway")]
22752287 public Oneway Oneway { get; set; }
@@ -2433,18 +2445,6 @@ namespace QuickType
24332445 [JsonRequired]
24342446 [JsonPropertyName("sbyte")]
24352447 public Sbyte Sbyte { get; set; }
2436-
2437- [JsonRequired]
2438- [JsonPropertyName("sealed")]
2439- public Sealed Sealed { get; set; }
2440-
2441- [JsonRequired]
2442- [JsonPropertyName("SEL")]
2443- public Sel Sel { get; set; }
2444-
2445- [JsonRequired]
2446- [JsonPropertyName("select")]
2447- public Select Select { get; set; }
24482448 }
24492449
24502450 public partial class NoSuchMethod
@@ -2454,6 +2454,13 @@ namespace QuickType
24542454 public long NoSuchMethodNoSuchMethod { get; set; }
24552455 }
24562456
2457+ public partial class Noexcept
2458+ {
2459+ [JsonRequired]
2460+ [JsonPropertyName("noexcept")]
2461+ public long NoexceptNoexcept { get; set; }
2462+ }
2463+
24572464 public partial class Nonatomic
24582465 {
24592466 [JsonRequired]
@@ -2587,6 +2594,20 @@ namespace QuickType
25872594 public long OfOf { get; set; }
25882595 }
25892596
2597+ public partial class OffsetDateTime
2598+ {
2599+ [JsonRequired]
2600+ [JsonPropertyName("OffsetDateTime")]
2601+ public long OffsetDateTimeOffsetDateTime { get; set; }
2602+ }
2603+
2604+ public partial class OffsetTime
2605+ {
2606+ [JsonRequired]
2607+ [JsonPropertyName("OffsetTime")]
2608+ public long OffsetTimeOffsetTime { get; set; }
2609+ }
2610+
25902611 public partial class Oneway
25912612 {
25922613 [JsonRequired]
@@ -2874,27 +2895,6 @@ namespace QuickType
28742895 public long SbyteSbyte { get; set; }
28752896 }
28762897
2877- public partial class Sealed
2878- {
2879- [JsonRequired]
2880- [JsonPropertyName("sealed")]
2881- public long SealedSealed { get; set; }
2882- }
2883-
2884- public partial class Sel
2885- {
2886- [JsonRequired]
2887- [JsonPropertyName("SEL")]
2888- public long SelSel { get; set; }
2889- }
2890-
2891- public partial class Select
2892- {
2893- [JsonRequired]
2894- [JsonPropertyName("select")]
2895- public long SelectSelect { get; set; }
2896- }
2897-
28982898 public partial class Obj5
28992899 {
29002900 [JsonRequired]
@@ -2929,6 +2929,18 @@ namespace QuickType
29292929 [JsonPropertyName("PrimitiveKind")]
29302930 public PrimitiveKind PrimitiveKind { get; set; }
29312931
2932+ [JsonRequired]
2933+ [JsonPropertyName("sealed")]
2934+ public Sealed Sealed { get; set; }
2935+
2936+ [JsonRequired]
2937+ [JsonPropertyName("SEL")]
2938+ public Sel Sel { get; set; }
2939+
2940+ [JsonRequired]
2941+ [JsonPropertyName("select")]
2942+ public Select Select { get; set; }
2943+
29322944 [JsonRequired]
29332945 [JsonPropertyName("Self")]
29342946 public Self Self { get; set; }
@@ -3141,21 +3153,9 @@ namespace QuickType
31413153 [JsonPropertyName("unowned")]
31423154 public Unowned Unowned { get; set; }
31433155
3144- [JsonRequired]
3145- [JsonPropertyName("unsafe")]
3146- public Unsafe Unsafe { get; set; }
3147-
3148- [JsonRequired]
3149- [JsonPropertyName("unsigned")]
3150- public Unsigned Unsigned { get; set; }
3151-
31523156 [JsonRequired]
31533157 [JsonPropertyName("UseSerializers")]
31543158 public UseSerializers UseSerializers { get; set; }
3155-
3156- [JsonRequired]
3157- [JsonPropertyName("ushort")]
3158- public Ushort Ushort { get; set; }
31593159 }
31603160
31613161 public partial class KSerializer
@@ -3207,6 +3207,27 @@ namespace QuickType
32073207 public long PrimitiveKindPrimitiveKind { get; set; }
32083208 }
32093209
3210+ public partial class Sealed
3211+ {
3212+ [JsonRequired]
3213+ [JsonPropertyName("sealed")]
3214+ public long SealedSealed { get; set; }
3215+ }
3216+
3217+ public partial class Sel
3218+ {
3219+ [JsonRequired]
3220+ [JsonPropertyName("SEL")]
3221+ public long SelSel { get; set; }
3222+ }
3223+
3224+ public partial class Select
3225+ {
3226+ [JsonRequired]
3227+ [JsonPropertyName("select")]
3228+ public long SelectSelect { get; set; }
3229+ }
3230+
32103231 public partial class Self
32113232 {
32123233 [JsonRequired]
@@ -3578,20 +3599,6 @@ namespace QuickType
35783599 public long UnownedUnowned { get; set; }
35793600 }
35803601
3581- public partial class Unsafe
3582- {
3583- [JsonRequired]
3584- [JsonPropertyName("unsafe")]
3585- public long UnsafeUnsafe { get; set; }
3586- }
3587-
3588- public partial class Unsigned
3589- {
3590- [JsonRequired]
3591- [JsonPropertyName("unsigned")]
3592- public long UnsignedUnsigned { get; set; }
3593- }
3594-
35953602 public partial class UseSerializers
35963603 {
35973604 [JsonRequired]
@@ -3599,19 +3606,24 @@ namespace QuickType
35993606 public long UseSerializersUseSerializers { get; set; }
36003607 }
36013608
3602- public partial class Ushort
3603- {
3604- [JsonRequired]
3605- [JsonPropertyName("ushort")]
3606- public long UshortUshort { get; set; }
3607- }
3608-
36093609 public partial class Obj6
36103610 {
36113611 [JsonRequired]
36123612 [JsonPropertyName("dummy")]
36133613 public long Dummy { get; set; }
36143614
3615+ [JsonRequired]
3616+ [JsonPropertyName("unsafe")]
3617+ public Unsafe Unsafe { get; set; }
3618+
3619+ [JsonRequired]
3620+ [JsonPropertyName("unsigned")]
3621+ public Unsigned Unsigned { get; set; }
3622+
3623+ [JsonRequired]
3624+ [JsonPropertyName("ushort")]
3625+ public Ushort Ushort { get; set; }
3626+
36153627 [JsonRequired]
36163628 [JsonPropertyName("using")]
36173629 public Using Using { get; set; }
@@ -3685,6 +3697,27 @@ namespace QuickType
36853697 public Yield Yield { get; set; }
36863698 }
36873699
3700+ public partial class Unsafe
3701+ {
3702+ [JsonRequired]
3703+ [JsonPropertyName("unsafe")]
3704+ public long UnsafeUnsafe { get; set; }
3705+ }
3706+
3707+ public partial class Unsigned
3708+ {
3709+ [JsonRequired]
3710+ [JsonPropertyName("unsigned")]
3711+ public long UnsignedUnsigned { get; set; }
3712+ }
3713+
3714+ public partial class Ushort
3715+ {
3716+ [JsonRequired]
3717+ [JsonPropertyName("ushort")]
3718+ public long UshortUshort { get; set; }
3719+ }
3720+
36883721 public partial class Using
36893722 {
36903723 [JsonRequired]
Mcsharpdefault / QuickType.cs+90 −63
@@ -1360,6 +1360,9 @@ namespace QuickType
13601360 [JsonProperty("list", Required = Required.Always)]
13611361 public List List { get; set; }
13621362
1363+ [JsonProperty("LocalDate", Required = Required.Always)]
1364+ public LocalDate LocalDate { get; set; }
1365+
13631366 [JsonProperty("Locale", Required = Required.Always)]
13641367 public Locale Locale { get; set; }
13651368
@@ -1404,9 +1407,6 @@ namespace QuickType
14041407
14051408 [JsonProperty("NO", Required = Required.Always)]
14061409 public No No { get; set; }
1407-
1408- [JsonProperty("noexcept", Required = Required.Always)]
1409- public Noexcept Noexcept { get; set; }
14101410 }
14111411
14121412 public partial class Guard
@@ -1697,6 +1697,12 @@ namespace QuickType
16971697 public long ListList { get; set; }
16981698 }
16991699
1700+ public partial class LocalDate
1701+ {
1702+ [JsonProperty("LocalDate", Required = Required.Always)]
1703+ public long LocalDateLocalDate { get; set; }
1704+ }
1705+
17001706 public partial class Locale
17011707 {
17021708 [JsonProperty("Locale", Required = Required.Always)]
@@ -1787,12 +1793,6 @@ namespace QuickType
17871793 public long NoNo { get; set; }
17881794 }
17891795
1790- public partial class Noexcept
1791- {
1792- [JsonProperty("noexcept", Required = Required.Always)]
1793- public long NoexceptNoexcept { get; set; }
1794- }
1795-
17961796 public partial class Obj4
17971797 {
17981798 [JsonProperty("dummy", Required = Required.Always)]
@@ -1801,6 +1801,9 @@ namespace QuickType
18011801 [JsonProperty("noSuchMethod", Required = Required.Always)]
18021802 public NoSuchMethod NoSuchMethod { get; set; }
18031803
1804+ [JsonProperty("noexcept", Required = Required.Always)]
1805+ public Noexcept Noexcept { get; set; }
1806+
18041807 [JsonProperty("nonatomic", Required = Required.Always)]
18051808 public Nonatomic Nonatomic { get; set; }
18061809
@@ -1858,6 +1861,12 @@ namespace QuickType
18581861 [JsonProperty("of", Required = Required.Always)]
18591862 public Of Of { get; set; }
18601863
1864+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
1865+ public OffsetDateTime OffsetDateTime { get; set; }
1866+
1867+ [JsonProperty("OffsetTime", Required = Required.Always)]
1868+ public OffsetTime OffsetTime { get; set; }
1869+
18611870 [JsonProperty("oneway", Required = Required.Always)]
18621871 public Oneway Oneway { get; set; }
18631872
@@ -1980,15 +1989,6 @@ namespace QuickType
19801989
19811990 [JsonProperty("sbyte", Required = Required.Always)]
19821991 public Sbyte Sbyte { get; set; }
1983-
1984- [JsonProperty("sealed", Required = Required.Always)]
1985- public Sealed Sealed { get; set; }
1986-
1987- [JsonProperty("SEL", Required = Required.Always)]
1988- public Sel Sel { get; set; }
1989-
1990- [JsonProperty("select", Required = Required.Always)]
1991- public Select Select { get; set; }
19921992 }
19931993
19941994 public partial class NoSuchMethod
@@ -1997,6 +1997,12 @@ namespace QuickType
19971997 public long NoSuchMethodNoSuchMethod { get; set; }
19981998 }
19991999
2000+ public partial class Noexcept
2001+ {
2002+ [JsonProperty("noexcept", Required = Required.Always)]
2003+ public long NoexceptNoexcept { get; set; }
2004+ }
2005+
20002006 public partial class Nonatomic
20012007 {
20022008 [JsonProperty("nonatomic", Required = Required.Always)]
@@ -2111,6 +2117,18 @@ namespace QuickType
21112117 public long OfOf { get; set; }
21122118 }
21132119
2120+ public partial class OffsetDateTime
2121+ {
2122+ [JsonProperty("OffsetDateTime", Required = Required.Always)]
2123+ public long OffsetDateTimeOffsetDateTime { get; set; }
2124+ }
2125+
2126+ public partial class OffsetTime
2127+ {
2128+ [JsonProperty("OffsetTime", Required = Required.Always)]
2129+ public long OffsetTimeOffsetTime { get; set; }
2130+ }
2131+
21142132 public partial class Oneway
21152133 {
21162134 [JsonProperty("oneway", Required = Required.Always)]
@@ -2357,24 +2375,6 @@ namespace QuickType
23572375 public long SbyteSbyte { get; set; }
23582376 }
23592377
2360- public partial class Sealed
2361- {
2362- [JsonProperty("sealed", Required = Required.Always)]
2363- public long SealedSealed { get; set; }
2364- }
2365-
2366- public partial class Sel
2367- {
2368- [JsonProperty("SEL", Required = Required.Always)]
2369- public long SelSel { get; set; }
2370- }
2371-
2372- public partial class Select
2373- {
2374- [JsonProperty("select", Required = Required.Always)]
2375- public long SelectSelect { get; set; }
2376- }
2377-
23782378 public partial class Obj5
23792379 {
23802380 [JsonProperty("dummy", Required = Required.Always)]
@@ -2401,6 +2401,15 @@ namespace QuickType
24012401 [JsonProperty("PrimitiveKind", Required = Required.Always)]
24022402 public PrimitiveKind PrimitiveKind { get; set; }
24032403
2404+ [JsonProperty("sealed", Required = Required.Always)]
2405+ public Sealed Sealed { get; set; }
2406+
2407+ [JsonProperty("SEL", Required = Required.Always)]
2408+ public Sel Sel { get; set; }
2409+
2410+ [JsonProperty("select", Required = Required.Always)]
2411+ public Select Select { get; set; }
2412+
24042413 [JsonProperty("Self", Required = Required.Always)]
24052414 public Self Self { get; set; }
24062415
@@ -2560,17 +2569,8 @@ namespace QuickType
25602569 [JsonProperty("unowned", Required = Required.Always)]
25612570 public Unowned Unowned { get; set; }
25622571
2563- [JsonProperty("unsafe", Required = Required.Always)]
2564- public Unsafe Unsafe { get; set; }
2565-
2566- [JsonProperty("unsigned", Required = Required.Always)]
2567- public Unsigned Unsigned { get; set; }
2568-
25692572 [JsonProperty("UseSerializers", Required = Required.Always)]
25702573 public UseSerializers UseSerializers { get; set; }
2571-
2572- [JsonProperty("ushort", Required = Required.Always)]
2573- public Ushort Ushort { get; set; }
25742574 }
25752575
25762576 public partial class KSerializer
@@ -2615,6 +2615,24 @@ namespace QuickType
26152615 public long PrimitiveKindPrimitiveKind { get; set; }
26162616 }
26172617
2618+ public partial class Sealed
2619+ {
2620+ [JsonProperty("sealed", Required = Required.Always)]
2621+ public long SealedSealed { get; set; }
2622+ }
2623+
2624+ public partial class Sel
2625+ {
2626+ [JsonProperty("SEL", Required = Required.Always)]
2627+ public long SelSel { get; set; }
2628+ }
2629+
2630+ public partial class Select
2631+ {
2632+ [JsonProperty("select", Required = Required.Always)]
2633+ public long SelectSelect { get; set; }
2634+ }
2635+
26182636 public partial class Self
26192637 {
26202638 [JsonProperty("Self", Required = Required.Always)]
@@ -2933,35 +2951,26 @@ namespace QuickType
29332951 public long UnownedUnowned { get; set; }
29342952 }
29352953
2936- public partial class Unsafe
2937- {
2938- [JsonProperty("unsafe", Required = Required.Always)]
2939- public long UnsafeUnsafe { get; set; }
2940- }
2941-
2942- public partial class Unsigned
2943- {
2944- [JsonProperty("unsigned", Required = Required.Always)]
2945- public long UnsignedUnsigned { get; set; }
2946- }
2947-
29482954 public partial class UseSerializers
29492955 {
29502956 [JsonProperty("UseSerializers", Required = Required.Always)]
29512957 public long UseSerializersUseSerializers { get; set; }
29522958 }
29532959
2954- public partial class Ushort
2955- {
2956- [JsonProperty("ushort", Required = Required.Always)]
2957- public long UshortUshort { get; set; }
2958- }
2959-
29602960 public partial class Obj6
29612961 {
29622962 [JsonProperty("dummy", Required = Required.Always)]
29632963 public long Dummy { get; set; }
29642964
2965+ [JsonProperty("unsafe", Required = Required.Always)]
2966+ public Unsafe Unsafe { get; set; }
2967+
2968+ [JsonProperty("unsigned", Required = Required.Always)]
2969+ public Unsigned Unsigned { get; set; }
2970+
2971+ [JsonProperty("ushort", Required = Required.Always)]
2972+ public Ushort Ushort { get; set; }
2973+
29652974 [JsonProperty("using", Required = Required.Always)]
29662975 public Using Using { get; set; }
29672976
@@ -3017,6 +3026,24 @@ namespace QuickType
30173026 public Yield Yield { get; set; }
30183027 }
30193028
3029+ public partial class Unsafe
3030+ {
3031+ [JsonProperty("unsafe", Required = Required.Always)]
3032+ public long UnsafeUnsafe { get; set; }
3033+ }
3034+
3035+ public partial class Unsigned
3036+ {
3037+ [JsonProperty("unsigned", Required = Required.Always)]
3038+ public long UnsignedUnsigned { get; set; }
3039+ }
3040+
3041+ public partial class Ushort
3042+ {
3043+ [JsonProperty("ushort", Required = Required.Always)]
3044+ public long UshortUshort { get; set; }
3045+ }
3046+
30203047 public partial class Using
30213048 {
30223049 [JsonProperty("using", Required = Required.Always)]
Mdartdefault / TopLevel.dart+200 −140
@@ -2692,6 +2692,7 @@ class Obj3 {
26922692 final Left left;
26932693 final Let let;
26942694 final ListClass list;
2695+ final LocalDate localDate;
26952696 final Locale locale;
26962697 final Lock lock;
26972698 final Long long;
@@ -2706,7 +2707,6 @@ class Obj3 {
27062707 final Newtonsoft newtonsoft;
27072708 final Nil nil;
27082709 final No no;
2709- final Noexcept noexcept;
27102710 final HashCode obj3HashCode;
27112711 final If obj3If;
27122712 final Implements obj3Implements;
@@ -2759,6 +2759,7 @@ class Obj3 {
27592759 required this.left,
27602760 required this.let,
27612761 required this.list,
2762+ required this.localDate,
27622763 required this.locale,
27632764 required this.lock,
27642765 required this.long,
@@ -2773,7 +2774,6 @@ class Obj3 {
27732774 required this.newtonsoft,
27742775 required this.nil,
27752776 required this.no,
2776- required this.noexcept,
27772777 required this.obj3HashCode,
27782778 required this.obj3If,
27792779 required this.obj3Implements,
@@ -2827,6 +2827,7 @@ class Obj3 {
28272827 left: Left.fromJson(json["left"]),
28282828 let: Let.fromJson(json["let"]),
28292829 list: ListClass.fromJson(json["list"]),
2830+ localDate: LocalDate.fromJson(json["LocalDate"]),
28302831 locale: Locale.fromJson(json["Locale"]),
28312832 lock: Lock.fromJson(json["lock"]),
28322833 long: Long.fromJson(json["long"]),
@@ -2841,7 +2842,6 @@ class Obj3 {
28412842 newtonsoft: Newtonsoft.fromJson(json["newtonsoft"]),
28422843 nil: Nil.fromJson(json["nil"]),
28432844 no: No.fromJson(json["NO"]),
2844- noexcept: Noexcept.fromJson(json["noexcept"]),
28452845 obj3HashCode: HashCode.fromJson(json["hashCode"]),
28462846 obj3If: If.fromJson(json["if"]),
28472847 obj3Implements: Implements.fromJson(json["implements"]),
@@ -2895,6 +2895,7 @@ class Obj3 {
28952895 "left": left.toJson(),
28962896 "let": let.toJson(),
28972897 "list": list.toJson(),
2898+ "LocalDate": localDate.toJson(),
28982899 "Locale": locale.toJson(),
28992900 "lock": lock.toJson(),
29002901 "long": long.toJson(),
@@ -2909,7 +2910,6 @@ class Obj3 {
29092910 "newtonsoft": newtonsoft.toJson(),
29102911 "nil": nil.toJson(),
29112912 "NO": no.toJson(),
2912- "noexcept": noexcept.toJson(),
29132913 "hashCode": obj3HashCode.toJson(),
29142914 "if": obj3If.toJson(),
29152915 "implements": obj3Implements.toJson(),
@@ -3562,6 +3562,22 @@ class ListClass {
35623562 };
35633563 }
35643564
3565+class LocalDate {
3566+ final int localDate;
3567+
3568+ LocalDate({
3569+ required this.localDate,
3570+ });
3571+
3572+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
3573+ localDate: json["LocalDate"],
3574+ );
3575+
3576+ Map<String, dynamic> toJson() => {
3577+ "LocalDate": localDate,
3578+ };
3579+}
3580+
35653581 class Locale {
35663582 final int locale;
35673583
@@ -3786,22 +3802,6 @@ class No {
37863802 };
37873803 }
37883804
3789-class Noexcept {
3790- final int noexcept;
3791-
3792- Noexcept({
3793- required this.noexcept,
3794- });
3795-
3796- factory Noexcept.fromJson(Map<String, dynamic> json) => Noexcept(
3797- noexcept: json["noexcept"],
3798- );
3799-
3800- Map<String, dynamic> toJson() => {
3801- "noexcept": noexcept,
3802- };
3803-}
3804-
38053805 class HashCode {
38063806 final int hashCodeHashCode;
38073807
@@ -3948,6 +3948,7 @@ class New {
39483948
39493949 class Obj4 {
39503950 final int dummy;
3951+ final Noexcept noexcept;
39513952 final Nonatomic nonatomic;
39523953 final None none;
39533954 final Nonlocal nonlocal;
@@ -3969,6 +3970,8 @@ class Obj4 {
39693970 final Object object;
39703971 final ObjectMapper objectMapper;
39713972 final Of of;
3973+ final OffsetDateTime offsetDateTime;
3974+ final OffsetTime offsetTime;
39723975 final Oneway oneway;
39733976 final Open open;
39743977 final Optional optional;
@@ -4009,12 +4012,10 @@ class Obj4 {
40094012 final Right right;
40104013 final S s;
40114014 final Sbyte sbyte;
4012- final Sealed sealed;
4013- final Sel sel;
4014- final Select select;
40154015
40164016 Obj4({
40174017 required this.dummy,
4018+ required this.noexcept,
40184019 required this.nonatomic,
40194020 required this.none,
40204021 required this.nonlocal,
@@ -4036,6 +4037,8 @@ class Obj4 {
40364037 required this.object,
40374038 required this.objectMapper,
40384039 required this.of,
4040+ required this.offsetDateTime,
4041+ required this.offsetTime,
40394042 required this.oneway,
40404043 required this.open,
40414044 required this.optional,
@@ -4076,13 +4079,11 @@ class Obj4 {
40764079 required this.right,
40774080 required this.s,
40784081 required this.sbyte,
4079- required this.sealed,
4080- required this.sel,
4081- required this.select,
40824082 });
40834083
40844084 factory Obj4.fromJson(Map<String, dynamic> json) => Obj4(
40854085 dummy: json["dummy"],
4086+ noexcept: Noexcept.fromJson(json["noexcept"]),
40864087 nonatomic: Nonatomic.fromJson(json["nonatomic"]),
40874088 none: None.fromJson(json["None"]),
40884089 nonlocal: Nonlocal.fromJson(json["nonlocal"]),
@@ -4104,6 +4105,8 @@ class Obj4 {
41044105 object: Object.fromJson(json["object"]),
41054106 objectMapper: ObjectMapper.fromJson(json["ObjectMapper"]),
41064107 of: Of.fromJson(json["of"]),
4108+ offsetDateTime: OffsetDateTime.fromJson(json["OffsetDateTime"]),
4109+ offsetTime: OffsetTime.fromJson(json["OffsetTime"]),
41074110 oneway: Oneway.fromJson(json["oneway"]),
41084111 open: Open.fromJson(json["open"]),
41094112 optional: Optional.fromJson(json["optional"]),
@@ -4144,13 +4147,11 @@ class Obj4 {
41444147 right: Right.fromJson(json["right"]),
41454148 s: S.fromJson(json["s"]),
41464149 sbyte: Sbyte.fromJson(json["sbyte"]),
4147- sealed: Sealed.fromJson(json["sealed"]),
4148- sel: Sel.fromJson(json["SEL"]),
4149- select: Select.fromJson(json["select"]),
41504150 );
41514151
41524152 Map<String, dynamic> toJson() => {
41534153 "dummy": dummy,
4154+ "noexcept": noexcept.toJson(),
41544155 "nonatomic": nonatomic.toJson(),
41554156 "None": none.toJson(),
41564157 "nonlocal": nonlocal.toJson(),
@@ -4172,6 +4173,8 @@ class Obj4 {
41724173 "object": object.toJson(),
41734174 "ObjectMapper": objectMapper.toJson(),
41744175 "of": of.toJson(),
4176+ "OffsetDateTime": offsetDateTime.toJson(),
4177+ "OffsetTime": offsetTime.toJson(),
41754178 "oneway": oneway.toJson(),
41764179 "open": open.toJson(),
41774180 "optional": optional.toJson(),
@@ -4212,9 +4215,22 @@ class Obj4 {
42124215 "right": right.toJson(),
42134216 "s": s.toJson(),
42144217 "sbyte": sbyte.toJson(),
4215- "sealed": sealed.toJson(),
4216- "SEL": sel.toJson(),
4217- "select": select.toJson(),
4218+ };
4219+}
4220+
4221+class Noexcept {
4222+ final int noexcept;
4223+
4224+ Noexcept({
4225+ required this.noexcept,
4226+ });
4227+
4228+ factory Noexcept.fromJson(Map<String, dynamic> json) => Noexcept(
4229+ noexcept: json["noexcept"],
4230+ );
4231+
4232+ Map<String, dynamic> toJson() => {
4233+ "noexcept": noexcept,
42184234 };
42194235 }
42204236
@@ -4554,6 +4570,38 @@ class Of {
45544570 };
45554571 }
45564572
4573+class OffsetDateTime {
4574+ final int offsetDateTime;
4575+
4576+ OffsetDateTime({
4577+ required this.offsetDateTime,
4578+ });
4579+
4580+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
4581+ offsetDateTime: json["OffsetDateTime"],
4582+ );
4583+
4584+ Map<String, dynamic> toJson() => {
4585+ "OffsetDateTime": offsetDateTime,
4586+ };
4587+}
4588+
4589+class OffsetTime {
4590+ final int offsetTime;
4591+
4592+ OffsetTime({
4593+ required this.offsetTime,
4594+ });
4595+
4596+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
4597+ offsetTime: json["OffsetTime"],
4598+ );
4599+
4600+ Map<String, dynamic> toJson() => {
4601+ "OffsetTime": offsetTime,
4602+ };
4603+}
4604+
45574605 class Oneway {
45584606 final int oneway;
45594607
@@ -5194,54 +5242,6 @@ class Sbyte {
51945242 };
51955243 }
51965244
5197-class Sealed {
5198- final int sealed;
5199-
5200- Sealed({
5201- required this.sealed,
5202- });
5203-
5204- factory Sealed.fromJson(Map<String, dynamic> json) => Sealed(
5205- sealed: json["sealed"],
5206- );
5207-
5208- Map<String, dynamic> toJson() => {
5209- "sealed": sealed,
5210- };
5211-}
5212-
5213-class Sel {
5214- final int sel;
5215-
5216- Sel({
5217- required this.sel,
5218- });
5219-
5220- factory Sel.fromJson(Map<String, dynamic> json) => Sel(
5221- sel: json["SEL"],
5222- );
5223-
5224- Map<String, dynamic> toJson() => {
5225- "SEL": sel,
5226- };
5227-}
5228-
5229-class Select {
5230- final int select;
5231-
5232- Select({
5233- required this.select,
5234- });
5235-
5236- factory Select.fromJson(Map<String, dynamic> json) => Select(
5237- select: json["select"],
5238- );
5239-
5240- Map<String, dynamic> toJson() => {
5241- "select": select,
5242- };
5243-}
5244-
52455245 class Obj5 {
52465246 final int dummy;
52475247 final KSerializer kSerializer;
@@ -5260,6 +5260,9 @@ class Obj5 {
52605260 final Typedef obj5Typedef;
52615261 final PrimitiveKind primitiveKind;
52625262 final TrueClass purpleTrue;
5263+ final Sealed sealed;
5264+ final Sel sel;
5265+ final Select select;
52635266 final Self self;
52645267 final Sendable sendable;
52655268 final SerialDescriptor serialDescriptor;
@@ -5304,10 +5307,7 @@ class Obj5 {
53045307 final Undefined undefined;
53055308 final Union union;
53065309 final Unowned unowned;
5307- final Unsafe unsafe;
5308- final Unsigned unsigned;
53095310 final UseSerializers useSerializers;
5310- final Ushort ushort;
53115311
53125312 Obj5({
53135313 required this.dummy,
@@ -5327,6 +5327,9 @@ class Obj5 {
53275327 required this.obj5Typedef,
53285328 required this.primitiveKind,
53295329 required this.purpleTrue,
5330+ required this.sealed,
5331+ required this.sel,
5332+ required this.select,
53305333 required this.self,
53315334 required this.sendable,
53325335 required this.serialDescriptor,
@@ -5371,10 +5374,7 @@ class Obj5 {
53715374 required this.undefined,
53725375 required this.union,
53735376 required this.unowned,
5374- required this.unsafe,
5375- required this.unsigned,
53765377 required this.useSerializers,
5377- required this.ushort,
53785378 });
53795379
53805380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
@@ -5395,6 +5395,9 @@ class Obj5 {
53955395 obj5Typedef: Typedef.fromJson(json["typedef"]),
53965396 primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]),
53975397 purpleTrue: TrueClass.fromJson(json["true"]),
5398+ sealed: Sealed.fromJson(json["sealed"]),
5399+ sel: Sel.fromJson(json["SEL"]),
5400+ select: Select.fromJson(json["select"]),
53985401 self: Self.fromJson(json["Self"]),
53995402 sendable: Sendable.fromJson(json["Sendable"]),
54005403 serialDescriptor: SerialDescriptor.fromJson(json["SerialDescriptor"]),
@@ -5439,10 +5442,7 @@ class Obj5 {
54395442 undefined: Undefined.fromJson(json["undefined"]),
54405443 union: Union.fromJson(json["union"]),
54415444 unowned: Unowned.fromJson(json["unowned"]),
5442- unsafe: Unsafe.fromJson(json["unsafe"]),
5443- unsigned: Unsigned.fromJson(json["unsigned"]),
54445445 useSerializers: UseSerializers.fromJson(json["UseSerializers"]),
5445- ushort: Ushort.fromJson(json["ushort"]),
54465446 );
54475447
54485448 Map<String, dynamic> toJson() => {
@@ -5463,6 +5463,9 @@ class Obj5 {
54635463 "typedef": obj5Typedef.toJson(),
54645464 "PrimitiveKind": primitiveKind.toJson(),
54655465 "true": purpleTrue.toJson(),
5466+ "sealed": sealed.toJson(),
5467+ "SEL": sel.toJson(),
5468+ "select": select.toJson(),
54665469 "Self": self.toJson(),
54675470 "Sendable": sendable.toJson(),
54685471 "SerialDescriptor": serialDescriptor.toJson(),
@@ -5507,10 +5510,7 @@ class Obj5 {
55075510 "undefined": undefined.toJson(),
55085511 "union": union.toJson(),
55095512 "unowned": unowned.toJson(),
5510- "unsafe": unsafe.toJson(),
5511- "unsigned": unsigned.toJson(),
55125513 "UseSerializers": useSerializers.toJson(),
5513- "ushort": ushort.toJson(),
55145514 };
55155515 }
55165516
@@ -5770,6 +5770,54 @@ class TrueClass {
57705770 };
57715771 }
57725772
5773+class Sealed {
5774+ final int sealed;
5775+
5776+ Sealed({
5777+ required this.sealed,
5778+ });
5779+
5780+ factory Sealed.fromJson(Map<String, dynamic> json) => Sealed(
5781+ sealed: json["sealed"],
5782+ );
5783+
5784+ Map<String, dynamic> toJson() => {
5785+ "sealed": sealed,
5786+ };
5787+}
5788+
5789+class Sel {
5790+ final int sel;
5791+
5792+ Sel({
5793+ required this.sel,
5794+ });
5795+
5796+ factory Sel.fromJson(Map<String, dynamic> json) => Sel(
5797+ sel: json["SEL"],
5798+ );
5799+
5800+ Map<String, dynamic> toJson() => {
5801+ "SEL": sel,
5802+ };
5803+}
5804+
5805+class Select {
5806+ final int select;
5807+
5808+ Select({
5809+ required this.select,
5810+ });
5811+
5812+ factory Select.fromJson(Map<String, dynamic> json) => Select(
5813+ select: json["select"],
5814+ );
5815+
5816+ Map<String, dynamic> toJson() => {
5817+ "select": select,
5818+ };
5819+}
5820+
57735821 class Self {
57745822 final int self;
57755823
@@ -6474,38 +6522,6 @@ class Unowned {
64746522 };
64756523 }
64766524
6477-class Unsafe {
6478- final int unsafe;
6479-
6480- Unsafe({
6481- required this.unsafe,
6482- });
6483-
6484- factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe(
6485- unsafe: json["unsafe"],
6486- );
6487-
6488- Map<String, dynamic> toJson() => {
6489- "unsafe": unsafe,
6490- };
6491-}
6492-
6493-class Unsigned {
6494- final int unsigned;
6495-
6496- Unsigned({
6497- required this.unsigned,
6498- });
6499-
6500- factory Unsigned.fromJson(Map<String, dynamic> json) => Unsigned(
6501- unsigned: json["unsigned"],
6502- );
6503-
6504- Map<String, dynamic> toJson() => {
6505- "unsigned": unsigned,
6506- };
6507-}
6508-
65096525 class UseSerializers {
65106526 final int useSerializers;
65116527
@@ -6522,22 +6538,6 @@ class UseSerializers {
65226538 };
65236539 }
65246540
6525-class Ushort {
6526- final int ushort;
6527-
6528- Ushort({
6529- required this.ushort,
6530- });
6531-
6532- factory Ushort.fromJson(Map<String, dynamic> json) => Ushort(
6533- ushort: json["ushort"],
6534- );
6535-
6536- Map<String, dynamic> toJson() => {
6537- "ushort": ushort,
6538- };
6539-}
6540-
65416541 class Obj6 {
65426542 final int dummy;
65436543 final Var obj6Var;
@@ -6545,6 +6545,9 @@ class Obj6 {
65456545 final While obj6While;
65466546 final With obj6With;
65476547 final Yield obj6Yield;
6548+ final Unsafe unsafe;
6549+ final Unsigned unsigned;
6550+ final Ushort ushort;
65486551 final Using using;
65496552 final Utf8JsonReader utf8JsonReader;
65506553 final Utf8JsonWriter utf8JsonWriter;
@@ -6566,6 +6569,9 @@ class Obj6 {
65666569 required this.obj6While,
65676570 required this.obj6With,
65686571 required this.obj6Yield,
6572+ required this.unsafe,
6573+ required this.unsigned,
6574+ required this.ushort,
65696575 required this.using,
65706576 required this.utf8JsonReader,
65716577 required this.utf8JsonWriter,
@@ -6588,6 +6594,9 @@ class Obj6 {
65886594 obj6While: While.fromJson(json["while"]),
65896595 obj6With: With.fromJson(json["with"]),
65906596 obj6Yield: Yield.fromJson(json["yield"]),
6597+ unsafe: Unsafe.fromJson(json["unsafe"]),
6598+ unsigned: Unsigned.fromJson(json["unsigned"]),
6599+ ushort: Ushort.fromJson(json["ushort"]),
65916600 using: Using.fromJson(json["using"]),
65926601 utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
65936602 utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]),
@@ -6610,6 +6619,9 @@ class Obj6 {
66106619 "while": obj6While.toJson(),
66116620 "with": obj6With.toJson(),
66126621 "yield": obj6Yield.toJson(),
6622+ "unsafe": unsafe.toJson(),
6623+ "unsigned": unsigned.toJson(),
6624+ "ushort": ushort.toJson(),
66136625 "using": using.toJson(),
66146626 "Utf8JsonReader": utf8JsonReader.toJson(),
66156627 "Utf8JsonWriter": utf8JsonWriter.toJson(),
@@ -6706,6 +6718,54 @@ class Yield {
67066718 };
67076719 }
67086720
6721+class Unsafe {
6722+ final int unsafe;
6723+
6724+ Unsafe({
6725+ required this.unsafe,
6726+ });
6727+
6728+ factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe(
6729+ unsafe: json["unsafe"],
6730+ );
6731+
6732+ Map<String, dynamic> toJson() => {
6733+ "unsafe": unsafe,
6734+ };
6735+}
6736+
6737+class Unsigned {
6738+ final int unsigned;
6739+
6740+ Unsigned({
6741+ required this.unsigned,
6742+ });
6743+
6744+ factory Unsigned.fromJson(Map<String, dynamic> json) => Unsigned(
6745+ unsigned: json["unsigned"],
6746+ );
6747+
6748+ Map<String, dynamic> toJson() => {
6749+ "unsigned": unsigned,
6750+ };
6751+}
6752+
6753+class Ushort {
6754+ final int ushort;
6755+
6756+ Ushort({
6757+ required this.ushort,
6758+ });
6759+
6760+ factory Ushort.fromJson(Map<String, dynamic> json) => Ushort(
6761+ ushort: json["ushort"],
6762+ );
6763+
6764+ Map<String, dynamic> toJson() => {
6765+ "ushort": ushort,
6766+ };
6767+}
6768+
67096769 class Using {
67106770 final int using;
Melixirdefault / QuickType.ex+555 −429
@@ -7299,6 +7299,45 @@ defmodule ListClass do
72997299 end
73007300 end
73017301
7302+defmodule LocalDate do
7303+ @enforce_keys [:local_date]
7304+ defstruct [:local_date]
7305+
7306+ @type t :: %__MODULE__{
7307+ local_date: integer()
7308+ }
7309+
7310+ def decode_local_date(value) when is_integer(value), do: value
7311+ def decode_local_date(_), do: {:error, "Unexpected type when decoding LocalDate.local_date"}
7312+
7313+ def encode_local_date(value) when is_integer(value), do: value
7314+ def encode_local_date(_), do: {:error, "Unexpected type when encoding LocalDate.local_date"}
7315+
7316+ def from_map(m) do
7317+ %LocalDate{
7318+ local_date: decode_local_date(m["LocalDate"]),
7319+ }
7320+ end
7321+
7322+ def from_json(json) do
7323+ json
7324+ |> Jason.decode!()
7325+ |> from_map()
7326+ end
7327+
7328+ def to_map(struct) do
7329+ %{
7330+ "LocalDate" => struct.local_date,
7331+ }
7332+ end
7333+
7334+ def to_json(struct) do
7335+ struct
7336+ |> to_map()
7337+ |> Jason.encode!()
7338+ end
7339+end
7340+
73027341 defmodule Locale do
73037342 @enforce_keys [:locale]
73047343 defstruct [:locale]
@@ -7845,45 +7884,6 @@ defmodule No do
78457884 end
78467885 end
78477886
7848-defmodule Noexcept do
7849- @enforce_keys [:noexcept]
7850- defstruct [:noexcept]
7851-
7852- @type t :: %__MODULE__{
7853- noexcept: integer()
7854- }
7855-
7856- def decode_noexcept(value) when is_integer(value), do: value
7857- def decode_noexcept(_), do: {:error, "Unexpected type when decoding Noexcept.noexcept"}
7858-
7859- def encode_noexcept(value) when is_integer(value), do: value
7860- def encode_noexcept(_), do: {:error, "Unexpected type when encoding Noexcept.noexcept"}
7861-
7862- def from_map(m) do
7863- %Noexcept{
7864- noexcept: decode_noexcept(m["noexcept"]),
7865- }
7866- end
7867-
7868- def from_json(json) do
7869- json
7870- |> Jason.decode!()
7871- |> from_map()
7872- end
7873-
7874- def to_map(struct) do
7875- %{
7876- "noexcept" => struct.noexcept,
7877- }
7878- end
7879-
7880- def to_json(struct) do
7881- struct
7882- |> to_map()
7883- |> Jason.encode!()
7884- end
7885-end
7886-
78877887 defmodule ImportClass do
78887888 @enforce_keys [:import_import]
78897889 defstruct [:import_import]
@@ -8002,8 +8002,8 @@ defmodule NilClass do
80028002 end
80038003
80048004 defmodule Obj3 do
8005- @enforce_keys [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :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, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :obj3_import, :obj3_in, :obj3_nil]
8006- defstruct [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :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, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :obj3_import, :obj3_in, :obj3_nil]
8005+ @enforce_keys [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :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, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil]
8006+ defstruct [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :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, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil]
80078007
80088008 @type t :: %__MODULE__{
80098009 dummy: integer(),
@@ -8053,6 +8053,7 @@ defmodule Obj3 do
80538053 left: Left.t(),
80548054 let: Let.t(),
80558055 list: ListClass.t(),
8056+ local_date: LocalDate.t(),
80568057 locale: Locale.t(),
80578058 lock: Lock.t(),
80588059 long: Long.t(),
@@ -8067,7 +8068,6 @@ defmodule Obj3 do
80678068 new: New.t(),
80688069 newtonsoft: Newtonsoft.t(),
80698070 no: No.t(),
8070- noexcept: Noexcept.t(),
80718071 obj3_import: ImportClass.t(),
80728072 obj3_in: InClass.t(),
80738073 obj3_nil: NilClass.t()
@@ -8128,6 +8128,7 @@ defmodule Obj3 do
81288128 left: Left.from_map(m["left"]),
81298129 let: Let.from_map(m["let"]),
81308130 list: ListClass.from_map(m["list"]),
8131+ local_date: LocalDate.from_map(m["LocalDate"]),
81318132 locale: Locale.from_map(m["Locale"]),
81328133 lock: Lock.from_map(m["lock"]),
81338134 long: Long.from_map(m["long"]),
@@ -8142,7 +8143,6 @@ defmodule Obj3 do
81428143 new: New.from_map(m["new"]),
81438144 newtonsoft: Newtonsoft.from_map(m["newtonsoft"]),
81448145 no: No.from_map(m["NO"]),
8145- noexcept: Noexcept.from_map(m["noexcept"]),
81468146 obj3_import: ImportClass.from_map(m["import"]),
81478147 obj3_in: InClass.from_map(m["in"]),
81488148 obj3_nil: NilClass.from_map(m["nil"]),
@@ -8204,6 +8204,7 @@ defmodule Obj3 do
82048204 "left" => Left.to_map(struct.left),
82058205 "let" => Let.to_map(struct.let),
82068206 "list" => ListClass.to_map(struct.list),
8207+ "LocalDate" => LocalDate.to_map(struct.local_date),
82078208 "Locale" => Locale.to_map(struct.locale),
82088209 "lock" => Lock.to_map(struct.lock),
82098210 "long" => Long.to_map(struct.long),
@@ -8218,7 +8219,6 @@ defmodule Obj3 do
82188219 "new" => New.to_map(struct.new),
82198220 "newtonsoft" => Newtonsoft.to_map(struct.newtonsoft),
82208221 "NO" => No.to_map(struct.no),
8221- "noexcept" => Noexcept.to_map(struct.noexcept),
82228222 "import" => ImportClass.to_map(struct.obj3_import),
82238223 "in" => InClass.to_map(struct.obj3_in),
82248224 "nil" => NilClass.to_map(struct.obj3_nil),
@@ -8271,6 +8271,45 @@ defmodule NoSuchMethod do
82718271 end
82728272 end
82738273
8274+defmodule Noexcept do
8275+ @enforce_keys [:noexcept]
8276+ defstruct [:noexcept]
8277+
8278+ @type t :: %__MODULE__{
8279+ noexcept: integer()
8280+ }
8281+
8282+ def decode_noexcept(value) when is_integer(value), do: value
8283+ def decode_noexcept(_), do: {:error, "Unexpected type when decoding Noexcept.noexcept"}
8284+
8285+ def encode_noexcept(value) when is_integer(value), do: value
8286+ def encode_noexcept(_), do: {:error, "Unexpected type when encoding Noexcept.noexcept"}
8287+
8288+ def from_map(m) do
8289+ %Noexcept{
8290+ noexcept: decode_noexcept(m["noexcept"]),
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+ "noexcept" => struct.noexcept,
8303+ }
8304+ end
8305+
8306+ def to_json(struct) do
8307+ struct
8308+ |> to_map()
8309+ |> Jason.encode!()
8310+ end
8311+end
8312+
82748313 defmodule Nonatomic do
82758314 @enforce_keys [:nonatomic]
82768315 defstruct [:nonatomic]
@@ -9012,6 +9051,84 @@ defmodule Of do
90129051 end
90139052 end
90149053
9054+defmodule OffsetDateTime do
9055+ @enforce_keys [:offset_date_time]
9056+ defstruct [:offset_date_time]
9057+
9058+ @type t :: %__MODULE__{
9059+ offset_date_time: integer()
9060+ }
9061+
9062+ def decode_offset_date_time(value) when is_integer(value), do: value
9063+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding OffsetDateTime.offset_date_time"}
9064+
9065+ def encode_offset_date_time(value) when is_integer(value), do: value
9066+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding OffsetDateTime.offset_date_time"}
9067+
9068+ def from_map(m) do
9069+ %OffsetDateTime{
9070+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
9071+ }
9072+ end
9073+
9074+ def from_json(json) do
9075+ json
9076+ |> Jason.decode!()
9077+ |> from_map()
9078+ end
9079+
9080+ def to_map(struct) do
9081+ %{
9082+ "OffsetDateTime" => struct.offset_date_time,
9083+ }
9084+ end
9085+
9086+ def to_json(struct) do
9087+ struct
9088+ |> to_map()
9089+ |> Jason.encode!()
9090+ end
9091+end
9092+
9093+defmodule OffsetTime do
9094+ @enforce_keys [:offset_time]
9095+ defstruct [:offset_time]
9096+
9097+ @type t :: %__MODULE__{
9098+ offset_time: integer()
9099+ }
9100+
9101+ def decode_offset_time(value) when is_integer(value), do: value
9102+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding OffsetTime.offset_time"}
9103+
9104+ def encode_offset_time(value) when is_integer(value), do: value
9105+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding OffsetTime.offset_time"}
9106+
9107+ def from_map(m) do
9108+ %OffsetTime{
9109+ offset_time: decode_offset_time(m["OffsetTime"]),
9110+ }
9111+ end
9112+
9113+ def from_json(json) do
9114+ json
9115+ |> Jason.decode!()
9116+ |> from_map()
9117+ end
9118+
9119+ def to_map(struct) do
9120+ %{
9121+ "OffsetTime" => struct.offset_time,
9122+ }
9123+ end
9124+
9125+ def to_json(struct) do
9126+ struct
9127+ |> to_map()
9128+ |> Jason.encode!()
9129+ end
9130+end
9131+
90159132 defmodule Oneway do
90169133 @enforce_keys [:oneway]
90179134 defstruct [:oneway]
@@ -10611,205 +10728,89 @@ defmodule Sbyte do
1061110728 end
1061210729 end
1061310730
10614-defmodule Sealed do
10615- @enforce_keys [:sealed]
10616- defstruct [:sealed]
10731+defmodule Obj4 do
10732+ @enforce_keys [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :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, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte]
10733+ defstruct [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :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, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte]
1061710734
1061810735 @type t :: %__MODULE__{
10619- sealed: integer()
10736+ dummy: integer(),
10737+ no_such_method: NoSuchMethod.t(),
10738+ noexcept: Noexcept.t(),
10739+ nonatomic: Nonatomic.t(),
10740+ none: None.t(),
10741+ nonlocal: Nonlocal.t(),
10742+ nonmutating: Nonmutating.t(),
10743+ not_eq: NotEq.t(),
10744+ ns_error: NSError.t(),
10745+ ns_object: NSObject.t(),
10746+ ns_string: NSString.t(),
10747+ null: Null.t(),
10748+ nullptr: Nullptr.t(),
10749+ number: Number.t(),
10750+ obj4_none: NoneClass.t(),
10751+ obj4_not: NotClass.t(),
10752+ obj4_null: NullClass.t(),
10753+ obj4_or: OrClass.t(),
10754+ obj4_protocol: Obj4Protocol.t(),
10755+ object: Object.t(),
10756+ object_mapper: ObjectMapper.t(),
10757+ of: Of.t(),
10758+ offset_date_time: OffsetDateTime.t(),
10759+ offset_time: OffsetTime.t(),
10760+ oneway: Oneway.t(),
10761+ open: Open.t(),
10762+ operator: Operator.t(),
10763+ optional: Optional.t(),
10764+ or_eq: OrEq.t(),
10765+ out: Out.t(),
10766+ override: Override.t(),
10767+ package: Package.t(),
10768+ params: Params.t(),
10769+ pass: Pass.t(),
10770+ port: PortClass.t(),
10771+ postfix: Postfix.t(),
10772+ precedence: Precedence.t(),
10773+ prefix: Prefix.t(),
10774+ print: Print.t(),
10775+ print_members: PrintMembers.t(),
10776+ printf: Printf.t(),
10777+ private: Private.t(),
10778+ protected: Protected.t(),
10779+ protocol: ProtocolClass.t(),
10780+ public: Public.t(),
10781+ quicktype: Quicktype.t(),
10782+ raise: Raise.t(),
10783+ range: RangeClass.t(),
10784+ readonly: Readonly.t(),
10785+ ref: Ref.t(),
10786+ reg_exp: RegExp.t(),
10787+ register: Register.t(),
10788+ reinterpret_cast: ReinterpretCast.t(),
10789+ repeat: Repeat.t(),
10790+ require: Require.t(),
10791+ required: Required.t(),
10792+ requires: Requires.t(),
10793+ restrict: Restrict.t(),
10794+ retain: Retain.t(),
10795+ rethrows: Rethrows.t(),
10796+ return: Return.t(),
10797+ right: Right.t(),
10798+ runtime_type: RuntimeType.t(),
10799+ s: S.t(),
10800+ sbyte: Sbyte.t()
1062010801 }
1062110802
10622- def decode_sealed(value) when is_integer(value), do: value
10623- def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"}
10803+ def decode_dummy(value) when is_integer(value), do: value
10804+ def decode_dummy(_), do: {:error, "Unexpected type when decoding Obj4.dummy"}
1062410805
10625- def encode_sealed(value) when is_integer(value), do: value
10626- def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"}
10627-
10628- def from_map(m) do
10629- %Sealed{
10630- sealed: decode_sealed(m["sealed"]),
10631- }
10632- end
10633-
10634- def from_json(json) do
10635- json
10636- |> Jason.decode!()
10637- |> from_map()
10638- end
10639-
10640- def to_map(struct) do
10641- %{
10642- "sealed" => struct.sealed,
10643- }
10644- end
10645-
10646- def to_json(struct) do
10647- struct
10648- |> to_map()
10649- |> Jason.encode!()
10650- end
10651-end
10652-
10653-defmodule Sel do
10654- @enforce_keys [:sel]
10655- defstruct [:sel]
10656-
10657- @type t :: %__MODULE__{
10658- sel: integer()
10659- }
10660-
10661- def decode_sel(value) when is_integer(value), do: value
10662- def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"}
10663-
10664- def encode_sel(value) when is_integer(value), do: value
10665- def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"}
10666-
10667- def from_map(m) do
10668- %Sel{
10669- sel: decode_sel(m["SEL"]),
10670- }
10671- end
10672-
10673- def from_json(json) do
10674- json
10675- |> Jason.decode!()
10676- |> from_map()
10677- end
10678-
10679- def to_map(struct) do
10680- %{
10681- "SEL" => struct.sel,
10682- }
10683- end
10684-
10685- def to_json(struct) do
10686- struct
10687- |> to_map()
10688- |> Jason.encode!()
10689- end
10690-end
10691-
10692-defmodule Select do
10693- @enforce_keys [:select]
10694- defstruct [:select]
10695-
10696- @type t :: %__MODULE__{
10697- select: integer()
10698- }
10699-
10700- def decode_select(value) when is_integer(value), do: value
10701- def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"}
10702-
10703- def encode_select(value) when is_integer(value), do: value
10704- def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"}
10705-
10706- def from_map(m) do
10707- %Select{
10708- select: decode_select(m["select"]),
10709- }
10710- end
10711-
10712- def from_json(json) do
10713- json
10714- |> Jason.decode!()
10715- |> from_map()
10716- end
10717-
10718- def to_map(struct) do
10719- %{
10720- "select" => struct.select,
10721- }
10722- end
10723-
10724- def to_json(struct) do
10725- struct
10726- |> to_map()
10727- |> Jason.encode!()
10728- end
10729-end
10730-
10731-defmodule Obj4 do
10732- @enforce_keys [:dummy, :no_such_method, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :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, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select]
10733- defstruct [:dummy, :no_such_method, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :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, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select]
10734-
10735- @type t :: %__MODULE__{
10736- dummy: integer(),
10737- no_such_method: NoSuchMethod.t(),
10738- nonatomic: Nonatomic.t(),
10739- none: None.t(),
10740- nonlocal: Nonlocal.t(),
10741- nonmutating: Nonmutating.t(),
10742- not_eq: NotEq.t(),
10743- ns_error: NSError.t(),
10744- ns_object: NSObject.t(),
10745- ns_string: NSString.t(),
10746- null: Null.t(),
10747- nullptr: Nullptr.t(),
10748- number: Number.t(),
10749- obj4_none: NoneClass.t(),
10750- obj4_not: NotClass.t(),
10751- obj4_null: NullClass.t(),
10752- obj4_or: OrClass.t(),
10753- obj4_protocol: Obj4Protocol.t(),
10754- object: Object.t(),
10755- object_mapper: ObjectMapper.t(),
10756- of: Of.t(),
10757- oneway: Oneway.t(),
10758- open: Open.t(),
10759- operator: Operator.t(),
10760- optional: Optional.t(),
10761- or_eq: OrEq.t(),
10762- out: Out.t(),
10763- override: Override.t(),
10764- package: Package.t(),
10765- params: Params.t(),
10766- pass: Pass.t(),
10767- port: PortClass.t(),
10768- postfix: Postfix.t(),
10769- precedence: Precedence.t(),
10770- prefix: Prefix.t(),
10771- print: Print.t(),
10772- print_members: PrintMembers.t(),
10773- printf: Printf.t(),
10774- private: Private.t(),
10775- protected: Protected.t(),
10776- protocol: ProtocolClass.t(),
10777- public: Public.t(),
10778- quicktype: Quicktype.t(),
10779- raise: Raise.t(),
10780- range: RangeClass.t(),
10781- readonly: Readonly.t(),
10782- ref: Ref.t(),
10783- reg_exp: RegExp.t(),
10784- register: Register.t(),
10785- reinterpret_cast: ReinterpretCast.t(),
10786- repeat: Repeat.t(),
10787- require: Require.t(),
10788- required: Required.t(),
10789- requires: Requires.t(),
10790- restrict: Restrict.t(),
10791- retain: Retain.t(),
10792- rethrows: Rethrows.t(),
10793- return: Return.t(),
10794- right: Right.t(),
10795- runtime_type: RuntimeType.t(),
10796- s: S.t(),
10797- sbyte: Sbyte.t(),
10798- sealed: Sealed.t(),
10799- sel: Sel.t(),
10800- select: Select.t()
10801- }
10802-
10803- def decode_dummy(value) when is_integer(value), do: value
10804- def decode_dummy(_), do: {:error, "Unexpected type when decoding Obj4.dummy"}
10805-
10806- def encode_dummy(value) when is_integer(value), do: value
10807- def encode_dummy(_), do: {:error, "Unexpected type when encoding Obj4.dummy"}
10806+ def encode_dummy(value) when is_integer(value), do: value
10807+ def encode_dummy(_), do: {:error, "Unexpected type when encoding Obj4.dummy"}
1080810808
1080910809 def from_map(m) do
1081010810 %Obj4{
1081110811 dummy: decode_dummy(m["dummy"]),
1081210812 no_such_method: NoSuchMethod.from_map(m["noSuchMethod"]),
10813+ noexcept: Noexcept.from_map(m["noexcept"]),
1081310814 nonatomic: Nonatomic.from_map(m["nonatomic"]),
1081410815 none: None.from_map(m["None"]),
1081510816 nonlocal: Nonlocal.from_map(m["nonlocal"]),
@@ -10829,6 +10830,8 @@ defmodule Obj4 do
1082910830 object: Object.from_map(m["object"]),
1083010831 object_mapper: ObjectMapper.from_map(m["ObjectMapper"]),
1083110832 of: Of.from_map(m["of"]),
10833+ offset_date_time: OffsetDateTime.from_map(m["OffsetDateTime"]),
10834+ offset_time: OffsetTime.from_map(m["OffsetTime"]),
1083210835 oneway: Oneway.from_map(m["oneway"]),
1083310836 open: Open.from_map(m["open"]),
1083410837 operator: Operator.from_map(m["operator"]),
@@ -10870,9 +10873,6 @@ defmodule Obj4 do
1087010873 runtime_type: RuntimeType.from_map(m["runtimeType"]),
1087110874 s: S.from_map(m["s"]),
1087210875 sbyte: Sbyte.from_map(m["sbyte"]),
10873- sealed: Sealed.from_map(m["sealed"]),
10874- sel: Sel.from_map(m["SEL"]),
10875- select: Select.from_map(m["select"]),
1087610876 }
1087710877 end
1087810878
@@ -10886,6 +10886,7 @@ defmodule Obj4 do
1088610886 %{
1088710887 "dummy" => struct.dummy,
1088810888 "noSuchMethod" => NoSuchMethod.to_map(struct.no_such_method),
10889+ "noexcept" => Noexcept.to_map(struct.noexcept),
1088910890 "nonatomic" => Nonatomic.to_map(struct.nonatomic),
1089010891 "None" => None.to_map(struct.none),
1089110892 "nonlocal" => Nonlocal.to_map(struct.nonlocal),
@@ -10905,6 +10906,8 @@ defmodule Obj4 do
1090510906 "object" => Object.to_map(struct.object),
1090610907 "ObjectMapper" => ObjectMapper.to_map(struct.object_mapper),
1090710908 "of" => Of.to_map(struct.of),
10909+ "OffsetDateTime" => OffsetDateTime.to_map(struct.offset_date_time),
10910+ "OffsetTime" => OffsetTime.to_map(struct.offset_time),
1090810911 "oneway" => Oneway.to_map(struct.oneway),
1090910912 "open" => Open.to_map(struct.open),
1091010913 "operator" => Operator.to_map(struct.operator),
@@ -10946,9 +10949,6 @@ defmodule Obj4 do
1094610949 "runtimeType" => RuntimeType.to_map(struct.runtime_type),
1094710950 "s" => S.to_map(struct.s),
1094810951 "sbyte" => Sbyte.to_map(struct.sbyte),
10949- "sealed" => Sealed.to_map(struct.sealed),
10950- "SEL" => Sel.to_map(struct.sel),
10951- "select" => Select.to_map(struct.select),
1095210952 }
1095310953 end
1095410954
@@ -11154,6 +11154,123 @@ defmodule PrimitiveKind do
1115411154 end
1115511155 end
1115611156
11157+defmodule Sealed do
11158+ @enforce_keys [:sealed]
11159+ defstruct [:sealed]
11160+
11161+ @type t :: %__MODULE__{
11162+ sealed: integer()
11163+ }
11164+
11165+ def decode_sealed(value) when is_integer(value), do: value
11166+ def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"}
11167+
11168+ def encode_sealed(value) when is_integer(value), do: value
11169+ def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"}
11170+
11171+ def from_map(m) do
11172+ %Sealed{
11173+ sealed: decode_sealed(m["sealed"]),
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+ "sealed" => struct.sealed,
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 Sel do
11197+ @enforce_keys [:sel]
11198+ defstruct [:sel]
11199+
11200+ @type t :: %__MODULE__{
11201+ sel: integer()
11202+ }
11203+
11204+ def decode_sel(value) when is_integer(value), do: value
11205+ def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"}
11206+
11207+ def encode_sel(value) when is_integer(value), do: value
11208+ def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"}
11209+
11210+ def from_map(m) do
11211+ %Sel{
11212+ sel: decode_sel(m["SEL"]),
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+ "SEL" => struct.sel,
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 Select do
11236+ @enforce_keys [:select]
11237+ defstruct [:select]
11238+
11239+ @type t :: %__MODULE__{
11240+ select: integer()
11241+ }
11242+
11243+ def decode_select(value) when is_integer(value), do: value
11244+ def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"}
11245+
11246+ def encode_select(value) when is_integer(value), do: value
11247+ def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"}
11248+
11249+ def from_map(m) do
11250+ %Select{
11251+ select: decode_select(m["select"]),
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+ "select" => struct.select,
11264+ }
11265+ end
11266+
11267+ def to_json(struct) do
11268+ struct
11269+ |> to_map()
11270+ |> Jason.encode!()
11271+ end
11272+end
11273+
1115711274 defmodule Self do
1115811275 @enforce_keys [:self]
1115911276 defstruct [:self]
@@ -13118,126 +13235,9 @@ defmodule Ulong do
1311813235 def encode_ulong(value) when is_integer(value), do: value
1311913236 def encode_ulong(_), do: {:error, "Unexpected type when encoding Ulong.ulong"}
1312013237
13121- def from_map(m) do
13122- %Ulong{
13123- ulong: decode_ulong(m["ulong"]),
13124- }
13125- end
13126-
13127- def from_json(json) do
13128- json
13129- |> Jason.decode!()
13130- |> from_map()
13131- end
13132-
13133- def to_map(struct) do
13134- %{
13135- "ulong" => struct.ulong,
13136- }
13137- end
13138-
13139- def to_json(struct) do
13140- struct
13141- |> to_map()
13142- |> Jason.encode!()
13143- end
13144-end
13145-
13146-defmodule Unchecked do
13147- @enforce_keys [:unchecked]
13148- defstruct [:unchecked]
13149-
13150- @type t :: %__MODULE__{
13151- unchecked: integer()
13152- }
13153-
13154- def decode_unchecked(value) when is_integer(value), do: value
13155- def decode_unchecked(_), do: {:error, "Unexpected type when decoding Unchecked.unchecked"}
13156-
13157- def encode_unchecked(value) when is_integer(value), do: value
13158- def encode_unchecked(_), do: {:error, "Unexpected type when encoding Unchecked.unchecked"}
13159-
13160- def from_map(m) do
13161- %Unchecked{
13162- unchecked: decode_unchecked(m["unchecked"]),
13163- }
13164- end
13165-
13166- def from_json(json) do
13167- json
13168- |> Jason.decode!()
13169- |> from_map()
13170- end
13171-
13172- def to_map(struct) do
13173- %{
13174- "unchecked" => struct.unchecked,
13175- }
13176- end
13177-
13178- def to_json(struct) do
13179- struct
13180- |> to_map()
13181- |> Jason.encode!()
13182- end
13183-end
13184-
13185-defmodule Undefined do
13186- @enforce_keys [:undefined]
13187- defstruct [:undefined]
13188-
13189- @type t :: %__MODULE__{
13190- undefined: integer()
13191- }
13192-
13193- def decode_undefined(value) when is_integer(value), do: value
13194- def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"}
13195-
13196- def encode_undefined(value) when is_integer(value), do: value
13197- def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"}
13198-
13199- def from_map(m) do
13200- %Undefined{
13201- undefined: decode_undefined(m["undefined"]),
13202- }
13203- end
13204-
13205- def from_json(json) do
13206- json
13207- |> Jason.decode!()
13208- |> from_map()
13209- end
13210-
13211- def to_map(struct) do
13212- %{
13213- "undefined" => struct.undefined,
13214- }
13215- end
13216-
13217- def to_json(struct) do
13218- struct
13219- |> to_map()
13220- |> Jason.encode!()
13221- end
13222-end
13223-
13224-defmodule Union do
13225- @enforce_keys [:union]
13226- defstruct [:union]
13227-
13228- @type t :: %__MODULE__{
13229- union: integer()
13230- }
13231-
13232- def decode_union(value) when is_integer(value), do: value
13233- def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"}
13234-
13235- def encode_union(value) when is_integer(value), do: value
13236- def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"}
13237-
13238- def from_map(m) do
13239- %Union{
13240- union: decode_union(m["union"]),
13238+ def from_map(m) do
13239+ %Ulong{
13240+ ulong: decode_ulong(m["ulong"]),
1324113241 }
1324213242 end
1324313243
@@ -13249,7 +13249,7 @@ defmodule Union do
1324913249
1325013250 def to_map(struct) do
1325113251 %{
13252- "union" => struct.union,
13252+ "ulong" => struct.ulong,
1325313253 }
1325413254 end
1325513255
@@ -13260,23 +13260,23 @@ defmodule Union do
1326013260 end
1326113261 end
1326213262
13263-defmodule Unowned do
13264- @enforce_keys [:unowned]
13265- defstruct [:unowned]
13263+defmodule Unchecked do
13264+ @enforce_keys [:unchecked]
13265+ defstruct [:unchecked]
1326613266
1326713267 @type t :: %__MODULE__{
13268- unowned: integer()
13268+ unchecked: integer()
1326913269 }
1327013270
13271- def decode_unowned(value) when is_integer(value), do: value
13272- def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"}
13271+ def decode_unchecked(value) when is_integer(value), do: value
13272+ def decode_unchecked(_), do: {:error, "Unexpected type when decoding Unchecked.unchecked"}
1327313273
13274- def encode_unowned(value) when is_integer(value), do: value
13275- def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"}
13274+ def encode_unchecked(value) when is_integer(value), do: value
13275+ def encode_unchecked(_), do: {:error, "Unexpected type when encoding Unchecked.unchecked"}
1327613276
1327713277 def from_map(m) do
13278- %Unowned{
13279- unowned: decode_unowned(m["unowned"]),
13278+ %Unchecked{
13279+ unchecked: decode_unchecked(m["unchecked"]),
1328013280 }
1328113281 end
1328213282
@@ -13288,7 +13288,7 @@ defmodule Unowned do
1328813288
1328913289 def to_map(struct) do
1329013290 %{
13291- "unowned" => struct.unowned,
13291+ "unchecked" => struct.unchecked,
1329213292 }
1329313293 end
1329413294
@@ -13299,23 +13299,23 @@ defmodule Unowned do
1329913299 end
1330013300 end
1330113301
13302-defmodule Unsafe do
13303- @enforce_keys [:unsafe]
13304- defstruct [:unsafe]
13302+defmodule Undefined do
13303+ @enforce_keys [:undefined]
13304+ defstruct [:undefined]
1330513305
1330613306 @type t :: %__MODULE__{
13307- unsafe: integer()
13307+ undefined: integer()
1330813308 }
1330913309
13310- def decode_unsafe(value) when is_integer(value), do: value
13311- def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"}
13310+ def decode_undefined(value) when is_integer(value), do: value
13311+ def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"}
1331213312
13313- def encode_unsafe(value) when is_integer(value), do: value
13314- def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"}
13313+ def encode_undefined(value) when is_integer(value), do: value
13314+ def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"}
1331513315
1331613316 def from_map(m) do
13317- %Unsafe{
13318- unsafe: decode_unsafe(m["unsafe"]),
13317+ %Undefined{
13318+ undefined: decode_undefined(m["undefined"]),
1331913319 }
1332013320 end
1332113321
@@ -13327,7 +13327,7 @@ defmodule Unsafe do
1332713327
1332813328 def to_map(struct) do
1332913329 %{
13330- "unsafe" => struct.unsafe,
13330+ "undefined" => struct.undefined,
1333113331 }
1333213332 end
1333313333
@@ -13338,23 +13338,23 @@ defmodule Unsafe do
1333813338 end
1333913339 end
1334013340
13341-defmodule Unsigned do
13342- @enforce_keys [:unsigned]
13343- defstruct [:unsigned]
13341+defmodule Union do
13342+ @enforce_keys [:union]
13343+ defstruct [:union]
1334413344
1334513345 @type t :: %__MODULE__{
13346- unsigned: integer()
13346+ union: integer()
1334713347 }
1334813348
13349- def decode_unsigned(value) when is_integer(value), do: value
13350- def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"}
13349+ def decode_union(value) when is_integer(value), do: value
13350+ def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"}
1335113351
13352- def encode_unsigned(value) when is_integer(value), do: value
13353- def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"}
13352+ def encode_union(value) when is_integer(value), do: value
13353+ def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"}
1335413354
1335513355 def from_map(m) do
13356- %Unsigned{
13357- unsigned: decode_unsigned(m["unsigned"]),
13356+ %Union{
13357+ union: decode_union(m["union"]),
1335813358 }
1335913359 end
1336013360
@@ -13366,7 +13366,7 @@ defmodule Unsigned do
1336613366
1336713367 def to_map(struct) do
1336813368 %{
13369- "unsigned" => struct.unsigned,
13369+ "union" => struct.union,
1337013370 }
1337113371 end
1337213372
@@ -13377,23 +13377,23 @@ defmodule Unsigned do
1337713377 end
1337813378 end
1337913379
13380-defmodule UseSerializers do
13381- @enforce_keys [:use_serializers]
13382- defstruct [:use_serializers]
13380+defmodule Unowned do
13381+ @enforce_keys [:unowned]
13382+ defstruct [:unowned]
1338313383
1338413384 @type t :: %__MODULE__{
13385- use_serializers: integer()
13385+ unowned: integer()
1338613386 }
1338713387
13388- def decode_use_serializers(value) when is_integer(value), do: value
13389- def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"}
13388+ def decode_unowned(value) when is_integer(value), do: value
13389+ def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"}
1339013390
13391- def encode_use_serializers(value) when is_integer(value), do: value
13392- def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"}
13391+ def encode_unowned(value) when is_integer(value), do: value
13392+ def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"}
1339313393
1339413394 def from_map(m) do
13395- %UseSerializers{
13396- use_serializers: decode_use_serializers(m["UseSerializers"]),
13395+ %Unowned{
13396+ unowned: decode_unowned(m["unowned"]),
1339713397 }
1339813398 end
1339913399
@@ -13405,7 +13405,7 @@ defmodule UseSerializers do
1340513405
1340613406 def to_map(struct) do
1340713407 %{
13408- "UseSerializers" => struct.use_serializers,
13408+ "unowned" => struct.unowned,
1340913409 }
1341013410 end
1341113411
@@ -13416,23 +13416,23 @@ defmodule UseSerializers do
1341613416 end
1341713417 end
1341813418
13419-defmodule Ushort do
13420- @enforce_keys [:ushort]
13421- defstruct [:ushort]
13419+defmodule UseSerializers do
13420+ @enforce_keys [:use_serializers]
13421+ defstruct [:use_serializers]
1342213422
1342313423 @type t :: %__MODULE__{
13424- ushort: integer()
13424+ use_serializers: integer()
1342513425 }
1342613426
13427- def decode_ushort(value) when is_integer(value), do: value
13428- def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
13427+ def decode_use_serializers(value) when is_integer(value), do: value
13428+ def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"}
1342913429
13430- def encode_ushort(value) when is_integer(value), do: value
13431- def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
13430+ def encode_use_serializers(value) when is_integer(value), do: value
13431+ def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"}
1343213432
1343313433 def from_map(m) do
13434- %Ushort{
13435- ushort: decode_ushort(m["ushort"]),
13434+ %UseSerializers{
13435+ use_serializers: decode_use_serializers(m["UseSerializers"]),
1343613436 }
1343713437 end
1343813438
@@ -13444,7 +13444,7 @@ defmodule Ushort do
1344413444
1344513445 def to_map(struct) do
1344613446 %{
13447- "ushort" => struct.ushort,
13447+ "UseSerializers" => struct.use_serializers,
1344813448 }
1344913449 end
1345013450
@@ -13456,8 +13456,8 @@ defmodule Ushort do
1345613456 end
1345713457
1345813458 defmodule Obj5 do
13459- @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :use_serializers, :ushort]
13460- defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :use_serializers, :ushort]
13459+ @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :use_serializers]
13460+ defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :use_serializers]
1346113461
1346213462 @type t :: %__MODULE__{
1346313463 dummy: integer(),
@@ -13466,6 +13466,9 @@ defmodule Obj5 do
1346613466 obj5_true: TrueClass.t(),
1346713467 obj5_type: TypeClass.t(),
1346813468 primitive_kind: PrimitiveKind.t(),
13469+ sealed: Sealed.t(),
13470+ sel: Sel.t(),
13471+ select: Select.t(),
1346913472 self: Self.t(),
1347013473 sendable: Sendable.t(),
1347113474 serial_descriptor: SerialDescriptor.t(),
@@ -13521,10 +13524,7 @@ defmodule Obj5 do
1352113524 undefined: Undefined.t(),
1352213525 union: Union.t(),
1352313526 unowned: Unowned.t(),
13524- unsafe: Unsafe.t(),
13525- unsigned: Unsigned.t(),
13526- use_serializers: UseSerializers.t(),
13527- ushort: Ushort.t()
13527+ use_serializers: UseSerializers.t()
1352813528 }
1352913529
1353013530 def decode_dummy(value) when is_integer(value), do: value
@@ -13541,6 +13541,9 @@ defmodule Obj5 do
1354113541 obj5_true: TrueClass.from_map(m["True"]),
1354213542 obj5_type: TypeClass.from_map(m["type"]),
1354313543 primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]),
13544+ sealed: Sealed.from_map(m["sealed"]),
13545+ sel: Sel.from_map(m["SEL"]),
13546+ select: Select.from_map(m["select"]),
1354413547 self: Self.from_map(m["Self"]),
1354513548 sendable: Sendable.from_map(m["Sendable"]),
1354613549 serial_descriptor: SerialDescriptor.from_map(m["SerialDescriptor"]),
@@ -13596,10 +13599,7 @@ defmodule Obj5 do
1359613599 undefined: Undefined.from_map(m["undefined"]),
1359713600 union: Union.from_map(m["union"]),
1359813601 unowned: Unowned.from_map(m["unowned"]),
13599- unsafe: Unsafe.from_map(m["unsafe"]),
13600- unsigned: Unsigned.from_map(m["unsigned"]),
1360113602 use_serializers: UseSerializers.from_map(m["UseSerializers"]),
13602- ushort: Ushort.from_map(m["ushort"]),
1360313603 }
1360413604 end
1360513605
@@ -13617,6 +13617,9 @@ defmodule Obj5 do
1361713617 "True" => TrueClass.to_map(struct.obj5_true),
1361813618 "type" => TypeClass.to_map(struct.obj5_type),
1361913619 "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind),
13620+ "sealed" => Sealed.to_map(struct.sealed),
13621+ "SEL" => Sel.to_map(struct.sel),
13622+ "select" => Select.to_map(struct.select),
1362013623 "Self" => Self.to_map(struct.self),
1362113624 "Sendable" => Sendable.to_map(struct.sendable),
1362213625 "SerialDescriptor" => SerialDescriptor.to_map(struct.serial_descriptor),
@@ -13672,10 +13675,124 @@ defmodule Obj5 do
1367213675 "undefined" => Undefined.to_map(struct.undefined),
1367313676 "union" => Union.to_map(struct.union),
1367413677 "unowned" => Unowned.to_map(struct.unowned),
13675- "unsafe" => Unsafe.to_map(struct.unsafe),
13676- "unsigned" => Unsigned.to_map(struct.unsigned),
1367713678 "UseSerializers" => UseSerializers.to_map(struct.use_serializers),
13678- "ushort" => Ushort.to_map(struct.ushort),
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 Unsafe do
13690+ @enforce_keys [:unsafe]
13691+ defstruct [:unsafe]
13692+
13693+ @type t :: %__MODULE__{
13694+ unsafe: integer()
13695+ }
13696+
13697+ def decode_unsafe(value) when is_integer(value), do: value
13698+ def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"}
13699+
13700+ def encode_unsafe(value) when is_integer(value), do: value
13701+ def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"}
13702+
13703+ def from_map(m) do
13704+ %Unsafe{
13705+ unsafe: decode_unsafe(m["unsafe"]),
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+ "unsafe" => struct.unsafe,
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 Unsigned do
13729+ @enforce_keys [:unsigned]
13730+ defstruct [:unsigned]
13731+
13732+ @type t :: %__MODULE__{
13733+ unsigned: integer()
13734+ }
13735+
13736+ def decode_unsigned(value) when is_integer(value), do: value
13737+ def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"}
13738+
13739+ def encode_unsigned(value) when is_integer(value), do: value
13740+ def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"}
13741+
13742+ def from_map(m) do
13743+ %Unsigned{
13744+ unsigned: decode_unsigned(m["unsigned"]),
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+ "unsigned" => struct.unsigned,
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 Ushort do
13768+ @enforce_keys [:ushort]
13769+ defstruct [:ushort]
13770+
13771+ @type t :: %__MODULE__{
13772+ ushort: integer()
13773+ }
13774+
13775+ def decode_ushort(value) when is_integer(value), do: value
13776+ def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
13777+
13778+ def encode_ushort(value) when is_integer(value), do: value
13779+ def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
13780+
13781+ def from_map(m) do
13782+ %Ushort{
13783+ ushort: decode_ushort(m["ushort"]),
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+ "ushort" => struct.ushort,
1367913796 }
1368013797 end
1368113798
@@ -14389,11 +14506,14 @@ defmodule Yield do
1438914506 end
1439014507
1439114508 defmodule Obj6 do
14392- @enforce_keys [:dummy, :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]
14393- defstruct [:dummy, :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]
14509+ @enforce_keys [:dummy, :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]
14510+ defstruct [:dummy, :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]
1439414511
1439514512 @type t :: %__MODULE__{
1439614513 dummy: integer(),
14514+ unsafe: Unsafe.t(),
14515+ unsigned: Unsigned.t(),
14516+ ushort: Ushort.t(),
1439714517 using: Using.t(),
1439814518 utf8_json_reader: Utf8JSONReader.t(),
1439914519 utf8_json_writer: Utf8JSONWriter.t(),
@@ -14423,6 +14543,9 @@ defmodule Obj6 do
1442314543 def from_map(m) do
1442414544 %Obj6{
1442514545 dummy: decode_dummy(m["dummy"]),
14546+ unsafe: Unsafe.from_map(m["unsafe"]),
14547+ unsigned: Unsigned.from_map(m["unsigned"]),
14548+ ushort: Ushort.from_map(m["ushort"]),
1442614549 using: Using.from_map(m["using"]),
1442714550 utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
1442814551 utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]),
@@ -14453,6 +14576,9 @@ defmodule Obj6 do
1445314576 def to_map(struct) do
1445414577 %{
1445514578 "dummy" => struct.dummy,
14579+ "unsafe" => Unsafe.to_map(struct.unsafe),
14580+ "unsigned" => Unsigned.to_map(struct.unsigned),
14581+ "ushort" => Ushort.to_map(struct.ushort),
1445614582 "using" => Using.to_map(struct.using),
1445714583 "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
1445814584 "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer),
Melmdefault / QuickType.elm+190 −133
@@ -188,6 +188,7 @@ module QuickType exposing
188188 , Lazy
189189 , Left
190190 , ListClass
191+ , LocalDate
191192 , Locale
192193 , Lock
193194 , Long
@@ -202,7 +203,6 @@ module QuickType exposing
202203 , Newtonsoft
203204 , Nil
204205 , No
205- , Noexcept
206206 , If
207207 , Import
208208 , In
@@ -212,6 +212,7 @@ module QuickType exposing
212212 , Module
213213 , Obj4
214214 , NoSuchMethod
215+ , Noexcept
215216 , Nonatomic
216217 , None
217218 , Nonlocal
@@ -231,6 +232,8 @@ module QuickType exposing
231232 , ProtocolClass
232233 , Object
233234 , ObjectMapper
235+ , OffsetDateTime
236+ , OffsetTime
234237 , Oneway
235238 , Open
236239 , Operator
@@ -272,9 +275,6 @@ module QuickType exposing
272275 , RuntimeType
273276 , S
274277 , Sbyte
275- , Sealed
276- , Sel
277- , Select
278278 , Obj5
279279 , KSerializer
280280 , SelfClass
@@ -284,6 +284,9 @@ module QuickType exposing
284284 , Type
285285 , PrimitiveKind
286286 , TypeClass
287+ , Sealed
288+ , Sel
289+ , Select
287290 , Self
288291 , Sendable
289292 , SerialDescriptor
@@ -336,12 +339,12 @@ module QuickType exposing
336339 , Undefined
337340 , Union
338341 , Unowned
339- , Unsafe
340- , Unsigned
341342 , UseSerializers
342- , Ushort
343343 , Obj6
344344 , Where
345+ , Unsafe
346+ , Unsigned
347+ , Ushort
345348 , Using
346349 , Utf8JSONReader
347350 , Utf8JSONWriter
@@ -1073,6 +1076,7 @@ type alias Obj3 =
10731076 , lazy : Lazy
10741077 , left : Left
10751078 , list : ListClass
1079+ , localDate : LocalDate
10761080 , locale : Locale
10771081 , lock : Lock
10781082 , long : Long
@@ -1087,7 +1091,6 @@ type alias Obj3 =
10871091 , newtonsoft : Newtonsoft
10881092 , nil : Nil
10891093 , no : No
1090- , noexcept : Noexcept
10911094 , obj3If : If
10921095 , obj3Import : Import
10931096 , obj3In : In
@@ -1265,6 +1268,10 @@ type alias ListClass =
12651268 { list : Int
12661269 }
12671270
1271+type alias LocalDate =
1272+ { localDate : Int
1273+ }
1274+
12681275 type alias Locale =
12691276 { locale : Int
12701277 }
@@ -1321,10 +1328,6 @@ type alias No =
13211328 { no : Int
13221329 }
13231330
1324-type alias Noexcept =
1325- { noexcept : Int
1326- }
1327-
13281331 type alias If =
13291332 { ifIf : Int
13301333 }
@@ -1356,6 +1359,7 @@ type alias Module =
13561359 type alias Obj4 =
13571360 { dummy : Int
13581361 , noSuchMethod : NoSuchMethod
1362+ , noexcept : Noexcept
13591363 , nonatomic : Nonatomic
13601364 , none : None
13611365 , nonlocal : Nonlocal
@@ -1375,6 +1379,8 @@ type alias Obj4 =
13751379 , obj4Protocol : ProtocolClass
13761380 , object : Object
13771381 , objectMapper : ObjectMapper
1382+ , offsetDateTime : OffsetDateTime
1383+ , offsetTime : OffsetTime
13781384 , oneway : Oneway
13791385 , open : Open
13801386 , operator : Operator
@@ -1416,15 +1422,16 @@ type alias Obj4 =
14161422 , runtimeType : RuntimeType
14171423 , s : S
14181424 , sbyte : Sbyte
1419- , sealed : Sealed
1420- , sel : Sel
1421- , select : Select
14221425 }
14231426
14241427 type alias NoSuchMethod =
14251428 { noSuchMethod : Int
14261429 }
14271430
1431+type alias Noexcept =
1432+ { noexcept : Int
1433+ }
1434+
14281435 type alias Nonatomic =
14291436 { nonatomic : Int
14301437 }
@@ -1501,6 +1508,14 @@ type alias ObjectMapper =
15011508 { objectMapper : Int
15021509 }
15031510
1511+type alias OffsetDateTime =
1512+ { offsetDateTime : Int
1513+ }
1514+
1515+type alias OffsetTime =
1516+ { offsetTime : Int
1517+ }
1518+
15041519 type alias Oneway =
15051520 { oneway : Int
15061521 }
@@ -1665,18 +1680,6 @@ type alias Sbyte =
16651680 { sbyte : Int
16661681 }
16671682
1668-type alias Sealed =
1669- { sealed : Int
1670- }
1671-
1672-type alias Sel =
1673- { sel : Int
1674- }
1675-
1676-type alias Select =
1677- { select : Int
1678- }
1679-
16801683 type alias Obj5 =
16811684 { dummy : Int
16821685 , kSerializer : KSerializer
@@ -1687,6 +1690,9 @@ type alias Obj5 =
16871690 , obj5Type : Type
16881691 , primitiveKind : PrimitiveKind
16891692 , purpleType : TypeClass
1693+ , sealed : Sealed
1694+ , sel : Sel
1695+ , select : Select
16901696 , self : Self
16911697 , sendable : Sendable
16921698 , serialDescriptor : SerialDescriptor
@@ -1739,10 +1745,7 @@ type alias Obj5 =
17391745 , undefined : Undefined
17401746 , union : Union
17411747 , unowned : Unowned
1742- , unsafe : Unsafe
1743- , unsigned : Unsigned
17441748 , useSerializers : UseSerializers
1745- , ushort : Ushort
17461749 }
17471750
17481751 type alias KSerializer =
@@ -1777,6 +1780,18 @@ type alias TypeClass =
17771780 { typeType : Int
17781781 }
17791782
1783+type alias Sealed =
1784+ { sealed : Int
1785+ }
1786+
1787+type alias Sel =
1788+ { sel : Int
1789+ }
1790+
1791+type alias Select =
1792+ { select : Int
1793+ }
1794+
17801795 type alias Self =
17811796 { self : Int
17821797 }
@@ -1985,25 +2000,16 @@ type alias Unowned =
19852000 { unowned : Int
19862001 }
19872002
1988-type alias Unsafe =
1989- { unsafe : Int
1990- }
1991-
1992-type alias Unsigned =
1993- { unsigned : Int
1994- }
1995-
19962003 type alias UseSerializers =
19972004 { useSerializers : Int
19982005 }
19992006
2000-type alias Ushort =
2001- { ushort : Int
2002- }
2003-
20042007 type alias Obj6 =
20052008 { dummy : Int
20062009 , obj6Where : Where
2010+ , unsafe : Unsafe
2011+ , unsigned : Unsigned
2012+ , ushort : Ushort
20072013 , using : Using
20082014 , utf8JSONReader : Utf8JSONReader
20092015 , utf8JSONWriter : Utf8JSONWriter
@@ -2027,6 +2033,18 @@ type alias Where =
20272033 { whereWhere : Int
20282034 }
20292035
2036+type alias Unsafe =
2037+ { unsafe : Int
2038+ }
2039+
2040+type alias Unsigned =
2041+ { unsigned : Int
2042+ }
2043+
2044+type alias Ushort =
2045+ { ushort : Int
2046+ }
2047+
20302048 type alias Using =
20312049 { using : Int
20322050 }
@@ -3876,6 +3894,7 @@ obj3 =
38763894 |> Jpipe.required "lazy" lazy
38773895 |> Jpipe.required "left" left
38783896 |> Jpipe.required "list" listClass
3897+ |> Jpipe.required "LocalDate" localDate
38793898 |> Jpipe.required "Locale" locale
38803899 |> Jpipe.required "lock" lock
38813900 |> Jpipe.required "long" long
@@ -3890,7 +3909,6 @@ obj3 =
38903909 |> Jpipe.required "newtonsoft" newtonsoft
38913910 |> Jpipe.required "nil" nil
38923911 |> Jpipe.required "NO" no
3893- |> Jpipe.required "noexcept" noexcept
38943912 |> Jpipe.required "if" purpleIf
38953913 |> Jpipe.required "import" purpleImport
38963914 |> Jpipe.required "in" purpleIn
@@ -3945,6 +3963,7 @@ encodeObj3 x =
39453963 , ("lazy", encodeLazy x.lazy)
39463964 , ("left", encodeLeft x.left)
39473965 , ("list", encodeListClass x.list)
3966+ , ("LocalDate", encodeLocalDate x.localDate)
39483967 , ("Locale", encodeLocale x.locale)
39493968 , ("lock", encodeLock x.lock)
39503969 , ("long", encodeLong x.long)
@@ -3959,7 +3978,6 @@ encodeObj3 x =
39593978 , ("newtonsoft", encodeNewtonsoft x.newtonsoft)
39603979 , ("nil", encodeNil x.nil)
39613980 , ("NO", encodeNo x.no)
3962- , ("noexcept", encodeNoexcept x.noexcept)
39633981 , ("if", encodeIf x.obj3If)
39643982 , ("import", encodeImport x.obj3Import)
39653983 , ("in", encodeIn x.obj3In)
@@ -4431,6 +4449,17 @@ encodeListClass x =
44314449 [ ("list", Jenc.int x.list)
44324450 ]
44334451
4452+localDate : Jdec.Decoder LocalDate
4453+localDate =
4454+ Jdec.succeed LocalDate
4455+ |> Jpipe.required "LocalDate" Jdec.int
4456+
4457+encodeLocalDate : LocalDate -> Jenc.Value
4458+encodeLocalDate x =
4459+ Jenc.object
4460+ [ ("LocalDate", Jenc.int x.localDate)
4461+ ]
4462+
44344463 locale : Jdec.Decoder Locale
44354464 locale =
44364465 Jdec.succeed Locale
@@ -4585,17 +4614,6 @@ encodeNo x =
45854614 [ ("NO", Jenc.int x.no)
45864615 ]
45874616
4588-noexcept : Jdec.Decoder Noexcept
4589-noexcept =
4590- Jdec.succeed Noexcept
4591- |> Jpipe.required "noexcept" Jdec.int
4592-
4593-encodeNoexcept : Noexcept -> Jenc.Value
4594-encodeNoexcept x =
4595- Jenc.object
4596- [ ("noexcept", Jenc.int x.noexcept)
4597- ]
4598-
45994617 purpleIf : Jdec.Decoder If
46004618 purpleIf =
46014619 Jdec.succeed If
@@ -4678,6 +4696,7 @@ obj4 =
46784696 Jdec.succeed Obj4
46794697 |> Jpipe.required "dummy" Jdec.int
46804698 |> Jpipe.required "noSuchMethod" noSuchMethod
4699+ |> Jpipe.required "noexcept" noexcept
46814700 |> Jpipe.required "nonatomic" nonatomic
46824701 |> Jpipe.required "None" none
46834702 |> Jpipe.required "nonlocal" nonlocal
@@ -4697,6 +4716,8 @@ obj4 =
46974716 |> Jpipe.required "protocol" protocolClass
46984717 |> Jpipe.required "object" object
46994718 |> Jpipe.required "ObjectMapper" objectMapper
4719+ |> Jpipe.required "OffsetDateTime" offsetDateTime
4720+ |> Jpipe.required "OffsetTime" offsetTime
47004721 |> Jpipe.required "oneway" oneway
47014722 |> Jpipe.required "open" open
47024723 |> Jpipe.required "operator" operator
@@ -4738,15 +4759,13 @@ obj4 =
47384759 |> Jpipe.required "runtimeType" runtimeType
47394760 |> Jpipe.required "s" s
47404761 |> Jpipe.required "sbyte" sbyte
4741- |> Jpipe.required "sealed" sealed
4742- |> Jpipe.required "SEL" sel
4743- |> Jpipe.required "select" select
47444762
47454763 encodeObj4 : Obj4 -> Jenc.Value
47464764 encodeObj4 x =
47474765 Jenc.object
47484766 [ ("dummy", Jenc.int x.dummy)
47494767 , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod)
4768+ , ("noexcept", encodeNoexcept x.noexcept)
47504769 , ("nonatomic", encodeNonatomic x.nonatomic)
47514770 , ("None", encodeNone x.none)
47524771 , ("nonlocal", encodeNonlocal x.nonlocal)
@@ -4766,6 +4785,8 @@ encodeObj4 x =
47664785 , ("protocol", encodeProtocolClass x.obj4Protocol)
47674786 , ("object", encodeObject x.object)
47684787 , ("ObjectMapper", encodeObjectMapper x.objectMapper)
4788+ , ("OffsetDateTime", encodeOffsetDateTime x.offsetDateTime)
4789+ , ("OffsetTime", encodeOffsetTime x.offsetTime)
47694790 , ("oneway", encodeOneway x.oneway)
47704791 , ("open", encodeOpen x.open)
47714792 , ("operator", encodeOperator x.operator)
@@ -4807,9 +4828,6 @@ encodeObj4 x =
48074828 , ("runtimeType", encodeRuntimeType x.runtimeType)
48084829 , ("s", encodeS x.s)
48094830 , ("sbyte", encodeSbyte x.sbyte)
4810- , ("sealed", encodeSealed x.sealed)
4811- , ("SEL", encodeSel x.sel)
4812- , ("select", encodeSelect x.select)
48134831 ]
48144832
48154833 noSuchMethod : Jdec.Decoder NoSuchMethod
@@ -4823,6 +4841,17 @@ encodeNoSuchMethod x =
48234841 [ ("noSuchMethod", Jenc.int x.noSuchMethod)
48244842 ]
48254843
4844+noexcept : Jdec.Decoder Noexcept
4845+noexcept =
4846+ Jdec.succeed Noexcept
4847+ |> Jpipe.required "noexcept" Jdec.int
4848+
4849+encodeNoexcept : Noexcept -> Jenc.Value
4850+encodeNoexcept x =
4851+ Jenc.object
4852+ [ ("noexcept", Jenc.int x.noexcept)
4853+ ]
4854+
48264855 nonatomic : Jdec.Decoder Nonatomic
48274856 nonatomic =
48284857 Jdec.succeed Nonatomic
@@ -5032,6 +5061,28 @@ encodeObjectMapper x =
50325061 [ ("ObjectMapper", Jenc.int x.objectMapper)
50335062 ]
50345063
5064+offsetDateTime : Jdec.Decoder OffsetDateTime
5065+offsetDateTime =
5066+ Jdec.succeed OffsetDateTime
5067+ |> Jpipe.required "OffsetDateTime" Jdec.int
5068+
5069+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
5070+encodeOffsetDateTime x =
5071+ Jenc.object
5072+ [ ("OffsetDateTime", Jenc.int x.offsetDateTime)
5073+ ]
5074+
5075+offsetTime : Jdec.Decoder OffsetTime
5076+offsetTime =
5077+ Jdec.succeed OffsetTime
5078+ |> Jpipe.required "OffsetTime" Jdec.int
5079+
5080+encodeOffsetTime : OffsetTime -> Jenc.Value
5081+encodeOffsetTime x =
5082+ Jenc.object
5083+ [ ("OffsetTime", Jenc.int x.offsetTime)
5084+ ]
5085+
50355086 oneway : Jdec.Decoder Oneway
50365087 oneway =
50375088 Jdec.succeed Oneway
@@ -5483,39 +5534,6 @@ encodeSbyte x =
54835534 [ ("sbyte", Jenc.int x.sbyte)
54845535 ]
54855536
5486-sealed : Jdec.Decoder Sealed
5487-sealed =
5488- Jdec.succeed Sealed
5489- |> Jpipe.required "sealed" Jdec.int
5490-
5491-encodeSealed : Sealed -> Jenc.Value
5492-encodeSealed x =
5493- Jenc.object
5494- [ ("sealed", Jenc.int x.sealed)
5495- ]
5496-
5497-sel : Jdec.Decoder Sel
5498-sel =
5499- Jdec.succeed Sel
5500- |> Jpipe.required "SEL" Jdec.int
5501-
5502-encodeSel : Sel -> Jenc.Value
5503-encodeSel x =
5504- Jenc.object
5505- [ ("SEL", Jenc.int x.sel)
5506- ]
5507-
5508-select : Jdec.Decoder Select
5509-select =
5510- Jdec.succeed Select
5511- |> Jpipe.required "select" Jdec.int
5512-
5513-encodeSelect : Select -> Jenc.Value
5514-encodeSelect x =
5515- Jenc.object
5516- [ ("select", Jenc.int x.select)
5517- ]
5518-
55195537 obj5 : Jdec.Decoder Obj5
55205538 obj5 =
55215539 Jdec.succeed Obj5
@@ -5528,6 +5546,9 @@ obj5 =
55285546 |> Jpipe.required "Type" purpleType
55295547 |> Jpipe.required "PrimitiveKind" primitiveKind
55305548 |> Jpipe.required "type" typeClass
5549+ |> Jpipe.required "sealed" sealed
5550+ |> Jpipe.required "SEL" sel
5551+ |> Jpipe.required "select" select
55315552 |> Jpipe.required "Self" self
55325553 |> Jpipe.required "Sendable" sendable
55335554 |> Jpipe.required "SerialDescriptor" serialDescriptor
@@ -5580,10 +5601,7 @@ obj5 =
55805601 |> Jpipe.required "undefined" undefined
55815602 |> Jpipe.required "union" union
55825603 |> Jpipe.required "unowned" unowned
5583- |> Jpipe.required "unsafe" unsafe
5584- |> Jpipe.required "unsigned" unsigned
55855604 |> Jpipe.required "UseSerializers" useSerializers
5586- |> Jpipe.required "ushort" ushort
55875605
55885606 encodeObj5 : Obj5 -> Jenc.Value
55895607 encodeObj5 x =
@@ -5597,6 +5615,9 @@ encodeObj5 x =
55975615 , ("Type", encodeType x.obj5Type)
55985616 , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind)
55995617 , ("type", encodeTypeClass x.purpleType)
5618+ , ("sealed", encodeSealed x.sealed)
5619+ , ("SEL", encodeSel x.sel)
5620+ , ("select", encodeSelect x.select)
56005621 , ("Self", encodeSelf x.self)
56015622 , ("Sendable", encodeSendable x.sendable)
56025623 , ("SerialDescriptor", encodeSerialDescriptor x.serialDescriptor)
@@ -5649,10 +5670,7 @@ encodeObj5 x =
56495670 , ("undefined", encodeUndefined x.undefined)
56505671 , ("union", encodeUnion x.union)
56515672 , ("unowned", encodeUnowned x.unowned)
5652- , ("unsafe", encodeUnsafe x.unsafe)
5653- , ("unsigned", encodeUnsigned x.unsigned)
56545673 , ("UseSerializers", encodeUseSerializers x.useSerializers)
5655- , ("ushort", encodeUshort x.ushort)
56565674 ]
56575675
56585676 kSerializer : Jdec.Decoder KSerializer
@@ -5743,6 +5761,39 @@ encodeTypeClass x =
57435761 [ ("type", Jenc.int x.typeType)
57445762 ]
57455763
5764+sealed : Jdec.Decoder Sealed
5765+sealed =
5766+ Jdec.succeed Sealed
5767+ |> Jpipe.required "sealed" Jdec.int
5768+
5769+encodeSealed : Sealed -> Jenc.Value
5770+encodeSealed x =
5771+ Jenc.object
5772+ [ ("sealed", Jenc.int x.sealed)
5773+ ]
5774+
5775+sel : Jdec.Decoder Sel
5776+sel =
5777+ Jdec.succeed Sel
5778+ |> Jpipe.required "SEL" Jdec.int
5779+
5780+encodeSel : Sel -> Jenc.Value
5781+encodeSel x =
5782+ Jenc.object
5783+ [ ("SEL", Jenc.int x.sel)
5784+ ]
5785+
5786+select : Jdec.Decoder Select
5787+select =
5788+ Jdec.succeed Select
5789+ |> Jpipe.required "select" Jdec.int
5790+
5791+encodeSelect : Select -> Jenc.Value
5792+encodeSelect x =
5793+ Jenc.object
5794+ [ ("select", Jenc.int x.select)
5795+ ]
5796+
57465797 self : Jdec.Decoder Self
57475798 self =
57485799 Jdec.succeed Self
@@ -6315,28 +6366,6 @@ encodeUnowned x =
63156366 [ ("unowned", Jenc.int x.unowned)
63166367 ]
63176368
6318-unsafe : Jdec.Decoder Unsafe
6319-unsafe =
6320- Jdec.succeed Unsafe
6321- |> Jpipe.required "unsafe" Jdec.int
6322-
6323-encodeUnsafe : Unsafe -> Jenc.Value
6324-encodeUnsafe x =
6325- Jenc.object
6326- [ ("unsafe", Jenc.int x.unsafe)
6327- ]
6328-
6329-unsigned : Jdec.Decoder Unsigned
6330-unsigned =
6331- Jdec.succeed Unsigned
6332- |> Jpipe.required "unsigned" Jdec.int
6333-
6334-encodeUnsigned : Unsigned -> Jenc.Value
6335-encodeUnsigned x =
6336- Jenc.object
6337- [ ("unsigned", Jenc.int x.unsigned)
6338- ]
6339-
63406369 useSerializers : Jdec.Decoder UseSerializers
63416370 useSerializers =
63426371 Jdec.succeed UseSerializers
@@ -6348,22 +6377,14 @@ encodeUseSerializers x =
63486377 [ ("UseSerializers", Jenc.int x.useSerializers)
63496378 ]
63506379
6351-ushort : Jdec.Decoder Ushort
6352-ushort =
6353- Jdec.succeed Ushort
6354- |> Jpipe.required "ushort" Jdec.int
6355-
6356-encodeUshort : Ushort -> Jenc.Value
6357-encodeUshort x =
6358- Jenc.object
6359- [ ("ushort", Jenc.int x.ushort)
6360- ]
6361-
63626380 obj6 : Jdec.Decoder Obj6
63636381 obj6 =
63646382 Jdec.succeed Obj6
63656383 |> Jpipe.required "dummy" Jdec.int
63666384 |> Jpipe.required "where" purpleWhere
6385+ |> Jpipe.required "unsafe" unsafe
6386+ |> Jpipe.required "unsigned" unsigned
6387+ |> Jpipe.required "ushort" ushort
63676388 |> Jpipe.required "using" using
63686389 |> Jpipe.required "Utf8JsonReader" utf8JSONReader
63696390 |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter
@@ -6387,6 +6408,9 @@ encodeObj6 x =
63876408 Jenc.object
63886409 [ ("dummy", Jenc.int x.dummy)
63896410 , ("where", encodeWhere x.obj6Where)
6411+ , ("unsafe", encodeUnsafe x.unsafe)
6412+ , ("unsigned", encodeUnsigned x.unsigned)
6413+ , ("ushort", encodeUshort x.ushort)
63906414 , ("using", encodeUsing x.using)
63916415 , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
63926416 , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter)
@@ -6417,6 +6441,39 @@ encodeWhere x =
64176441 [ ("where", Jenc.int x.whereWhere)
64186442 ]
64196443
6444+unsafe : Jdec.Decoder Unsafe
6445+unsafe =
6446+ Jdec.succeed Unsafe
6447+ |> Jpipe.required "unsafe" Jdec.int
6448+
6449+encodeUnsafe : Unsafe -> Jenc.Value
6450+encodeUnsafe x =
6451+ Jenc.object
6452+ [ ("unsafe", Jenc.int x.unsafe)
6453+ ]
6454+
6455+unsigned : Jdec.Decoder Unsigned
6456+unsigned =
6457+ Jdec.succeed Unsigned
6458+ |> Jpipe.required "unsigned" Jdec.int
6459+
6460+encodeUnsigned : Unsigned -> Jenc.Value
6461+encodeUnsigned x =
6462+ Jenc.object
6463+ [ ("unsigned", Jenc.int x.unsigned)
6464+ ]
6465+
6466+ushort : Jdec.Decoder Ushort
6467+ushort =
6468+ Jdec.succeed Ushort
6469+ |> Jpipe.required "ushort" Jdec.int
6470+
6471+encodeUshort : Ushort -> Jenc.Value
6472+encodeUshort x =
6473+ Jenc.object
6474+ [ ("ushort", Jenc.int x.ushort)
6475+ ]
6476+
64206477 using : Jdec.Decoder Using
64216478 using =
64226479 Jdec.succeed Using
Mflowdefault / TopLevel.js+90 −63
@@ -687,6 +687,7 @@ export type Obj3 = {
687687 JsonParser: JSONParser;
688688 JsonReader: JSONReader;
689689 JsonTokenType: JSONTokenType;
690+ LocalDate: LocalDate;
690691 Locale: Locale;
691692 MapEntry: MapEntry;
692693 NO: No;
@@ -736,7 +737,6 @@ export type Obj3 = {
736737 new: New;
737738 newtonsoft: Newtonsoft;
738739 nil: Nil;
739- noexcept: Noexcept;
740740 };
741741
742742 export type Hashable = {
@@ -799,6 +799,10 @@ export type JSONTokenType = {
799799 JsonTokenType: number;
800800 };
801801
802+export type LocalDate = {
803+ LocalDate: number;
804+};
805+
802806 export type Locale = {
803807 Locale: number;
804808 };
@@ -991,10 +995,6 @@ export type Nil = {
991995 nil: number;
992996 };
993997
994-export type Noexcept = {
995- noexcept: number;
996-};
997-
998998 export type Obj4 = {
999999 NSError: NSError;
10001000 NSObject: NSObject;
@@ -1002,11 +1002,13 @@ export type Obj4 = {
10021002 NULL: Null;
10031003 None: None;
10041004 ObjectMapper: ObjectMapper;
1005+ OffsetDateTime: OffsetDateTime;
1006+ OffsetTime: OffsetTime;
10051007 Protocol: Protocol;
10061008 RegExp: RegExpClass;
1007- SEL: Sel;
10081009 dummy: number;
10091010 noSuchMethod: NoSuchMethod;
1011+ noexcept: Noexcept;
10101012 nonatomic: Nonatomic;
10111013 none: NoneClass;
10121014 nonlocal: Nonlocal;
@@ -1059,8 +1061,6 @@ export type Obj4 = {
10591061 runtimeType: RuntimeType;
10601062 s: S;
10611063 sbyte: Sbyte;
1062- sealed: Sealed;
1063- select: Select;
10641064 };
10651065
10661066 export type NSError = {
@@ -1087,6 +1087,14 @@ export type ObjectMapper = {
10871087 ObjectMapper: number;
10881088 };
10891089
1090+export type OffsetDateTime = {
1091+ OffsetDateTime: number;
1092+};
1093+
1094+export type OffsetTime = {
1095+ OffsetTime: number;
1096+};
1097+
10901098 export type Protocol = {
10911099 Protocol: number;
10921100 };
@@ -1095,14 +1103,14 @@ export type RegExpClass = {
10951103 RegExp: string;
10961104 };
10971105
1098-export type Sel = {
1099- SEL: number;
1100-};
1101-
11021106 export type NoSuchMethod = {
11031107 noSuchMethod: number;
11041108 };
11051109
1110+export type Noexcept = {
1111+ noexcept: number;
1112+};
1113+
11061114 export type Nonatomic = {
11071115 nonatomic: number;
11081116 };
@@ -1311,17 +1319,10 @@ export type Sbyte = {
13111319 sbyte: number;
13121320 };
13131321
1314-export type Sealed = {
1315- sealed: number;
1316-};
1317-
1318-export type Select = {
1319- select: number;
1320-};
1321-
13221322 export type Obj5 = {
13231323 KSerializer: KSerializer;
13241324 PrimitiveKind: PrimitiveKind;
1325+ SEL: Sel;
13251326 Self: Self;
13261327 Sendable: Sendable;
13271328 SerialDescriptor: SerialDescriptor;
@@ -1339,6 +1340,8 @@ export type Obj5 = {
13391340 Type: Type;
13401341 UseSerializers: UseSerializers;
13411342 dummy: number;
1343+ sealed: Sealed;
1344+ select: Select;
13421345 self: SelfClass;
13431346 serialize: Serialize;
13441347 set: Set;
@@ -1382,9 +1385,6 @@ export type Obj5 = {
13821385 undefined: Undefined;
13831386 union: Union;
13841387 unowned: Unowned;
1385- unsafe: Unsafe;
1386- unsigned: Unsigned;
1387- ushort: Ushort;
13881388 };
13891389
13901390 export type KSerializer = {
@@ -1395,6 +1395,10 @@ export type PrimitiveKind = {
13951395 PrimitiveKind: number;
13961396 };
13971397
1398+export type Sel = {
1399+ SEL: number;
1400+};
1401+
13981402 export type Self = {
13991403 Self: number;
14001404 };
@@ -1459,6 +1463,14 @@ export type UseSerializers = {
14591463 UseSerializers: number;
14601464 };
14611465
1466+export type Sealed = {
1467+ sealed: number;
1468+};
1469+
1470+export type Select = {
1471+ select: number;
1472+};
1473+
14621474 export type SelfClass = {
14631475 self: number;
14641476 };
@@ -1631,24 +1643,15 @@ export type Unowned = {
16311643 unowned: number;
16321644 };
16331645
1634-export type Unsafe = {
1635- unsafe: number;
1636-};
1637-
1638-export type Unsigned = {
1639- unsigned: number;
1640-};
1641-
1642-export type Ushort = {
1643- ushort: number;
1644-};
1645-
16461646 export type Obj6 = {
16471647 UUID: UUID;
16481648 Utf8JsonReader: Utf8JSONReader;
16491649 Utf8JsonWriter: Utf8JSONWriter;
16501650 YES: Yes;
16511651 dummy: number;
1652+ unsafe: Unsafe;
1653+ unsigned: Unsigned;
1654+ ushort: Ushort;
16521655 using: Using;
16531656 var: Var;
16541657 virtual: Virtual;
@@ -1681,6 +1684,18 @@ export type Yes = {
16811684 YES: number;
16821685 };
16831686
1687+export type Unsafe = {
1688+ unsafe: number;
1689+};
1690+
1691+export type Unsigned = {
1692+ unsigned: number;
1693+};
1694+
1695+export type Ushort = {
1696+ ushort: number;
1697+};
1698+
16841699 export type Using = {
16851700 using: number;
16861701 };
@@ -2466,6 +2481,7 @@ const typeMap: any = {
24662481 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24672482 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24682483 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2484+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24692485 { json: "Locale", js: "Locale", typ: r("Locale") },
24702486 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24712487 { json: "NO", js: "NO", typ: r("No") },
@@ -2515,7 +2531,6 @@ const typeMap: any = {
25152531 { json: "new", js: "new", typ: r("New") },
25162532 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
25172533 { json: "nil", js: "nil", typ: r("Nil") },
2518- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
25192534 ], false),
25202535 "Hashable": o([
25212536 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2562,6 +2577,9 @@ const typeMap: any = {
25622577 "JSONTokenType": o([
25632578 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25642579 ], false),
2580+ "LocalDate": o([
2581+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2582+ ], false),
25652583 "Locale": o([
25662584 { json: "Locale", js: "Locale", typ: i(0) },
25672585 ], false),
@@ -2706,9 +2724,6 @@ const typeMap: any = {
27062724 "Nil": o([
27072725 { json: "nil", js: "nil", typ: i(0) },
27082726 ], false),
2709- "Noexcept": o([
2710- { json: "noexcept", js: "noexcept", typ: i(0) },
2711- ], false),
27122727 "Obj4": o([
27132728 { json: "NSError", js: "NSError", typ: r("NSError") },
27142729 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2716,11 +2731,13 @@ const typeMap: any = {
27162731 { json: "NULL", js: "NULL", typ: r("Null") },
27172732 { json: "None", js: "None", typ: r("None") },
27182733 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2734+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2735+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
27192736 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
27202737 { json: "RegExp", js: "RegExp", typ: r("RegExpClass") },
2721- { json: "SEL", js: "SEL", typ: r("Sel") },
27222738 { json: "dummy", js: "dummy", typ: i(0) },
27232739 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2740+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27242741 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
27252742 { json: "none", js: "none", typ: r("NoneClass") },
27262743 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2773,8 +2790,6 @@ const typeMap: any = {
27732790 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
27742791 { json: "s", js: "s", typ: r("S") },
27752792 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2776- { json: "sealed", js: "sealed", typ: r("Sealed") },
2777- { json: "select", js: "select", typ: r("Select") },
27782793 ], false),
27792794 "NSError": o([
27802795 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2794,18 +2809,24 @@ const typeMap: any = {
27942809 "ObjectMapper": o([
27952810 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
27962811 ], false),
2812+ "OffsetDateTime": o([
2813+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2814+ ], false),
2815+ "OffsetTime": o([
2816+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2817+ ], false),
27972818 "Protocol": o([
27982819 { json: "Protocol", js: "Protocol", typ: i(0) },
27992820 ], false),
28002821 "RegExpClass": o([
28012822 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28022823 ], false),
2803- "Sel": o([
2804- { json: "SEL", js: "SEL", typ: i(0) },
2805- ], false),
28062824 "NoSuchMethod": o([
28072825 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
28082826 ], false),
2827+ "Noexcept": o([
2828+ { json: "noexcept", js: "noexcept", typ: i(0) },
2829+ ], false),
28092830 "Nonatomic": o([
28102831 { json: "nonatomic", js: "nonatomic", typ: i(0) },
28112832 ], false),
@@ -2962,15 +2983,10 @@ const typeMap: any = {
29622983 "Sbyte": o([
29632984 { json: "sbyte", js: "sbyte", typ: i(0) },
29642985 ], false),
2965- "Sealed": o([
2966- { json: "sealed", js: "sealed", typ: i(0) },
2967- ], false),
2968- "Select": o([
2969- { json: "select", js: "select", typ: i(0) },
2970- ], false),
29712986 "Obj5": o([
29722987 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29732988 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
2989+ { json: "SEL", js: "SEL", typ: r("Sel") },
29742990 { json: "Self", js: "Self", typ: r("Self") },
29752991 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29762992 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -2988,6 +3004,8 @@ const typeMap: any = {
29883004 { json: "Type", js: "Type", typ: r("Type") },
29893005 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29903006 { json: "dummy", js: "dummy", typ: i(0) },
3007+ { json: "sealed", js: "sealed", typ: r("Sealed") },
3008+ { json: "select", js: "select", typ: r("Select") },
29913009 { json: "self", js: "self", typ: r("SelfClass") },
29923010 { json: "serialize", js: "serialize", typ: r("Serialize") },
29933011 { json: "set", js: "set", typ: r("Set") },
@@ -3031,9 +3049,6 @@ const typeMap: any = {
30313049 { json: "undefined", js: "undefined", typ: r("Undefined") },
30323050 { json: "union", js: "union", typ: r("Union") },
30333051 { json: "unowned", js: "unowned", typ: r("Unowned") },
3034- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3035- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3036- { json: "ushort", js: "ushort", typ: r("Ushort") },
30373052 ], false),
30383053 "KSerializer": o([
30393054 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3041,6 +3056,9 @@ const typeMap: any = {
30413056 "PrimitiveKind": o([
30423057 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30433058 ], false),
3059+ "Sel": o([
3060+ { json: "SEL", js: "SEL", typ: i(0) },
3061+ ], false),
30443062 "Self": o([
30453063 { json: "Self", js: "Self", typ: i(0) },
30463064 ], false),
@@ -3089,6 +3107,12 @@ const typeMap: any = {
30893107 "UseSerializers": o([
30903108 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30913109 ], false),
3110+ "Sealed": o([
3111+ { json: "sealed", js: "sealed", typ: i(0) },
3112+ ], false),
3113+ "Select": o([
3114+ { json: "select", js: "select", typ: i(0) },
3115+ ], false),
30923116 "SelfClass": o([
30933117 { json: "self", js: "self", typ: i(0) },
30943118 ], false),
@@ -3218,21 +3242,15 @@ const typeMap: any = {
32183242 "Unowned": o([
32193243 { json: "unowned", js: "unowned", typ: i(0) },
32203244 ], false),
3221- "Unsafe": o([
3222- { json: "unsafe", js: "unsafe", typ: i(0) },
3223- ], false),
3224- "Unsigned": o([
3225- { json: "unsigned", js: "unsigned", typ: i(0) },
3226- ], false),
3227- "Ushort": o([
3228- { json: "ushort", js: "ushort", typ: i(0) },
3229- ], false),
32303245 "Obj6": o([
32313246 { json: "UUID", js: "UUID", typ: r("UUID") },
32323247 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32333248 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32343249 { json: "YES", js: "YES", typ: r("Yes") },
32353250 { json: "dummy", js: "dummy", typ: i(0) },
3251+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3252+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3253+ { json: "ushort", js: "ushort", typ: r("Ushort") },
32363254 { json: "using", js: "using", typ: r("Using") },
32373255 { json: "var", js: "var", typ: r("Var") },
32383256 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -3260,6 +3278,15 @@ const typeMap: any = {
32603278 "Yes": o([
32613279 { json: "YES", js: "YES", typ: i(0) },
32623280 ], false),
3281+ "Unsafe": o([
3282+ { json: "unsafe", js: "unsafe", typ: i(0) },
3283+ ], false),
3284+ "Unsigned": o([
3285+ { json: "unsigned", js: "unsigned", typ: i(0) },
3286+ ], false),
3287+ "Ushort": o([
3288+ { json: "ushort", js: "ushort", typ: i(0) },
3289+ ], false),
32633290 "Using": o([
32643291 { json: "using", js: "using", typ: i(0) },
32653292 ], false),
Mgolangdefault / quicktype.go+50 −35
@@ -728,6 +728,7 @@ type Obj3 struct {
728728 Left Left `json:"left"`
729729 Let Let `json:"let"`
730730 List List `json:"list"`
731+ LocalDate LocalDate `json:"LocalDate"`
731732 Locale Locale `json:"Locale"`
732733 Lock Lock `json:"lock"`
733734 Long Long `json:"long"`
@@ -743,7 +744,6 @@ type Obj3 struct {
743744 Newtonsoft Newtonsoft `json:"newtonsoft"`
744745 Nil Nil `json:"nil"`
745746 No No `json:"NO"`
746- Noexcept Noexcept `json:"noexcept"`
747747 }
748748
749749 type Guard struct {
@@ -938,6 +938,10 @@ type List struct {
938938 List int64 `json:"list"`
939939 }
940940
941+type LocalDate struct {
942+ LocalDate int64 `json:"LocalDate"`
943+}
944+
941945 type Locale struct {
942946 Locale int64 `json:"Locale"`
943947 }
@@ -998,16 +1002,13 @@ type No struct {
9981002 No int64 `json:"NO"`
9991003 }
10001004
1001-type Noexcept struct {
1002- Noexcept int64 `json:"noexcept"`
1003-}
1004-
10051005 type Obj4 struct {
10061006 Dummy int64 `json:"dummy"`
10071007 NSError NSError `json:"NSError"`
10081008 NSObject NSObject `json:"NSObject"`
10091009 NSString NSString `json:"NSString"`
10101010 NoSuchMethod NoSuchMethod `json:"noSuchMethod"`
1011+ Noexcept Noexcept `json:"noexcept"`
10111012 Nonatomic Nonatomic `json:"nonatomic"`
10121013 None None `json:"None"`
10131014 Nonlocal Nonlocal `json:"nonlocal"`
@@ -1023,6 +1024,8 @@ type Obj4 struct {
10231024 Object Object `json:"object"`
10241025 ObjectMapper ObjectMapper `json:"ObjectMapper"`
10251026 Of Of `json:"of"`
1027+ OffsetDateTime OffsetDateTime `json:"OffsetDateTime"`
1028+ OffsetTime OffsetTime `json:"OffsetTime"`
10261029 Oneway Oneway `json:"oneway"`
10271030 Open Open `json:"open"`
10281031 Operator Operator `json:"operator"`
@@ -1065,9 +1068,6 @@ type Obj4 struct {
10651068 RuntimeType RuntimeType `json:"runtimeType"`
10661069 S S `json:"s"`
10671070 Sbyte Sbyte `json:"sbyte"`
1068- Sealed Sealed `json:"sealed"`
1069- Sel Sel `json:"SEL"`
1070- Select Select `json:"select"`
10711071 }
10721072
10731073 type NSError struct {
@@ -1086,6 +1086,10 @@ type NoSuchMethod struct {
10861086 NoSuchMethod int64 `json:"noSuchMethod"`
10871087 }
10881088
1089+type Noexcept struct {
1090+ Noexcept int64 `json:"noexcept"`
1091+}
1092+
10891093 type Nonatomic struct {
10901094 Nonatomic int64 `json:"nonatomic"`
10911095 }
@@ -1146,6 +1150,14 @@ type Of struct {
11461150 Of int64 `json:"of"`
11471151 }
11481152
1153+type OffsetDateTime struct {
1154+ OffsetDateTime int64 `json:"OffsetDateTime"`
1155+}
1156+
1157+type OffsetTime struct {
1158+ OffsetTime int64 `json:"OffsetTime"`
1159+}
1160+
11491161 type Oneway struct {
11501162 Oneway int64 `json:"oneway"`
11511163 }
@@ -1314,18 +1326,6 @@ type Sbyte struct {
13141326 Sbyte int64 `json:"sbyte"`
13151327 }
13161328
1317-type Sealed struct {
1318- Sealed int64 `json:"sealed"`
1319-}
1320-
1321-type Sel struct {
1322- Sel int64 `json:"SEL"`
1323-}
1324-
1325-type Select struct {
1326- Select int64 `json:"select"`
1327-}
1328-
13291329 type Obj5 struct {
13301330 Dummy int64 `json:"dummy"`
13311331 KSerializer KSerializer `json:"KSerializer"`
@@ -1333,6 +1333,9 @@ type Obj5 struct {
13331333 Obj5True TrueClass `json:"true"`
13341334 Obj5Type TypeClass `json:"type"`
13351335 PrimitiveKind PrimitiveKind `json:"PrimitiveKind"`
1336+ Sealed Sealed `json:"sealed"`
1337+ Sel Sel `json:"SEL"`
1338+ Select Select `json:"select"`
13361339 Self Self `json:"Self"`
13371340 Sendable Sendable `json:"Sendable"`
13381341 SerialDescriptor SerialDescriptor `json:"SerialDescriptor"`
@@ -1388,10 +1391,7 @@ type Obj5 struct {
13881391 Undefined Undefined `json:"undefined"`
13891392 Union Union `json:"union"`
13901393 Unowned Unowned `json:"unowned"`
1391- Unsafe Unsafe `json:"unsafe"`
1392- Unsigned Unsigned `json:"unsigned"`
13931394 UseSerializers UseSerializers `json:"UseSerializers"`
1394- Ushort Ushort `json:"ushort"`
13951395 }
13961396
13971397 type KSerializer struct {
@@ -1414,6 +1414,18 @@ type PrimitiveKind struct {
14141414 PrimitiveKind int64 `json:"PrimitiveKind"`
14151415 }
14161416
1417+type Sealed struct {
1418+ Sealed int64 `json:"sealed"`
1419+}
1420+
1421+type Sel struct {
1422+ Sel int64 `json:"SEL"`
1423+}
1424+
1425+type Select struct {
1426+ Select int64 `json:"select"`
1427+}
1428+
14171429 type Self struct {
14181430 Self int64 `json:"Self"`
14191431 }
@@ -1634,25 +1646,16 @@ type Unowned struct {
16341646 Unowned int64 `json:"unowned"`
16351647 }
16361648
1637-type Unsafe struct {
1638- Unsafe int64 `json:"unsafe"`
1639-}
1640-
1641-type Unsigned struct {
1642- Unsigned int64 `json:"unsigned"`
1643-}
1644-
16451649 type UseSerializers struct {
16461650 UseSerializers int64 `json:"UseSerializers"`
16471651 }
16481652
1649-type Ushort struct {
1650- Ushort int64 `json:"ushort"`
1651-}
1652-
16531653 type Obj6 struct {
16541654 Dummy int64 `json:"dummy"`
16551655 UUID UUID `json:"UUID"`
1656+ Unsafe Unsafe `json:"unsafe"`
1657+ Unsigned Unsigned `json:"unsigned"`
1658+ Ushort Ushort `json:"ushort"`
16561659 Using Using `json:"using"`
16571660 Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
16581661 Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"`
@@ -1676,6 +1679,18 @@ type UUID struct {
16761679 UUID int64 `json:"UUID"`
16771680 }
16781681
1682+type Unsafe struct {
1683+ Unsafe int64 `json:"unsafe"`
1684+}
1685+
1686+type Unsigned struct {
1687+ Unsigned int64 `json:"unsigned"`
1688+}
1689+
1690+type Ushort struct {
1691+ Ushort int64 `json:"ushort"`
1692+}
1693+
16791694 type Using struct {
16801695 Using int64 `json:"using"`
16811696 }
Mhaskelldefault / QuickType.hs+184 −130
@@ -176,6 +176,7 @@ module QuickType
176176 , Lazy (..)
177177 , LeftClass (..)
178178 , List (..)
179+ , LocalDate (..)
179180 , Locale (..)
180181 , Lock (..)
181182 , Long (..)
@@ -190,7 +191,6 @@ module QuickType
190191 , Newtonsoft (..)
191192 , Nil (..)
192193 , No (..)
193- , Noexcept (..)
194194 , ID (..)
195195 , If (..)
196196 , Import (..)
@@ -200,6 +200,7 @@ module QuickType
200200 , Module (..)
201201 , Obj4 (..)
202202 , NoSuchMethod (..)
203+ , Noexcept (..)
203204 , Nonatomic (..)
204205 , None (..)
205206 , Nonlocal (..)
@@ -218,6 +219,8 @@ module QuickType
218219 , ProtocolClass (..)
219220 , ObjectClass (..)
220221 , ObjectMapper (..)
222+ , OffsetDateTime (..)
223+ , OffsetTime (..)
221224 , Oneway (..)
222225 , Open (..)
223226 , Operator (..)
@@ -260,9 +263,6 @@ module QuickType
260263 , RuntimeType (..)
261264 , S (..)
262265 , Sbyte (..)
263- , Sealed (..)
264- , Sel (..)
265- , Select (..)
266266 , Obj5 (..)
267267 , KSerializer (..)
268268 , SelfClass (..)
@@ -271,6 +271,9 @@ module QuickType
271271 , Type (..)
272272 , PrimitiveKind (..)
273273 , TypeClass (..)
274+ , Sealed (..)
275+ , Sel (..)
276+ , Select (..)
274277 , Self (..)
275278 , Sendable (..)
276279 , SerialDescriptor (..)
@@ -324,12 +327,12 @@ module QuickType
324327 , Undefined (..)
325328 , Union (..)
326329 , Unowned (..)
327- , Unsafe (..)
328- , Unsigned (..)
329330 , UseSerializers (..)
330- , Ushort (..)
331331 , Obj6 (..)
332332 , Where (..)
333+ , Unsafe (..)
334+ , Unsigned (..)
335+ , Ushort (..)
333336 , Using (..)
334337 , Utf8JSONReader (..)
335338 , Utf8JSONWriter (..)
@@ -1064,6 +1067,7 @@ data Obj3 = Obj3
10641067 , lazyObj3 :: Lazy
10651068 , leftObj3 :: LeftClass
10661069 , listObj3 :: List
1070+ , localDateObj3 :: LocalDate
10671071 , localeObj3 :: Locale
10681072 , lockObj3 :: Lock
10691073 , longObj3 :: Long
@@ -1078,7 +1082,6 @@ data Obj3 = Obj3
10781082 , newtonsoftObj3 :: Newtonsoft
10791083 , nilObj3 :: Nil
10801084 , noObj3 :: No
1081- , noexceptObj3 :: Noexcept
10821085 , obj3IDObj3 :: ID
10831086 , obj3IfObj3 :: If
10841087 , obj3ImportObj3 :: Import
@@ -1256,6 +1259,10 @@ data List = List
12561259 { listList :: Int
12571260 } deriving (Show)
12581261
1262+data LocalDate = LocalDate
1263+ { localDateLocalDate :: Int
1264+ } deriving (Show)
1265+
12591266 data Locale = Locale
12601267 { localeLocale :: Int
12611268 } deriving (Show)
@@ -1312,10 +1319,6 @@ data No = No
13121319 { noNo :: Int
13131320 } deriving (Show)
13141321
1315-data Noexcept = Noexcept
1316- { noexceptNoexcept :: Int
1317- } deriving (Show)
1318-
13191322 data ID = ID
13201323 { idIDID :: Int
13211324 } deriving (Show)
@@ -1347,6 +1350,7 @@ data Module = Module
13471350 data Obj4 = Obj4
13481351 { dummyObj4 :: Int
13491352 , noSuchMethodObj4 :: NoSuchMethod
1353+ , noexceptObj4 :: Noexcept
13501354 , nonatomicObj4 :: Nonatomic
13511355 , noneObj4 :: None
13521356 , nonlocalObj4 :: Nonlocal
@@ -1365,6 +1369,8 @@ data Obj4 = Obj4
13651369 , obj4ProtocolObj4 :: ProtocolClass
13661370 , objectObj4 :: ObjectClass
13671371 , objectMapperObj4 :: ObjectMapper
1372+ , offsetDateTimeObj4 :: OffsetDateTime
1373+ , offsetTimeObj4 :: OffsetTime
13681374 , onewayObj4 :: Oneway
13691375 , openObj4 :: Open
13701376 , operatorObj4 :: Operator
@@ -1407,15 +1413,16 @@ data Obj4 = Obj4
14071413 , runtimeTypeObj4 :: RuntimeType
14081414 , sObj4 :: S
14091415 , sbyteObj4 :: Sbyte
1410- , sealedObj4 :: Sealed
1411- , selObj4 :: Sel
1412- , selectObj4 :: Select
14131416 } deriving (Show)
14141417
14151418 data NoSuchMethod = NoSuchMethod
14161419 { noSuchMethodNoSuchMethod :: Int
14171420 } deriving (Show)
14181421
1422+data Noexcept = Noexcept
1423+ { noexceptNoexcept :: Int
1424+ } deriving (Show)
1425+
14191426 data Nonatomic = Nonatomic
14201427 { nonatomicNonatomic :: Int
14211428 } deriving (Show)
@@ -1488,6 +1495,14 @@ data ObjectMapper = ObjectMapper
14881495 { objectMapperObjectMapper :: Int
14891496 } deriving (Show)
14901497
1498+data OffsetDateTime = OffsetDateTime
1499+ { offsetDateTimeOffsetDateTime :: Int
1500+ } deriving (Show)
1501+
1502+data OffsetTime = OffsetTime
1503+ { offsetTimeOffsetTime :: Int
1504+ } deriving (Show)
1505+
14911506 data Oneway = Oneway
14921507 { onewayOneway :: Int
14931508 } deriving (Show)
@@ -1656,18 +1671,6 @@ data Sbyte = Sbyte
16561671 { sbyteSbyte :: Int
16571672 } deriving (Show)
16581673
1659-data Sealed = Sealed
1660- { sealedSealed :: Int
1661- } deriving (Show)
1662-
1663-data Sel = Sel
1664- { selSel :: Int
1665- } deriving (Show)
1666-
1667-data Select = Select
1668- { selectSelect :: Int
1669- } deriving (Show)
1670-
16711674 data Obj5 = Obj5
16721675 { dummyObj5 :: Int
16731676 , kSerializerObj5 :: KSerializer
@@ -1677,6 +1680,9 @@ data Obj5 = Obj5
16771680 , obj5TypeObj5 :: Type
16781681 , primitiveKindObj5 :: PrimitiveKind
16791682 , purpleTypeObj5 :: TypeClass
1683+ , sealedObj5 :: Sealed
1684+ , selObj5 :: Sel
1685+ , selectObj5 :: Select
16801686 , selfObj5 :: Self
16811687 , sendableObj5 :: Sendable
16821688 , serialDescriptorObj5 :: SerialDescriptor
@@ -1730,10 +1736,7 @@ data Obj5 = Obj5
17301736 , undefinedObj5 :: Undefined
17311737 , unionObj5 :: Union
17321738 , unownedObj5 :: Unowned
1733- , unsafeObj5 :: Unsafe
1734- , unsignedObj5 :: Unsigned
17351739 , useSerializersObj5 :: UseSerializers
1736- , ushortObj5 :: Ushort
17371740 } deriving (Show)
17381741
17391742 data KSerializer = KSerializer
@@ -1764,6 +1767,18 @@ data TypeClass = TypeClass
17641767 { typeTypeTypeClass :: Int
17651768 } deriving (Show)
17661769
1770+data Sealed = Sealed
1771+ { sealedSealed :: Int
1772+ } deriving (Show)
1773+
1774+data Sel = Sel
1775+ { selSel :: Int
1776+ } deriving (Show)
1777+
1778+data Select = Select
1779+ { selectSelect :: Int
1780+ } deriving (Show)
1781+
17671782 data Self = Self
17681783 { selfSelf :: Int
17691784 } deriving (Show)
@@ -1976,25 +1991,16 @@ data Unowned = Unowned
19761991 { unownedUnowned :: Int
19771992 } deriving (Show)
19781993
1979-data Unsafe = Unsafe
1980- { unsafeUnsafe :: Int
1981- } deriving (Show)
1982-
1983-data Unsigned = Unsigned
1984- { unsignedUnsigned :: Int
1985- } deriving (Show)
1986-
19871994 data UseSerializers = UseSerializers
19881995 { useSerializersUseSerializers :: Int
19891996 } deriving (Show)
19901997
1991-data Ushort = Ushort
1992- { ushortUshort :: Int
1993- } deriving (Show)
1994-
19951998 data Obj6 = Obj6
19961999 { dummyObj6 :: Int
19972000 , obj6WhereObj6 :: Where
2001+ , unsafeObj6 :: Unsafe
2002+ , unsignedObj6 :: Unsigned
2003+ , ushortObj6 :: Ushort
19982004 , usingObj6 :: Using
19992005 , utf8JSONReaderObj6 :: Utf8JSONReader
20002006 , utf8JSONWriterObj6 :: Utf8JSONWriter
@@ -2018,6 +2024,18 @@ data Where = Where
20182024 { whereWhereWhere :: Int
20192025 } deriving (Show)
20202026
2027+data Unsafe = Unsafe
2028+ { unsafeUnsafe :: Int
2029+ } deriving (Show)
2030+
2031+data Unsigned = Unsigned
2032+ { unsignedUnsigned :: Int
2033+ } deriving (Show)
2034+
2035+data Ushort = Ushort
2036+ { ushortUshort :: Int
2037+ } deriving (Show)
2038+
20212039 data Using = Using
20222040 { usingUsing :: Int
20232041 } deriving (Show)
@@ -3678,7 +3696,7 @@ instance FromJSON Obj2False where
36783696 <$> v .: "false"
36793697
36803698 instance ToJSON Obj3 where
3681- toJSON (Obj3 dummyObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 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 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 noexceptObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
3699+ toJSON (Obj3 dummyObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 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 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) =
36823700 object $ foldMap (maybe [] pure)
36833701 [ Just $ "dummy" .= dummyObj3
36843702 , Just $ "guard" .= guardObj3
@@ -3723,6 +3741,7 @@ instance ToJSON Obj3 where
37233741 , Just $ "lazy" .= lazyObj3
37243742 , Just $ "left" .= leftObj3
37253743 , Just $ "list" .= listObj3
3744+ , Just $ "LocalDate" .= localDateObj3
37263745 , Just $ "Locale" .= localeObj3
37273746 , Just $ "lock" .= lockObj3
37283747 , Just $ "long" .= longObj3
@@ -3737,7 +3756,6 @@ instance ToJSON Obj3 where
37373756 , Just $ "newtonsoft" .= newtonsoftObj3
37383757 , Just $ "nil" .= nilObj3
37393758 , Just $ "NO" .= noObj3
3740- , Just $ "noexcept" .= noexceptObj3
37413759 , Just $ "id" .= obj3IDObj3
37423760 , Just $ "if" .= obj3IfObj3
37433761 , Just $ "import" .= obj3ImportObj3
@@ -3792,6 +3810,7 @@ instance FromJSON Obj3 where
37923810 <*> v .: "lazy"
37933811 <*> v .: "left"
37943812 <*> v .: "list"
3813+ <*> v .: "LocalDate"
37953814 <*> v .: "Locale"
37963815 <*> v .: "lock"
37973816 <*> v .: "long"
@@ -3806,7 +3825,6 @@ instance FromJSON Obj3 where
38063825 <*> v .: "newtonsoft"
38073826 <*> v .: "nil"
38083827 <*> v .: "NO"
3809- <*> v .: "noexcept"
38103828 <*> v .: "id"
38113829 <*> v .: "if"
38123830 <*> v .: "import"
@@ -4235,6 +4253,16 @@ instance FromJSON List where
42354253 parseJSON (Object v) = List
42364254 <$> v .: "list"
42374255
4256+instance ToJSON LocalDate where
4257+ toJSON (LocalDate localDateLocalDate) =
4258+ object $ foldMap (maybe [] pure)
4259+ [ Just $ "LocalDate" .= localDateLocalDate
4260+ ]
4261+
4262+instance FromJSON LocalDate where
4263+ parseJSON (Object v) = LocalDate
4264+ <$> v .: "LocalDate"
4265+
42384266 instance ToJSON Locale where
42394267 toJSON (Locale localeLocale) =
42404268 object $ foldMap (maybe [] pure)
@@ -4375,16 +4403,6 @@ instance FromJSON No where
43754403 parseJSON (Object v) = No
43764404 <$> v .: "NO"
43774405
4378-instance ToJSON Noexcept where
4379- toJSON (Noexcept noexceptNoexcept) =
4380- object $ foldMap (maybe [] pure)
4381- [ Just $ "noexcept" .= noexceptNoexcept
4382- ]
4383-
4384-instance FromJSON Noexcept where
4385- parseJSON (Object v) = Noexcept
4386- <$> v .: "noexcept"
4387-
43884406 instance ToJSON ID where
43894407 toJSON (ID idIDID) =
43904408 object $ foldMap (maybe [] pure)
@@ -4456,10 +4474,11 @@ instance FromJSON Module where
44564474 <$> v .: "module"
44574475
44584476 instance ToJSON Obj4 where
4459- toJSON (Obj4 dummyObj4 noSuchMethodObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 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 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4 sealedObj4 selObj4 selectObj4) =
4477+ toJSON (Obj4 dummyObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 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 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4) =
44604478 object $ foldMap (maybe [] pure)
44614479 [ Just $ "dummy" .= dummyObj4
44624480 , Just $ "noSuchMethod" .= noSuchMethodObj4
4481+ , Just $ "noexcept" .= noexceptObj4
44634482 , Just $ "nonatomic" .= nonatomicObj4
44644483 , Just $ "None" .= noneObj4
44654484 , Just $ "nonlocal" .= nonlocalObj4
@@ -4478,6 +4497,8 @@ instance ToJSON Obj4 where
44784497 , Just $ "protocol" .= obj4ProtocolObj4
44794498 , Just $ "object" .= objectObj4
44804499 , Just $ "ObjectMapper" .= objectMapperObj4
4500+ , Just $ "OffsetDateTime" .= offsetDateTimeObj4
4501+ , Just $ "OffsetTime" .= offsetTimeObj4
44814502 , Just $ "oneway" .= onewayObj4
44824503 , Just $ "open" .= openObj4
44834504 , Just $ "operator" .= operatorObj4
@@ -4520,15 +4541,13 @@ instance ToJSON Obj4 where
45204541 , Just $ "runtimeType" .= runtimeTypeObj4
45214542 , Just $ "s" .= sObj4
45224543 , Just $ "sbyte" .= sbyteObj4
4523- , Just $ "sealed" .= sealedObj4
4524- , Just $ "SEL" .= selObj4
4525- , Just $ "select" .= selectObj4
45264544 ]
45274545
45284546 instance FromJSON Obj4 where
45294547 parseJSON (Object v) = Obj4
45304548 <$> v .: "dummy"
45314549 <*> v .: "noSuchMethod"
4550+ <*> v .: "noexcept"
45324551 <*> v .: "nonatomic"
45334552 <*> v .: "None"
45344553 <*> v .: "nonlocal"
@@ -4547,6 +4566,8 @@ instance FromJSON Obj4 where
45474566 <*> v .: "protocol"
45484567 <*> v .: "object"
45494568 <*> v .: "ObjectMapper"
4569+ <*> v .: "OffsetDateTime"
4570+ <*> v .: "OffsetTime"
45504571 <*> v .: "oneway"
45514572 <*> v .: "open"
45524573 <*> v .: "operator"
@@ -4589,9 +4610,6 @@ instance FromJSON Obj4 where
45894610 <*> v .: "runtimeType"
45904611 <*> v .: "s"
45914612 <*> v .: "sbyte"
4592- <*> v .: "sealed"
4593- <*> v .: "SEL"
4594- <*> v .: "select"
45954613
45964614 instance ToJSON NoSuchMethod where
45974615 toJSON (NoSuchMethod noSuchMethodNoSuchMethod) =
@@ -4603,6 +4621,16 @@ instance FromJSON NoSuchMethod where
46034621 parseJSON (Object v) = NoSuchMethod
46044622 <$> v .: "noSuchMethod"
46054623
4624+instance ToJSON Noexcept where
4625+ toJSON (Noexcept noexceptNoexcept) =
4626+ object $ foldMap (maybe [] pure)
4627+ [ Just $ "noexcept" .= noexceptNoexcept
4628+ ]
4629+
4630+instance FromJSON Noexcept where
4631+ parseJSON (Object v) = Noexcept
4632+ <$> v .: "noexcept"
4633+
46064634 instance ToJSON Nonatomic where
46074635 toJSON (Nonatomic nonatomicNonatomic) =
46084636 object $ foldMap (maybe [] pure)
@@ -4783,6 +4811,26 @@ instance FromJSON ObjectMapper where
47834811 parseJSON (Object v) = ObjectMapper
47844812 <$> v .: "ObjectMapper"
47854813
4814+instance ToJSON OffsetDateTime where
4815+ toJSON (OffsetDateTime offsetDateTimeOffsetDateTime) =
4816+ object $ foldMap (maybe [] pure)
4817+ [ Just $ "OffsetDateTime" .= offsetDateTimeOffsetDateTime
4818+ ]
4819+
4820+instance FromJSON OffsetDateTime where
4821+ parseJSON (Object v) = OffsetDateTime
4822+ <$> v .: "OffsetDateTime"
4823+
4824+instance ToJSON OffsetTime where
4825+ toJSON (OffsetTime offsetTimeOffsetTime) =
4826+ object $ foldMap (maybe [] pure)
4827+ [ Just $ "OffsetTime" .= offsetTimeOffsetTime
4828+ ]
4829+
4830+instance FromJSON OffsetTime where
4831+ parseJSON (Object v) = OffsetTime
4832+ <$> v .: "OffsetTime"
4833+
47864834 instance ToJSON Oneway where
47874835 toJSON (Oneway onewayOneway) =
47884836 object $ foldMap (maybe [] pure)
@@ -5203,38 +5251,8 @@ instance FromJSON Sbyte where
52035251 parseJSON (Object v) = Sbyte
52045252 <$> v .: "sbyte"
52055253
5206-instance ToJSON Sealed where
5207- toJSON (Sealed sealedSealed) =
5208- object $ foldMap (maybe [] pure)
5209- [ Just $ "sealed" .= sealedSealed
5210- ]
5211-
5212-instance FromJSON Sealed where
5213- parseJSON (Object v) = Sealed
5214- <$> v .: "sealed"
5215-
5216-instance ToJSON Sel where
5217- toJSON (Sel selSel) =
5218- object $ foldMap (maybe [] pure)
5219- [ Just $ "SEL" .= selSel
5220- ]
5221-
5222-instance FromJSON Sel where
5223- parseJSON (Object v) = Sel
5224- <$> v .: "SEL"
5225-
5226-instance ToJSON Select where
5227- toJSON (Select selectSelect) =
5228- object $ foldMap (maybe [] pure)
5229- [ Just $ "select" .= selectSelect
5230- ]
5231-
5232-instance FromJSON Select where
5233- parseJSON (Object v) = Select
5234- <$> v .: "select"
5235-
52365254 instance ToJSON Obj5 where
5237- toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 useSerializersObj5 ushortObj5) =
5255+ toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 useSerializersObj5) =
52385256 object $ foldMap (maybe [] pure)
52395257 [ Just $ "dummy" .= dummyObj5
52405258 , Just $ "KSerializer" .= kSerializerObj5
@@ -5244,6 +5262,9 @@ instance ToJSON Obj5 where
52445262 , Just $ "Type" .= obj5TypeObj5
52455263 , Just $ "PrimitiveKind" .= primitiveKindObj5
52465264 , Just $ "type" .= purpleTypeObj5
5265+ , Just $ "sealed" .= sealedObj5
5266+ , Just $ "SEL" .= selObj5
5267+ , Just $ "select" .= selectObj5
52475268 , Just $ "Self" .= selfObj5
52485269 , Just $ "Sendable" .= sendableObj5
52495270 , Just $ "SerialDescriptor" .= serialDescriptorObj5
@@ -5297,10 +5318,7 @@ instance ToJSON Obj5 where
52975318 , Just $ "undefined" .= undefinedObj5
52985319 , Just $ "union" .= unionObj5
52995320 , Just $ "unowned" .= unownedObj5
5300- , Just $ "unsafe" .= unsafeObj5
5301- , Just $ "unsigned" .= unsignedObj5
53025321 , Just $ "UseSerializers" .= useSerializersObj5
5303- , Just $ "ushort" .= ushortObj5
53045322 ]
53055323
53065324 instance FromJSON Obj5 where
@@ -5313,6 +5331,9 @@ instance FromJSON Obj5 where
53135331 <*> v .: "Type"
53145332 <*> v .: "PrimitiveKind"
53155333 <*> v .: "type"
5334+ <*> v .: "sealed"
5335+ <*> v .: "SEL"
5336+ <*> v .: "select"
53165337 <*> v .: "Self"
53175338 <*> v .: "Sendable"
53185339 <*> v .: "SerialDescriptor"
@@ -5366,10 +5387,7 @@ instance FromJSON Obj5 where
53665387 <*> v .: "undefined"
53675388 <*> v .: "union"
53685389 <*> v .: "unowned"
5369- <*> v .: "unsafe"
5370- <*> v .: "unsigned"
53715390 <*> v .: "UseSerializers"
5372- <*> v .: "ushort"
53735391
53745392 instance ToJSON KSerializer where
53755393 toJSON (KSerializer kSerializerKSerializer) =
@@ -5441,6 +5459,36 @@ instance FromJSON TypeClass where
54415459 parseJSON (Object v) = TypeClass
54425460 <$> v .: "type"
54435461
5462+instance ToJSON Sealed where
5463+ toJSON (Sealed sealedSealed) =
5464+ object $ foldMap (maybe [] pure)
5465+ [ Just $ "sealed" .= sealedSealed
5466+ ]
5467+
5468+instance FromJSON Sealed where
5469+ parseJSON (Object v) = Sealed
5470+ <$> v .: "sealed"
5471+
5472+instance ToJSON Sel where
5473+ toJSON (Sel selSel) =
5474+ object $ foldMap (maybe [] pure)
5475+ [ Just $ "SEL" .= selSel
5476+ ]
5477+
5478+instance FromJSON Sel where
5479+ parseJSON (Object v) = Sel
5480+ <$> v .: "SEL"
5481+
5482+instance ToJSON Select where
5483+ toJSON (Select selectSelect) =
5484+ object $ foldMap (maybe [] pure)
5485+ [ Just $ "select" .= selectSelect
5486+ ]
5487+
5488+instance FromJSON Select where
5489+ parseJSON (Object v) = Select
5490+ <$> v .: "select"
5491+
54445492 instance ToJSON Self where
54455493 toJSON (Self selfSelf) =
54465494 object $ foldMap (maybe [] pure)
@@ -5971,26 +6019,6 @@ instance FromJSON Unowned where
59716019 parseJSON (Object v) = Unowned
59726020 <$> v .: "unowned"
59736021
5974-instance ToJSON Unsafe where
5975- toJSON (Unsafe unsafeUnsafe) =
5976- object $ foldMap (maybe [] pure)
5977- [ Just $ "unsafe" .= unsafeUnsafe
5978- ]
5979-
5980-instance FromJSON Unsafe where
5981- parseJSON (Object v) = Unsafe
5982- <$> v .: "unsafe"
5983-
5984-instance ToJSON Unsigned where
5985- toJSON (Unsigned unsignedUnsigned) =
5986- object $ foldMap (maybe [] pure)
5987- [ Just $ "unsigned" .= unsignedUnsigned
5988- ]
5989-
5990-instance FromJSON Unsigned where
5991- parseJSON (Object v) = Unsigned
5992- <$> v .: "unsigned"
5993-
59946022 instance ToJSON UseSerializers where
59956023 toJSON (UseSerializers useSerializersUseSerializers) =
59966024 object $ foldMap (maybe [] pure)
@@ -6001,21 +6029,14 @@ instance FromJSON UseSerializers where
60016029 parseJSON (Object v) = UseSerializers
60026030 <$> v .: "UseSerializers"
60036031
6004-instance ToJSON Ushort where
6005- toJSON (Ushort ushortUshort) =
6006- object $ foldMap (maybe [] pure)
6007- [ Just $ "ushort" .= ushortUshort
6008- ]
6009-
6010-instance FromJSON Ushort where
6011- parseJSON (Object v) = Ushort
6012- <$> v .: "ushort"
6013-
60146032 instance ToJSON Obj6 where
6015- toJSON (Obj6 dummyObj6 obj6WhereObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
6033+ toJSON (Obj6 dummyObj6 obj6WhereObj6 unsafeObj6 unsignedObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
60166034 object $ foldMap (maybe [] pure)
60176035 [ Just $ "dummy" .= dummyObj6
60186036 , Just $ "where" .= obj6WhereObj6
6037+ , Just $ "unsafe" .= unsafeObj6
6038+ , Just $ "unsigned" .= unsignedObj6
6039+ , Just $ "ushort" .= ushortObj6
60196040 , Just $ "using" .= usingObj6
60206041 , Just $ "Utf8JsonReader" .= utf8JSONReaderObj6
60216042 , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj6
@@ -6039,6 +6060,9 @@ instance FromJSON Obj6 where
60396060 parseJSON (Object v) = Obj6
60406061 <$> v .: "dummy"
60416062 <*> v .: "where"
6063+ <*> v .: "unsafe"
6064+ <*> v .: "unsigned"
6065+ <*> v .: "ushort"
60426066 <*> v .: "using"
60436067 <*> v .: "Utf8JsonReader"
60446068 <*> v .: "Utf8JsonWriter"
@@ -6067,6 +6091,36 @@ instance FromJSON Where where
60676091 parseJSON (Object v) = Where
60686092 <$> v .: "where"
60696093
6094+instance ToJSON Unsafe where
6095+ toJSON (Unsafe unsafeUnsafe) =
6096+ object $ foldMap (maybe [] pure)
6097+ [ Just $ "unsafe" .= unsafeUnsafe
6098+ ]
6099+
6100+instance FromJSON Unsafe where
6101+ parseJSON (Object v) = Unsafe
6102+ <$> v .: "unsafe"
6103+
6104+instance ToJSON Unsigned where
6105+ toJSON (Unsigned unsignedUnsigned) =
6106+ object $ foldMap (maybe [] pure)
6107+ [ Just $ "unsigned" .= unsignedUnsigned
6108+ ]
6109+
6110+instance FromJSON Unsigned where
6111+ parseJSON (Object v) = Unsigned
6112+ <$> v .: "unsigned"
6113+
6114+instance ToJSON Ushort where
6115+ toJSON (Ushort ushortUshort) =
6116+ object $ foldMap (maybe [] pure)
6117+ [ Just $ "ushort" .= ushortUshort
6118+ ]
6119+
6120+instance FromJSON Ushort where
6121+ parseJSON (Object v) = Ushort
6122+ <$> v .: "ushort"
6123+
60706124 instance ToJSON Using where
60716125 toJSON (Using usingUsing) =
60726126 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 −6
@@ -46,6 +46,7 @@ public class Obj3 {
4646 private Left left;
4747 private Let let;
4848 private ListClass list;
49+ private LocalDate localDate;
4950 private Locale locale;
5051 private Lock lock;
5152 private MapClass map;
@@ -58,7 +59,6 @@ public class Obj3 {
5859 private Newtonsoft newtonsoft;
5960 private Nil nil;
6061 private No no;
61- private Noexcept noexcept;
6262 private If obj3If;
6363 private Implements obj3Implements;
6464 private Import obj3Import;
@@ -284,6 +284,11 @@ public class Obj3 {
284284 @JsonProperty("list")
285285 public void setList(ListClass value) { this.list = value; }
286286
287+ @JsonProperty("LocalDate")
288+ public LocalDate getLocalDate() { return localDate; }
289+ @JsonProperty("LocalDate")
290+ public void setLocalDate(LocalDate value) { this.localDate = value; }
291+
287292 @JsonProperty("Locale")
288293 public Locale getLocale() { return locale; }
289294 @JsonProperty("Locale")
@@ -344,11 +349,6 @@ public class Obj3 {
344349 @JsonProperty("NO")
345350 public void setNo(No value) { this.no = value; }
346351
347- @JsonProperty("noexcept")
348- public Noexcept getNoexcept() { return noexcept; }
349- @JsonProperty("noexcept")
350- public void setNoexcept(Noexcept value) { this.noexcept = value; }
351-
352352 @JsonProperty("if")
353353 public If getObj3If() { return obj3If; }
354354 @JsonProperty("if")
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+18 −18
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*;
55 public class Obj4 {
66 private long dummy;
77 private NoSuchMethod noSuchMethod;
8+ private Noexcept noexcept;
89 private Nonatomic nonatomic;
910 private NoneClass none;
1011 private Nonlocal nonlocal;
@@ -28,6 +29,8 @@ public class Obj4 {
2829 private ObjectClass object;
2930 private ObjectMapperClass objectMapper;
3031 private Of of;
32+ private OffsetDateTime offsetDateTime;
33+ private OffsetTime offsetTime;
3134 private Oneway oneway;
3235 private Open open;
3336 private Operator operator;
@@ -65,9 +68,6 @@ public class Obj4 {
6568 private RuntimeType runtimeType;
6669 private S s;
6770 private Sbyte sbyte;
68- private Sealed sealed;
69- private Sel sel;
70- private Select select;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -79,6 +79,11 @@ public class Obj4 {
7979 @JsonProperty("noSuchMethod")
8080 public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
8181
82+ @JsonProperty("noexcept")
83+ public Noexcept getNoexcept() { return noexcept; }
84+ @JsonProperty("noexcept")
85+ public void setNoexcept(Noexcept value) { this.noexcept = value; }
86+
8287 @JsonProperty("nonatomic")
8388 public Nonatomic getNonatomic() { return nonatomic; }
8489 @JsonProperty("nonatomic")
@@ -194,6 +199,16 @@ public class Obj4 {
194199 @JsonProperty("of")
195200 public void setOf(Of value) { this.of = value; }
196201
202+ @JsonProperty("OffsetDateTime")
203+ public OffsetDateTime getOffsetDateTime() { return offsetDateTime; }
204+ @JsonProperty("OffsetDateTime")
205+ public void setOffsetDateTime(OffsetDateTime value) { this.offsetDateTime = value; }
206+
207+ @JsonProperty("OffsetTime")
208+ public OffsetTime getOffsetTime() { return offsetTime; }
209+ @JsonProperty("OffsetTime")
210+ public void setOffsetTime(OffsetTime value) { this.offsetTime = value; }
211+
197212 @JsonProperty("oneway")
198213 public Oneway getOneway() { return oneway; }
199214 @JsonProperty("oneway")
@@ -378,19 +393,4 @@ public class Obj4 {
378393 public Sbyte getSbyte() { return sbyte; }
379394 @JsonProperty("sbyte")
380395 public void setSbyte(Sbyte value) { this.sbyte = value; }
381-
382- @JsonProperty("sealed")
383- public Sealed getSealed() { return sealed; }
384- @JsonProperty("sealed")
385- public void setSealed(Sealed value) { this.sealed = value; }
386-
387- @JsonProperty("SEL")
388- public Sel getSel() { return sel; }
389- @JsonProperty("SEL")
390- public void setSel(Sel value) { this.sel = value; }
391-
392- @JsonProperty("select")
393- public Select getSelect() { return select; }
394- @JsonProperty("select")
395- public void setSelect(Select value) { this.select = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+18 −18
@@ -21,6 +21,9 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private Sealed sealed;
25+ private Sel sel;
26+ private Select select;
2427 private Self self;
2528 private Sendable sendable;
2629 private SerialDescriptor serialDescriptor;
@@ -64,10 +67,7 @@ public class Obj5 {
6467 private Undefined undefined;
6568 private Union union;
6669 private Unowned unowned;
67- private Unsafe unsafe;
68- private Unsigned unsigned;
6970 private UseSerializers useSerializers;
70- private Ushort ushort;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -159,6 +159,21 @@ public class Obj5 {
159159 @JsonProperty("true")
160160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
161161
162+ @JsonProperty("sealed")
163+ public Sealed getSealed() { return sealed; }
164+ @JsonProperty("sealed")
165+ public void setSealed(Sealed value) { this.sealed = value; }
166+
167+ @JsonProperty("SEL")
168+ public Sel getSel() { return sel; }
169+ @JsonProperty("SEL")
170+ public void setSel(Sel value) { this.sel = value; }
171+
172+ @JsonProperty("select")
173+ public Select getSelect() { return select; }
174+ @JsonProperty("select")
175+ public void setSelect(Select value) { this.select = value; }
176+
162177 @JsonProperty("Self")
163178 public Self getSelf() { return self; }
164179 @JsonProperty("Self")
@@ -374,23 +389,8 @@ public class Obj5 {
374389 @JsonProperty("unowned")
375390 public void setUnowned(Unowned value) { this.unowned = value; }
376391
377- @JsonProperty("unsafe")
378- public Unsafe getUnsafe() { return unsafe; }
379- @JsonProperty("unsafe")
380- public void setUnsafe(Unsafe value) { this.unsafe = value; }
381-
382- @JsonProperty("unsigned")
383- public Unsigned getUnsigned() { return unsigned; }
384- @JsonProperty("unsigned")
385- public void setUnsigned(Unsigned value) { this.unsigned = value; }
386-
387392 @JsonProperty("UseSerializers")
388393 public UseSerializers getUseSerializers() { return useSerializers; }
389394 @JsonProperty("UseSerializers")
390395 public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391-
392- @JsonProperty("ushort")
393- public Ushort getUshort() { return ushort; }
394- @JsonProperty("ushort")
395- public void setUshort(Ushort value) { this.ushort = value; }
396396 }
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+18 −0
@@ -7,6 +7,9 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Unsafe unsafe;
11+ private Unsigned unsigned;
12+ private Ushort ushort;
1013 private Using using;
1114 private Utf8JSONReader utf8JSONReader;
1215 private Utf8JSONWriter utf8JSONWriter;
@@ -43,6 +46,21 @@ public class Obj6 {
4346 @JsonProperty("while")
4447 public void setObj6While(While value) { this.obj6While = value; }
4548
49+ @JsonProperty("unsafe")
50+ public Unsafe getUnsafe() { return unsafe; }
51+ @JsonProperty("unsafe")
52+ public void setUnsafe(Unsafe value) { this.unsafe = value; }
53+
54+ @JsonProperty("unsigned")
55+ public Unsigned getUnsigned() { return unsigned; }
56+ @JsonProperty("unsigned")
57+ public void setUnsigned(Unsigned value) { this.unsigned = value; }
58+
59+ @JsonProperty("ushort")
60+ public Ushort getUshort() { return ushort; }
61+ @JsonProperty("ushort")
62+ public void setUshort(Ushort value) { this.ushort = value; }
63+
4664 @JsonProperty("using")
4765 public Using getUsing() { return using; }
4866 @JsonProperty("using")
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 −6
@@ -46,6 +46,7 @@ public class Obj3 {
4646 private Left left;
4747 private Let let;
4848 private ListClass list;
49+ private LocalDateClass localDate;
4950 private Locale locale;
5051 private Lock lock;
5152 private MapClass map;
@@ -58,7 +59,6 @@ public class Obj3 {
5859 private Newtonsoft newtonsoft;
5960 private Nil nil;
6061 private No no;
61- private Noexcept noexcept;
6262 private If obj3If;
6363 private Implements obj3Implements;
6464 private Import obj3Import;
@@ -284,6 +284,11 @@ public class Obj3 {
284284 @JsonProperty("list")
285285 public void setList(ListClass value) { this.list = value; }
286286
287+ @JsonProperty("LocalDate")
288+ public LocalDateClass getLocalDate() { return localDate; }
289+ @JsonProperty("LocalDate")
290+ public void setLocalDate(LocalDateClass value) { this.localDate = value; }
291+
287292 @JsonProperty("Locale")
288293 public Locale getLocale() { return locale; }
289294 @JsonProperty("Locale")
@@ -344,11 +349,6 @@ public class Obj3 {
344349 @JsonProperty("NO")
345350 public void setNo(No value) { this.no = value; }
346351
347- @JsonProperty("noexcept")
348- public Noexcept getNoexcept() { return noexcept; }
349- @JsonProperty("noexcept")
350- public void setNoexcept(Noexcept value) { this.noexcept = value; }
351-
352352 @JsonProperty("if")
353353 public If getObj3If() { return obj3If; }
354354 @JsonProperty("if")
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+18 −18
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*;
55 public class Obj4 {
66 private long dummy;
77 private NoSuchMethod noSuchMethod;
8+ private Noexcept noexcept;
89 private Nonatomic nonatomic;
910 private NoneClass none;
1011 private Nonlocal nonlocal;
@@ -28,6 +29,8 @@ public class Obj4 {
2829 private ObjectClass object;
2930 private ObjectMapperClass objectMapper;
3031 private Of of;
32+ private OffsetDateTimeClass offsetDateTime;
33+ private OffsetTimeClass offsetTime;
3134 private Oneway oneway;
3235 private Open open;
3336 private Operator operator;
@@ -65,9 +68,6 @@ public class Obj4 {
6568 private RuntimeType runtimeType;
6669 private S s;
6770 private Sbyte sbyte;
68- private Sealed sealed;
69- private Sel sel;
70- private Select select;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -79,6 +79,11 @@ public class Obj4 {
7979 @JsonProperty("noSuchMethod")
8080 public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
8181
82+ @JsonProperty("noexcept")
83+ public Noexcept getNoexcept() { return noexcept; }
84+ @JsonProperty("noexcept")
85+ public void setNoexcept(Noexcept value) { this.noexcept = value; }
86+
8287 @JsonProperty("nonatomic")
8388 public Nonatomic getNonatomic() { return nonatomic; }
8489 @JsonProperty("nonatomic")
@@ -194,6 +199,16 @@ public class Obj4 {
194199 @JsonProperty("of")
195200 public void setOf(Of value) { this.of = value; }
196201
202+ @JsonProperty("OffsetDateTime")
203+ public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; }
204+ @JsonProperty("OffsetDateTime")
205+ public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; }
206+
207+ @JsonProperty("OffsetTime")
208+ public OffsetTimeClass getOffsetTime() { return offsetTime; }
209+ @JsonProperty("OffsetTime")
210+ public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; }
211+
197212 @JsonProperty("oneway")
198213 public Oneway getOneway() { return oneway; }
199214 @JsonProperty("oneway")
@@ -378,19 +393,4 @@ public class Obj4 {
378393 public Sbyte getSbyte() { return sbyte; }
379394 @JsonProperty("sbyte")
380395 public void setSbyte(Sbyte value) { this.sbyte = value; }
381-
382- @JsonProperty("sealed")
383- public Sealed getSealed() { return sealed; }
384- @JsonProperty("sealed")
385- public void setSealed(Sealed value) { this.sealed = value; }
386-
387- @JsonProperty("SEL")
388- public Sel getSel() { return sel; }
389- @JsonProperty("SEL")
390- public void setSel(Sel value) { this.sel = value; }
391-
392- @JsonProperty("select")
393- public Select getSelect() { return select; }
394- @JsonProperty("select")
395- public void setSelect(Select value) { this.select = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+18 −18
@@ -21,6 +21,9 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private Sealed sealed;
25+ private Sel sel;
26+ private Select select;
2427 private Self self;
2528 private Sendable sendable;
2629 private SerialDescriptor serialDescriptor;
@@ -64,10 +67,7 @@ public class Obj5 {
6467 private Undefined undefined;
6568 private Union union;
6669 private Unowned unowned;
67- private Unsafe unsafe;
68- private Unsigned unsigned;
6970 private UseSerializers useSerializers;
70- private Ushort ushort;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -159,6 +159,21 @@ public class Obj5 {
159159 @JsonProperty("true")
160160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
161161
162+ @JsonProperty("sealed")
163+ public Sealed getSealed() { return sealed; }
164+ @JsonProperty("sealed")
165+ public void setSealed(Sealed value) { this.sealed = value; }
166+
167+ @JsonProperty("SEL")
168+ public Sel getSel() { return sel; }
169+ @JsonProperty("SEL")
170+ public void setSel(Sel value) { this.sel = value; }
171+
172+ @JsonProperty("select")
173+ public Select getSelect() { return select; }
174+ @JsonProperty("select")
175+ public void setSelect(Select value) { this.select = value; }
176+
162177 @JsonProperty("Self")
163178 public Self getSelf() { return self; }
164179 @JsonProperty("Self")
@@ -374,23 +389,8 @@ public class Obj5 {
374389 @JsonProperty("unowned")
375390 public void setUnowned(Unowned value) { this.unowned = value; }
376391
377- @JsonProperty("unsafe")
378- public Unsafe getUnsafe() { return unsafe; }
379- @JsonProperty("unsafe")
380- public void setUnsafe(Unsafe value) { this.unsafe = value; }
381-
382- @JsonProperty("unsigned")
383- public Unsigned getUnsigned() { return unsigned; }
384- @JsonProperty("unsigned")
385- public void setUnsigned(Unsigned value) { this.unsigned = value; }
386-
387392 @JsonProperty("UseSerializers")
388393 public UseSerializers getUseSerializers() { return useSerializers; }
389394 @JsonProperty("UseSerializers")
390395 public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391-
392- @JsonProperty("ushort")
393- public Ushort getUshort() { return ushort; }
394- @JsonProperty("ushort")
395- public void setUshort(Ushort value) { this.ushort = value; }
396396 }
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+18 −0
@@ -7,6 +7,9 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Unsafe unsafe;
11+ private Unsigned unsigned;
12+ private Ushort ushort;
1013 private Using using;
1114 private Utf8JSONReader utf8JSONReader;
1215 private Utf8JSONWriter utf8JSONWriter;
@@ -43,6 +46,21 @@ public class Obj6 {
4346 @JsonProperty("while")
4447 public void setObj6While(While value) { this.obj6While = value; }
4548
49+ @JsonProperty("unsafe")
50+ public Unsafe getUnsafe() { return unsafe; }
51+ @JsonProperty("unsafe")
52+ public void setUnsafe(Unsafe value) { this.unsafe = value; }
53+
54+ @JsonProperty("unsigned")
55+ public Unsigned getUnsigned() { return unsigned; }
56+ @JsonProperty("unsigned")
57+ public void setUnsigned(Unsigned value) { this.unsigned = value; }
58+
59+ @JsonProperty("ushort")
60+ public Ushort getUshort() { return ushort; }
61+ @JsonProperty("ushort")
62+ public void setUshort(Ushort value) { this.ushort = value; }
63+
4664 @JsonProperty("using")
4765 public Using getUsing() { return using; }
4866 @JsonProperty("using")
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 −6
@@ -46,6 +46,7 @@ public class Obj3 {
4646 private Left left;
4747 private Let let;
4848 private ListClass list;
49+ private LocalDateClass localDate;
4950 private Locale locale;
5051 private Lock lock;
5152 private MapClass map;
@@ -58,7 +59,6 @@ public class Obj3 {
5859 private Newtonsoft newtonsoft;
5960 private Nil nil;
6061 private No no;
61- private Noexcept noexcept;
6262 private If obj3If;
6363 private Implements obj3Implements;
6464 private Import obj3Import;
@@ -284,6 +284,11 @@ public class Obj3 {
284284 @JsonProperty("list")
285285 public void setList(ListClass value) { this.list = value; }
286286
287+ @JsonProperty("LocalDate")
288+ public LocalDateClass getLocalDate() { return localDate; }
289+ @JsonProperty("LocalDate")
290+ public void setLocalDate(LocalDateClass value) { this.localDate = value; }
291+
287292 @JsonProperty("Locale")
288293 public Locale getLocale() { return locale; }
289294 @JsonProperty("Locale")
@@ -344,11 +349,6 @@ public class Obj3 {
344349 @JsonProperty("NO")
345350 public void setNo(No value) { this.no = value; }
346351
347- @JsonProperty("noexcept")
348- public Noexcept getNoexcept() { return noexcept; }
349- @JsonProperty("noexcept")
350- public void setNoexcept(Noexcept value) { this.noexcept = value; }
351-
352352 @JsonProperty("if")
353353 public If getObj3If() { return obj3If; }
354354 @JsonProperty("if")
Mjavadefault / src / main / java / io / quicktype / Obj4.java+18 −18
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*;
55 public class Obj4 {
66 private long dummy;
77 private NoSuchMethod noSuchMethod;
8+ private Noexcept noexcept;
89 private Nonatomic nonatomic;
910 private NoneClass none;
1011 private Nonlocal nonlocal;
@@ -28,6 +29,8 @@ public class Obj4 {
2829 private ObjectClass object;
2930 private ObjectMapperClass objectMapper;
3031 private Of of;
32+ private OffsetDateTimeClass offsetDateTime;
33+ private OffsetTimeClass offsetTime;
3134 private Oneway oneway;
3235 private Open open;
3336 private Operator operator;
@@ -65,9 +68,6 @@ public class Obj4 {
6568 private RuntimeType runtimeType;
6669 private S s;
6770 private Sbyte sbyte;
68- private Sealed sealed;
69- private Sel sel;
70- private Select select;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -79,6 +79,11 @@ public class Obj4 {
7979 @JsonProperty("noSuchMethod")
8080 public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; }
8181
82+ @JsonProperty("noexcept")
83+ public Noexcept getNoexcept() { return noexcept; }
84+ @JsonProperty("noexcept")
85+ public void setNoexcept(Noexcept value) { this.noexcept = value; }
86+
8287 @JsonProperty("nonatomic")
8388 public Nonatomic getNonatomic() { return nonatomic; }
8489 @JsonProperty("nonatomic")
@@ -194,6 +199,16 @@ public class Obj4 {
194199 @JsonProperty("of")
195200 public void setOf(Of value) { this.of = value; }
196201
202+ @JsonProperty("OffsetDateTime")
203+ public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; }
204+ @JsonProperty("OffsetDateTime")
205+ public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; }
206+
207+ @JsonProperty("OffsetTime")
208+ public OffsetTimeClass getOffsetTime() { return offsetTime; }
209+ @JsonProperty("OffsetTime")
210+ public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; }
211+
197212 @JsonProperty("oneway")
198213 public Oneway getOneway() { return oneway; }
199214 @JsonProperty("oneway")
@@ -378,19 +393,4 @@ public class Obj4 {
378393 public Sbyte getSbyte() { return sbyte; }
379394 @JsonProperty("sbyte")
380395 public void setSbyte(Sbyte value) { this.sbyte = value; }
381-
382- @JsonProperty("sealed")
383- public Sealed getSealed() { return sealed; }
384- @JsonProperty("sealed")
385- public void setSealed(Sealed value) { this.sealed = value; }
386-
387- @JsonProperty("SEL")
388- public Sel getSel() { return sel; }
389- @JsonProperty("SEL")
390- public void setSel(Sel value) { this.sel = value; }
391-
392- @JsonProperty("select")
393- public Select getSelect() { return select; }
394- @JsonProperty("select")
395- public void setSelect(Select value) { this.select = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj5.java+18 −18
@@ -21,6 +21,9 @@ public class Obj5 {
2121 private TypeClass obj5Type;
2222 private PrimitiveKind primitiveKind;
2323 private TrueClass purpleTrue;
24+ private Sealed sealed;
25+ private Sel sel;
26+ private Select select;
2427 private Self self;
2528 private Sendable sendable;
2629 private SerialDescriptor serialDescriptor;
@@ -64,10 +67,7 @@ public class Obj5 {
6467 private Undefined undefined;
6568 private Union union;
6669 private Unowned unowned;
67- private Unsafe unsafe;
68- private Unsigned unsigned;
6970 private UseSerializers useSerializers;
70- private Ushort ushort;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -159,6 +159,21 @@ public class Obj5 {
159159 @JsonProperty("true")
160160 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
161161
162+ @JsonProperty("sealed")
163+ public Sealed getSealed() { return sealed; }
164+ @JsonProperty("sealed")
165+ public void setSealed(Sealed value) { this.sealed = value; }
166+
167+ @JsonProperty("SEL")
168+ public Sel getSel() { return sel; }
169+ @JsonProperty("SEL")
170+ public void setSel(Sel value) { this.sel = value; }
171+
172+ @JsonProperty("select")
173+ public Select getSelect() { return select; }
174+ @JsonProperty("select")
175+ public void setSelect(Select value) { this.select = value; }
176+
162177 @JsonProperty("Self")
163178 public Self getSelf() { return self; }
164179 @JsonProperty("Self")
@@ -374,23 +389,8 @@ public class Obj5 {
374389 @JsonProperty("unowned")
375390 public void setUnowned(Unowned value) { this.unowned = value; }
376391
377- @JsonProperty("unsafe")
378- public Unsafe getUnsafe() { return unsafe; }
379- @JsonProperty("unsafe")
380- public void setUnsafe(Unsafe value) { this.unsafe = value; }
381-
382- @JsonProperty("unsigned")
383- public Unsigned getUnsigned() { return unsigned; }
384- @JsonProperty("unsigned")
385- public void setUnsigned(Unsigned value) { this.unsigned = value; }
386-
387392 @JsonProperty("UseSerializers")
388393 public UseSerializers getUseSerializers() { return useSerializers; }
389394 @JsonProperty("UseSerializers")
390395 public void setUseSerializers(UseSerializers value) { this.useSerializers = value; }
391-
392- @JsonProperty("ushort")
393- public Ushort getUshort() { return ushort; }
394- @JsonProperty("ushort")
395- public void setUshort(Ushort value) { this.ushort = value; }
396396 }
Mjavadefault / src / main / java / io / quicktype / Obj6.java+18 −0
@@ -7,6 +7,9 @@ public class Obj6 {
77 private Void obj6Void;
88 private Volatile obj6Volatile;
99 private While obj6While;
10+ private Unsafe unsafe;
11+ private Unsigned unsigned;
12+ private Ushort ushort;
1013 private Using using;
1114 private Utf8JSONReader utf8JSONReader;
1215 private Utf8JSONWriter utf8JSONWriter;
@@ -43,6 +46,21 @@ public class Obj6 {
4346 @JsonProperty("while")
4447 public void setObj6While(While value) { this.obj6While = value; }
4548
49+ @JsonProperty("unsafe")
50+ public Unsafe getUnsafe() { return unsafe; }
51+ @JsonProperty("unsafe")
52+ public void setUnsafe(Unsafe value) { this.unsafe = value; }
53+
54+ @JsonProperty("unsigned")
55+ public Unsigned getUnsigned() { return unsigned; }
56+ @JsonProperty("unsigned")
57+ public void setUnsigned(Unsigned value) { this.unsigned = value; }
58+
59+ @JsonProperty("ushort")
60+ public Ushort getUshort() { return ushort; }
61+ @JsonProperty("ushort")
62+ public void setUshort(Ushort value) { this.ushort = value; }
63+
4664 @JsonProperty("using")
4765 public Using getUsing() { return using; }
4866 @JsonProperty("using")
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+50 −35
@@ -160,6 +160,7 @@ let _JSONNode;
160160 let _JSONParser;
161161 let _JSONReader;
162162 let _JSONTokenType;
163+let _LocalDate;
163164 let _Locale;
164165 let _MapEntry;
165166 let _No;
@@ -208,7 +209,6 @@ let _Native;
208209 let _New;
209210 let _Newtonsoft;
210211 let _Nil;
211-let _Noexcept;
212212 let _Obj4;
213213 let _NSError;
214214 let _NSObject;
@@ -216,10 +216,12 @@ let _NSString;
216216 let _Null;
217217 let _None;
218218 let _ObjectMapper;
219+let _OffsetDateTime;
220+let _OffsetTime;
219221 let _Protocol;
220222 let _RegExp;
221-let _Sel;
222223 let _NoSuchMethod;
224+let _Noexcept;
223225 let _Nonatomic;
224226 let _NoneClass;
225227 let _Nonlocal;
@@ -272,11 +274,10 @@ let _Right;
272274 let _RuntimeType;
273275 let _S;
274276 let _Sbyte;
275-let _Sealed;
276-let _Select;
277277 let _Obj5;
278278 let _KSerializer;
279279 let _PrimitiveKind;
280+let _Sel;
280281 let _Self;
281282 let _Sendable;
282283 let _SerialDescriptor;
@@ -293,6 +294,8 @@ let _TimeZone;
293294 let _True;
294295 let _Type;
295296 let _UseSerializers;
297+let _Sealed;
298+let _Select;
296299 let _SelfClass;
297300 let _Serialize;
298301 let _Set;
@@ -336,14 +339,14 @@ let _Unchecked;
336339 let _Undefined;
337340 let _Union;
338341 let _Unowned;
339-let _Unsafe;
340-let _Unsigned;
341-let _Ushort;
342342 let _Obj6;
343343 let _UUID;
344344 let _Utf8JSONReader;
345345 let _Utf8JSONWriter;
346346 let _Yes;
347+let _Unsafe;
348+let _Unsigned;
349+let _Ushort;
347350 let _Using;
348351 let _Var;
349352 let _Virtual;
@@ -922,6 +925,9 @@ _JSONReader = PropTypes.shape({
922925 _JSONTokenType = PropTypes.shape({
923926 "JsonTokenType": PropTypes.oneOfType([Integer]).isRequired,
924927 });
928+_LocalDate = PropTypes.shape({
929+ "LocalDate": PropTypes.oneOfType([Integer]).isRequired,
930+});
925931 _Locale = PropTypes.shape({
926932 "Locale": PropTypes.oneOfType([Integer]).isRequired,
927933 });
@@ -1066,9 +1072,6 @@ _Newtonsoft = PropTypes.shape({
10661072 _Nil = PropTypes.shape({
10671073 "nil": PropTypes.oneOfType([Integer]).isRequired,
10681074 });
1069-_Noexcept = PropTypes.shape({
1070- "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1071-});
10721075 _Obj3 = PropTypes.shape({
10731076 "Hashable": _Hashable,
10741077 "Hasher": _Hasher,
@@ -1085,6 +1088,7 @@ _Obj3 = PropTypes.shape({
10851088 "JsonParser": _JSONParser,
10861089 "JsonReader": _JSONReader,
10871090 "JsonTokenType": _JSONTokenType,
1091+ "LocalDate": _LocalDate,
10881092 "Locale": _Locale,
10891093 "MapEntry": _MapEntry,
10901094 "NO": _No,
@@ -1134,7 +1138,6 @@ _Obj3 = PropTypes.shape({
11341138 "new": _New,
11351139 "newtonsoft": _Newtonsoft,
11361140 "nil": _Nil,
1137- "noexcept": _Noexcept,
11381141 });
11391142 _NSError = PropTypes.shape({
11401143 "NSError": PropTypes.oneOfType([Integer]).isRequired,
@@ -1154,18 +1157,24 @@ _None = PropTypes.shape({
11541157 _ObjectMapper = PropTypes.shape({
11551158 "ObjectMapper": PropTypes.oneOfType([Integer]).isRequired,
11561159 });
1160+_OffsetDateTime = PropTypes.shape({
1161+ "OffsetDateTime": PropTypes.oneOfType([Integer]).isRequired,
1162+});
1163+_OffsetTime = PropTypes.shape({
1164+ "OffsetTime": PropTypes.oneOfType([Integer]).isRequired,
1165+});
11571166 _Protocol = PropTypes.shape({
11581167 "Protocol": PropTypes.oneOfType([Integer]).isRequired,
11591168 });
11601169 _RegExp = PropTypes.shape({
11611170 "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,
11621171 });
1163-_Sel = PropTypes.shape({
1164- "SEL": PropTypes.oneOfType([Integer]).isRequired,
1165-});
11661172 _NoSuchMethod = PropTypes.shape({
11671173 "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired,
11681174 });
1175+_Noexcept = PropTypes.shape({
1176+ "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1177+});
11691178 _Nonatomic = PropTypes.shape({
11701179 "nonatomic": PropTypes.oneOfType([Integer]).isRequired,
11711180 });
@@ -1322,12 +1331,6 @@ _S = PropTypes.shape({
13221331 _Sbyte = PropTypes.shape({
13231332 "sbyte": PropTypes.oneOfType([Integer]).isRequired,
13241333 });
1325-_Sealed = PropTypes.shape({
1326- "sealed": PropTypes.oneOfType([Integer]).isRequired,
1327-});
1328-_Select = PropTypes.shape({
1329- "select": PropTypes.oneOfType([Integer]).isRequired,
1330-});
13311334 _Obj4 = PropTypes.shape({
13321335 "NSError": _NSError,
13331336 "NSObject": _NSObject,
@@ -1335,11 +1338,13 @@ _Obj4 = PropTypes.shape({
13351338 "NULL": _Null,
13361339 "None": _None,
13371340 "ObjectMapper": _ObjectMapper,
1341+ "OffsetDateTime": _OffsetDateTime,
1342+ "OffsetTime": _OffsetTime,
13381343 "Protocol": _Protocol,
13391344 "RegExp": _RegExp,
1340- "SEL": _Sel,
13411345 "dummy": PropTypes.oneOfType([Integer]).isRequired,
13421346 "noSuchMethod": _NoSuchMethod,
1347+ "noexcept": _Noexcept,
13431348 "nonatomic": _Nonatomic,
13441349 "none": _NoneClass,
13451350 "nonlocal": _Nonlocal,
@@ -1392,8 +1397,6 @@ _Obj4 = PropTypes.shape({
13921397 "runtimeType": _RuntimeType,
13931398 "s": _S,
13941399 "sbyte": _Sbyte,
1395- "sealed": _Sealed,
1396- "select": _Select,
13971400 });
13981401 _KSerializer = PropTypes.shape({
13991402 "KSerializer": PropTypes.oneOfType([Integer]).isRequired,
@@ -1401,6 +1404,9 @@ _KSerializer = PropTypes.shape({
14011404 _PrimitiveKind = PropTypes.shape({
14021405 "PrimitiveKind": PropTypes.oneOfType([Integer]).isRequired,
14031406 });
1407+_Sel = PropTypes.shape({
1408+ "SEL": PropTypes.oneOfType([Integer]).isRequired,
1409+});
14041410 _Self = PropTypes.shape({
14051411 "Self": PropTypes.oneOfType([Integer]).isRequired,
14061412 });
@@ -1449,6 +1455,12 @@ _Type = PropTypes.shape({
14491455 _UseSerializers = PropTypes.shape({
14501456 "UseSerializers": PropTypes.oneOfType([Integer]).isRequired,
14511457 });
1458+_Sealed = PropTypes.shape({
1459+ "sealed": PropTypes.oneOfType([Integer]).isRequired,
1460+});
1461+_Select = PropTypes.shape({
1462+ "select": PropTypes.oneOfType([Integer]).isRequired,
1463+});
14521464 _SelfClass = PropTypes.shape({
14531465 "self": PropTypes.oneOfType([Integer]).isRequired,
14541466 });
@@ -1578,18 +1590,10 @@ _Union = PropTypes.shape({
15781590 _Unowned = PropTypes.shape({
15791591 "unowned": PropTypes.oneOfType([Integer]).isRequired,
15801592 });
1581-_Unsafe = PropTypes.shape({
1582- "unsafe": PropTypes.oneOfType([Integer]).isRequired,
1583-});
1584-_Unsigned = PropTypes.shape({
1585- "unsigned": PropTypes.oneOfType([Integer]).isRequired,
1586-});
1587-_Ushort = PropTypes.shape({
1588- "ushort": PropTypes.oneOfType([Integer]).isRequired,
1589-});
15901593 _Obj5 = PropTypes.shape({
15911594 "KSerializer": _KSerializer,
15921595 "PrimitiveKind": _PrimitiveKind,
1596+ "SEL": _Sel,
15931597 "Self": _Self,
15941598 "Sendable": _Sendable,
15951599 "SerialDescriptor": _SerialDescriptor,
@@ -1607,6 +1611,8 @@ _Obj5 = PropTypes.shape({
16071611 "Type": _Type,
16081612 "UseSerializers": _UseSerializers,
16091613 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1614+ "sealed": _Sealed,
1615+ "select": _Select,
16101616 "self": _SelfClass,
16111617 "serialize": _Serialize,
16121618 "set": _Set,
@@ -1650,9 +1656,6 @@ _Obj5 = PropTypes.shape({
16501656 "undefined": _Undefined,
16511657 "union": _Union,
16521658 "unowned": _Unowned,
1653- "unsafe": _Unsafe,
1654- "unsigned": _Unsigned,
1655- "ushort": _Ushort,
16561659 });
16571660 _UUID = PropTypes.shape({
16581661 "UUID": PropTypes.oneOfType([Integer]).isRequired,
@@ -1666,6 +1669,15 @@ _Utf8JSONWriter = PropTypes.shape({
16661669 _Yes = PropTypes.shape({
16671670 "YES": PropTypes.oneOfType([Integer]).isRequired,
16681671 });
1672+_Unsafe = PropTypes.shape({
1673+ "unsafe": PropTypes.oneOfType([Integer]).isRequired,
1674+});
1675+_Unsigned = PropTypes.shape({
1676+ "unsigned": PropTypes.oneOfType([Integer]).isRequired,
1677+});
1678+_Ushort = PropTypes.shape({
1679+ "ushort": PropTypes.oneOfType([Integer]).isRequired,
1680+});
16691681 _Using = PropTypes.shape({
16701682 "using": PropTypes.oneOfType([Integer]).isRequired,
16711683 });
@@ -1714,6 +1726,9 @@ _Obj6 = PropTypes.shape({
17141726 "Utf8JsonWriter": _Utf8JSONWriter,
17151727 "YES": _Yes,
17161728 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1729+ "unsafe": _Unsafe,
1730+ "unsigned": _Unsigned,
1731+ "ushort": _Ushort,
17171732 "using": _Using,
17181733 "var": _Var,
17191734 "virtual": _Virtual,
Mjavascriptdefault / TopLevel.js+40 −28
@@ -736,6 +736,7 @@ const typeMap = {
736736 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
737737 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
738738 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
739+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
739740 { json: "Locale", js: "Locale", typ: r("Locale") },
740741 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
741742 { json: "NO", js: "NO", typ: r("No") },
@@ -785,7 +786,6 @@ const typeMap = {
785786 { json: "new", js: "new", typ: r("New") },
786787 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
787788 { json: "nil", js: "nil", typ: r("Nil") },
788- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
789789 ], false),
790790 "Hashable": o([
791791 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -832,6 +832,9 @@ const typeMap = {
832832 "JSONTokenType": o([
833833 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
834834 ], false),
835+ "LocalDate": o([
836+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
837+ ], false),
835838 "Locale": o([
836839 { json: "Locale", js: "Locale", typ: i(0) },
837840 ], false),
@@ -976,9 +979,6 @@ const typeMap = {
976979 "Nil": o([
977980 { json: "nil", js: "nil", typ: i(0) },
978981 ], false),
979- "Noexcept": o([
980- { json: "noexcept", js: "noexcept", typ: i(0) },
981- ], false),
982982 "Obj4": o([
983983 { json: "NSError", js: "NSError", typ: r("NSError") },
984984 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -986,11 +986,13 @@ const typeMap = {
986986 { json: "NULL", js: "NULL", typ: r("Null") },
987987 { json: "None", js: "None", typ: r("None") },
988988 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
989+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
990+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
989991 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
990992 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
991- { json: "SEL", js: "SEL", typ: r("Sel") },
992993 { json: "dummy", js: "dummy", typ: i(0) },
993994 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
995+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
994996 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
995997 { json: "none", js: "none", typ: r("NoneClass") },
996998 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -1043,8 +1045,6 @@ const typeMap = {
10431045 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
10441046 { json: "s", js: "s", typ: r("S") },
10451047 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
1046- { json: "sealed", js: "sealed", typ: r("Sealed") },
1047- { json: "select", js: "select", typ: r("Select") },
10481048 ], false),
10491049 "NSError": o([
10501050 { json: "NSError", js: "NSError", typ: i(0) },
@@ -1064,18 +1064,24 @@ const typeMap = {
10641064 "ObjectMapper": o([
10651065 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
10661066 ], false),
1067+ "OffsetDateTime": o([
1068+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
1069+ ], false),
1070+ "OffsetTime": o([
1071+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
1072+ ], false),
10671073 "Protocol": o([
10681074 { json: "Protocol", js: "Protocol", typ: i(0) },
10691075 ], false),
10701076 "RegExp": o([
10711077 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
10721078 ], false),
1073- "Sel": o([
1074- { json: "SEL", js: "SEL", typ: i(0) },
1075- ], false),
10761079 "NoSuchMethod": o([
10771080 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
10781081 ], false),
1082+ "Noexcept": o([
1083+ { json: "noexcept", js: "noexcept", typ: i(0) },
1084+ ], false),
10791085 "Nonatomic": o([
10801086 { json: "nonatomic", js: "nonatomic", typ: i(0) },
10811087 ], false),
@@ -1232,15 +1238,10 @@ const typeMap = {
12321238 "Sbyte": o([
12331239 { json: "sbyte", js: "sbyte", typ: i(0) },
12341240 ], false),
1235- "Sealed": o([
1236- { json: "sealed", js: "sealed", typ: i(0) },
1237- ], false),
1238- "Select": o([
1239- { json: "select", js: "select", typ: i(0) },
1240- ], false),
12411241 "Obj5": o([
12421242 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
12431243 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
1244+ { json: "SEL", js: "SEL", typ: r("Sel") },
12441245 { json: "Self", js: "Self", typ: r("Self") },
12451246 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
12461247 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -1258,6 +1259,8 @@ const typeMap = {
12581259 { json: "Type", js: "Type", typ: r("Type") },
12591260 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
12601261 { json: "dummy", js: "dummy", typ: i(0) },
1262+ { json: "sealed", js: "sealed", typ: r("Sealed") },
1263+ { json: "select", js: "select", typ: r("Select") },
12611264 { json: "self", js: "self", typ: r("SelfClass") },
12621265 { json: "serialize", js: "serialize", typ: r("Serialize") },
12631266 { json: "set", js: "set", typ: r("Set") },
@@ -1301,9 +1304,6 @@ const typeMap = {
13011304 { json: "undefined", js: "undefined", typ: r("Undefined") },
13021305 { json: "union", js: "union", typ: r("Union") },
13031306 { json: "unowned", js: "unowned", typ: r("Unowned") },
1304- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
1305- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
1306- { json: "ushort", js: "ushort", typ: r("Ushort") },
13071307 ], false),
13081308 "KSerializer": o([
13091309 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -1311,6 +1311,9 @@ const typeMap = {
13111311 "PrimitiveKind": o([
13121312 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
13131313 ], false),
1314+ "Sel": o([
1315+ { json: "SEL", js: "SEL", typ: i(0) },
1316+ ], false),
13141317 "Self": o([
13151318 { json: "Self", js: "Self", typ: i(0) },
13161319 ], false),
@@ -1359,6 +1362,12 @@ const typeMap = {
13591362 "UseSerializers": o([
13601363 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
13611364 ], false),
1365+ "Sealed": o([
1366+ { json: "sealed", js: "sealed", typ: i(0) },
1367+ ], false),
1368+ "Select": o([
1369+ { json: "select", js: "select", typ: i(0) },
1370+ ], false),
13621371 "SelfClass": o([
13631372 { json: "self", js: "self", typ: i(0) },
13641373 ], false),
@@ -1488,21 +1497,15 @@ const typeMap = {
14881497 "Unowned": o([
14891498 { json: "unowned", js: "unowned", typ: i(0) },
14901499 ], false),
1491- "Unsafe": o([
1492- { json: "unsafe", js: "unsafe", typ: i(0) },
1493- ], false),
1494- "Unsigned": o([
1495- { json: "unsigned", js: "unsigned", typ: i(0) },
1496- ], false),
1497- "Ushort": o([
1498- { json: "ushort", js: "ushort", typ: i(0) },
1499- ], false),
15001500 "Obj6": o([
15011501 { json: "UUID", js: "UUID", typ: r("UUID") },
15021502 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
15031503 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
15041504 { json: "YES", js: "YES", typ: r("Yes") },
15051505 { json: "dummy", js: "dummy", typ: i(0) },
1506+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
1507+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
1508+ { json: "ushort", js: "ushort", typ: r("Ushort") },
15061509 { json: "using", js: "using", typ: r("Using") },
15071510 { json: "var", js: "var", typ: r("Var") },
15081511 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -1530,6 +1533,15 @@ const typeMap = {
15301533 "Yes": o([
15311534 { json: "YES", js: "YES", typ: i(0) },
15321535 ], false),
1536+ "Unsafe": o([
1537+ { json: "unsafe", js: "unsafe", typ: i(0) },
1538+ ], false),
1539+ "Unsigned": o([
1540+ { json: "unsigned", js: "unsigned", typ: i(0) },
1541+ ], false),
1542+ "Ushort": o([
1543+ { json: "ushort", js: "ushort", typ: i(0) },
1544+ ], false),
15331545 "Using": o([
15341546 { json: "using", js: "using", typ: i(0) },
15351547 ], false),
Mkotlin-jacksondefault / TopLevel.kt+82 −58
@@ -1246,6 +1246,9 @@ data class Obj3 (
12461246 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
12471247 val list: ListClass,
12481248
1249+ @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true)
1250+ val localDate: LocalDate,
1251+
12491252 @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true)
12501253 val locale: Locale,
12511254
@@ -1291,9 +1294,6 @@ data class Obj3 (
12911294 @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true)
12921295 val no: No,
12931296
1294- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1295- val noexcept: Noexcept,
1296-
12971297 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
12981298 val obj3If: If,
12991299
@@ -1527,6 +1527,11 @@ data class ListClass (
15271527 val list: Long
15281528 )
15291529
1530+data class LocalDate (
1531+ @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true)
1532+ val localDate: Long
1533+)
1534+
15301535 data class Locale (
15311536 @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true)
15321537 val locale: Long
@@ -1602,11 +1607,6 @@ data class No (
16021607 val no: Long
16031608 )
16041609
1605-data class Noexcept (
1606- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1607- val noexcept: Long
1608-)
1609-
16101610 data class If (
16111611 @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true)
16121612 val ifIf: Long
@@ -1634,6 +1634,9 @@ data class Obj4 (
16341634 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16351635 val noSuchMethod: NoSuchMethod,
16361636
1637+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1638+ val noexcept: Noexcept,
1639+
16371640 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16381641 val nonatomic: Nonatomic,
16391642
@@ -1694,6 +1697,12 @@ data class Obj4 (
16941697 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16951698 val of: Of,
16961699
1700+ @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true)
1701+ val offsetDateTime: OffsetDateTimeClass,
1702+
1703+ @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true)
1704+ val offsetTime: OffsetTime,
1705+
16971706 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
16981707 val oneway: Oneway,
16991708
@@ -1812,16 +1821,7 @@ data class Obj4 (
18121821 val s: S,
18131822
18141823 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1815- val sbyte: Sbyte,
1816-
1817- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1818- val sealed: Sealed,
1819-
1820- @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
1821- val sel: Sel,
1822-
1823- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1824- val select: Select
1824+ val sbyte: Sbyte
18251825 )
18261826
18271827 data class NoSuchMethod (
@@ -1829,6 +1829,11 @@ data class NoSuchMethod (
18291829 val noSuchMethod: Long
18301830 )
18311831
1832+data class Noexcept (
1833+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
1834+ val noexcept: Long
1835+)
1836+
18321837 data class Nonatomic (
18331838 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
18341839 val nonatomic: Long
@@ -1929,6 +1934,16 @@ data class Of (
19291934 val of: Long
19301935 )
19311936
1937+data class OffsetDateTimeClass (
1938+ @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true)
1939+ val offsetDateTime: Long
1940+)
1941+
1942+data class OffsetTime (
1943+ @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true)
1944+ val offsetTime: Long
1945+)
1946+
19321947 data class Oneway (
19331948 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
19341949 val oneway: Long
@@ -2129,21 +2144,6 @@ data class Sbyte (
21292144 val sbyte: Long
21302145 )
21312146
2132-data class Sealed (
2133- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2134- val sealed: Long
2135-)
2136-
2137-data class Sel (
2138- @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2139- val sel: Long
2140-)
2141-
2142-data class Select (
2143- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2144- val select: Long
2145-)
2146-
21472147 data class Obj5 (
21482148 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
21492149 val dummy: Long,
@@ -2184,6 +2184,15 @@ data class Obj5 (
21842184 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21852185 val purpleTrue: TrueClass,
21862186
2187+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2188+ val sealed: Sealed,
2189+
2190+ @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2191+ val sel: Sel,
2192+
2193+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2194+ val select: Select,
2195+
21872196 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
21882197 val self: Self,
21892198
@@ -2328,17 +2337,8 @@ data class Obj5 (
23282337 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
23292338 val unowned: Unowned,
23302339
2331- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2332- val unsafe: Unsafe,
2333-
2334- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2335- val unsigned: Unsigned,
2336-
23372340 @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
2338- val useSerializers: UseSerializers,
2339-
2340- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2341- val ushort: Ushort
2341+ val useSerializers: UseSerializers
23422342 )
23432343
23442344 data class KSerializer (
@@ -2401,6 +2401,21 @@ data class TrueClass (
24012401 val trueTrue: Long
24022402 )
24032403
2404+data class Sealed (
2405+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2406+ val sealed: Long
2407+)
2408+
2409+data class Sel (
2410+ @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2411+ val sel: Long
2412+)
2413+
2414+data class Select (
2415+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2416+ val select: Long
2417+)
2418+
24042419 data class Self (
24052420 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
24062421 val self: Long
@@ -2641,26 +2656,11 @@ data class Unowned (
26412656 val unowned: Long
26422657 )
26432658
2644-data class Unsafe (
2645- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2646- val unsafe: Long
2647-)
2648-
2649-data class Unsigned (
2650- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2651- val unsigned: Long
2652-)
2653-
26542659 data class UseSerializers (
26552660 @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true)
26562661 val useSerializers: Long
26572662 )
26582663
2659-data class Ushort (
2660- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2661- val ushort: Long
2662-)
2663-
26642664 data class Obj6 (
26652665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26662666 val dummy: Long,
@@ -2671,6 +2671,15 @@ data class Obj6 (
26712671 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
26722672 val obj6While: While,
26732673
2674+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2675+ val unsafe: Unsafe,
2676+
2677+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2678+ val unsigned: Unsigned,
2679+
2680+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2681+ val ushort: Ushort,
2682+
26742683 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26752684 val using: Using,
26762685
@@ -2730,6 +2739,21 @@ data class While (
27302739 val whileWhile: Long
27312740 )
27322741
2742+data class Unsafe (
2743+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2744+ val unsafe: Long
2745+)
2746+
2747+data class Unsigned (
2748+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2749+ val unsigned: Long
2750+)
2751+
2752+data class Ushort (
2753+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2754+ val ushort: Long
2755+)
2756+
27332757 data class Using (
27342758 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27352759 val using: Long
Mkotlindefault / TopLevel.kt+67 −43
@@ -947,6 +947,9 @@ data class Obj3 (
947947 val let: Let,
948948 val list: ListClass,
949949
950+ @Json(name = "LocalDate")
951+ val localDate: LocalDate,
952+
950953 @Json(name = "Locale")
951954 val locale: Locale,
952955
@@ -972,8 +975,6 @@ data class Obj3 (
972975 @Json(name = "NO")
973976 val no: No,
974977
975- val noexcept: Noexcept,
976-
977978 @Json(name = "if")
978979 val obj3If: If,
979980
@@ -1182,6 +1183,11 @@ data class ListClass (
11821183 val list: Long
11831184 )
11841185
1186+data class LocalDate (
1187+ @Json(name = "LocalDate")
1188+ val localDate: Long
1189+)
1190+
11851191 data class Locale (
11861192 @Json(name = "Locale")
11871193 val locale: Long
@@ -1246,10 +1252,6 @@ data class No (
12461252 val no: Long
12471253 )
12481254
1249-data class Noexcept (
1250- val noexcept: Long
1251-)
1252-
12531255 data class If (
12541256 @Json(name = "if")
12551257 val ifIf: Long
@@ -1273,6 +1275,7 @@ data class Is (
12731275 data class Obj4 (
12741276 val dummy: Long,
12751277 val noSuchMethod: NoSuchMethod,
1278+ val noexcept: Noexcept,
12761279 val nonatomic: Nonatomic,
12771280
12781281 @Json(name = "None")
@@ -1322,6 +1325,13 @@ data class Obj4 (
13221325 val objectMapper: ObjectMapper,
13231326
13241327 val of: Of,
1328+
1329+ @Json(name = "OffsetDateTime")
1330+ val offsetDateTime: OffsetDateTimeClass,
1331+
1332+ @Json(name = "OffsetTime")
1333+ val offsetTime: OffsetTime,
1334+
13251335 val oneway: Oneway,
13261336 val open: Open,
13271337 val operator: Operator,
@@ -1373,19 +1383,17 @@ data class Obj4 (
13731383 val right: Right,
13741384 val runtimeType: RuntimeType,
13751385 val s: S,
1376- val sbyte: Sbyte,
1377- val sealed: Sealed,
1378-
1379- @Json(name = "SEL")
1380- val sel: Sel,
1381-
1382- val select: Select
1386+ val sbyte: Sbyte
13831387 )
13841388
13851389 data class NoSuchMethod (
13861390 val noSuchMethod: Long
13871391 )
13881392
1393+data class Noexcept (
1394+ val noexcept: Long
1395+)
1396+
13891397 data class Nonatomic (
13901398 val nonatomic: Long
13911399 )
@@ -1477,6 +1485,16 @@ data class Of (
14771485 val of: Long
14781486 )
14791487
1488+data class OffsetDateTimeClass (
1489+ @Json(name = "OffsetDateTime")
1490+ val offsetDateTime: Long
1491+)
1492+
1493+data class OffsetTime (
1494+ @Json(name = "OffsetTime")
1495+ val offsetTime: Long
1496+)
1497+
14801498 data class Oneway (
14811499 val oneway: Long
14821500 )
@@ -1641,19 +1659,6 @@ data class Sbyte (
16411659 val sbyte: Long
16421660 )
16431661
1644-data class Sealed (
1645- val sealed: Long
1646-)
1647-
1648-data class Sel (
1649- @Json(name = "SEL")
1650- val sel: Long
1651-)
1652-
1653-data class Select (
1654- val select: Long
1655-)
1656-
16571662 data class Obj5 (
16581663 val dummy: Long,
16591664
@@ -1693,6 +1698,13 @@ data class Obj5 (
16931698 @Json(name = "true")
16941699 val purpleTrue: TrueClass,
16951700
1701+ val sealed: Sealed,
1702+
1703+ @Json(name = "SEL")
1704+ val sel: Sel,
1705+
1706+ val select: Select,
1707+
16961708 @Json(name = "Self")
16971709 val self: Self,
16981710
@@ -1787,13 +1799,9 @@ data class Obj5 (
17871799 val undefined: Undefined,
17881800 val union: Union,
17891801 val unowned: Unowned,
1790- val unsafe: Unsafe,
1791- val unsigned: Unsigned,
17921802
17931803 @Json(name = "UseSerializers")
1794- val useSerializers: UseSerializers,
1795-
1796- val ushort: Ushort
1804+ val useSerializers: UseSerializers
17971805 )
17981806
17991807 data class KSerializer (
@@ -1854,6 +1862,19 @@ data class TrueClass (
18541862 val trueTrue: Long
18551863 )
18561864
1865+data class Sealed (
1866+ val sealed: Long
1867+)
1868+
1869+data class Sel (
1870+ @Json(name = "SEL")
1871+ val sel: Long
1872+)
1873+
1874+data class Select (
1875+ val select: Long
1876+)
1877+
18571878 data class Self (
18581879 @Json(name = "Self")
18591880 val self: Long
@@ -2065,23 +2086,11 @@ data class Unowned (
20652086 val unowned: Long
20662087 )
20672088
2068-data class Unsafe (
2069- val unsafe: Long
2070-)
2071-
2072-data class Unsigned (
2073- val unsigned: Long
2074-)
2075-
20762089 data class UseSerializers (
20772090 @Json(name = "UseSerializers")
20782091 val useSerializers: Long
20792092 )
20802093
2081-data class Ushort (
2082- val ushort: Long
2083-)
2084-
20852094 data class Obj6 (
20862095 val dummy: Long,
20872096
@@ -2091,6 +2100,9 @@ data class Obj6 (
20912100 @Json(name = "while")
20922101 val obj6While: While,
20932102
2103+ val unsafe: Unsafe,
2104+ val unsigned: Unsigned,
2105+ val ushort: Ushort,
20942106 val using: Using,
20952107
20962108 @Json(name = "Utf8JsonReader")
@@ -2134,6 +2146,18 @@ data class While (
21342146 val whileWhile: Long
21352147 )
21362148
2149+data class Unsafe (
2150+ val unsafe: Long
2151+)
2152+
2153+data class Unsigned (
2154+ val unsigned: Long
2155+)
2156+
2157+data class Ushort (
2158+ val ushort: Long
2159+)
2160+
21372161 data class Using (
21382162 val using: Long
21392163 )
Mkotlinxdefault / TopLevel.kt+77 −50
@@ -1060,6 +1060,9 @@ data class Obj3 (
10601060 val let: Let,
10611061 val list: ListClass,
10621062
1063+ @SerialName("LocalDate")
1064+ val localDate: LocalDate,
1065+
10631066 @SerialName("Locale")
10641067 val locale: Locale,
10651068
@@ -1085,8 +1088,6 @@ data class Obj3 (
10851088 @SerialName("NO")
10861089 val no: No,
10871090
1088- val noexcept: Noexcept,
1089-
10901091 @SerialName("if")
10911092 val obj3If: If,
10921093
@@ -1339,6 +1340,12 @@ data class ListClass (
13391340 val list: Long
13401341 )
13411342
1343+@Serializable
1344+data class LocalDate (
1345+ @SerialName("LocalDate")
1346+ val localDate: Long
1347+)
1348+
13421349 @Serializable
13431350 data class Locale (
13441351 @SerialName("Locale")
@@ -1418,11 +1425,6 @@ data class No (
14181425 val no: Long
14191426 )
14201427
1421-@Serializable
1422-data class Noexcept (
1423- val noexcept: Long
1424-)
1425-
14261428 @Serializable
14271429 data class If (
14281430 @SerialName("if")
@@ -1451,6 +1453,7 @@ data class Is (
14511453 data class Obj4 (
14521454 val dummy: Long,
14531455 val noSuchMethod: NoSuchMethod,
1456+ val noexcept: Noexcept,
14541457 val nonatomic: Nonatomic,
14551458
14561459 @SerialName("None")
@@ -1500,6 +1503,13 @@ data class Obj4 (
15001503 val objectMapper: ObjectMapper,
15011504
15021505 val of: Of,
1506+
1507+ @SerialName("OffsetDateTime")
1508+ val offsetDateTime: OffsetDateTimeClass,
1509+
1510+ @SerialName("OffsetTime")
1511+ val offsetTime: OffsetTime,
1512+
15031513 val oneway: Oneway,
15041514 val open: Open,
15051515 val operator: Operator,
@@ -1551,13 +1561,7 @@ data class Obj4 (
15511561 val right: Right,
15521562 val runtimeType: RuntimeType,
15531563 val s: S,
1554- val sbyte: Sbyte,
1555- val sealed: Sealed,
1556-
1557- @SerialName("SEL")
1558- val sel: Sel,
1559-
1560- val select: Select
1564+ val sbyte: Sbyte
15611565 )
15621566
15631567 @Serializable
@@ -1565,6 +1569,11 @@ data class NoSuchMethod (
15651569 val noSuchMethod: Long
15661570 )
15671571
1572+@Serializable
1573+data class Noexcept (
1574+ val noexcept: Long
1575+)
1576+
15681577 @Serializable
15691578 data class Nonatomic (
15701579 val nonatomic: Long
@@ -1676,6 +1685,18 @@ data class Of (
16761685 val of: Long
16771686 )
16781687
1688+@Serializable
1689+data class OffsetDateTimeClass (
1690+ @SerialName("OffsetDateTime")
1691+ val offsetDateTime: Long
1692+)
1693+
1694+@Serializable
1695+data class OffsetTime (
1696+ @SerialName("OffsetTime")
1697+ val offsetTime: Long
1698+)
1699+
16791700 @Serializable
16801701 data class Oneway (
16811702 val oneway: Long
@@ -1880,22 +1901,6 @@ data class Sbyte (
18801901 val sbyte: Long
18811902 )
18821903
1883-@Serializable
1884-data class Sealed (
1885- val sealed: Long
1886-)
1887-
1888-@Serializable
1889-data class Sel (
1890- @SerialName("SEL")
1891- val sel: Long
1892-)
1893-
1894-@Serializable
1895-data class Select (
1896- val select: Long
1897-)
1898-
18991904 @Serializable
19001905 data class Obj5 (
19011906 val dummy: Long,
@@ -1936,6 +1941,13 @@ data class Obj5 (
19361941 @SerialName("true")
19371942 val purpleTrue: TrueClass,
19381943
1944+ val sealed: Sealed,
1945+
1946+ @SerialName("SEL")
1947+ val sel: Sel,
1948+
1949+ val select: Select,
1950+
19391951 @SerialName("Self")
19401952 val self: Self,
19411953
@@ -2030,13 +2042,9 @@ data class Obj5 (
20302042 val undefined: Undefined,
20312043 val union: Union,
20322044 val unowned: Unowned,
2033- val unsafe: Unsafe,
2034- val unsigned: Unsigned,
20352045
20362046 @SerialName("UseSerializers")
2037- val useSerializers: UseSerializersClass,
2038-
2039- val ushort: Ushort
2047+ val useSerializers: UseSerializersClass
20402048 )
20412049
20422050 @Serializable
@@ -2109,6 +2117,22 @@ data class TrueClass (
21092117 val trueTrue: Long
21102118 )
21112119
2120+@Serializable
2121+data class Sealed (
2122+ val sealed: Long
2123+)
2124+
2125+@Serializable
2126+data class Sel (
2127+ @SerialName("SEL")
2128+ val sel: Long
2129+)
2130+
2131+@Serializable
2132+data class Select (
2133+ val select: Long
2134+)
2135+
21122136 @Serializable
21132137 data class Self (
21142138 @SerialName("Self")
@@ -2368,27 +2392,12 @@ data class Unowned (
23682392 val unowned: Long
23692393 )
23702394
2371-@Serializable
2372-data class Unsafe (
2373- val unsafe: Long
2374-)
2375-
2376-@Serializable
2377-data class Unsigned (
2378- val unsigned: Long
2379-)
2380-
23812395 @Serializable
23822396 data class UseSerializersClass (
23832397 @SerialName("UseSerializers")
23842398 val useSerializers: Long
23852399 )
23862400
2387-@Serializable
2388-data class Ushort (
2389- val ushort: Long
2390-)
2391-
23922401 @Serializable
23932402 data class Obj6 (
23942403 val dummy: Long,
@@ -2399,6 +2408,9 @@ data class Obj6 (
23992408 @SerialName("while")
24002409 val obj6While: While,
24012410
2411+ val unsafe: Unsafe,
2412+ val unsigned: Unsigned,
2413+ val ushort: Ushort,
24022414 val using: Using,
24032415
24042416 @SerialName("Utf8JsonReader")
@@ -2444,6 +2456,21 @@ data class While (
24442456 val whileWhile: Long
24452457 )
24462458
2459+@Serializable
2460+data class Unsafe (
2461+ val unsafe: Long
2462+)
2463+
2464+@Serializable
2465+data class Unsigned (
2466+ val unsigned: Long
2467+)
2468+
2469+@Serializable
2470+data class Ushort (
2471+ val ushort: Long
2472+)
2473+
24472474 @Serializable
24482475 data class Using (
24492476 val using: Long
Mobjective-cdefault / QTTopLevel.h+60 −42
@@ -181,6 +181,7 @@
181181 @class QTLeft;
182182 @class QTLet;
183183 @class QTList;
184+@class QTLocalDate;
184185 @class QTLocale;
185186 @class QTLock;
186187 @class QTMap;
@@ -193,7 +194,6 @@
193194 @class QTNative;
194195 @class QTNewtonsoft;
195196 @class QTNo;
196-@class QTNoexcept;
197197 @class QTIf;
198198 @class QTInline;
199199 @class QTInt;
@@ -204,6 +204,7 @@
204204 @class QTNew;
205205 @class QTObj4;
206206 @class QTNoSuchMethod;
207+@class QTNoexcept;
207208 @class QTNone;
208209 @class QTNonlocal;
209210 @class QTNonmutating;
@@ -226,6 +227,8 @@
226227 @class QTObject;
227228 @class QTObjectMapper;
228229 @class QTOf;
230+@class QTOffsetDateTime;
231+@class QTOffsetTime;
229232 @class QTOneway;
230233 @class QTOpen;
231234 @class QTOperator;
@@ -264,9 +267,6 @@
264267 @class QTRuntimeType;
265268 @class QTS;
266269 @class QTSbyte;
267-@class QTSealed;
268-@class QTSel;
269-@class QTSelect;
270270 @class QTObj5;
271271 @class QTKSerializer;
272272 @class QTSelfClass;
@@ -281,8 +281,10 @@
281281 @class QTTypedef;
282282 @class QTTypeof;
283283 @class QTUnion;
284-@class QTUnsigned;
285284 @class QTPrimitiveKind;
285+@class QTSealed;
286+@class QTSel;
287+@class QTSelect;
286288 @class QTSelf;
287289 @class QTSendable;
288290 @class QTSerialDescriptor;
@@ -329,13 +331,14 @@
329331 @class QTUnchecked;
330332 @class QTUndefined;
331333 @class QTUnowned;
332-@class QTUnsafe;
333334 @class QTUseSerializers;
334-@class QTUshort;
335335 @class QTObj6;
336+@class QTUnsigned;
336337 @class QTVoid;
337338 @class QTVolatile;
338339 @class QTWhile;
340+@class QTUnsafe;
341+@class QTUshort;
339342 @class QTUsing;
340343 @class QTUtf8JSONReader;
341344 @class QTUtf8JSONWriter;
@@ -1080,6 +1083,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10801083 @property (nonatomic, strong) QTLeft *left;
10811084 @property (nonatomic, strong) QTLet *let;
10821085 @property (nonatomic, strong) QTList *list;
1086+@property (nonatomic, strong) QTLocalDate *localDate;
10831087 @property (nonatomic, strong) QTLocale *locale;
10841088 @property (nonatomic, strong) QTLock *lock;
10851089 @property (nonatomic, strong) QTMap *map;
@@ -1092,7 +1096,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10921096 @property (nonatomic, strong) QTNative *native;
10931097 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
10941098 @property (nonatomic, strong) QTNo *no;
1095-@property (nonatomic, strong) QTNoexcept *noexcept;
10961099 @property (nonatomic, strong) QTIf *obj3If;
10971100 @property (nonatomic, strong) QTInline *obj3Inline;
10981101 @property (nonatomic, strong) QTInt *obj3Int;
@@ -1275,6 +1278,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12751278 @property (nonatomic, assign) NSInteger list;
12761279 @end
12771280
1281+@interface QTLocalDate : NSObject
1282+@property (nonatomic, assign) NSInteger localDate;
1283+@end
1284+
12781285 @interface QTLocale : NSObject
12791286 @property (nonatomic, assign) NSInteger locale;
12801287 @end
@@ -1323,10 +1330,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13231330 @property (nonatomic, assign) NSInteger no;
13241331 @end
13251332
1326-@interface QTNoexcept : NSObject
1327-@property (nonatomic, assign) NSInteger noexcept;
1328-@end
1329-
13301333 @interface QTIf : NSObject
13311334 @property (nonatomic, assign) NSInteger ifIf;
13321335 @end
@@ -1362,6 +1365,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13621365 @interface QTObj4 : NSObject
13631366 @property (nonatomic, assign) NSInteger dummy;
13641367 @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod;
1368+@property (nonatomic, strong) QTNoexcept *noexcept;
13651369 @property (nonatomic, strong) QTNone *none;
13661370 @property (nonatomic, strong) QTNonlocal *nonlocal;
13671371 @property (nonatomic, strong) QTNonmutating *nonmutating;
@@ -1384,6 +1388,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13841388 @property (nonatomic, strong) QTObject *object;
13851389 @property (nonatomic, strong) QTObjectMapper *objectMapper;
13861390 @property (nonatomic, strong) QTOf *of;
1391+@property (nonatomic, strong) QTOffsetDateTime *offsetDateTime;
1392+@property (nonatomic, strong) QTOffsetTime *offsetTime;
13871393 @property (nonatomic, strong) QTOneway *oneway;
13881394 @property (nonatomic, strong) QTOpen *open;
13891395 @property (nonatomic, strong) QTOperator *operator;
@@ -1422,15 +1428,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14221428 @property (nonatomic, strong) QTRuntimeType *runtimeType;
14231429 @property (nonatomic, strong) QTS *s;
14241430 @property (nonatomic, strong) QTSbyte *sbyte;
1425-@property (nonatomic, strong) QTSealed *sealed;
1426-@property (nonatomic, strong) QTSel *sel;
1427-@property (nonatomic, strong) QTSelect *select;
14281431 @end
14291432
14301433 @interface QTNoSuchMethod : NSObject
14311434 @property (nonatomic, assign) NSInteger noSuchMethod;
14321435 @end
14331436
1437+@interface QTNoexcept : NSObject
1438+@property (nonatomic, assign) NSInteger noexcept;
1439+@end
1440+
14341441 @interface QTNone : NSObject
14351442 @property (nonatomic, assign) NSInteger none;
14361443 @end
@@ -1519,6 +1526,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
15191526 @property (nonatomic, assign) NSInteger of;
15201527 @end
15211528
1529+@interface QTOffsetDateTime : NSObject
1530+@property (nonatomic, assign) NSInteger offsetDateTime;
1531+@end
1532+
1533+@interface QTOffsetTime : NSObject
1534+@property (nonatomic, assign) NSInteger offsetTime;
1535+@end
1536+
15221537 @interface QTOneway : NSObject
15231538 @property (nonatomic, assign) NSInteger oneway;
15241539 @end
@@ -1671,18 +1686,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16711686 @property (nonatomic, assign) NSInteger sbyte;
16721687 @end
16731688
1674-@interface QTSealed : NSObject
1675-@property (nonatomic, assign) NSInteger sealed;
1676-@end
1677-
1678-@interface QTSel : NSObject
1679-@property (nonatomic, assign) NSInteger sel;
1680-@end
1681-
1682-@interface QTSelect : NSObject
1683-@property (nonatomic, assign) NSInteger select;
1684-@end
1685-
16861689 @interface QTObj5 : NSObject
16871690 @property (nonatomic, assign) NSInteger dummy;
16881691 @property (nonatomic, strong) QTKSerializer *kSerializer;
@@ -1698,8 +1701,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16981701 @property (nonatomic, strong) QTTypedef *obj5Typedef;
16991702 @property (nonatomic, strong) QTTypeof *obj5Typeof;
17001703 @property (nonatomic, strong) QTUnion *obj5Union;
1701-@property (nonatomic, strong) QTUnsigned *obj5Unsigned;
17021704 @property (nonatomic, strong) QTPrimitiveKind *primitiveKind;
1705+@property (nonatomic, strong) QTSealed *sealed;
1706+@property (nonatomic, strong) QTSel *sel;
1707+@property (nonatomic, strong) QTSelect *select;
17031708 @property (nonatomic, strong) QTSelf *self;
17041709 @property (nonatomic, strong) QTSendable *sendable;
17051710 @property (nonatomic, strong) QTSerialDescriptor *serialDescriptor;
@@ -1746,9 +1751,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17461751 @property (nonatomic, strong) QTUnchecked *unchecked;
17471752 @property (nonatomic, strong) QTUndefined *undefined;
17481753 @property (nonatomic, strong) QTUnowned *unowned;
1749-@property (nonatomic, strong) QTUnsafe *unsafe;
17501754 @property (nonatomic, strong) QTUseSerializers *useSerializers;
1751-@property (nonatomic, strong) QTUshort *ushort;
17521755 @end
17531756
17541757 @interface QTKSerializer : NSObject
@@ -1803,14 +1806,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
18031806 @property (nonatomic, assign) NSInteger unionUnion;
18041807 @end
18051808
1806-@interface QTUnsigned : NSObject
1807-@property (nonatomic, assign) NSInteger unsignedUnsigned;
1808-@end
1809-
18101809 @interface QTPrimitiveKind : NSObject
18111810 @property (nonatomic, assign) NSInteger primitiveKind;
18121811 @end
18131812
1813+@interface QTSealed : NSObject
1814+@property (nonatomic, assign) NSInteger sealed;
1815+@end
1816+
1817+@interface QTSel : NSObject
1818+@property (nonatomic, assign) NSInteger sel;
1819+@end
1820+
1821+@interface QTSelect : NSObject
1822+@property (nonatomic, assign) NSInteger select;
1823+@end
1824+
18141825 @interface QTSelf : NSObject
18151826 @property (nonatomic, assign) NSInteger self;
18161827 @end
@@ -1995,23 +2006,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
19952006 @property (nonatomic, assign) NSInteger unowned;
19962007 @end
19972008
1998-@interface QTUnsafe : NSObject
1999-@property (nonatomic, assign) NSInteger unsafe;
2000-@end
2001-
20022009 @interface QTUseSerializers : NSObject
20032010 @property (nonatomic, assign) NSInteger useSerializers;
20042011 @end
20052012
2006-@interface QTUshort : NSObject
2007-@property (nonatomic, assign) NSInteger ushort;
2008-@end
2009-
20102013 @interface QTObj6 : NSObject
20112014 @property (nonatomic, assign) NSInteger dummy;
2015+@property (nonatomic, strong) QTUnsigned *obj6Unsigned;
20122016 @property (nonatomic, strong) QTVoid *obj6Void;
20132017 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20142018 @property (nonatomic, strong) QTWhile *obj6While;
2019+@property (nonatomic, strong) QTUnsafe *unsafe;
2020+@property (nonatomic, strong) QTUshort *ushort;
20152021 @property (nonatomic, strong) QTUsing *using;
20162022 @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
20172023 @property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter;
@@ -2029,6 +2035,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20292035 @property (nonatomic, strong) QTYield *yield;
20302036 @end
20312037
2038+@interface QTUnsigned : NSObject
2039+@property (nonatomic, assign) NSInteger unsignedUnsigned;
2040+@end
2041+
20322042 @interface QTVoid : NSObject
20332043 @property (nonatomic, assign) NSInteger voidVoid;
20342044 @end
@@ -2041,6 +2051,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20412051 @property (nonatomic, assign) NSInteger whileWhile;
20422052 @end
20432053
2054+@interface QTUnsafe : NSObject
2055+@property (nonatomic, assign) NSInteger unsafe;
2056+@end
2057+
2058+@interface QTUshort : NSObject
2059+@property (nonatomic, assign) NSInteger ushort;
2060+@end
2061+
20442062 @interface QTUsing : NSObject
20452063 @property (nonatomic, assign) NSInteger using;
20462064 @end
Mobjective-cdefault / QTTopLevel.m+551 −365
@@ -883,6 +883,11 @@ NS_ASSUME_NONNULL_BEGIN
883883 - (NSDictionary *)JSONDictionary;
884884 @end
885885
886+@interface QTLocalDate (JSONConversion)
887++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
888+- (NSDictionary *)JSONDictionary;
889+@end
890+
886891 @interface QTLocale (JSONConversion)
887892 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
888893 - (NSDictionary *)JSONDictionary;
@@ -943,11 +948,6 @@ NS_ASSUME_NONNULL_BEGIN
943948 - (NSDictionary *)JSONDictionary;
944949 @end
945950
946-@interface QTNoexcept (JSONConversion)
947-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
948-- (NSDictionary *)JSONDictionary;
949-@end
950-
951951 @interface QTIf (JSONConversion)
952952 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
953953 - (NSDictionary *)JSONDictionary;
@@ -998,6 +998,11 @@ NS_ASSUME_NONNULL_BEGIN
998998 - (NSDictionary *)JSONDictionary;
999999 @end
10001000
1001+@interface QTNoexcept (JSONConversion)
1002++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1003+- (NSDictionary *)JSONDictionary;
1004+@end
1005+
10011006 @interface QTNone (JSONConversion)
10021007 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
10031008 - (NSDictionary *)JSONDictionary;
@@ -1108,6 +1113,16 @@ NS_ASSUME_NONNULL_BEGIN
11081113 - (NSDictionary *)JSONDictionary;
11091114 @end
11101115
1116+@interface QTOffsetDateTime (JSONConversion)
1117++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1118+- (NSDictionary *)JSONDictionary;
1119+@end
1120+
1121+@interface QTOffsetTime (JSONConversion)
1122++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1123+- (NSDictionary *)JSONDictionary;
1124+@end
1125+
11111126 @interface QTOneway (JSONConversion)
11121127 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
11131128 - (NSDictionary *)JSONDictionary;
@@ -1298,21 +1313,6 @@ NS_ASSUME_NONNULL_BEGIN
12981313 - (NSDictionary *)JSONDictionary;
12991314 @end
13001315
1301-@interface QTSealed (JSONConversion)
1302-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1303-- (NSDictionary *)JSONDictionary;
1304-@end
1305-
1306-@interface QTSel (JSONConversion)
1307-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1308-- (NSDictionary *)JSONDictionary;
1309-@end
1310-
1311-@interface QTSelect (JSONConversion)
1312-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1313-- (NSDictionary *)JSONDictionary;
1314-@end
1315-
13161316 @interface QTObj5 (JSONConversion)
13171317 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13181318 - (NSDictionary *)JSONDictionary;
@@ -1383,12 +1383,22 @@ NS_ASSUME_NONNULL_BEGIN
13831383 - (NSDictionary *)JSONDictionary;
13841384 @end
13851385
1386-@interface QTUnsigned (JSONConversion)
1386+@interface QTPrimitiveKind (JSONConversion)
13871387 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881388 - (NSDictionary *)JSONDictionary;
13891389 @end
13901390
1391-@interface QTPrimitiveKind (JSONConversion)
1391+@interface QTSealed (JSONConversion)
1392++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1393+- (NSDictionary *)JSONDictionary;
1394+@end
1395+
1396+@interface QTSel (JSONConversion)
1397++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1398+- (NSDictionary *)JSONDictionary;
1399+@end
1400+
1401+@interface QTSelect (JSONConversion)
13921402 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13931403 - (NSDictionary *)JSONDictionary;
13941404 @end
@@ -1623,22 +1633,17 @@ NS_ASSUME_NONNULL_BEGIN
16231633 - (NSDictionary *)JSONDictionary;
16241634 @end
16251635
1626-@interface QTUnsafe (JSONConversion)
1627-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1628-- (NSDictionary *)JSONDictionary;
1629-@end
1630-
16311636 @interface QTUseSerializers (JSONConversion)
16321637 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16331638 - (NSDictionary *)JSONDictionary;
16341639 @end
16351640
1636-@interface QTUshort (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16371642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381643 - (NSDictionary *)JSONDictionary;
16391644 @end
16401645
1641-@interface QTObj6 (JSONConversion)
1646+@interface QTUnsigned (JSONConversion)
16421647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431648 - (NSDictionary *)JSONDictionary;
16441649 @end
@@ -1658,6 +1663,16 @@ NS_ASSUME_NONNULL_BEGIN
16581663 - (NSDictionary *)JSONDictionary;
16591664 @end
16601665
1666+@interface QTUnsafe (JSONConversion)
1667++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1668+- (NSDictionary *)JSONDictionary;
1669+@end
1670+
1671+@interface QTUshort (JSONConversion)
1672++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1673+- (NSDictionary *)JSONDictionary;
1674+@end
1675+
16611676 @interface QTUsing (JSONConversion)
16621677 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16631678 - (NSDictionary *)JSONDictionary;
@@ -8664,6 +8679,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86648679 @"left": @"left",
86658680 @"let": @"let",
86668681 @"list": @"list",
8682+ @"LocalDate": @"localDate",
86678683 @"Locale": @"locale",
86688684 @"lock": @"lock",
86698685 @"map": @"map",
@@ -8676,7 +8692,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86768692 @"native": @"native",
86778693 @"newtonsoft": @"newtonsoft",
86788694 @"NO": @"no",
8679- @"noexcept": @"noexcept",
86808695 @"if": @"obj3If",
86818696 @"inline": @"obj3Inline",
86828697 @"int": @"obj3Int",
@@ -8741,6 +8756,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87418756 if (![dict[@"left"] isKindOfClass:NSDictionary.class]) return nil;
87428757 if (![dict[@"let"] isKindOfClass:NSDictionary.class]) return nil;
87438758 if (![dict[@"list"] isKindOfClass:NSDictionary.class]) return nil;
8759+ if (![dict[@"LocalDate"] isKindOfClass:NSDictionary.class]) return nil;
87448760 if (![dict[@"Locale"] isKindOfClass:NSDictionary.class]) return nil;
87458761 if (![dict[@"lock"] isKindOfClass:NSDictionary.class]) return nil;
87468762 if (![dict[@"map"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8753,7 +8769,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87538769 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
87548770 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
87558771 if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
8756- if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
87578772 if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil;
87588773 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
87598774 if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8849,6 +8864,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88498864 if (!_let && dict[@"let"] && ![dict[@"let"] isKindOfClass:NSNull.class]) return nil;
88508865 _list = [QTList fromJSONDictionary:(id)_list];
88518866 if (!_list && dict[@"list"] && ![dict[@"list"] isKindOfClass:NSNull.class]) return nil;
8867+ _localDate = [QTLocalDate fromJSONDictionary:(id)_localDate];
8868+ if (!_localDate && dict[@"LocalDate"] && ![dict[@"LocalDate"] isKindOfClass:NSNull.class]) return nil;
88528869 _locale = [QTLocale fromJSONDictionary:(id)_locale];
88538870 if (!_locale && dict[@"Locale"] && ![dict[@"Locale"] isKindOfClass:NSNull.class]) return nil;
88548871 _lock = [QTLock fromJSONDictionary:(id)_lock];
@@ -8873,8 +8890,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88738890 if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil;
88748891 _no = [QTNo fromJSONDictionary:(id)_no];
88758892 if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
8876- _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
8877- if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
88788893 _obj3If = [QTIf fromJSONDictionary:(id)_obj3If];
88798894 if (!_obj3If && dict[@"if"] && ![dict[@"if"] isKindOfClass:NSNull.class]) return nil;
88808895 _obj3Inline = [QTInline fromJSONDictionary:(id)_obj3Inline];
@@ -8963,6 +8978,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89638978 @"left": [_left JSONDictionary],
89648979 @"let": [_let JSONDictionary],
89658980 @"list": [_list JSONDictionary],
8981+ @"LocalDate": [_localDate JSONDictionary],
89668982 @"Locale": [_locale JSONDictionary],
89678983 @"lock": [_lock JSONDictionary],
89688984 @"map": [_map JSONDictionary],
@@ -8975,7 +8991,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89758991 @"native": [_native JSONDictionary],
89768992 @"newtonsoft": [_newtonsoft JSONDictionary],
89778993 @"NO": [_no JSONDictionary],
8978- @"noexcept": [_noexcept JSONDictionary],
89798994 @"if": [_obj3If JSONDictionary],
89808995 @"inline": [_obj3Inline JSONDictionary],
89818996 @"int": [_obj3Int JSONDictionary],
@@ -10995,6 +11010,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1099511010 }
1099611011 @end
1099711012
11013+@implementation QTLocalDate
11014++ (NSDictionary<NSString *, NSString *> *)properties
11015+{
11016+ static NSDictionary<NSString *, NSString *> *properties;
11017+ return properties = properties ? properties : @{
11018+ @"LocalDate": @"localDate",
11019+ };
11020+}
11021+
11022++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11023+{
11024+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
11025+}
11026+
11027+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11028+{
11029+ if (self = [super init]) {
11030+ if (![dict[@"LocalDate"] isKindOfClass:NSNumber.class]) return nil;
11031+ if ([dict[@"LocalDate"] doubleValue] != [dict[@"LocalDate"] longLongValue]) return nil;
11032+ [self setValuesForKeysWithDictionary:dict];
11033+ }
11034+ return self;
11035+}
11036+
11037+- (void)setValue:(nullable id)value forKey:(NSString *)key
11038+{
11039+ id resolved = QTLocalDate.properties[key];
11040+ if (resolved) [super setValue:value forKey:resolved];
11041+}
11042+
11043+- (void)setNilValueForKey:(NSString *)key
11044+{
11045+ id resolved = QTLocalDate.properties[key];
11046+ if (resolved) [super setValue:@(0) forKey:resolved];
11047+}
11048+
11049+- (NSDictionary *)JSONDictionary
11050+{
11051+ id dict = [[self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues] mutableCopy];
11052+
11053+ for (id jsonName in QTLocalDate.properties) {
11054+ id propertyName = QTLocalDate.properties[jsonName];
11055+ if (![jsonName isEqualToString:propertyName]) {
11056+ dict[jsonName] = dict[propertyName];
11057+ [dict removeObjectForKey:propertyName];
11058+ }
11059+ }
11060+
11061+ return dict;
11062+}
11063+@end
11064+
1099811065 @implementation QTLocale
1099911066 + (NSDictionary<NSString *, NSString *> *)properties
1100011067 {
@@ -11539,48 +11606,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1153911606 }
1154011607 @end
1154111608
11542-@implementation QTNoexcept
11543-+ (NSDictionary<NSString *, NSString *> *)properties
11544-{
11545- static NSDictionary<NSString *, NSString *> *properties;
11546- return properties = properties ? properties : @{
11547- @"noexcept": @"noexcept",
11548- };
11549-}
11550-
11551-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11552-{
11553- return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
11554-}
11555-
11556-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11557-{
11558- if (self = [super init]) {
11559- if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
11560- if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
11561- [self setValuesForKeysWithDictionary:dict];
11562- }
11563- return self;
11564-}
11565-
11566-- (void)setValue:(nullable id)value forKey:(NSString *)key
11567-{
11568- id resolved = QTNoexcept.properties[key];
11569- if (resolved) [super setValue:value forKey:resolved];
11570-}
11571-
11572-- (void)setNilValueForKey:(NSString *)key
11573-{
11574- id resolved = QTNoexcept.properties[key];
11575- if (resolved) [super setValue:@(0) forKey:resolved];
11576-}
11577-
11578-- (NSDictionary *)JSONDictionary
11579-{
11580- return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
11581-}
11582-@end
11583-
1158411609 @implementation QTIf
1158511610 + (NSDictionary<NSString *, NSString *> *)properties
1158611611 {
@@ -12004,6 +12029,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1200412029 return properties = properties ? properties : @{
1200512030 @"dummy": @"dummy",
1200612031 @"noSuchMethod": @"noSuchMethod",
12032+ @"noexcept": @"noexcept",
1200712033 @"None": @"none",
1200812034 @"nonlocal": @"nonlocal",
1200912035 @"nonmutating": @"nonmutating",
@@ -12026,6 +12052,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1202612052 @"object": @"object",
1202712053 @"ObjectMapper": @"objectMapper",
1202812054 @"of": @"of",
12055+ @"OffsetDateTime": @"offsetDateTime",
12056+ @"OffsetTime": @"offsetTime",
1202912057 @"oneway": @"oneway",
1203012058 @"open": @"open",
1203112059 @"operator": @"operator",
@@ -12064,9 +12092,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1206412092 @"runtimeType": @"runtimeType",
1206512093 @"s": @"s",
1206612094 @"sbyte": @"sbyte",
12067- @"sealed": @"sealed",
12068- @"SEL": @"sel",
12069- @"select": @"select",
1207012095 };
1207112096 }
1207212097
@@ -12081,6 +12106,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1208112106 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1208212107 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
1208312108 if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil;
12109+ if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
1208412110 if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil;
1208512111 if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil;
1208612112 if (![dict[@"nonmutating"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12103,6 +12129,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1210312129 if (![dict[@"object"] isKindOfClass:NSDictionary.class]) return nil;
1210412130 if (![dict[@"ObjectMapper"] isKindOfClass:NSDictionary.class]) return nil;
1210512131 if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil;
12132+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSDictionary.class]) return nil;
12133+ if (![dict[@"OffsetTime"] isKindOfClass:NSDictionary.class]) return nil;
1210612134 if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil;
1210712135 if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil;
1210812136 if (![dict[@"operator"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12141,12 +12169,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1214112169 if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil;
1214212170 if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil;
1214312171 if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
12144- if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
12145- if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
12146- if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1214712172 [self setValuesForKeysWithDictionary:dict];
1214812173 _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod];
1214912174 if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil;
12175+ _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
12176+ if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
1215012177 _none = [QTNone fromJSONDictionary:(id)_none];
1215112178 if (!_none && dict[@"None"] && ![dict[@"None"] isKindOfClass:NSNull.class]) return nil;
1215212179 _nonlocal = [QTNonlocal fromJSONDictionary:(id)_nonlocal];
@@ -12191,6 +12218,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1219112218 if (!_objectMapper && dict[@"ObjectMapper"] && ![dict[@"ObjectMapper"] isKindOfClass:NSNull.class]) return nil;
1219212219 _of = [QTOf fromJSONDictionary:(id)_of];
1219312220 if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil;
12221+ _offsetDateTime = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTime];
12222+ if (!_offsetDateTime && dict[@"OffsetDateTime"] && ![dict[@"OffsetDateTime"] isKindOfClass:NSNull.class]) return nil;
12223+ _offsetTime = [QTOffsetTime fromJSONDictionary:(id)_offsetTime];
12224+ if (!_offsetTime && dict[@"OffsetTime"] && ![dict[@"OffsetTime"] isKindOfClass:NSNull.class]) return nil;
1219412225 _oneway = [QTOneway fromJSONDictionary:(id)_oneway];
1219512226 if (!_oneway && dict[@"oneway"] && ![dict[@"oneway"] isKindOfClass:NSNull.class]) return nil;
1219612227 _open = [QTOpen fromJSONDictionary:(id)_open];
@@ -12267,12 +12298,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1226712298 if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil;
1226812299 _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte];
1226912300 if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil;
12270- _sealed = [QTSealed fromJSONDictionary:(id)_sealed];
12271- if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
12272- _sel = [QTSel fromJSONDictionary:(id)_sel];
12273- if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
12274- _select = [QTSelect fromJSONDictionary:(id)_select];
12275- if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1227612301 }
1227712302 return self;
1227812303 }
@@ -12303,6 +12328,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1230312328
1230412329 [dict addEntriesFromDictionary:@{
1230512330 @"noSuchMethod": [_noSuchMethod JSONDictionary],
12331+ @"noexcept": [_noexcept JSONDictionary],
1230612332 @"None": [_none JSONDictionary],
1230712333 @"nonlocal": [_nonlocal JSONDictionary],
1230812334 @"nonmutating": [_nonmutating JSONDictionary],
@@ -12325,6 +12351,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1232512351 @"object": [_object JSONDictionary],
1232612352 @"ObjectMapper": [_objectMapper JSONDictionary],
1232712353 @"of": [_of JSONDictionary],
12354+ @"OffsetDateTime": [_offsetDateTime JSONDictionary],
12355+ @"OffsetTime": [_offsetTime JSONDictionary],
1232812356 @"oneway": [_oneway JSONDictionary],
1232912357 @"open": [_open JSONDictionary],
1233012358 @"operator": [_operator JSONDictionary],
@@ -12363,9 +12391,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1236312391 @"runtimeType": [_runtimeType JSONDictionary],
1236412392 @"s": [_s JSONDictionary],
1236512393 @"sbyte": [_sbyte JSONDictionary],
12366- @"sealed": [_sealed JSONDictionary],
12367- @"SEL": [_sel JSONDictionary],
12368- @"select": [_select JSONDictionary],
1236912394 }];
1237012395
1237112396 return dict;
@@ -12414,6 +12439,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1241412439 }
1241512440 @end
1241612441
12442+@implementation QTNoexcept
12443++ (NSDictionary<NSString *, NSString *> *)properties
12444+{
12445+ static NSDictionary<NSString *, NSString *> *properties;
12446+ return properties = properties ? properties : @{
12447+ @"noexcept": @"noexcept",
12448+ };
12449+}
12450+
12451++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12452+{
12453+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
12454+}
12455+
12456+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12457+{
12458+ if (self = [super init]) {
12459+ if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
12460+ if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
12461+ [self setValuesForKeysWithDictionary:dict];
12462+ }
12463+ return self;
12464+}
12465+
12466+- (void)setValue:(nullable id)value forKey:(NSString *)key
12467+{
12468+ id resolved = QTNoexcept.properties[key];
12469+ if (resolved) [super setValue:value forKey:resolved];
12470+}
12471+
12472+- (void)setNilValueForKey:(NSString *)key
12473+{
12474+ id resolved = QTNoexcept.properties[key];
12475+ if (resolved) [super setValue:@(0) forKey:resolved];
12476+}
12477+
12478+- (NSDictionary *)JSONDictionary
12479+{
12480+ return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
12481+}
12482+@end
12483+
1241712484 @implementation QTNone
1241812485 + (NSDictionary<NSString *, NSString *> *)properties
1241912486 {
@@ -13458,25 +13525,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1345813525 }
1345913526 @end
1346013527
13461-@implementation QTOneway
13528+@implementation QTOffsetDateTime
1346213529 + (NSDictionary<NSString *, NSString *> *)properties
1346313530 {
1346413531 static NSDictionary<NSString *, NSString *> *properties;
1346513532 return properties = properties ? properties : @{
13466- @"oneway": @"oneway",
13533+ @"OffsetDateTime": @"offsetDateTime",
1346713534 };
1346813535 }
1346913536
1347013537 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1347113538 {
13472- return [dict isKindOfClass:NSDictionary.class] ? [[QTOneway alloc] initWithJSONDictionary:dict] : nil;
13539+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
1347313540 }
1347413541
1347513542 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1347613543 {
1347713544 if (self = [super init]) {
13478- if (![dict[@"oneway"] isKindOfClass:NSNumber.class]) return nil;
13479- if ([dict[@"oneway"] doubleValue] != [dict[@"oneway"] longLongValue]) return nil;
13545+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSNumber.class]) return nil;
13546+ if ([dict[@"OffsetDateTime"] doubleValue] != [dict[@"OffsetDateTime"] longLongValue]) return nil;
1348013547 [self setValuesForKeysWithDictionary:dict];
1348113548 }
1348213549 return self;
@@ -13484,41 +13551,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1348413551
1348513552 - (void)setValue:(nullable id)value forKey:(NSString *)key
1348613553 {
13487- id resolved = QTOneway.properties[key];
13554+ id resolved = QTOffsetDateTime.properties[key];
1348813555 if (resolved) [super setValue:value forKey:resolved];
1348913556 }
1349013557
1349113558 - (void)setNilValueForKey:(NSString *)key
1349213559 {
13493- id resolved = QTOneway.properties[key];
13560+ id resolved = QTOffsetDateTime.properties[key];
1349413561 if (resolved) [super setValue:@(0) forKey:resolved];
1349513562 }
1349613563
1349713564 - (NSDictionary *)JSONDictionary
1349813565 {
13499- return [self dictionaryWithValuesForKeys:QTOneway.properties.allValues];
13566+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues] mutableCopy];
13567+
13568+ for (id jsonName in QTOffsetDateTime.properties) {
13569+ id propertyName = QTOffsetDateTime.properties[jsonName];
13570+ if (![jsonName isEqualToString:propertyName]) {
13571+ dict[jsonName] = dict[propertyName];
13572+ [dict removeObjectForKey:propertyName];
13573+ }
13574+ }
13575+
13576+ return dict;
1350013577 }
1350113578 @end
1350213579
13503-@implementation QTOpen
13580+@implementation QTOffsetTime
1350413581 + (NSDictionary<NSString *, NSString *> *)properties
1350513582 {
1350613583 static NSDictionary<NSString *, NSString *> *properties;
1350713584 return properties = properties ? properties : @{
13508- @"open": @"open",
13585+ @"OffsetTime": @"offsetTime",
1350913586 };
1351013587 }
1351113588
1351213589 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1351313590 {
13514- return [dict isKindOfClass:NSDictionary.class] ? [[QTOpen alloc] initWithJSONDictionary:dict] : nil;
13591+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
1351513592 }
1351613593
1351713594 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1351813595 {
1351913596 if (self = [super init]) {
13520- if (![dict[@"open"] isKindOfClass:NSNumber.class]) return nil;
13521- if ([dict[@"open"] doubleValue] != [dict[@"open"] longLongValue]) return nil;
13597+ if (![dict[@"OffsetTime"] isKindOfClass:NSNumber.class]) return nil;
13598+ if ([dict[@"OffsetTime"] doubleValue] != [dict[@"OffsetTime"] longLongValue]) return nil;
1352213599 [self setValuesForKeysWithDictionary:dict];
1352313600 }
1352413601 return self;
@@ -13526,28 +13603,122 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1352613603
1352713604 - (void)setValue:(nullable id)value forKey:(NSString *)key
1352813605 {
13529- id resolved = QTOpen.properties[key];
13606+ id resolved = QTOffsetTime.properties[key];
1353013607 if (resolved) [super setValue:value forKey:resolved];
1353113608 }
1353213609
1353313610 - (void)setNilValueForKey:(NSString *)key
1353413611 {
13535- id resolved = QTOpen.properties[key];
13612+ id resolved = QTOffsetTime.properties[key];
1353613613 if (resolved) [super setValue:@(0) forKey:resolved];
1353713614 }
1353813615
1353913616 - (NSDictionary *)JSONDictionary
1354013617 {
13541- return [self dictionaryWithValuesForKeys:QTOpen.properties.allValues];
13618+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues] mutableCopy];
13619+
13620+ for (id jsonName in QTOffsetTime.properties) {
13621+ id propertyName = QTOffsetTime.properties[jsonName];
13622+ if (![jsonName isEqualToString:propertyName]) {
13623+ dict[jsonName] = dict[propertyName];
13624+ [dict removeObjectForKey:propertyName];
13625+ }
13626+ }
13627+
13628+ return dict;
1354213629 }
1354313630 @end
1354413631
13545-@implementation QTOperator
13632+@implementation QTOneway
1354613633 + (NSDictionary<NSString *, NSString *> *)properties
1354713634 {
1354813635 static NSDictionary<NSString *, NSString *> *properties;
1354913636 return properties = properties ? properties : @{
13550- @"operator": @"operator",
13637+ @"oneway": @"oneway",
13638+ };
13639+}
13640+
13641++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13642+{
13643+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOneway alloc] initWithJSONDictionary:dict] : nil;
13644+}
13645+
13646+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13647+{
13648+ if (self = [super init]) {
13649+ if (![dict[@"oneway"] isKindOfClass:NSNumber.class]) return nil;
13650+ if ([dict[@"oneway"] doubleValue] != [dict[@"oneway"] longLongValue]) return nil;
13651+ [self setValuesForKeysWithDictionary:dict];
13652+ }
13653+ return self;
13654+}
13655+
13656+- (void)setValue:(nullable id)value forKey:(NSString *)key
13657+{
13658+ id resolved = QTOneway.properties[key];
13659+ if (resolved) [super setValue:value forKey:resolved];
13660+}
13661+
13662+- (void)setNilValueForKey:(NSString *)key
13663+{
13664+ id resolved = QTOneway.properties[key];
13665+ if (resolved) [super setValue:@(0) forKey:resolved];
13666+}
13667+
13668+- (NSDictionary *)JSONDictionary
13669+{
13670+ return [self dictionaryWithValuesForKeys:QTOneway.properties.allValues];
13671+}
13672+@end
13673+
13674+@implementation QTOpen
13675++ (NSDictionary<NSString *, NSString *> *)properties
13676+{
13677+ static NSDictionary<NSString *, NSString *> *properties;
13678+ return properties = properties ? properties : @{
13679+ @"open": @"open",
13680+ };
13681+}
13682+
13683++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13684+{
13685+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOpen alloc] initWithJSONDictionary:dict] : nil;
13686+}
13687+
13688+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13689+{
13690+ if (self = [super init]) {
13691+ if (![dict[@"open"] isKindOfClass:NSNumber.class]) return nil;
13692+ if ([dict[@"open"] doubleValue] != [dict[@"open"] longLongValue]) return nil;
13693+ [self setValuesForKeysWithDictionary:dict];
13694+ }
13695+ return self;
13696+}
13697+
13698+- (void)setValue:(nullable id)value forKey:(NSString *)key
13699+{
13700+ id resolved = QTOpen.properties[key];
13701+ if (resolved) [super setValue:value forKey:resolved];
13702+}
13703+
13704+- (void)setNilValueForKey:(NSString *)key
13705+{
13706+ id resolved = QTOpen.properties[key];
13707+ if (resolved) [super setValue:@(0) forKey:resolved];
13708+}
13709+
13710+- (NSDictionary *)JSONDictionary
13711+{
13712+ return [self dictionaryWithValuesForKeys:QTOpen.properties.allValues];
13713+}
13714+@end
13715+
13716+@implementation QTOperator
13717++ (NSDictionary<NSString *, NSString *> *)properties
13718+{
13719+ static NSDictionary<NSString *, NSString *> *properties;
13720+ return properties = properties ? properties : @{
13721+ @"operator": @"operator",
1355113722 };
1355213723 }
1355313724
@@ -15094,142 +15265,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1509415265 }
1509515266 @end
1509615267
15097-@implementation QTSealed
15098-+ (NSDictionary<NSString *, NSString *> *)properties
15099-{
15100- static NSDictionary<NSString *, NSString *> *properties;
15101- return properties = properties ? properties : @{
15102- @"sealed": @"sealed",
15103- };
15104-}
15105-
15106-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15107-{
15108- return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil;
15109-}
15110-
15111-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15112-{
15113- if (self = [super init]) {
15114- if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil;
15115- if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil;
15116- [self setValuesForKeysWithDictionary:dict];
15117- }
15118- return self;
15119-}
15120-
15121-- (void)setValue:(nullable id)value forKey:(NSString *)key
15122-{
15123- id resolved = QTSealed.properties[key];
15124- if (resolved) [super setValue:value forKey:resolved];
15125-}
15126-
15127-- (void)setNilValueForKey:(NSString *)key
15128-{
15129- id resolved = QTSealed.properties[key];
15130- if (resolved) [super setValue:@(0) forKey:resolved];
15131-}
15132-
15133-- (NSDictionary *)JSONDictionary
15134-{
15135- return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues];
15136-}
15137-@end
15138-
15139-@implementation QTSel
15140-+ (NSDictionary<NSString *, NSString *> *)properties
15141-{
15142- static NSDictionary<NSString *, NSString *> *properties;
15143- return properties = properties ? properties : @{
15144- @"SEL": @"sel",
15145- };
15146-}
15147-
15148-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15149-{
15150- return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil;
15151-}
15152-
15153-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15154-{
15155- if (self = [super init]) {
15156- if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil;
15157- if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil;
15158- [self setValuesForKeysWithDictionary:dict];
15159- }
15160- return self;
15161-}
15162-
15163-- (void)setValue:(nullable id)value forKey:(NSString *)key
15164-{
15165- id resolved = QTSel.properties[key];
15166- if (resolved) [super setValue:value forKey:resolved];
15167-}
15168-
15169-- (void)setNilValueForKey:(NSString *)key
15170-{
15171- id resolved = QTSel.properties[key];
15172- if (resolved) [super setValue:@(0) forKey:resolved];
15173-}
15174-
15175-- (NSDictionary *)JSONDictionary
15176-{
15177- id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy];
15178-
15179- for (id jsonName in QTSel.properties) {
15180- id propertyName = QTSel.properties[jsonName];
15181- if (![jsonName isEqualToString:propertyName]) {
15182- dict[jsonName] = dict[propertyName];
15183- [dict removeObjectForKey:propertyName];
15184- }
15185- }
15186-
15187- return dict;
15188-}
15189-@end
15190-
15191-@implementation QTSelect
15192-+ (NSDictionary<NSString *, NSString *> *)properties
15193-{
15194- static NSDictionary<NSString *, NSString *> *properties;
15195- return properties = properties ? properties : @{
15196- @"select": @"select",
15197- };
15198-}
15199-
15200-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15201-{
15202- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
15203-}
15204-
15205-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15206-{
15207- if (self = [super init]) {
15208- if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
15209- if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
15210- [self setValuesForKeysWithDictionary:dict];
15211- }
15212- return self;
15213-}
15214-
15215-- (void)setValue:(nullable id)value forKey:(NSString *)key
15216-{
15217- id resolved = QTSelect.properties[key];
15218- if (resolved) [super setValue:value forKey:resolved];
15219-}
15220-
15221-- (void)setNilValueForKey:(NSString *)key
15222-{
15223- id resolved = QTSelect.properties[key];
15224- if (resolved) [super setValue:@(0) forKey:resolved];
15225-}
15226-
15227-- (NSDictionary *)JSONDictionary
15228-{
15229- return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
15230-}
15231-@end
15232-
1523315268 @implementation QTObj5
1523415269 + (NSDictionary<NSString *, NSString *> *)properties
1523515270 {
@@ -15249,8 +15284,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1524915284 @"typedef": @"obj5Typedef",
1525015285 @"typeof": @"obj5Typeof",
1525115286 @"union": @"obj5Union",
15252- @"unsigned": @"obj5Unsigned",
1525315287 @"PrimitiveKind": @"primitiveKind",
15288+ @"sealed": @"sealed",
15289+ @"SEL": @"sel",
15290+ @"select": @"select",
1525415291 @"Self": @"self",
1525515292 @"Sendable": @"sendable",
1525615293 @"SerialDescriptor": @"serialDescriptor",
@@ -15297,9 +15334,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1529715334 @"unchecked": @"unchecked",
1529815335 @"undefined": @"undefined",
1529915336 @"unowned": @"unowned",
15300- @"unsafe": @"unsafe",
1530115337 @"UseSerializers": @"useSerializers",
15302- @"ushort": @"ushort",
1530315338 };
1530415339 }
1530515340
@@ -15326,8 +15361,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1532615361 if (![dict[@"typedef"] isKindOfClass:NSDictionary.class]) return nil;
1532715362 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
1532815363 if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
15329- if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
1533015364 if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil;
15365+ if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
15366+ if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
15367+ if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1533115368 if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil;
1533215369 if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil;
1533315370 if (![dict[@"SerialDescriptor"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15374,9 +15411,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1537415411 if (![dict[@"unchecked"] isKindOfClass:NSDictionary.class]) return nil;
1537515412 if (![dict[@"undefined"] isKindOfClass:NSDictionary.class]) return nil;
1537615413 if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil;
15377- if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil;
1537815414 if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil;
15379- if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
1538015415 [self setValuesForKeysWithDictionary:dict];
1538115416 _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer];
1538215417 if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil;
@@ -15404,10 +15439,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1540415439 if (!_obj5Typeof && dict[@"typeof"] && ![dict[@"typeof"] isKindOfClass:NSNull.class]) return nil;
1540515440 _obj5Union = [QTUnion fromJSONDictionary:(id)_obj5Union];
1540615441 if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
15407- _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned];
15408- if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
1540915442 _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind];
1541015443 if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil;
15444+ _sealed = [QTSealed fromJSONDictionary:(id)_sealed];
15445+ if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
15446+ _sel = [QTSel fromJSONDictionary:(id)_sel];
15447+ if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
15448+ _select = [QTSelect fromJSONDictionary:(id)_select];
15449+ if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1541115450 _self = [QTSelf fromJSONDictionary:(id)_self];
1541215451 if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil;
1541315452 _sendable = [QTSendable fromJSONDictionary:(id)_sendable];
@@ -15500,12 +15539,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1550015539 if (!_undefined && dict[@"undefined"] && ![dict[@"undefined"] isKindOfClass:NSNull.class]) return nil;
1550115540 _unowned = [QTUnowned fromJSONDictionary:(id)_unowned];
1550215541 if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil;
15503- _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe];
15504- if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil;
1550515542 _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers];
1550615543 if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil;
15507- _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
15508- if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
1550915544 }
1551015545 return self;
1551115546 }
@@ -15548,8 +15583,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1554815583 @"typedef": [_obj5Typedef JSONDictionary],
1554915584 @"typeof": [_obj5Typeof JSONDictionary],
1555015585 @"union": [_obj5Union JSONDictionary],
15551- @"unsigned": [_obj5Unsigned JSONDictionary],
1555215586 @"PrimitiveKind": [_primitiveKind JSONDictionary],
15587+ @"sealed": [_sealed JSONDictionary],
15588+ @"SEL": [_sel JSONDictionary],
15589+ @"select": [_select JSONDictionary],
1555315590 @"Self": [_self JSONDictionary],
1555415591 @"Sendable": [_sendable JSONDictionary],
1555515592 @"SerialDescriptor": [_serialDescriptor JSONDictionary],
@@ -15596,9 +15633,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1559615633 @"unchecked": [_unchecked JSONDictionary],
1559715634 @"undefined": [_undefined JSONDictionary],
1559815635 @"unowned": [_unowned JSONDictionary],
15599- @"unsafe": [_unsafe JSONDictionary],
1560015636 @"UseSerializers": [_useSerializers JSONDictionary],
15601- @"ushort": [_ushort JSONDictionary],
1560215637 }];
1560315638
1560415639 return dict;
@@ -16261,48 +16296,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1626116296 }
1626216297 @end
1626316298
16264-@implementation QTUnsigned
16299+@implementation QTPrimitiveKind
1626516300 + (NSDictionary<NSString *, NSString *> *)properties
1626616301 {
1626716302 static NSDictionary<NSString *, NSString *> *properties;
1626816303 return properties = properties ? properties : @{
16269- @"unsigned": @"unsignedUnsigned",
16304+ @"PrimitiveKind": @"primitiveKind",
1627016305 };
1627116306 }
1627216307
1627316308 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1627416309 {
16275- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil;
16310+ return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
1627616311 }
1627716312
1627816313 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1627916314 {
1628016315 if (self = [super init]) {
16281- if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil;
16282- if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil;
16283- [self setValuesForKeysWithDictionary:dict];
16316+ if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16317+ if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
16318+ [self setValuesForKeysWithDictionary:dict];
1628416319 }
1628516320 return self;
1628616321 }
1628716322
1628816323 - (void)setValue:(nullable id)value forKey:(NSString *)key
1628916324 {
16290- id resolved = QTUnsigned.properties[key];
16325+ id resolved = QTPrimitiveKind.properties[key];
1629116326 if (resolved) [super setValue:value forKey:resolved];
1629216327 }
1629316328
1629416329 - (void)setNilValueForKey:(NSString *)key
1629516330 {
16296- id resolved = QTUnsigned.properties[key];
16331+ id resolved = QTPrimitiveKind.properties[key];
1629716332 if (resolved) [super setValue:@(0) forKey:resolved];
1629816333 }
1629916334
1630016335 - (NSDictionary *)JSONDictionary
1630116336 {
16302- id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy];
16337+ id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
1630316338
16304- for (id jsonName in QTUnsigned.properties) {
16305- id propertyName = QTUnsigned.properties[jsonName];
16339+ for (id jsonName in QTPrimitiveKind.properties) {
16340+ id propertyName = QTPrimitiveKind.properties[jsonName];
1630616341 if (![jsonName isEqualToString:propertyName]) {
1630716342 dict[jsonName] = dict[propertyName];
1630816343 [dict removeObjectForKey:propertyName];
@@ -16313,25 +16348,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1631316348 }
1631416349 @end
1631516350
16316-@implementation QTPrimitiveKind
16351+@implementation QTSealed
1631716352 + (NSDictionary<NSString *, NSString *> *)properties
1631816353 {
1631916354 static NSDictionary<NSString *, NSString *> *properties;
1632016355 return properties = properties ? properties : @{
16321- @"PrimitiveKind": @"primitiveKind",
16356+ @"sealed": @"sealed",
1632216357 };
1632316358 }
1632416359
1632516360 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1632616361 {
16327- return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil;
16362+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil;
1632816363 }
1632916364
1633016365 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1633116366 {
1633216367 if (self = [super init]) {
16333- if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil;
16334- if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil;
16368+ if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil;
16369+ if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil;
1633516370 [self setValuesForKeysWithDictionary:dict];
1633616371 }
1633716372 return self;
@@ -16339,22 +16374,64 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1633916374
1634016375 - (void)setValue:(nullable id)value forKey:(NSString *)key
1634116376 {
16342- id resolved = QTPrimitiveKind.properties[key];
16377+ id resolved = QTSealed.properties[key];
1634316378 if (resolved) [super setValue:value forKey:resolved];
1634416379 }
1634516380
1634616381 - (void)setNilValueForKey:(NSString *)key
1634716382 {
16348- id resolved = QTPrimitiveKind.properties[key];
16383+ id resolved = QTSealed.properties[key];
1634916384 if (resolved) [super setValue:@(0) forKey:resolved];
1635016385 }
1635116386
1635216387 - (NSDictionary *)JSONDictionary
1635316388 {
16354- id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy];
16389+ return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues];
16390+}
16391+@end
1635516392
16356- for (id jsonName in QTPrimitiveKind.properties) {
16357- id propertyName = QTPrimitiveKind.properties[jsonName];
16393+@implementation QTSel
16394++ (NSDictionary<NSString *, NSString *> *)properties
16395+{
16396+ static NSDictionary<NSString *, NSString *> *properties;
16397+ return properties = properties ? properties : @{
16398+ @"SEL": @"sel",
16399+ };
16400+}
16401+
16402++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16403+{
16404+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil;
16405+}
16406+
16407+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16408+{
16409+ if (self = [super init]) {
16410+ if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil;
16411+ if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil;
16412+ [self setValuesForKeysWithDictionary:dict];
16413+ }
16414+ return self;
16415+}
16416+
16417+- (void)setValue:(nullable id)value forKey:(NSString *)key
16418+{
16419+ id resolved = QTSel.properties[key];
16420+ if (resolved) [super setValue:value forKey:resolved];
16421+}
16422+
16423+- (void)setNilValueForKey:(NSString *)key
16424+{
16425+ id resolved = QTSel.properties[key];
16426+ if (resolved) [super setValue:@(0) forKey:resolved];
16427+}
16428+
16429+- (NSDictionary *)JSONDictionary
16430+{
16431+ id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy];
16432+
16433+ for (id jsonName in QTSel.properties) {
16434+ id propertyName = QTSel.properties[jsonName];
1635816435 if (![jsonName isEqualToString:propertyName]) {
1635916436 dict[jsonName] = dict[propertyName];
1636016437 [dict removeObjectForKey:propertyName];
@@ -16365,6 +16442,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1636516442 }
1636616443 @end
1636716444
16445+@implementation QTSelect
16446++ (NSDictionary<NSString *, NSString *> *)properties
16447+{
16448+ static NSDictionary<NSString *, NSString *> *properties;
16449+ return properties = properties ? properties : @{
16450+ @"select": @"select",
16451+ };
16452+}
16453+
16454++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16455+{
16456+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
16457+}
16458+
16459+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16460+{
16461+ if (self = [super init]) {
16462+ if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
16463+ if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
16464+ [self setValuesForKeysWithDictionary:dict];
16465+ }
16466+ return self;
16467+}
16468+
16469+- (void)setValue:(nullable id)value forKey:(NSString *)key
16470+{
16471+ id resolved = QTSelect.properties[key];
16472+ if (resolved) [super setValue:value forKey:resolved];
16473+}
16474+
16475+- (void)setNilValueForKey:(NSString *)key
16476+{
16477+ id resolved = QTSelect.properties[key];
16478+ if (resolved) [super setValue:@(0) forKey:resolved];
16479+}
16480+
16481+- (NSDictionary *)JSONDictionary
16482+{
16483+ return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
16484+}
16485+@end
16486+
1636816487 @implementation QTSelf
1636916488 + (NSDictionary<NSString *, NSString *> *)properties
1637016489 {
@@ -18497,48 +18616,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1849718616 }
1849818617 @end
1849918618
18500-@implementation QTUnsafe
18501-+ (NSDictionary<NSString *, NSString *> *)properties
18502-{
18503- static NSDictionary<NSString *, NSString *> *properties;
18504- return properties = properties ? properties : @{
18505- @"unsafe": @"unsafe",
18506- };
18507-}
18508-
18509-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18510-{
18511- return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil;
18512-}
18513-
18514-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18515-{
18516- if (self = [super init]) {
18517- if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil;
18518- if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil;
18519- [self setValuesForKeysWithDictionary:dict];
18520- }
18521- return self;
18522-}
18523-
18524-- (void)setValue:(nullable id)value forKey:(NSString *)key
18525-{
18526- id resolved = QTUnsafe.properties[key];
18527- if (resolved) [super setValue:value forKey:resolved];
18528-}
18529-
18530-- (void)setNilValueForKey:(NSString *)key
18531-{
18532- id resolved = QTUnsafe.properties[key];
18533- if (resolved) [super setValue:@(0) forKey:resolved];
18534-}
18535-
18536-- (NSDictionary *)JSONDictionary
18537-{
18538- return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues];
18539-}
18540-@end
18541-
1854218619 @implementation QTUseSerializers
1854318620 + (NSDictionary<NSString *, NSString *> *)properties
1854418621 {
@@ -18591,57 +18668,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1859118668 }
1859218669 @end
1859318670
18594-@implementation QTUshort
18595-+ (NSDictionary<NSString *, NSString *> *)properties
18596-{
18597- static NSDictionary<NSString *, NSString *> *properties;
18598- return properties = properties ? properties : @{
18599- @"ushort": @"ushort",
18600- };
18601-}
18602-
18603-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18604-{
18605- return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil;
18606-}
18607-
18608-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18609-{
18610- if (self = [super init]) {
18611- if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil;
18612- if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil;
18613- [self setValuesForKeysWithDictionary:dict];
18614- }
18615- return self;
18616-}
18617-
18618-- (void)setValue:(nullable id)value forKey:(NSString *)key
18619-{
18620- id resolved = QTUshort.properties[key];
18621- if (resolved) [super setValue:value forKey:resolved];
18622-}
18623-
18624-- (void)setNilValueForKey:(NSString *)key
18625-{
18626- id resolved = QTUshort.properties[key];
18627- if (resolved) [super setValue:@(0) forKey:resolved];
18628-}
18629-
18630-- (NSDictionary *)JSONDictionary
18631-{
18632- return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues];
18633-}
18634-@end
18635-
1863618671 @implementation QTObj6
1863718672 + (NSDictionary<NSString *, NSString *> *)properties
1863818673 {
1863918674 static NSDictionary<NSString *, NSString *> *properties;
1864018675 return properties = properties ? properties : @{
1864118676 @"dummy": @"dummy",
18677+ @"unsigned": @"obj6Unsigned",
1864218678 @"void": @"obj6Void",
1864318679 @"volatile": @"obj6Volatile",
1864418680 @"while": @"obj6While",
18681+ @"unsafe": @"unsafe",
18682+ @"ushort": @"ushort",
1864518683 @"using": @"using",
1864618684 @"Utf8JsonReader": @"utf8JSONReader",
1864718685 @"Utf8JsonWriter": @"utf8JSONWriter",
@@ -18670,9 +18708,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1867018708 if (self = [super init]) {
1867118709 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1867218710 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
18711+ if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
1867318712 if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
1867418713 if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
1867518714 if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18715+ if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil;
18716+ if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil;
1867618717 if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
1867718718 if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
1867818719 if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
@@ -18689,12 +18730,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1868918730 if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil;
1869018731 if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil;
1869118732 [self setValuesForKeysWithDictionary:dict];
18733+ _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned];
18734+ if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
1869218735 _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void];
1869318736 if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil;
1869418737 _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile];
1869518738 if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
1869618739 _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
1869718740 if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18741+ _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe];
18742+ if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil;
18743+ _ushort = [QTUshort fromJSONDictionary:(id)_ushort];
18744+ if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil;
1869818745 _using = [QTUsing fromJSONDictionary:(id)_using];
1869918746 if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil;
1870018747 _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader];
@@ -18754,9 +18801,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1875418801 }
1875518802
1875618803 [dict addEntriesFromDictionary:@{
18804+ @"unsigned": [_obj6Unsigned JSONDictionary],
1875718805 @"void": [_obj6Void JSONDictionary],
1875818806 @"volatile": [_obj6Volatile JSONDictionary],
1875918807 @"while": [_obj6While JSONDictionary],
18808+ @"unsafe": [_unsafe JSONDictionary],
18809+ @"ushort": [_ushort JSONDictionary],
1876018810 @"using": [_using JSONDictionary],
1876118811 @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
1876218812 @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
@@ -18778,6 +18828,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1877818828 }
1877918829 @end
1878018830
18831+@implementation QTUnsigned
18832++ (NSDictionary<NSString *, NSString *> *)properties
18833+{
18834+ static NSDictionary<NSString *, NSString *> *properties;
18835+ return properties = properties ? properties : @{
18836+ @"unsigned": @"unsignedUnsigned",
18837+ };
18838+}
18839+
18840++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18841+{
18842+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil;
18843+}
18844+
18845+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18846+{
18847+ if (self = [super init]) {
18848+ if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil;
18849+ if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil;
18850+ [self setValuesForKeysWithDictionary:dict];
18851+ }
18852+ return self;
18853+}
18854+
18855+- (void)setValue:(nullable id)value forKey:(NSString *)key
18856+{
18857+ id resolved = QTUnsigned.properties[key];
18858+ if (resolved) [super setValue:value forKey:resolved];
18859+}
18860+
18861+- (void)setNilValueForKey:(NSString *)key
18862+{
18863+ id resolved = QTUnsigned.properties[key];
18864+ if (resolved) [super setValue:@(0) forKey:resolved];
18865+}
18866+
18867+- (NSDictionary *)JSONDictionary
18868+{
18869+ id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy];
18870+
18871+ for (id jsonName in QTUnsigned.properties) {
18872+ id propertyName = QTUnsigned.properties[jsonName];
18873+ if (![jsonName isEqualToString:propertyName]) {
18874+ dict[jsonName] = dict[propertyName];
18875+ [dict removeObjectForKey:propertyName];
18876+ }
18877+ }
18878+
18879+ return dict;
18880+}
18881+@end
18882+
1878118883 @implementation QTVoid
1878218884 + (NSDictionary<NSString *, NSString *> *)properties
1878318885 {
@@ -18934,6 +19036,90 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1893419036 }
1893519037 @end
1893619038
19039+@implementation QTUnsafe
19040++ (NSDictionary<NSString *, NSString *> *)properties
19041+{
19042+ static NSDictionary<NSString *, NSString *> *properties;
19043+ return properties = properties ? properties : @{
19044+ @"unsafe": @"unsafe",
19045+ };
19046+}
19047+
19048++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19049+{
19050+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil;
19051+}
19052+
19053+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19054+{
19055+ if (self = [super init]) {
19056+ if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil;
19057+ if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil;
19058+ [self setValuesForKeysWithDictionary:dict];
19059+ }
19060+ return self;
19061+}
19062+
19063+- (void)setValue:(nullable id)value forKey:(NSString *)key
19064+{
19065+ id resolved = QTUnsafe.properties[key];
19066+ if (resolved) [super setValue:value forKey:resolved];
19067+}
19068+
19069+- (void)setNilValueForKey:(NSString *)key
19070+{
19071+ id resolved = QTUnsafe.properties[key];
19072+ if (resolved) [super setValue:@(0) forKey:resolved];
19073+}
19074+
19075+- (NSDictionary *)JSONDictionary
19076+{
19077+ return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues];
19078+}
19079+@end
19080+
19081+@implementation QTUshort
19082++ (NSDictionary<NSString *, NSString *> *)properties
19083+{
19084+ static NSDictionary<NSString *, NSString *> *properties;
19085+ return properties = properties ? properties : @{
19086+ @"ushort": @"ushort",
19087+ };
19088+}
19089+
19090++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19091+{
19092+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil;
19093+}
19094+
19095+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19096+{
19097+ if (self = [super init]) {
19098+ if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil;
19099+ if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil;
19100+ [self setValuesForKeysWithDictionary:dict];
19101+ }
19102+ return self;
19103+}
19104+
19105+- (void)setValue:(nullable id)value forKey:(NSString *)key
19106+{
19107+ id resolved = QTUshort.properties[key];
19108+ if (resolved) [super setValue:value forKey:resolved];
19109+}
19110+
19111+- (void)setNilValueForKey:(NSString *)key
19112+{
19113+ id resolved = QTUshort.properties[key];
19114+ if (resolved) [super setValue:@(0) forKey:resolved];
19115+}
19116+
19117+- (NSDictionary *)JSONDictionary
19118+{
19119+ return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues];
19120+}
19121+@end
19122+
1893719123 @implementation QTUsing
1893819124 + (NSDictionary<NSString *, NSString *> *)properties
1893919125 {
Mphpdefault / TopLevel.php+2,622 −2,145
@@ -21124,6 +21124,7 @@ class Obj3 {
2112421124 private Left $left; // json:left Required
2112521125 private Let $let; // json:let Required
2112621126 private ListClass $list; // json:list Required
21127+ private LocalDate $localDate; // json:LocalDate Required
2112721128 private LocaleClass $locale; // json:Locale Required
2112821129 private Lock $lock; // json:lock Required
2112921130 private Long $long; // json:long Required
@@ -21139,7 +21140,6 @@ class Obj3 {
2113921140 private Newtonsoft $newtonsoft; // json:newtonsoft Required
2114021141 private Nil $nil; // json:nil Required
2114121142 private No $no; // json:NO Required
21142- private Noexcept $noexcept; // json:noexcept Required
2114321143
2114421144 /**
2114521145 * @param int $dummy
@@ -21191,6 +21191,7 @@ class Obj3 {
2119121191 * @param Left $left
2119221192 * @param Let $let
2119321193 * @param ListClass $list
21194+ * @param LocalDate $localDate
2119421195 * @param LocaleClass $locale
2119521196 * @param Lock $lock
2119621197 * @param Long $long
@@ -21206,9 +21207,8 @@ class Obj3 {
2120621207 * @param Newtonsoft $newtonsoft
2120721208 * @param Nil $nil
2120821209 * @param No $no
21209- * @param Noexcept $noexcept
2121021210 */
21211- public function __construct(int $dummy, 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, 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, Map $map, MapEntry $mapEntry, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, Noexcept $noexcept) {
21211+ public function __construct(int $dummy, 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, 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, Map $map, MapEntry $mapEntry, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no) {
2121221212 $this->dummy = $dummy;
2121321213 $this->guard = $guard;
2121421214 $this->hasOwnProperty = $hasOwnProperty;
@@ -21258,6 +21258,7 @@ class Obj3 {
2125821258 $this->left = $left;
2125921259 $this->let = $let;
2126021260 $this->list = $list;
21261+ $this->localDate = $localDate;
2126121262 $this->locale = $locale;
2126221263 $this->lock = $lock;
2126321264 $this->long = $long;
@@ -21273,7 +21274,6 @@ class Obj3 {
2127321274 $this->newtonsoft = $newtonsoft;
2127421275 $this->nil = $nil;
2127521276 $this->no = $no;
21276- $this->noexcept = $noexcept;
2127721277 }
2127821278
2127921279 /**
@@ -23627,6 +23627,54 @@ class Obj3 {
2362723627 return ListClass::sample(); /*79:list*/
2362823628 }
2362923629
23630+ /**
23631+ * @param stdClass $value
23632+ * @throws Exception
23633+ * @return LocalDate
23634+ */
23635+ public static function fromLocalDate(stdClass $value): LocalDate {
23636+ return LocalDate::from($value); /*class*/
23637+ }
23638+
23639+ /**
23640+ * @throws Exception
23641+ * @return stdClass
23642+ */
23643+ public function toLocalDate(): stdClass {
23644+ if (Obj3::validateLocalDate($this->localDate)) {
23645+ return $this->localDate->to(); /*class*/
23646+ }
23647+ throw new Exception('never get to this Obj3::localDate');
23648+ }
23649+
23650+ /**
23651+ * @param LocalDate
23652+ * @return bool
23653+ * @throws Exception
23654+ */
23655+ public static function validateLocalDate(LocalDate $value): bool {
23656+ $value->validate();
23657+ return true;
23658+ }
23659+
23660+ /**
23661+ * @throws Exception
23662+ * @return LocalDate
23663+ */
23664+ public function getLocalDate(): LocalDate {
23665+ if (Obj3::validateLocalDate($this->localDate)) {
23666+ return $this->localDate;
23667+ }
23668+ throw new Exception('never get to getLocalDate Obj3::localDate');
23669+ }
23670+
23671+ /**
23672+ * @return LocalDate
23673+ */
23674+ public static function sampleLocalDate(): LocalDate {
23675+ return LocalDate::sample(); /*80:localDate*/
23676+ }
23677+
2363023678 /**
2363123679 * @param stdClass $value
2363223680 * @throws Exception
@@ -23672,7 +23720,7 @@ class Obj3 {
2367223720 * @return LocaleClass
2367323721 */
2367423722 public static function sampleLocale(): LocaleClass {
23675- return LocaleClass::sample(); /*80:locale*/
23723+ return LocaleClass::sample(); /*81:locale*/
2367623724 }
2367723725
2367823726 /**
@@ -23720,7 +23768,7 @@ class Obj3 {
2372023768 * @return Lock
2372123769 */
2372223770 public static function sampleLock(): Lock {
23723- return Lock::sample(); /*81:lock*/
23771+ return Lock::sample(); /*82:lock*/
2372423772 }
2372523773
2372623774 /**
@@ -23768,7 +23816,7 @@ class Obj3 {
2376823816 * @return Long
2376923817 */
2377023818 public static function sampleLong(): Long {
23771- return Long::sample(); /*82:long*/
23819+ return Long::sample(); /*83:long*/
2377223820 }
2377323821
2377423822 /**
@@ -23816,7 +23864,7 @@ class Obj3 {
2381623864 * @return Map
2381723865 */
2381823866 public static function sampleMap(): Map {
23819- return Map::sample(); /*83:map*/
23867+ return Map::sample(); /*84:map*/
2382023868 }
2382123869
2382223870 /**
@@ -23864,7 +23912,7 @@ class Obj3 {
2386423912 * @return MapEntry
2386523913 */
2386623914 public static function sampleMapEntry(): MapEntry {
23867- return MapEntry::sample(); /*84:mapEntry*/
23915+ return MapEntry::sample(); /*85:mapEntry*/
2386823916 }
2386923917
2387023918 /**
@@ -23912,7 +23960,7 @@ class Obj3 {
2391223960 * @return MetadataPropertyHandling
2391323961 */
2391423962 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling {
23915- return MetadataPropertyHandling::sample(); /*85:metadataPropertyHandling*/
23963+ return MetadataPropertyHandling::sample(); /*86:metadataPropertyHandling*/
2391623964 }
2391723965
2391823966 /**
@@ -23960,7 +24008,7 @@ class Obj3 {
2396024008 * @return Module
2396124009 */
2396224010 public static function sampleModule(): Module {
23963- return Module::sample(); /*86:module*/
24011+ return Module::sample(); /*87:module*/
2396424012 }
2396524013
2396624014 /**
@@ -24008,7 +24056,7 @@ class Obj3 {
2400824056 * @return Mutable
2400924057 */
2401024058 public static function sampleMutable(): Mutable {
24011- return Mutable::sample(); /*87:mutable*/
24059+ return Mutable::sample(); /*88:mutable*/
2401224060 }
2401324061
2401424062 /**
@@ -24056,7 +24104,7 @@ class Obj3 {
2405624104 * @return Mutating
2405724105 */
2405824106 public static function sampleMutating(): Mutating {
24059- return Mutating::sample(); /*88:mutating*/
24107+ return Mutating::sample(); /*89:mutating*/
2406024108 }
2406124109
2406224110 /**
@@ -24104,7 +24152,7 @@ class Obj3 {
2410424152 * @return NamespaceClass
2410524153 */
2410624154 public static function sampleNamespace(): NamespaceClass {
24107- return NamespaceClass::sample(); /*89:namespace*/
24155+ return NamespaceClass::sample(); /*90:namespace*/
2410824156 }
2410924157
2411024158 /**
@@ -24152,7 +24200,7 @@ class Obj3 {
2415224200 * @return Native
2415324201 */
2415424202 public static function sampleNative(): Native {
24155- return Native::sample(); /*90:native*/
24203+ return Native::sample(); /*91:native*/
2415624204 }
2415724205
2415824206 /**
@@ -24200,7 +24248,7 @@ class Obj3 {
2420024248 * @return NewClass
2420124249 */
2420224250 public static function sampleNew(): NewClass {
24203- return NewClass::sample(); /*91:new*/
24251+ return NewClass::sample(); /*92:new*/
2420424252 }
2420524253
2420624254 /**
@@ -24248,7 +24296,7 @@ class Obj3 {
2424824296 * @return Newtonsoft
2424924297 */
2425024298 public static function sampleNewtonsoft(): Newtonsoft {
24251- return Newtonsoft::sample(); /*92:newtonsoft*/
24299+ return Newtonsoft::sample(); /*93:newtonsoft*/
2425224300 }
2425324301
2425424302 /**
@@ -24296,7 +24344,7 @@ class Obj3 {
2429624344 * @return Nil
2429724345 */
2429824346 public static function sampleNil(): Nil {
24299- return Nil::sample(); /*93:nil*/
24347+ return Nil::sample(); /*94:nil*/
2430024348 }
2430124349
2430224350 /**
@@ -24344,55 +24392,7 @@ class Obj3 {
2434424392 * @return No
2434524393 */
2434624394 public static function sampleNo(): No {
24347- return No::sample(); /*94:no*/
24348- }
24349-
24350- /**
24351- * @param stdClass $value
24352- * @throws Exception
24353- * @return Noexcept
24354- */
24355- public static function fromNoexcept(stdClass $value): Noexcept {
24356- return Noexcept::from($value); /*class*/
24357- }
24358-
24359- /**
24360- * @throws Exception
24361- * @return stdClass
24362- */
24363- public function toNoexcept(): stdClass {
24364- if (Obj3::validateNoexcept($this->noexcept)) {
24365- return $this->noexcept->to(); /*class*/
24366- }
24367- throw new Exception('never get to this Obj3::noexcept');
24368- }
24369-
24370- /**
24371- * @param Noexcept
24372- * @return bool
24373- * @throws Exception
24374- */
24375- public static function validateNoexcept(Noexcept $value): bool {
24376- $value->validate();
24377- return true;
24378- }
24379-
24380- /**
24381- * @throws Exception
24382- * @return Noexcept
24383- */
24384- public function getNoexcept(): Noexcept {
24385- if (Obj3::validateNoexcept($this->noexcept)) {
24386- return $this->noexcept;
24387- }
24388- throw new Exception('never get to getNoexcept Obj3::noexcept');
24389- }
24390-
24391- /**
24392- * @return Noexcept
24393- */
24394- public static function sampleNoexcept(): Noexcept {
24395- return Noexcept::sample(); /*95:noexcept*/
24395+ return No::sample(); /*95:no*/
2439624396 }
2439724397
2439824398 /**
@@ -24449,6 +24449,7 @@ class Obj3 {
2444924449 || Obj3::validateLeft($this->left)
2445024450 || Obj3::validateLet($this->let)
2445124451 || Obj3::validateList($this->list)
24452+ || Obj3::validateLocalDate($this->localDate)
2445224453 || Obj3::validateLocale($this->locale)
2445324454 || Obj3::validateLock($this->lock)
2445424455 || Obj3::validateLong($this->long)
@@ -24463,8 +24464,7 @@ class Obj3 {
2446324464 || Obj3::validateNew($this->new)
2446424465 || Obj3::validateNewtonsoft($this->newtonsoft)
2446524466 || Obj3::validateNil($this->nil)
24466- || Obj3::validateNo($this->no)
24467- || Obj3::validateNoexcept($this->noexcept);
24467+ || Obj3::validateNo($this->no);
2446824468 }
2446924469
2447024470 /**
@@ -24522,6 +24522,7 @@ class Obj3 {
2452224522 $out->{'left'} = $this->toLeft();
2452324523 $out->{'let'} = $this->toLet();
2452424524 $out->{'list'} = $this->toList();
24525+ $out->{'LocalDate'} = $this->toLocalDate();
2452524526 $out->{'Locale'} = $this->toLocale();
2452624527 $out->{'lock'} = $this->toLock();
2452724528 $out->{'long'} = $this->toLong();
@@ -24537,7 +24538,6 @@ class Obj3 {
2453724538 $out->{'newtonsoft'} = $this->toNewtonsoft();
2453824539 $out->{'nil'} = $this->toNil();
2453924540 $out->{'NO'} = $this->toNo();
24540- $out->{'noexcept'} = $this->toNoexcept();
2454124541 return $out;
2454224542 }
2454324543
@@ -24694,6 +24694,9 @@ class Obj3 {
2469424694 if (!property_exists($obj, 'list')) {
2469524695 throw new Exception("Missing required property");
2469624696 }
24697+ if (!property_exists($obj, 'LocalDate')) {
24698+ throw new Exception("Missing required property");
24699+ }
2469724700 if (!property_exists($obj, 'Locale')) {
2469824701 throw new Exception("Missing required property");
2469924702 }
@@ -24739,9 +24742,6 @@ class Obj3 {
2473924742 if (!property_exists($obj, 'NO')) {
2474024743 throw new Exception("Missing required property");
2474124744 }
24742- if (!property_exists($obj, 'noexcept')) {
24743- throw new Exception("Missing required property");
24744- }
2474524745 return new Obj3(
2474624746 Obj3::fromDummy($obj->{'dummy'})
2474724747 ,Obj3::fromGuard($obj->{'guard'})
@@ -24792,6 +24792,7 @@ class Obj3 {
2479224792 ,Obj3::fromLeft($obj->{'left'})
2479324793 ,Obj3::fromLet($obj->{'let'})
2479424794 ,Obj3::fromList($obj->{'list'})
24795+ ,Obj3::fromLocalDate($obj->{'LocalDate'})
2479524796 ,Obj3::fromLocale($obj->{'Locale'})
2479624797 ,Obj3::fromLock($obj->{'lock'})
2479724798 ,Obj3::fromLong($obj->{'long'})
@@ -24807,7 +24808,6 @@ class Obj3 {
2480724808 ,Obj3::fromNewtonsoft($obj->{'newtonsoft'})
2480824809 ,Obj3::fromNil($obj->{'nil'})
2480924810 ,Obj3::fromNo($obj->{'NO'})
24810- ,Obj3::fromNoexcept($obj->{'noexcept'})
2481124811 );
2481224812 }
2481324813
@@ -24865,6 +24865,7 @@ class Obj3 {
2486524865 ,Obj3::sampleLeft()
2486624866 ,Obj3::sampleLet()
2486724867 ,Obj3::sampleList()
24868+ ,Obj3::sampleLocalDate()
2486824869 ,Obj3::sampleLocale()
2486924870 ,Obj3::sampleLock()
2487024871 ,Obj3::sampleLong()
@@ -24880,7 +24881,6 @@ class Obj3 {
2488024881 ,Obj3::sampleNewtonsoft()
2488124882 ,Obj3::sampleNil()
2488224883 ,Obj3::sampleNo()
24883- ,Obj3::sampleNoexcept()
2488424884 );
2488524885 }
2488624886 }
@@ -29736,6 +29736,107 @@ class ListClass {
2973629736 }
2973729737 }
2973829738
29739+// This is an autogenerated file:LocalDate
29740+
29741+class LocalDate {
29742+ private int $localDate; // json:LocalDate Required
29743+
29744+ /**
29745+ * @param int $localDate
29746+ */
29747+ public function __construct(int $localDate) {
29748+ $this->localDate = $localDate;
29749+ }
29750+
29751+ /**
29752+ * @param int $value
29753+ * @throws Exception
29754+ * @return int
29755+ */
29756+ public static function fromLocalDate(int $value): int {
29757+ return $value; /*int*/
29758+ }
29759+
29760+ /**
29761+ * @throws Exception
29762+ * @return int
29763+ */
29764+ public function toLocalDate(): int {
29765+ if (LocalDate::validateLocalDate($this->localDate)) {
29766+ return $this->localDate; /*int*/
29767+ }
29768+ throw new Exception('never get to this LocalDate::localDate');
29769+ }
29770+
29771+ /**
29772+ * @param int
29773+ * @return bool
29774+ * @throws Exception
29775+ */
29776+ public static function validateLocalDate(int $value): bool {
29777+ return true;
29778+ }
29779+
29780+ /**
29781+ * @throws Exception
29782+ * @return int
29783+ */
29784+ public function getLocalDate(): int {
29785+ if (LocalDate::validateLocalDate($this->localDate)) {
29786+ return $this->localDate;
29787+ }
29788+ throw new Exception('never get to getLocalDate LocalDate::localDate');
29789+ }
29790+
29791+ /**
29792+ * @return int
29793+ */
29794+ public static function sampleLocalDate(): int {
29795+ return 31; /*31:localDate*/
29796+ }
29797+
29798+ /**
29799+ * @throws Exception
29800+ * @return bool
29801+ */
29802+ public function validate(): bool {
29803+ return LocalDate::validateLocalDate($this->localDate);
29804+ }
29805+
29806+ /**
29807+ * @return stdClass
29808+ * @throws Exception
29809+ */
29810+ public function to(): stdClass {
29811+ $out = new stdClass();
29812+ $out->{'LocalDate'} = $this->toLocalDate();
29813+ return $out;
29814+ }
29815+
29816+ /**
29817+ * @param stdClass $obj
29818+ * @return LocalDate
29819+ * @throws Exception
29820+ */
29821+ public static function from(stdClass $obj): LocalDate {
29822+ if (!property_exists($obj, 'LocalDate')) {
29823+ throw new Exception("Missing required property");
29824+ }
29825+ return new LocalDate(
29826+ LocalDate::fromLocalDate($obj->{'LocalDate'})
29827+ );
29828+ }
29829+
29830+ /**
29831+ * @return LocalDate
29832+ */
29833+ public static function sample(): LocalDate {
29834+ return new LocalDate(
29835+ LocalDate::sampleLocalDate()
29836+ );
29837+ }
29838+}
29839+
2973929840 // This is an autogenerated file:LocaleClass
2974029841
2974129842 class LocaleClass {
@@ -31251,112 +31352,12 @@ class No {
3125131352 }
3125231353 }
3125331354
31254-// This is an autogenerated file:Noexcept
31255-
31256-class Noexcept {
31257- private int $noexcept; // json:noexcept Required
31258-
31259- /**
31260- * @param int $noexcept
31261- */
31262- public function __construct(int $noexcept) {
31263- $this->noexcept = $noexcept;
31264- }
31265-
31266- /**
31267- * @param int $value
31268- * @throws Exception
31269- * @return int
31270- */
31271- public static function fromNoexcept(int $value): int {
31272- return $value; /*int*/
31273- }
31274-
31275- /**
31276- * @throws Exception
31277- * @return int
31278- */
31279- public function toNoexcept(): int {
31280- if (Noexcept::validateNoexcept($this->noexcept)) {
31281- return $this->noexcept; /*int*/
31282- }
31283- throw new Exception('never get to this Noexcept::noexcept');
31284- }
31285-
31286- /**
31287- * @param int
31288- * @return bool
31289- * @throws Exception
31290- */
31291- public static function validateNoexcept(int $value): bool {
31292- return true;
31293- }
31294-
31295- /**
31296- * @throws Exception
31297- * @return int
31298- */
31299- public function getNoexcept(): int {
31300- if (Noexcept::validateNoexcept($this->noexcept)) {
31301- return $this->noexcept;
31302- }
31303- throw new Exception('never get to getNoexcept Noexcept::noexcept');
31304- }
31305-
31306- /**
31307- * @return int
31308- */
31309- public static function sampleNoexcept(): int {
31310- return 31; /*31:noexcept*/
31311- }
31312-
31313- /**
31314- * @throws Exception
31315- * @return bool
31316- */
31317- public function validate(): bool {
31318- return Noexcept::validateNoexcept($this->noexcept);
31319- }
31320-
31321- /**
31322- * @return stdClass
31323- * @throws Exception
31324- */
31325- public function to(): stdClass {
31326- $out = new stdClass();
31327- $out->{'noexcept'} = $this->toNoexcept();
31328- return $out;
31329- }
31330-
31331- /**
31332- * @param stdClass $obj
31333- * @return Noexcept
31334- * @throws Exception
31335- */
31336- public static function from(stdClass $obj): Noexcept {
31337- if (!property_exists($obj, 'noexcept')) {
31338- throw new Exception("Missing required property");
31339- }
31340- return new Noexcept(
31341- Noexcept::fromNoexcept($obj->{'noexcept'})
31342- );
31343- }
31344-
31345- /**
31346- * @return Noexcept
31347- */
31348- public static function sample(): Noexcept {
31349- return new Noexcept(
31350- Noexcept::sampleNoexcept()
31351- );
31352- }
31353-}
31354-
3135531355 // This is an autogenerated file:Obj4
3135631356
3135731357 class Obj4 {
3135831358 private int $dummy; // json:dummy Required
3135931359 private NoSuchMethod $noSuchMethod; // json:noSuchMethod Required
31360+ private Noexcept $noexcept; // json:noexcept Required
3136031361 private Nonatomic $nonatomic; // json:nonatomic Required
3136131362 private None $none; // json:None Required
3136231363 private Nonlocal $nonlocal; // json:nonlocal Required
@@ -31375,6 +31376,8 @@ class Obj4 {
3137531376 private ObjectClass $object; // json:object Required
3137631377 private ObjectMapper $objectMapper; // json:ObjectMapper Required
3137731378 private Of $of; // json:of Required
31379+ private OffsetDateTime $offsetDateTime; // json:OffsetDateTime Required
31380+ private OffsetTime $offsetTime; // json:OffsetTime Required
3137831381 private Oneway $oneway; // json:oneway Required
3137931382 private Open $open; // json:open Required
3138031383 private Operator $operator; // json:operator Required
@@ -31417,13 +31420,11 @@ class Obj4 {
3141731420 private RuntimeType $runtimeType; // json:runtimeType Required
3141831421 private S $s; // json:s Required
3141931422 private Sbyte $sbyte; // json:sbyte Required
31420- private Sealed $sealed; // json:sealed Required
31421- private Sel $sel; // json:SEL Required
31422- private Select $select; // json:select Required
3142331423
3142431424 /**
3142531425 * @param int $dummy
3142631426 * @param NoSuchMethod $noSuchMethod
31427+ * @param Noexcept $noexcept
3142731428 * @param Nonatomic $nonatomic
3142831429 * @param None $none
3142931430 * @param Nonlocal $nonlocal
@@ -31442,6 +31443,8 @@ class Obj4 {
3144231443 * @param ObjectClass $object
3144331444 * @param ObjectMapper $objectMapper
3144431445 * @param Of $of
31446+ * @param OffsetDateTime $offsetDateTime
31447+ * @param OffsetTime $offsetTime
3144531448 * @param Oneway $oneway
3144631449 * @param Open $open
3144731450 * @param Operator $operator
@@ -31484,13 +31487,11 @@ class Obj4 {
3148431487 * @param RuntimeType $runtimeType
3148531488 * @param S $s
3148631489 * @param Sbyte $sbyte
31487- * @param Sealed $sealed
31488- * @param Sel $sel
31489- * @param Select $select
3149031490 */
31491- public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, 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, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select) {
31491+ public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, 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, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte) {
3149231492 $this->dummy = $dummy;
3149331493 $this->noSuchMethod = $noSuchMethod;
31494+ $this->noexcept = $noexcept;
3149431495 $this->nonatomic = $nonatomic;
3149531496 $this->none = $none;
3149631497 $this->nonlocal = $nonlocal;
@@ -31509,6 +31510,8 @@ class Obj4 {
3150931510 $this->object = $object;
3151031511 $this->objectMapper = $objectMapper;
3151131512 $this->of = $of;
31513+ $this->offsetDateTime = $offsetDateTime;
31514+ $this->offsetTime = $offsetTime;
3151231515 $this->oneway = $oneway;
3151331516 $this->open = $open;
3151431517 $this->operator = $operator;
@@ -31551,9 +31554,6 @@ class Obj4 {
3155131554 $this->runtimeType = $runtimeType;
3155231555 $this->s = $s;
3155331556 $this->sbyte = $sbyte;
31554- $this->sealed = $sealed;
31555- $this->sel = $sel;
31556- $this->select = $select;
3155731557 }
3155831558
3155931559 /**
@@ -31651,6 +31651,54 @@ class Obj4 {
3165131651 return NoSuchMethod::sample(); /*32:noSuchMethod*/
3165231652 }
3165331653
31654+ /**
31655+ * @param stdClass $value
31656+ * @throws Exception
31657+ * @return Noexcept
31658+ */
31659+ public static function fromNoexcept(stdClass $value): Noexcept {
31660+ return Noexcept::from($value); /*class*/
31661+ }
31662+
31663+ /**
31664+ * @throws Exception
31665+ * @return stdClass
31666+ */
31667+ public function toNoexcept(): stdClass {
31668+ if (Obj4::validateNoexcept($this->noexcept)) {
31669+ return $this->noexcept->to(); /*class*/
31670+ }
31671+ throw new Exception('never get to this Obj4::noexcept');
31672+ }
31673+
31674+ /**
31675+ * @param Noexcept
31676+ * @return bool
31677+ * @throws Exception
31678+ */
31679+ public static function validateNoexcept(Noexcept $value): bool {
31680+ $value->validate();
31681+ return true;
31682+ }
31683+
31684+ /**
31685+ * @throws Exception
31686+ * @return Noexcept
31687+ */
31688+ public function getNoexcept(): Noexcept {
31689+ if (Obj4::validateNoexcept($this->noexcept)) {
31690+ return $this->noexcept;
31691+ }
31692+ throw new Exception('never get to getNoexcept Obj4::noexcept');
31693+ }
31694+
31695+ /**
31696+ * @return Noexcept
31697+ */
31698+ public static function sampleNoexcept(): Noexcept {
31699+ return Noexcept::sample(); /*33:noexcept*/
31700+ }
31701+
3165431702 /**
3165531703 * @param stdClass $value
3165631704 * @throws Exception
@@ -31696,7 +31744,7 @@ class Obj4 {
3169631744 * @return Nonatomic
3169731745 */
3169831746 public static function sampleNonatomic(): Nonatomic {
31699- return Nonatomic::sample(); /*33:nonatomic*/
31747+ return Nonatomic::sample(); /*34:nonatomic*/
3170031748 }
3170131749
3170231750 /**
@@ -31744,7 +31792,7 @@ class Obj4 {
3174431792 * @return None
3174531793 */
3174631794 public static function sampleNone(): None {
31747- return None::sample(); /*34:none*/
31795+ return None::sample(); /*35:none*/
3174831796 }
3174931797
3175031798 /**
@@ -31792,7 +31840,7 @@ class Obj4 {
3179231840 * @return Nonlocal
3179331841 */
3179431842 public static function sampleNonlocal(): Nonlocal {
31795- return Nonlocal::sample(); /*35:nonlocal*/
31843+ return Nonlocal::sample(); /*36:nonlocal*/
3179631844 }
3179731845
3179831846 /**
@@ -31840,7 +31888,7 @@ class Obj4 {
3184031888 * @return Nonmutating
3184131889 */
3184231890 public static function sampleNonmutating(): Nonmutating {
31843- return Nonmutating::sample(); /*36:nonmutating*/
31891+ return Nonmutating::sample(); /*37:nonmutating*/
3184431892 }
3184531893
3184631894 /**
@@ -31888,7 +31936,7 @@ class Obj4 {
3188831936 * @return Not
3188931937 */
3189031938 public static function sampleNot(): Not {
31891- return Not::sample(); /*37:not*/
31939+ return Not::sample(); /*38:not*/
3189231940 }
3189331941
3189431942 /**
@@ -31936,7 +31984,7 @@ class Obj4 {
3193631984 * @return NotEq
3193731985 */
3193831986 public static function sampleNotEq(): NotEq {
31939- return NotEq::sample(); /*38:notEq*/
31987+ return NotEq::sample(); /*39:notEq*/
3194031988 }
3194131989
3194231990 /**
@@ -31984,7 +32032,7 @@ class Obj4 {
3198432032 * @return NSError
3198532033 */
3198632034 public static function sampleNSError(): NSError {
31987- return NSError::sample(); /*39:nsError*/
32035+ return NSError::sample(); /*40:nsError*/
3198832036 }
3198932037
3199032038 /**
@@ -32032,7 +32080,7 @@ class Obj4 {
3203232080 * @return NSObject
3203332081 */
3203432082 public static function sampleNSObject(): NSObject {
32035- return NSObject::sample(); /*40:nsObject*/
32083+ return NSObject::sample(); /*41:nsObject*/
3203632084 }
3203732085
3203832086 /**
@@ -32080,7 +32128,7 @@ class Obj4 {
3208032128 * @return NSString
3208132129 */
3208232130 public static function sampleNSString(): NSString {
32083- return NSString::sample(); /*41:nsString*/
32131+ return NSString::sample(); /*42:nsString*/
3208432132 }
3208532133
3208632134 /**
@@ -32128,7 +32176,7 @@ class Obj4 {
3212832176 * @return NULLClass
3212932177 */
3213032178 public static function sampleNull(): NULLClass {
32131- return NULLClass::sample(); /*42:null*/
32179+ return NULLClass::sample(); /*43:null*/
3213232180 }
3213332181
3213432182 /**
@@ -32176,7 +32224,7 @@ class Obj4 {
3217632224 * @return Nullptr
3217732225 */
3217832226 public static function sampleNullptr(): Nullptr {
32179- return Nullptr::sample(); /*43:nullptr*/
32227+ return Nullptr::sample(); /*44:nullptr*/
3218032228 }
3218132229
3218232230 /**
@@ -32224,7 +32272,7 @@ class Obj4 {
3222432272 * @return Number
3222532273 */
3222632274 public static function sampleNumber(): Number {
32227- return Number::sample(); /*44:number*/
32275+ return Number::sample(); /*45:number*/
3222832276 }
3222932277
3223032278 /**
@@ -32272,7 +32320,7 @@ class Obj4 {
3227232320 * @return NoneClass
3227332321 */
3227432322 public static function sampleObj4None(): NoneClass {
32275- return NoneClass::sample(); /*45:obj4None*/
32323+ return NoneClass::sample(); /*46:obj4None*/
3227632324 }
3227732325
3227832326 /**
@@ -32320,7 +32368,7 @@ class Obj4 {
3232032368 * @return Obj4Null
3232132369 */
3232232370 public static function sampleObj4Null(): Obj4Null {
32323- return Obj4Null::sample(); /*46:obj4Null*/
32371+ return Obj4Null::sample(); /*47:obj4Null*/
3232432372 }
3232532373
3232632374 /**
@@ -32368,7 +32416,7 @@ class Obj4 {
3236832416 * @return ProtocolClass
3236932417 */
3237032418 public static function sampleObj4Protocol(): ProtocolClass {
32371- return ProtocolClass::sample(); /*47:obj4Protocol*/
32419+ return ProtocolClass::sample(); /*48:obj4Protocol*/
3237232420 }
3237332421
3237432422 /**
@@ -32416,7 +32464,7 @@ class Obj4 {
3241632464 * @return ObjectClass
3241732465 */
3241832466 public static function sampleObject(): ObjectClass {
32419- return ObjectClass::sample(); /*48:object*/
32467+ return ObjectClass::sample(); /*49:object*/
3242032468 }
3242132469
3242232470 /**
@@ -32464,7 +32512,7 @@ class Obj4 {
3246432512 * @return ObjectMapper
3246532513 */
3246632514 public static function sampleObjectMapper(): ObjectMapper {
32467- return ObjectMapper::sample(); /*49:objectMapper*/
32515+ return ObjectMapper::sample(); /*50:objectMapper*/
3246832516 }
3246932517
3247032518 /**
@@ -32512,7 +32560,103 @@ class Obj4 {
3251232560 * @return Of
3251332561 */
3251432562 public static function sampleOf(): Of {
32515- return Of::sample(); /*50:of*/
32563+ return Of::sample(); /*51:of*/
32564+ }
32565+
32566+ /**
32567+ * @param stdClass $value
32568+ * @throws Exception
32569+ * @return OffsetDateTime
32570+ */
32571+ public static function fromOffsetDateTime(stdClass $value): OffsetDateTime {
32572+ return OffsetDateTime::from($value); /*class*/
32573+ }
32574+
32575+ /**
32576+ * @throws Exception
32577+ * @return stdClass
32578+ */
32579+ public function toOffsetDateTime(): stdClass {
32580+ if (Obj4::validateOffsetDateTime($this->offsetDateTime)) {
32581+ return $this->offsetDateTime->to(); /*class*/
32582+ }
32583+ throw new Exception('never get to this Obj4::offsetDateTime');
32584+ }
32585+
32586+ /**
32587+ * @param OffsetDateTime
32588+ * @return bool
32589+ * @throws Exception
32590+ */
32591+ public static function validateOffsetDateTime(OffsetDateTime $value): bool {
32592+ $value->validate();
32593+ return true;
32594+ }
32595+
32596+ /**
32597+ * @throws Exception
32598+ * @return OffsetDateTime
32599+ */
32600+ public function getOffsetDateTime(): OffsetDateTime {
32601+ if (Obj4::validateOffsetDateTime($this->offsetDateTime)) {
32602+ return $this->offsetDateTime;
32603+ }
32604+ throw new Exception('never get to getOffsetDateTime Obj4::offsetDateTime');
32605+ }
32606+
32607+ /**
32608+ * @return OffsetDateTime
32609+ */
32610+ public static function sampleOffsetDateTime(): OffsetDateTime {
32611+ return OffsetDateTime::sample(); /*52:offsetDateTime*/
32612+ }
32613+
32614+ /**
32615+ * @param stdClass $value
32616+ * @throws Exception
32617+ * @return OffsetTime
32618+ */
32619+ public static function fromOffsetTime(stdClass $value): OffsetTime {
32620+ return OffsetTime::from($value); /*class*/
32621+ }
32622+
32623+ /**
32624+ * @throws Exception
32625+ * @return stdClass
32626+ */
32627+ public function toOffsetTime(): stdClass {
32628+ if (Obj4::validateOffsetTime($this->offsetTime)) {
32629+ return $this->offsetTime->to(); /*class*/
32630+ }
32631+ throw new Exception('never get to this Obj4::offsetTime');
32632+ }
32633+
32634+ /**
32635+ * @param OffsetTime
32636+ * @return bool
32637+ * @throws Exception
32638+ */
32639+ public static function validateOffsetTime(OffsetTime $value): bool {
32640+ $value->validate();
32641+ return true;
32642+ }
32643+
32644+ /**
32645+ * @throws Exception
32646+ * @return OffsetTime
32647+ */
32648+ public function getOffsetTime(): OffsetTime {
32649+ if (Obj4::validateOffsetTime($this->offsetTime)) {
32650+ return $this->offsetTime;
32651+ }
32652+ throw new Exception('never get to getOffsetTime Obj4::offsetTime');
32653+ }
32654+
32655+ /**
32656+ * @return OffsetTime
32657+ */
32658+ public static function sampleOffsetTime(): OffsetTime {
32659+ return OffsetTime::sample(); /*53:offsetTime*/
3251632660 }
3251732661
3251832662 /**
@@ -32560,7 +32704,7 @@ class Obj4 {
3256032704 * @return Oneway
3256132705 */
3256232706 public static function sampleOneway(): Oneway {
32563- return Oneway::sample(); /*51:oneway*/
32707+ return Oneway::sample(); /*54:oneway*/
3256432708 }
3256532709
3256632710 /**
@@ -32608,7 +32752,7 @@ class Obj4 {
3260832752 * @return Open
3260932753 */
3261032754 public static function sampleOpen(): Open {
32611- return Open::sample(); /*52:open*/
32755+ return Open::sample(); /*55:open*/
3261232756 }
3261332757
3261432758 /**
@@ -32656,7 +32800,7 @@ class Obj4 {
3265632800 * @return Operator
3265732801 */
3265832802 public static function sampleOperator(): Operator {
32659- return Operator::sample(); /*53:operator*/
32803+ return Operator::sample(); /*56:operator*/
3266032804 }
3266132805
3266232806 /**
@@ -32704,7 +32848,7 @@ class Obj4 {
3270432848 * @return Optional
3270532849 */
3270632850 public static function sampleOptional(): Optional {
32707- return Optional::sample(); /*54:optional*/
32851+ return Optional::sample(); /*57:optional*/
3270832852 }
3270932853
3271032854 /**
@@ -32752,7 +32896,7 @@ class Obj4 {
3275232896 * @return OrClass
3275332897 */
3275432898 public static function sampleOr(): OrClass {
32755- return OrClass::sample(); /*55:or*/
32899+ return OrClass::sample(); /*58:or*/
3275632900 }
3275732901
3275832902 /**
@@ -32800,7 +32944,7 @@ class Obj4 {
3280032944 * @return OrEq
3280132945 */
3280232946 public static function sampleOrEq(): OrEq {
32803- return OrEq::sample(); /*56:orEq*/
32947+ return OrEq::sample(); /*59:orEq*/
3280432948 }
3280532949
3280632950 /**
@@ -32848,7 +32992,7 @@ class Obj4 {
3284832992 * @return Out
3284932993 */
3285032994 public static function sampleOut(): Out {
32851- return Out::sample(); /*57:out*/
32995+ return Out::sample(); /*60:out*/
3285232996 }
3285332997
3285432998 /**
@@ -32896,7 +33040,7 @@ class Obj4 {
3289633040 * @return OverrideClass
3289733041 */
3289833042 public static function sampleOverride(): OverrideClass {
32899- return OverrideClass::sample(); /*58:override*/
33043+ return OverrideClass::sample(); /*61:override*/
3290033044 }
3290133045
3290233046 /**
@@ -32944,7 +33088,7 @@ class Obj4 {
3294433088 * @return Package
3294533089 */
3294633090 public static function samplePackage(): Package {
32947- return Package::sample(); /*59:package*/
33091+ return Package::sample(); /*62:package*/
3294833092 }
3294933093
3295033094 /**
@@ -32992,7 +33136,7 @@ class Obj4 {
3299233136 * @return Params
3299333137 */
3299433138 public static function sampleParams(): Params {
32995- return Params::sample(); /*60:params*/
33139+ return Params::sample(); /*63:params*/
3299633140 }
3299733141
3299833142 /**
@@ -33040,7 +33184,7 @@ class Obj4 {
3304033184 * @return Pass
3304133185 */
3304233186 public static function samplePass(): Pass {
33043- return Pass::sample(); /*61:pass*/
33187+ return Pass::sample(); /*64:pass*/
3304433188 }
3304533189
3304633190 /**
@@ -33088,7 +33232,7 @@ class Obj4 {
3308833232 * @return Port
3308933233 */
3309033234 public static function samplePort(): Port {
33091- return Port::sample(); /*62:port*/
33235+ return Port::sample(); /*65:port*/
3309233236 }
3309333237
3309433238 /**
@@ -33136,7 +33280,7 @@ class Obj4 {
3313633280 * @return Postfix
3313733281 */
3313833282 public static function samplePostfix(): Postfix {
33139- return Postfix::sample(); /*63:postfix*/
33283+ return Postfix::sample(); /*66:postfix*/
3314033284 }
3314133285
3314233286 /**
@@ -33184,7 +33328,7 @@ class Obj4 {
3318433328 * @return Precedence
3318533329 */
3318633330 public static function samplePrecedence(): Precedence {
33187- return Precedence::sample(); /*64:precedence*/
33331+ return Precedence::sample(); /*67:precedence*/
3318833332 }
3318933333
3319033334 /**
@@ -33232,7 +33376,7 @@ class Obj4 {
3323233376 * @return Prefix
3323333377 */
3323433378 public static function samplePrefix(): Prefix {
33235- return Prefix::sample(); /*65:prefix*/
33379+ return Prefix::sample(); /*68:prefix*/
3323633380 }
3323733381
3323833382 /**
@@ -33280,7 +33424,7 @@ class Obj4 {
3328033424 * @return PrintClass
3328133425 */
3328233426 public static function samplePrint(): PrintClass {
33283- return PrintClass::sample(); /*66:print*/
33427+ return PrintClass::sample(); /*69:print*/
3328433428 }
3328533429
3328633430 /**
@@ -33328,7 +33472,7 @@ class Obj4 {
3332833472 * @return PrintMembers
3332933473 */
3333033474 public static function samplePrintMembers(): PrintMembers {
33331- return PrintMembers::sample(); /*67:printMembers*/
33475+ return PrintMembers::sample(); /*70:printMembers*/
3333233476 }
3333333477
3333433478 /**
@@ -33376,7 +33520,7 @@ class Obj4 {
3337633520 * @return Printf
3337733521 */
3337833522 public static function samplePrintf(): Printf {
33379- return Printf::sample(); /*68:printf*/
33523+ return Printf::sample(); /*71:printf*/
3338033524 }
3338133525
3338233526 /**
@@ -33424,7 +33568,7 @@ class Obj4 {
3342433568 * @return PrivateClass
3342533569 */
3342633570 public static function samplePrivate(): PrivateClass {
33427- return PrivateClass::sample(); /*69:private*/
33571+ return PrivateClass::sample(); /*72:private*/
3342833572 }
3342933573
3343033574 /**
@@ -33472,7 +33616,7 @@ class Obj4 {
3347233616 * @return ProtectedClass
3347333617 */
3347433618 public static function sampleProtected(): ProtectedClass {
33475- return ProtectedClass::sample(); /*70:protected*/
33619+ return ProtectedClass::sample(); /*73:protected*/
3347633620 }
3347733621
3347833622 /**
@@ -33520,7 +33664,7 @@ class Obj4 {
3352033664 * @return Protocol
3352133665 */
3352233666 public static function sampleProtocol(): Protocol {
33523- return Protocol::sample(); /*71:protocol*/
33667+ return Protocol::sample(); /*74:protocol*/
3352433668 }
3352533669
3352633670 /**
@@ -33568,7 +33712,7 @@ class Obj4 {
3356833712 * @return PublicClass
3356933713 */
3357033714 public static function samplePublic(): PublicClass {
33571- return PublicClass::sample(); /*72:public*/
33715+ return PublicClass::sample(); /*75:public*/
3357233716 }
3357333717
3357433718 /**
@@ -33616,7 +33760,7 @@ class Obj4 {
3361633760 * @return Quicktype
3361733761 */
3361833762 public static function sampleQuicktype(): Quicktype {
33619- return Quicktype::sample(); /*73:quicktype*/
33763+ return Quicktype::sample(); /*76:quicktype*/
3362033764 }
3362133765
3362233766 /**
@@ -33664,7 +33808,7 @@ class Obj4 {
3366433808 * @return Raise
3366533809 */
3366633810 public static function sampleRaise(): Raise {
33667- return Raise::sample(); /*74:raise*/
33811+ return Raise::sample(); /*77:raise*/
3366833812 }
3366933813
3367033814 /**
@@ -33712,7 +33856,7 @@ class Obj4 {
3371233856 * @return Range
3371333857 */
3371433858 public static function sampleRange(): Range {
33715- return Range::sample(); /*75:range*/
33859+ return Range::sample(); /*78:range*/
3371633860 }
3371733861
3371833862 /**
@@ -33760,7 +33904,7 @@ class Obj4 {
3376033904 * @return ReadonlyClass
3376133905 */
3376233906 public static function sampleReadonly(): ReadonlyClass {
33763- return ReadonlyClass::sample(); /*76:readonly*/
33907+ return ReadonlyClass::sample(); /*79:readonly*/
3376433908 }
3376533909
3376633910 /**
@@ -33808,7 +33952,7 @@ class Obj4 {
3380833952 * @return Ref
3380933953 */
3381033954 public static function sampleRef(): Ref {
33811- return Ref::sample(); /*77:ref*/
33955+ return Ref::sample(); /*80:ref*/
3381233956 }
3381333957
3381433958 /**
@@ -33856,7 +34000,7 @@ class Obj4 {
3385634000 * @return RegExp
3385734001 */
3385834002 public static function sampleRegExp(): RegExp {
33859- return RegExp::sample(); /*78:regExp*/
34003+ return RegExp::sample(); /*81:regExp*/
3386034004 }
3386134005
3386234006 /**
@@ -33904,7 +34048,7 @@ class Obj4 {
3390434048 * @return Register
3390534049 */
3390634050 public static function sampleRegister(): Register {
33907- return Register::sample(); /*79:register*/
34051+ return Register::sample(); /*82:register*/
3390834052 }
3390934053
3391034054 /**
@@ -33952,7 +34096,7 @@ class Obj4 {
3395234096 * @return ReinterpretCast
3395334097 */
3395434098 public static function sampleReinterpretCast(): ReinterpretCast {
33955- return ReinterpretCast::sample(); /*80:reinterpretCast*/
34099+ return ReinterpretCast::sample(); /*83:reinterpretCast*/
3395634100 }
3395734101
3395834102 /**
@@ -34000,7 +34144,7 @@ class Obj4 {
3400034144 * @return Repeat
3400134145 */
3400234146 public static function sampleRepeat(): Repeat {
34003- return Repeat::sample(); /*81:repeat*/
34147+ return Repeat::sample(); /*84:repeat*/
3400434148 }
3400534149
3400634150 /**
@@ -34048,7 +34192,7 @@ class Obj4 {
3404834192 * @return RequireClass
3404934193 */
3405034194 public static function sampleRequire(): RequireClass {
34051- return RequireClass::sample(); /*82:require*/
34195+ return RequireClass::sample(); /*85:require*/
3405234196 }
3405334197
3405434198 /**
@@ -34096,7 +34240,7 @@ class Obj4 {
3409634240 * @return Required
3409734241 */
3409834242 public static function sampleRequired(): Required {
34099- return Required::sample(); /*83:required*/
34243+ return Required::sample(); /*86:required*/
3410034244 }
3410134245
3410234246 /**
@@ -34144,7 +34288,7 @@ class Obj4 {
3414434288 * @return Requires
3414534289 */
3414634290 public static function sampleRequires(): Requires {
34147- return Requires::sample(); /*84:requires*/
34291+ return Requires::sample(); /*87:requires*/
3414834292 }
3414934293
3415034294 /**
@@ -34192,7 +34336,7 @@ class Obj4 {
3419234336 * @return Restrict
3419334337 */
3419434338 public static function sampleRestrict(): Restrict {
34195- return Restrict::sample(); /*85:restrict*/
34339+ return Restrict::sample(); /*88:restrict*/
3419634340 }
3419734341
3419834342 /**
@@ -34240,7 +34384,7 @@ class Obj4 {
3424034384 * @return Retain
3424134385 */
3424234386 public static function sampleRetain(): Retain {
34243- return Retain::sample(); /*86:retain*/
34387+ return Retain::sample(); /*89:retain*/
3424434388 }
3424534389
3424634390 /**
@@ -34288,7 +34432,7 @@ class Obj4 {
3428834432 * @return Rethrows
3428934433 */
3429034434 public static function sampleRethrows(): Rethrows {
34291- return Rethrows::sample(); /*87:rethrows*/
34435+ return Rethrows::sample(); /*90:rethrows*/
3429234436 }
3429334437
3429434438 /**
@@ -34336,7 +34480,7 @@ class Obj4 {
3433634480 * @return ReturnClass
3433734481 */
3433834482 public static function sampleReturn(): ReturnClass {
34339- return ReturnClass::sample(); /*88:return*/
34483+ return ReturnClass::sample(); /*91:return*/
3434034484 }
3434134485
3434234486 /**
@@ -34384,7 +34528,7 @@ class Obj4 {
3438434528 * @return Right
3438534529 */
3438634530 public static function sampleRight(): Right {
34387- return Right::sample(); /*89:right*/
34531+ return Right::sample(); /*92:right*/
3438834532 }
3438934533
3439034534 /**
@@ -34432,7 +34576,7 @@ class Obj4 {
3443234576 * @return RuntimeType
3443334577 */
3443434578 public static function sampleRuntimeType(): RuntimeType {
34435- return RuntimeType::sample(); /*90:runtimeType*/
34579+ return RuntimeType::sample(); /*93:runtimeType*/
3443634580 }
3443734581
3443834582 /**
@@ -34480,7 +34624,7 @@ class Obj4 {
3448034624 * @return S
3448134625 */
3448234626 public static function sampleS(): S {
34483- return S::sample(); /*91:s*/
34627+ return S::sample(); /*94:s*/
3448434628 }
3448534629
3448634630 /**
@@ -34528,151 +34672,7 @@ class Obj4 {
3452834672 * @return Sbyte
3452934673 */
3453034674 public static function sampleSbyte(): Sbyte {
34531- return Sbyte::sample(); /*92:sbyte*/
34532- }
34533-
34534- /**
34535- * @param stdClass $value
34536- * @throws Exception
34537- * @return Sealed
34538- */
34539- public static function fromSealed(stdClass $value): Sealed {
34540- return Sealed::from($value); /*class*/
34541- }
34542-
34543- /**
34544- * @throws Exception
34545- * @return stdClass
34546- */
34547- public function toSealed(): stdClass {
34548- if (Obj4::validateSealed($this->sealed)) {
34549- return $this->sealed->to(); /*class*/
34550- }
34551- throw new Exception('never get to this Obj4::sealed');
34552- }
34553-
34554- /**
34555- * @param Sealed
34556- * @return bool
34557- * @throws Exception
34558- */
34559- public static function validateSealed(Sealed $value): bool {
34560- $value->validate();
34561- return true;
34562- }
34563-
34564- /**
34565- * @throws Exception
34566- * @return Sealed
34567- */
34568- public function getSealed(): Sealed {
34569- if (Obj4::validateSealed($this->sealed)) {
34570- return $this->sealed;
34571- }
34572- throw new Exception('never get to getSealed Obj4::sealed');
34573- }
34574-
34575- /**
34576- * @return Sealed
34577- */
34578- public static function sampleSealed(): Sealed {
34579- return Sealed::sample(); /*93:sealed*/
34580- }
34581-
34582- /**
34583- * @param stdClass $value
34584- * @throws Exception
34585- * @return Sel
34586- */
34587- public static function fromSel(stdClass $value): Sel {
34588- return Sel::from($value); /*class*/
34589- }
34590-
34591- /**
34592- * @throws Exception
34593- * @return stdClass
34594- */
34595- public function toSel(): stdClass {
34596- if (Obj4::validateSel($this->sel)) {
34597- return $this->sel->to(); /*class*/
34598- }
34599- throw new Exception('never get to this Obj4::sel');
34600- }
34601-
34602- /**
34603- * @param Sel
34604- * @return bool
34605- * @throws Exception
34606- */
34607- public static function validateSel(Sel $value): bool {
34608- $value->validate();
34609- return true;
34610- }
34611-
34612- /**
34613- * @throws Exception
34614- * @return Sel
34615- */
34616- public function getSel(): Sel {
34617- if (Obj4::validateSel($this->sel)) {
34618- return $this->sel;
34619- }
34620- throw new Exception('never get to getSel Obj4::sel');
34621- }
34622-
34623- /**
34624- * @return Sel
34625- */
34626- public static function sampleSel(): Sel {
34627- return Sel::sample(); /*94:sel*/
34628- }
34629-
34630- /**
34631- * @param stdClass $value
34632- * @throws Exception
34633- * @return Select
34634- */
34635- public static function fromSelect(stdClass $value): Select {
34636- return Select::from($value); /*class*/
34637- }
34638-
34639- /**
34640- * @throws Exception
34641- * @return stdClass
34642- */
34643- public function toSelect(): stdClass {
34644- if (Obj4::validateSelect($this->select)) {
34645- return $this->select->to(); /*class*/
34646- }
34647- throw new Exception('never get to this Obj4::select');
34648- }
34649-
34650- /**
34651- * @param Select
34652- * @return bool
34653- * @throws Exception
34654- */
34655- public static function validateSelect(Select $value): bool {
34656- $value->validate();
34657- return true;
34658- }
34659-
34660- /**
34661- * @throws Exception
34662- * @return Select
34663- */
34664- public function getSelect(): Select {
34665- if (Obj4::validateSelect($this->select)) {
34666- return $this->select;
34667- }
34668- throw new Exception('never get to getSelect Obj4::select');
34669- }
34670-
34671- /**
34672- * @return Select
34673- */
34674- public static function sampleSelect(): Select {
34675- return Select::sample(); /*95:select*/
34675+ return Sbyte::sample(); /*95:sbyte*/
3467634676 }
3467734677
3467834678 /**
@@ -34682,6 +34682,7 @@ class Obj4 {
3468234682 public function validate(): bool {
3468334683 return Obj4::validateDummy($this->dummy)
3468434684 || Obj4::validateNoSuchMethod($this->noSuchMethod)
34685+ || Obj4::validateNoexcept($this->noexcept)
3468534686 || Obj4::validateNonatomic($this->nonatomic)
3468634687 || Obj4::validateNone($this->none)
3468734688 || Obj4::validateNonlocal($this->nonlocal)
@@ -34700,6 +34701,8 @@ class Obj4 {
3470034701 || Obj4::validateObject($this->object)
3470134702 || Obj4::validateObjectMapper($this->objectMapper)
3470234703 || Obj4::validateOf($this->of)
34704+ || Obj4::validateOffsetDateTime($this->offsetDateTime)
34705+ || Obj4::validateOffsetTime($this->offsetTime)
3470334706 || Obj4::validateOneway($this->oneway)
3470434707 || Obj4::validateOpen($this->open)
3470534708 || Obj4::validateOperator($this->operator)
@@ -34741,10 +34744,7 @@ class Obj4 {
3474134744 || Obj4::validateRight($this->right)
3474234745 || Obj4::validateRuntimeType($this->runtimeType)
3474334746 || Obj4::validateS($this->s)
34744- || Obj4::validateSbyte($this->sbyte)
34745- || Obj4::validateSealed($this->sealed)
34746- || Obj4::validateSel($this->sel)
34747- || Obj4::validateSelect($this->select);
34747+ || Obj4::validateSbyte($this->sbyte);
3474834748 }
3474934749
3475034750 /**
@@ -34755,6 +34755,7 @@ class Obj4 {
3475534755 $out = new stdClass();
3475634756 $out->{'dummy'} = $this->toDummy();
3475734757 $out->{'noSuchMethod'} = $this->toNoSuchMethod();
34758+ $out->{'noexcept'} = $this->toNoexcept();
3475834759 $out->{'nonatomic'} = $this->toNonatomic();
3475934760 $out->{'None'} = $this->toNone();
3476034761 $out->{'nonlocal'} = $this->toNonlocal();
@@ -34773,6 +34774,8 @@ class Obj4 {
3477334774 $out->{'object'} = $this->toObject();
3477434775 $out->{'ObjectMapper'} = $this->toObjectMapper();
3477534776 $out->{'of'} = $this->toOf();
34777+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
34778+ $out->{'OffsetTime'} = $this->toOffsetTime();
3477634779 $out->{'oneway'} = $this->toOneway();
3477734780 $out->{'open'} = $this->toOpen();
3477834781 $out->{'operator'} = $this->toOperator();
@@ -34815,9 +34818,6 @@ class Obj4 {
3481534818 $out->{'runtimeType'} = $this->toRuntimeType();
3481634819 $out->{'s'} = $this->toS();
3481734820 $out->{'sbyte'} = $this->toSbyte();
34818- $out->{'sealed'} = $this->toSealed();
34819- $out->{'SEL'} = $this->toSel();
34820- $out->{'select'} = $this->toSelect();
3482134821 return $out;
3482234822 }
3482334823
@@ -34833,6 +34833,9 @@ class Obj4 {
3483334833 if (!property_exists($obj, 'noSuchMethod')) {
3483434834 throw new Exception("Missing required property");
3483534835 }
34836+ if (!property_exists($obj, 'noexcept')) {
34837+ throw new Exception("Missing required property");
34838+ }
3483634839 if (!property_exists($obj, 'nonatomic')) {
3483734840 throw new Exception("Missing required property");
3483834841 }
@@ -34887,13 +34890,19 @@ class Obj4 {
3488734890 if (!property_exists($obj, 'of')) {
3488834891 throw new Exception("Missing required property");
3488934892 }
34890- if (!property_exists($obj, 'oneway')) {
34893+ if (!property_exists($obj, 'OffsetDateTime')) {
3489134894 throw new Exception("Missing required property");
3489234895 }
34893- if (!property_exists($obj, 'open')) {
34896+ if (!property_exists($obj, 'OffsetTime')) {
3489434897 throw new Exception("Missing required property");
3489534898 }
34896- if (!property_exists($obj, 'operator')) {
34899+ if (!property_exists($obj, 'oneway')) {
34900+ throw new Exception("Missing required property");
34901+ }
34902+ if (!property_exists($obj, 'open')) {
34903+ throw new Exception("Missing required property");
34904+ }
34905+ if (!property_exists($obj, 'operator')) {
3489734906 throw new Exception("Missing required property");
3489834907 }
3489934908 if (!property_exists($obj, 'optional')) {
@@ -35013,18 +35022,10 @@ class Obj4 {
3501335022 if (!property_exists($obj, 'sbyte')) {
3501435023 throw new Exception("Missing required property");
3501535024 }
35016- if (!property_exists($obj, 'sealed')) {
35017- throw new Exception("Missing required property");
35018- }
35019- if (!property_exists($obj, 'SEL')) {
35020- throw new Exception("Missing required property");
35021- }
35022- if (!property_exists($obj, 'select')) {
35023- throw new Exception("Missing required property");
35024- }
3502535025 return new Obj4(
3502635026 Obj4::fromDummy($obj->{'dummy'})
3502735027 ,Obj4::fromNoSuchMethod($obj->{'noSuchMethod'})
35028+ ,Obj4::fromNoexcept($obj->{'noexcept'})
3502835029 ,Obj4::fromNonatomic($obj->{'nonatomic'})
3502935030 ,Obj4::fromNone($obj->{'None'})
3503035031 ,Obj4::fromNonlocal($obj->{'nonlocal'})
@@ -35043,6 +35044,8 @@ class Obj4 {
3504335044 ,Obj4::fromObject($obj->{'object'})
3504435045 ,Obj4::fromObjectMapper($obj->{'ObjectMapper'})
3504535046 ,Obj4::fromOf($obj->{'of'})
35047+ ,Obj4::fromOffsetDateTime($obj->{'OffsetDateTime'})
35048+ ,Obj4::fromOffsetTime($obj->{'OffsetTime'})
3504635049 ,Obj4::fromOneway($obj->{'oneway'})
3504735050 ,Obj4::fromOpen($obj->{'open'})
3504835051 ,Obj4::fromOperator($obj->{'operator'})
@@ -35085,9 +35088,6 @@ class Obj4 {
3508535088 ,Obj4::fromRuntimeType($obj->{'runtimeType'})
3508635089 ,Obj4::fromS($obj->{'s'})
3508735090 ,Obj4::fromSbyte($obj->{'sbyte'})
35088- ,Obj4::fromSealed($obj->{'sealed'})
35089- ,Obj4::fromSel($obj->{'SEL'})
35090- ,Obj4::fromSelect($obj->{'select'})
3509135091 );
3509235092 }
3509335093
@@ -35098,6 +35098,7 @@ class Obj4 {
3509835098 return new Obj4(
3509935099 Obj4::sampleDummy()
3510035100 ,Obj4::sampleNoSuchMethod()
35101+ ,Obj4::sampleNoexcept()
3510135102 ,Obj4::sampleNonatomic()
3510235103 ,Obj4::sampleNone()
3510335104 ,Obj4::sampleNonlocal()
@@ -35116,6 +35117,8 @@ class Obj4 {
3511635117 ,Obj4::sampleObject()
3511735118 ,Obj4::sampleObjectMapper()
3511835119 ,Obj4::sampleOf()
35120+ ,Obj4::sampleOffsetDateTime()
35121+ ,Obj4::sampleOffsetTime()
3511935122 ,Obj4::sampleOneway()
3512035123 ,Obj4::sampleOpen()
3512135124 ,Obj4::sampleOperator()
@@ -35158,9 +35161,6 @@ class Obj4 {
3515835161 ,Obj4::sampleRuntimeType()
3515935162 ,Obj4::sampleS()
3516035163 ,Obj4::sampleSbyte()
35161- ,Obj4::sampleSealed()
35162- ,Obj4::sampleSel()
35163- ,Obj4::sampleSelect()
3516435164 );
3516535165 }
3516635166 }
@@ -35266,6 +35266,107 @@ class NoSuchMethod {
3526635266 }
3526735267 }
3526835268
35269+// This is an autogenerated file:Noexcept
35270+
35271+class Noexcept {
35272+ private int $noexcept; // json:noexcept Required
35273+
35274+ /**
35275+ * @param int $noexcept
35276+ */
35277+ public function __construct(int $noexcept) {
35278+ $this->noexcept = $noexcept;
35279+ }
35280+
35281+ /**
35282+ * @param int $value
35283+ * @throws Exception
35284+ * @return int
35285+ */
35286+ public static function fromNoexcept(int $value): int {
35287+ return $value; /*int*/
35288+ }
35289+
35290+ /**
35291+ * @throws Exception
35292+ * @return int
35293+ */
35294+ public function toNoexcept(): int {
35295+ if (Noexcept::validateNoexcept($this->noexcept)) {
35296+ return $this->noexcept; /*int*/
35297+ }
35298+ throw new Exception('never get to this Noexcept::noexcept');
35299+ }
35300+
35301+ /**
35302+ * @param int
35303+ * @return bool
35304+ * @throws Exception
35305+ */
35306+ public static function validateNoexcept(int $value): bool {
35307+ return true;
35308+ }
35309+
35310+ /**
35311+ * @throws Exception
35312+ * @return int
35313+ */
35314+ public function getNoexcept(): int {
35315+ if (Noexcept::validateNoexcept($this->noexcept)) {
35316+ return $this->noexcept;
35317+ }
35318+ throw new Exception('never get to getNoexcept Noexcept::noexcept');
35319+ }
35320+
35321+ /**
35322+ * @return int
35323+ */
35324+ public static function sampleNoexcept(): int {
35325+ return 31; /*31:noexcept*/
35326+ }
35327+
35328+ /**
35329+ * @throws Exception
35330+ * @return bool
35331+ */
35332+ public function validate(): bool {
35333+ return Noexcept::validateNoexcept($this->noexcept);
35334+ }
35335+
35336+ /**
35337+ * @return stdClass
35338+ * @throws Exception
35339+ */
35340+ public function to(): stdClass {
35341+ $out = new stdClass();
35342+ $out->{'noexcept'} = $this->toNoexcept();
35343+ return $out;
35344+ }
35345+
35346+ /**
35347+ * @param stdClass $obj
35348+ * @return Noexcept
35349+ * @throws Exception
35350+ */
35351+ public static function from(stdClass $obj): Noexcept {
35352+ if (!property_exists($obj, 'noexcept')) {
35353+ throw new Exception("Missing required property");
35354+ }
35355+ return new Noexcept(
35356+ Noexcept::fromNoexcept($obj->{'noexcept'})
35357+ );
35358+ }
35359+
35360+ /**
35361+ * @return Noexcept
35362+ */
35363+ public static function sample(): Noexcept {
35364+ return new Noexcept(
35365+ Noexcept::sampleNoexcept()
35366+ );
35367+ }
35368+}
35369+
3526935370 // This is an autogenerated file:Nonatomic
3527035371
3527135372 class Nonatomic {
@@ -37084,16 +37185,16 @@ class Of {
3708437185 }
3708537186 }
3708637187
37087-// This is an autogenerated file:Oneway
37188+// This is an autogenerated file:OffsetDateTime
3708837189
37089-class Oneway {
37090- private int $oneway; // json:oneway Required
37190+class OffsetDateTime {
37191+ private int $offsetDateTime; // json:OffsetDateTime Required
3709137192
3709237193 /**
37093- * @param int $oneway
37194+ * @param int $offsetDateTime
3709437195 */
37095- public function __construct(int $oneway) {
37096- $this->oneway = $oneway;
37196+ public function __construct(int $offsetDateTime) {
37197+ $this->offsetDateTime = $offsetDateTime;
3709737198 }
3709837199
3709937200 /**
@@ -37101,7 +37202,7 @@ class Oneway {
3710137202 * @throws Exception
3710237203 * @return int
3710337204 */
37104- public static function fromOneway(int $value): int {
37205+ public static function fromOffsetDateTime(int $value): int {
3710537206 return $value; /*int*/
3710637207 }
3710737208
@@ -37109,11 +37210,11 @@ class Oneway {
3710937210 * @throws Exception
3711037211 * @return int
3711137212 */
37112- public function toOneway(): int {
37113- if (Oneway::validateOneway($this->oneway)) {
37114- return $this->oneway; /*int*/
37213+ public function toOffsetDateTime(): int {
37214+ if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) {
37215+ return $this->offsetDateTime; /*int*/
3711537216 }
37116- throw new Exception('never get to this Oneway::oneway');
37217+ throw new Exception('never get to this OffsetDateTime::offsetDateTime');
3711737218 }
3711837219
3711937220 /**
@@ -37121,7 +37222,7 @@ class Oneway {
3712137222 * @return bool
3712237223 * @throws Exception
3712337224 */
37124- public static function validateOneway(int $value): bool {
37225+ public static function validateOffsetDateTime(int $value): bool {
3712537226 return true;
3712637227 }
3712737228
@@ -37129,18 +37230,18 @@ class Oneway {
3712937230 * @throws Exception
3713037231 * @return int
3713137232 */
37132- public function getOneway(): int {
37133- if (Oneway::validateOneway($this->oneway)) {
37134- return $this->oneway;
37233+ public function getOffsetDateTime(): int {
37234+ if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) {
37235+ return $this->offsetDateTime;
3713537236 }
37136- throw new Exception('never get to getOneway Oneway::oneway');
37237+ throw new Exception('never get to getOffsetDateTime OffsetDateTime::offsetDateTime');
3713737238 }
3713837239
3713937240 /**
3714037241 * @return int
3714137242 */
37142- public static function sampleOneway(): int {
37143- return 31; /*31:oneway*/
37243+ public static function sampleOffsetDateTime(): int {
37244+ return 31; /*31:offsetDateTime*/
3714437245 }
3714537246
3714637247 /**
@@ -37148,7 +37249,7 @@ class Oneway {
3714837249 * @return bool
3714937250 */
3715037251 public function validate(): bool {
37151- return Oneway::validateOneway($this->oneway);
37252+ return OffsetDateTime::validateOffsetDateTime($this->offsetDateTime);
3715237253 }
3715337254
3715437255 /**
@@ -37157,44 +37258,44 @@ class Oneway {
3715737258 */
3715837259 public function to(): stdClass {
3715937260 $out = new stdClass();
37160- $out->{'oneway'} = $this->toOneway();
37261+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
3716137262 return $out;
3716237263 }
3716337264
3716437265 /**
3716537266 * @param stdClass $obj
37166- * @return Oneway
37267+ * @return OffsetDateTime
3716737268 * @throws Exception
3716837269 */
37169- public static function from(stdClass $obj): Oneway {
37170- if (!property_exists($obj, 'oneway')) {
37270+ public static function from(stdClass $obj): OffsetDateTime {
37271+ if (!property_exists($obj, 'OffsetDateTime')) {
3717137272 throw new Exception("Missing required property");
3717237273 }
37173- return new Oneway(
37174- Oneway::fromOneway($obj->{'oneway'})
37274+ return new OffsetDateTime(
37275+ OffsetDateTime::fromOffsetDateTime($obj->{'OffsetDateTime'})
3717537276 );
3717637277 }
3717737278
3717837279 /**
37179- * @return Oneway
37280+ * @return OffsetDateTime
3718037281 */
37181- public static function sample(): Oneway {
37182- return new Oneway(
37183- Oneway::sampleOneway()
37282+ public static function sample(): OffsetDateTime {
37283+ return new OffsetDateTime(
37284+ OffsetDateTime::sampleOffsetDateTime()
3718437285 );
3718537286 }
3718637287 }
3718737288
37188-// This is an autogenerated file:Open
37289+// This is an autogenerated file:OffsetTime
3718937290
37190-class Open {
37191- private int $open; // json:open Required
37291+class OffsetTime {
37292+ private int $offsetTime; // json:OffsetTime Required
3719237293
3719337294 /**
37194- * @param int $open
37295+ * @param int $offsetTime
3719537296 */
37196- public function __construct(int $open) {
37197- $this->open = $open;
37297+ public function __construct(int $offsetTime) {
37298+ $this->offsetTime = $offsetTime;
3719837299 }
3719937300
3720037301 /**
@@ -37202,7 +37303,7 @@ class Open {
3720237303 * @throws Exception
3720337304 * @return int
3720437305 */
37205- public static function fromOpen(int $value): int {
37306+ public static function fromOffsetTime(int $value): int {
3720637307 return $value; /*int*/
3720737308 }
3720837309
@@ -37210,11 +37311,11 @@ class Open {
3721037311 * @throws Exception
3721137312 * @return int
3721237313 */
37213- public function toOpen(): int {
37214- if (Open::validateOpen($this->open)) {
37215- return $this->open; /*int*/
37314+ public function toOffsetTime(): int {
37315+ if (OffsetTime::validateOffsetTime($this->offsetTime)) {
37316+ return $this->offsetTime; /*int*/
3721637317 }
37217- throw new Exception('never get to this Open::open');
37318+ throw new Exception('never get to this OffsetTime::offsetTime');
3721837319 }
3721937320
3722037321 /**
@@ -37222,7 +37323,7 @@ class Open {
3722237323 * @return bool
3722337324 * @throws Exception
3722437325 */
37225- public static function validateOpen(int $value): bool {
37326+ public static function validateOffsetTime(int $value): bool {
3722637327 return true;
3722737328 }
3722837329
@@ -37230,18 +37331,18 @@ class Open {
3723037331 * @throws Exception
3723137332 * @return int
3723237333 */
37233- public function getOpen(): int {
37234- if (Open::validateOpen($this->open)) {
37235- return $this->open;
37334+ public function getOffsetTime(): int {
37335+ if (OffsetTime::validateOffsetTime($this->offsetTime)) {
37336+ return $this->offsetTime;
3723637337 }
37237- throw new Exception('never get to getOpen Open::open');
37338+ throw new Exception('never get to getOffsetTime OffsetTime::offsetTime');
3723837339 }
3723937340
3724037341 /**
3724137342 * @return int
3724237343 */
37243- public static function sampleOpen(): int {
37244- return 31; /*31:open*/
37344+ public static function sampleOffsetTime(): int {
37345+ return 31; /*31:offsetTime*/
3724537346 }
3724637347
3724737348 /**
@@ -37249,7 +37350,7 @@ class Open {
3724937350 * @return bool
3725037351 */
3725137352 public function validate(): bool {
37252- return Open::validateOpen($this->open);
37353+ return OffsetTime::validateOffsetTime($this->offsetTime);
3725337354 }
3725437355
3725537356 /**
@@ -37258,44 +37359,44 @@ class Open {
3725837359 */
3725937360 public function to(): stdClass {
3726037361 $out = new stdClass();
37261- $out->{'open'} = $this->toOpen();
37362+ $out->{'OffsetTime'} = $this->toOffsetTime();
3726237363 return $out;
3726337364 }
3726437365
3726537366 /**
3726637367 * @param stdClass $obj
37267- * @return Open
37368+ * @return OffsetTime
3726837369 * @throws Exception
3726937370 */
37270- public static function from(stdClass $obj): Open {
37271- if (!property_exists($obj, 'open')) {
37371+ public static function from(stdClass $obj): OffsetTime {
37372+ if (!property_exists($obj, 'OffsetTime')) {
3727237373 throw new Exception("Missing required property");
3727337374 }
37274- return new Open(
37275- Open::fromOpen($obj->{'open'})
37375+ return new OffsetTime(
37376+ OffsetTime::fromOffsetTime($obj->{'OffsetTime'})
3727637377 );
3727737378 }
3727837379
3727937380 /**
37280- * @return Open
37381+ * @return OffsetTime
3728137382 */
37282- public static function sample(): Open {
37283- return new Open(
37284- Open::sampleOpen()
37383+ public static function sample(): OffsetTime {
37384+ return new OffsetTime(
37385+ OffsetTime::sampleOffsetTime()
3728537386 );
3728637387 }
3728737388 }
3728837389
37289-// This is an autogenerated file:Operator
37390+// This is an autogenerated file:Oneway
3729037391
37291-class Operator {
37292- private int $operator; // json:operator Required
37392+class Oneway {
37393+ private int $oneway; // json:oneway Required
3729337394
3729437395 /**
37295- * @param int $operator
37396+ * @param int $oneway
3729637397 */
37297- public function __construct(int $operator) {
37298- $this->operator = $operator;
37398+ public function __construct(int $oneway) {
37399+ $this->oneway = $oneway;
3729937400 }
3730037401
3730137402 /**
@@ -37303,7 +37404,7 @@ class Operator {
3730337404 * @throws Exception
3730437405 * @return int
3730537406 */
37306- public static function fromOperator(int $value): int {
37407+ public static function fromOneway(int $value): int {
3730737408 return $value; /*int*/
3730837409 }
3730937410
@@ -37311,11 +37412,11 @@ class Operator {
3731137412 * @throws Exception
3731237413 * @return int
3731337414 */
37314- public function toOperator(): int {
37315- if (Operator::validateOperator($this->operator)) {
37316- return $this->operator; /*int*/
37415+ public function toOneway(): int {
37416+ if (Oneway::validateOneway($this->oneway)) {
37417+ return $this->oneway; /*int*/
3731737418 }
37318- throw new Exception('never get to this Operator::operator');
37419+ throw new Exception('never get to this Oneway::oneway');
3731937420 }
3732037421
3732137422 /**
@@ -37323,7 +37424,7 @@ class Operator {
3732337424 * @return bool
3732437425 * @throws Exception
3732537426 */
37326- public static function validateOperator(int $value): bool {
37427+ public static function validateOneway(int $value): bool {
3732737428 return true;
3732837429 }
3732937430
@@ -37331,18 +37432,18 @@ class Operator {
3733137432 * @throws Exception
3733237433 * @return int
3733337434 */
37334- public function getOperator(): int {
37335- if (Operator::validateOperator($this->operator)) {
37336- return $this->operator;
37435+ public function getOneway(): int {
37436+ if (Oneway::validateOneway($this->oneway)) {
37437+ return $this->oneway;
3733737438 }
37338- throw new Exception('never get to getOperator Operator::operator');
37439+ throw new Exception('never get to getOneway Oneway::oneway');
3733937440 }
3734037441
3734137442 /**
3734237443 * @return int
3734337444 */
37344- public static function sampleOperator(): int {
37345- return 31; /*31:operator*/
37445+ public static function sampleOneway(): int {
37446+ return 31; /*31:oneway*/
3734637447 }
3734737448
3734837449 /**
@@ -37350,7 +37451,7 @@ class Operator {
3735037451 * @return bool
3735137452 */
3735237453 public function validate(): bool {
37353- return Operator::validateOperator($this->operator);
37454+ return Oneway::validateOneway($this->oneway);
3735437455 }
3735537456
3735637457 /**
@@ -37359,44 +37460,44 @@ class Operator {
3735937460 */
3736037461 public function to(): stdClass {
3736137462 $out = new stdClass();
37362- $out->{'operator'} = $this->toOperator();
37463+ $out->{'oneway'} = $this->toOneway();
3736337464 return $out;
3736437465 }
3736537466
3736637467 /**
3736737468 * @param stdClass $obj
37368- * @return Operator
37469+ * @return Oneway
3736937470 * @throws Exception
3737037471 */
37371- public static function from(stdClass $obj): Operator {
37372- if (!property_exists($obj, 'operator')) {
37472+ public static function from(stdClass $obj): Oneway {
37473+ if (!property_exists($obj, 'oneway')) {
3737337474 throw new Exception("Missing required property");
3737437475 }
37375- return new Operator(
37376- Operator::fromOperator($obj->{'operator'})
37476+ return new Oneway(
37477+ Oneway::fromOneway($obj->{'oneway'})
3737737478 );
3737837479 }
3737937480
3738037481 /**
37381- * @return Operator
37482+ * @return Oneway
3738237483 */
37383- public static function sample(): Operator {
37384- return new Operator(
37385- Operator::sampleOperator()
37484+ public static function sample(): Oneway {
37485+ return new Oneway(
37486+ Oneway::sampleOneway()
3738637487 );
3738737488 }
3738837489 }
3738937490
37390-// This is an autogenerated file:Optional
37491+// This is an autogenerated file:Open
3739137492
37392-class Optional {
37393- private int $optional; // json:optional Required
37493+class Open {
37494+ private int $open; // json:open Required
3739437495
3739537496 /**
37396- * @param int $optional
37497+ * @param int $open
3739737498 */
37398- public function __construct(int $optional) {
37399- $this->optional = $optional;
37499+ public function __construct(int $open) {
37500+ $this->open = $open;
3740037501 }
3740137502
3740237503 /**
@@ -37404,7 +37505,7 @@ class Optional {
3740437505 * @throws Exception
3740537506 * @return int
3740637507 */
37407- public static function fromOptional(int $value): int {
37508+ public static function fromOpen(int $value): int {
3740837509 return $value; /*int*/
3740937510 }
3741037511
@@ -37412,11 +37513,11 @@ class Optional {
3741237513 * @throws Exception
3741337514 * @return int
3741437515 */
37415- public function toOptional(): int {
37416- if (Optional::validateOptional($this->optional)) {
37417- return $this->optional; /*int*/
37516+ public function toOpen(): int {
37517+ if (Open::validateOpen($this->open)) {
37518+ return $this->open; /*int*/
3741837519 }
37419- throw new Exception('never get to this Optional::optional');
37520+ throw new Exception('never get to this Open::open');
3742037521 }
3742137522
3742237523 /**
@@ -37424,7 +37525,209 @@ class Optional {
3742437525 * @return bool
3742537526 * @throws Exception
3742637527 */
37427- public static function validateOptional(int $value): bool {
37528+ public static function validateOpen(int $value): bool {
37529+ return true;
37530+ }
37531+
37532+ /**
37533+ * @throws Exception
37534+ * @return int
37535+ */
37536+ public function getOpen(): int {
37537+ if (Open::validateOpen($this->open)) {
37538+ return $this->open;
37539+ }
37540+ throw new Exception('never get to getOpen Open::open');
37541+ }
37542+
37543+ /**
37544+ * @return int
37545+ */
37546+ public static function sampleOpen(): int {
37547+ return 31; /*31:open*/
37548+ }
37549+
37550+ /**
37551+ * @throws Exception
37552+ * @return bool
37553+ */
37554+ public function validate(): bool {
37555+ return Open::validateOpen($this->open);
37556+ }
37557+
37558+ /**
37559+ * @return stdClass
37560+ * @throws Exception
37561+ */
37562+ public function to(): stdClass {
37563+ $out = new stdClass();
37564+ $out->{'open'} = $this->toOpen();
37565+ return $out;
37566+ }
37567+
37568+ /**
37569+ * @param stdClass $obj
37570+ * @return Open
37571+ * @throws Exception
37572+ */
37573+ public static function from(stdClass $obj): Open {
37574+ if (!property_exists($obj, 'open')) {
37575+ throw new Exception("Missing required property");
37576+ }
37577+ return new Open(
37578+ Open::fromOpen($obj->{'open'})
37579+ );
37580+ }
37581+
37582+ /**
37583+ * @return Open
37584+ */
37585+ public static function sample(): Open {
37586+ return new Open(
37587+ Open::sampleOpen()
37588+ );
37589+ }
37590+}
37591+
37592+// This is an autogenerated file:Operator
37593+
37594+class Operator {
37595+ private int $operator; // json:operator Required
37596+
37597+ /**
37598+ * @param int $operator
37599+ */
37600+ public function __construct(int $operator) {
37601+ $this->operator = $operator;
37602+ }
37603+
37604+ /**
37605+ * @param int $value
37606+ * @throws Exception
37607+ * @return int
37608+ */
37609+ public static function fromOperator(int $value): int {
37610+ return $value; /*int*/
37611+ }
37612+
37613+ /**
37614+ * @throws Exception
37615+ * @return int
37616+ */
37617+ public function toOperator(): int {
37618+ if (Operator::validateOperator($this->operator)) {
37619+ return $this->operator; /*int*/
37620+ }
37621+ throw new Exception('never get to this Operator::operator');
37622+ }
37623+
37624+ /**
37625+ * @param int
37626+ * @return bool
37627+ * @throws Exception
37628+ */
37629+ public static function validateOperator(int $value): bool {
37630+ return true;
37631+ }
37632+
37633+ /**
37634+ * @throws Exception
37635+ * @return int
37636+ */
37637+ public function getOperator(): int {
37638+ if (Operator::validateOperator($this->operator)) {
37639+ return $this->operator;
37640+ }
37641+ throw new Exception('never get to getOperator Operator::operator');
37642+ }
37643+
37644+ /**
37645+ * @return int
37646+ */
37647+ public static function sampleOperator(): int {
37648+ return 31; /*31:operator*/
37649+ }
37650+
37651+ /**
37652+ * @throws Exception
37653+ * @return bool
37654+ */
37655+ public function validate(): bool {
37656+ return Operator::validateOperator($this->operator);
37657+ }
37658+
37659+ /**
37660+ * @return stdClass
37661+ * @throws Exception
37662+ */
37663+ public function to(): stdClass {
37664+ $out = new stdClass();
37665+ $out->{'operator'} = $this->toOperator();
37666+ return $out;
37667+ }
37668+
37669+ /**
37670+ * @param stdClass $obj
37671+ * @return Operator
37672+ * @throws Exception
37673+ */
37674+ public static function from(stdClass $obj): Operator {
37675+ if (!property_exists($obj, 'operator')) {
37676+ throw new Exception("Missing required property");
37677+ }
37678+ return new Operator(
37679+ Operator::fromOperator($obj->{'operator'})
37680+ );
37681+ }
37682+
37683+ /**
37684+ * @return Operator
37685+ */
37686+ public static function sample(): Operator {
37687+ return new Operator(
37688+ Operator::sampleOperator()
37689+ );
37690+ }
37691+}
37692+
37693+// This is an autogenerated file:Optional
37694+
37695+class Optional {
37696+ private int $optional; // json:optional Required
37697+
37698+ /**
37699+ * @param int $optional
37700+ */
37701+ public function __construct(int $optional) {
37702+ $this->optional = $optional;
37703+ }
37704+
37705+ /**
37706+ * @param int $value
37707+ * @throws Exception
37708+ * @return int
37709+ */
37710+ public static function fromOptional(int $value): int {
37711+ return $value; /*int*/
37712+ }
37713+
37714+ /**
37715+ * @throws Exception
37716+ * @return int
37717+ */
37718+ public function toOptional(): int {
37719+ if (Optional::validateOptional($this->optional)) {
37720+ return $this->optional; /*int*/
37721+ }
37722+ throw new Exception('never get to this Optional::optional');
37723+ }
37724+
37725+ /**
37726+ * @param int
37727+ * @return bool
37728+ * @throws Exception
37729+ */
37730+ public static function validateOptional(int $value): bool {
3742837731 return true;
3742937732 }
3743037733
@@ -41329,310 +41632,7 @@ class Sbyte {
4132941632 }
4133041633 }
4133141634
41332-// This is an autogenerated file:Sealed
41333-
41334-class Sealed {
41335- private int $sealed; // json:sealed Required
41336-
41337- /**
41338- * @param int $sealed
41339- */
41340- public function __construct(int $sealed) {
41341- $this->sealed = $sealed;
41342- }
41343-
41344- /**
41345- * @param int $value
41346- * @throws Exception
41347- * @return int
41348- */
41349- public static function fromSealed(int $value): int {
41350- return $value; /*int*/
41351- }
41352-
41353- /**
41354- * @throws Exception
41355- * @return int
41356- */
41357- public function toSealed(): int {
41358- if (Sealed::validateSealed($this->sealed)) {
41359- return $this->sealed; /*int*/
41360- }
41361- throw new Exception('never get to this Sealed::sealed');
41362- }
41363-
41364- /**
41365- * @param int
41366- * @return bool
41367- * @throws Exception
41368- */
41369- public static function validateSealed(int $value): bool {
41370- return true;
41371- }
41372-
41373- /**
41374- * @throws Exception
41375- * @return int
41376- */
41377- public function getSealed(): int {
41378- if (Sealed::validateSealed($this->sealed)) {
41379- return $this->sealed;
41380- }
41381- throw new Exception('never get to getSealed Sealed::sealed');
41382- }
41383-
41384- /**
41385- * @return int
41386- */
41387- public static function sampleSealed(): int {
41388- return 31; /*31:sealed*/
41389- }
41390-
41391- /**
41392- * @throws Exception
41393- * @return bool
41394- */
41395- public function validate(): bool {
41396- return Sealed::validateSealed($this->sealed);
41397- }
41398-
41399- /**
41400- * @return stdClass
41401- * @throws Exception
41402- */
41403- public function to(): stdClass {
41404- $out = new stdClass();
41405- $out->{'sealed'} = $this->toSealed();
41406- return $out;
41407- }
41408-
41409- /**
41410- * @param stdClass $obj
41411- * @return Sealed
41412- * @throws Exception
41413- */
41414- public static function from(stdClass $obj): Sealed {
41415- if (!property_exists($obj, 'sealed')) {
41416- throw new Exception("Missing required property");
41417- }
41418- return new Sealed(
41419- Sealed::fromSealed($obj->{'sealed'})
41420- );
41421- }
41422-
41423- /**
41424- * @return Sealed
41425- */
41426- public static function sample(): Sealed {
41427- return new Sealed(
41428- Sealed::sampleSealed()
41429- );
41430- }
41431-}
41432-
41433-// This is an autogenerated file:Sel
41434-
41435-class Sel {
41436- private int $sel; // json:SEL Required
41437-
41438- /**
41439- * @param int $sel
41440- */
41441- public function __construct(int $sel) {
41442- $this->sel = $sel;
41443- }
41444-
41445- /**
41446- * @param int $value
41447- * @throws Exception
41448- * @return int
41449- */
41450- public static function fromSel(int $value): int {
41451- return $value; /*int*/
41452- }
41453-
41454- /**
41455- * @throws Exception
41456- * @return int
41457- */
41458- public function toSel(): int {
41459- if (Sel::validateSel($this->sel)) {
41460- return $this->sel; /*int*/
41461- }
41462- throw new Exception('never get to this Sel::sel');
41463- }
41464-
41465- /**
41466- * @param int
41467- * @return bool
41468- * @throws Exception
41469- */
41470- public static function validateSel(int $value): bool {
41471- return true;
41472- }
41473-
41474- /**
41475- * @throws Exception
41476- * @return int
41477- */
41478- public function getSel(): int {
41479- if (Sel::validateSel($this->sel)) {
41480- return $this->sel;
41481- }
41482- throw new Exception('never get to getSel Sel::sel');
41483- }
41484-
41485- /**
41486- * @return int
41487- */
41488- public static function sampleSel(): int {
41489- return 31; /*31:sel*/
41490- }
41491-
41492- /**
41493- * @throws Exception
41494- * @return bool
41495- */
41496- public function validate(): bool {
41497- return Sel::validateSel($this->sel);
41498- }
41499-
41500- /**
41501- * @return stdClass
41502- * @throws Exception
41503- */
41504- public function to(): stdClass {
41505- $out = new stdClass();
41506- $out->{'SEL'} = $this->toSel();
41507- return $out;
41508- }
41509-
41510- /**
41511- * @param stdClass $obj
41512- * @return Sel
41513- * @throws Exception
41514- */
41515- public static function from(stdClass $obj): Sel {
41516- if (!property_exists($obj, 'SEL')) {
41517- throw new Exception("Missing required property");
41518- }
41519- return new Sel(
41520- Sel::fromSel($obj->{'SEL'})
41521- );
41522- }
41523-
41524- /**
41525- * @return Sel
41526- */
41527- public static function sample(): Sel {
41528- return new Sel(
41529- Sel::sampleSel()
41530- );
41531- }
41532-}
41533-
41534-// This is an autogenerated file:Select
41535-
41536-class Select {
41537- private int $select; // json:select Required
41538-
41539- /**
41540- * @param int $select
41541- */
41542- public function __construct(int $select) {
41543- $this->select = $select;
41544- }
41545-
41546- /**
41547- * @param int $value
41548- * @throws Exception
41549- * @return int
41550- */
41551- public static function fromSelect(int $value): int {
41552- return $value; /*int*/
41553- }
41554-
41555- /**
41556- * @throws Exception
41557- * @return int
41558- */
41559- public function toSelect(): int {
41560- if (Select::validateSelect($this->select)) {
41561- return $this->select; /*int*/
41562- }
41563- throw new Exception('never get to this Select::select');
41564- }
41565-
41566- /**
41567- * @param int
41568- * @return bool
41569- * @throws Exception
41570- */
41571- public static function validateSelect(int $value): bool {
41572- return true;
41573- }
41574-
41575- /**
41576- * @throws Exception
41577- * @return int
41578- */
41579- public function getSelect(): int {
41580- if (Select::validateSelect($this->select)) {
41581- return $this->select;
41582- }
41583- throw new Exception('never get to getSelect Select::select');
41584- }
41585-
41586- /**
41587- * @return int
41588- */
41589- public static function sampleSelect(): int {
41590- return 31; /*31:select*/
41591- }
41592-
41593- /**
41594- * @throws Exception
41595- * @return bool
41596- */
41597- public function validate(): bool {
41598- return Select::validateSelect($this->select);
41599- }
41600-
41601- /**
41602- * @return stdClass
41603- * @throws Exception
41604- */
41605- public function to(): stdClass {
41606- $out = new stdClass();
41607- $out->{'select'} = $this->toSelect();
41608- return $out;
41609- }
41610-
41611- /**
41612- * @param stdClass $obj
41613- * @return Select
41614- * @throws Exception
41615- */
41616- public static function from(stdClass $obj): Select {
41617- if (!property_exists($obj, 'select')) {
41618- throw new Exception("Missing required property");
41619- }
41620- return new Select(
41621- Select::fromSelect($obj->{'select'})
41622- );
41623- }
41624-
41625- /**
41626- * @return Select
41627- */
41628- public static function sample(): Select {
41629- return new Select(
41630- Select::sampleSelect()
41631- );
41632- }
41633-}
41634-
41635-// This is an autogenerated file:Obj5
41635+// This is an autogenerated file:Obj5
4163641636
4163741637 class Obj5 {
4163841638 private int $dummy; // json:dummy Required
@@ -41642,6 +41642,9 @@ class Obj5 {
4164241642 private Obj5True $obj5True; // json:true Required
4164341643 private TypeClass $obj5Type; // json:type Required
4164441644 private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required
41645+ private Sealed $sealed; // json:sealed Required
41646+ private Sel $sel; // json:SEL Required
41647+ private Select $select; // json:select Required
4164541648 private SelfClass $self; // json:Self Required
4164641649 private Sendable $sendable; // json:Sendable Required
4164741650 private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required
@@ -41696,10 +41699,7 @@ class Obj5 {
4169641699 private Undefined $undefined; // json:undefined Required
4169741700 private Union $union; // json:union Required
4169841701 private Unowned $unowned; // json:unowned Required
41699- private Unsafe $unsafe; // json:unsafe Required
41700- private Unsigned $unsigned; // json:unsigned Required
4170141702 private UseSerializers $useSerializers; // json:UseSerializers Required
41702- private Ushort $ushort; // json:ushort Required
4170341703
4170441704 /**
4170541705 * @param int $dummy
@@ -41709,6 +41709,9 @@ class Obj5 {
4170941709 * @param Obj5True $obj5True
4171041710 * @param TypeClass $obj5Type
4171141711 * @param PrimitiveKind $primitiveKind
41712+ * @param Sealed $sealed
41713+ * @param Sel $sel
41714+ * @param Select $select
4171241715 * @param SelfClass $self
4171341716 * @param Sendable $sendable
4171441717 * @param SerialDescriptor $serialDescriptor
@@ -41763,12 +41766,9 @@ class Obj5 {
4176341766 * @param Undefined $undefined
4176441767 * @param Union $union
4176541768 * @param Unowned $unowned
41766- * @param Unsafe $unsafe
41767- * @param Unsigned $unsigned
4176841769 * @param UseSerializers $useSerializers
41769- * @param Ushort $ushort
4177041770 */
41771- public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, 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, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, UseSerializers $useSerializers, Ushort $ushort) {
41771+ public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, 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, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, UseSerializers $useSerializers) {
4177241772 $this->dummy = $dummy;
4177341773 $this->kSerializer = $kSerializer;
4177441774 $this->obj5Self = $obj5Self;
@@ -41776,6 +41776,9 @@ class Obj5 {
4177641776 $this->obj5True = $obj5True;
4177741777 $this->obj5Type = $obj5Type;
4177841778 $this->primitiveKind = $primitiveKind;
41779+ $this->sealed = $sealed;
41780+ $this->sel = $sel;
41781+ $this->select = $select;
4177941782 $this->self = $self;
4178041783 $this->sendable = $sendable;
4178141784 $this->serialDescriptor = $serialDescriptor;
@@ -41830,10 +41833,7 @@ class Obj5 {
4183041833 $this->undefined = $undefined;
4183141834 $this->union = $union;
4183241835 $this->unowned = $unowned;
41833- $this->unsafe = $unsafe;
41834- $this->unsigned = $unsigned;
4183541836 $this->useSerializers = $useSerializers;
41836- $this->ushort = $ushort;
4183741837 }
4183841838
4183941839 /**
@@ -42171,6 +42171,150 @@ class Obj5 {
4217142171 return PrimitiveKind::sample(); /*37:primitiveKind*/
4217242172 }
4217342173
42174+ /**
42175+ * @param stdClass $value
42176+ * @throws Exception
42177+ * @return Sealed
42178+ */
42179+ public static function fromSealed(stdClass $value): Sealed {
42180+ return Sealed::from($value); /*class*/
42181+ }
42182+
42183+ /**
42184+ * @throws Exception
42185+ * @return stdClass
42186+ */
42187+ public function toSealed(): stdClass {
42188+ if (Obj5::validateSealed($this->sealed)) {
42189+ return $this->sealed->to(); /*class*/
42190+ }
42191+ throw new Exception('never get to this Obj5::sealed');
42192+ }
42193+
42194+ /**
42195+ * @param Sealed
42196+ * @return bool
42197+ * @throws Exception
42198+ */
42199+ public static function validateSealed(Sealed $value): bool {
42200+ $value->validate();
42201+ return true;
42202+ }
42203+
42204+ /**
42205+ * @throws Exception
42206+ * @return Sealed
42207+ */
42208+ public function getSealed(): Sealed {
42209+ if (Obj5::validateSealed($this->sealed)) {
42210+ return $this->sealed;
42211+ }
42212+ throw new Exception('never get to getSealed Obj5::sealed');
42213+ }
42214+
42215+ /**
42216+ * @return Sealed
42217+ */
42218+ public static function sampleSealed(): Sealed {
42219+ return Sealed::sample(); /*38:sealed*/
42220+ }
42221+
42222+ /**
42223+ * @param stdClass $value
42224+ * @throws Exception
42225+ * @return Sel
42226+ */
42227+ public static function fromSel(stdClass $value): Sel {
42228+ return Sel::from($value); /*class*/
42229+ }
42230+
42231+ /**
42232+ * @throws Exception
42233+ * @return stdClass
42234+ */
42235+ public function toSel(): stdClass {
42236+ if (Obj5::validateSel($this->sel)) {
42237+ return $this->sel->to(); /*class*/
42238+ }
42239+ throw new Exception('never get to this Obj5::sel');
42240+ }
42241+
42242+ /**
42243+ * @param Sel
42244+ * @return bool
42245+ * @throws Exception
42246+ */
42247+ public static function validateSel(Sel $value): bool {
42248+ $value->validate();
42249+ return true;
42250+ }
42251+
42252+ /**
42253+ * @throws Exception
42254+ * @return Sel
42255+ */
42256+ public function getSel(): Sel {
42257+ if (Obj5::validateSel($this->sel)) {
42258+ return $this->sel;
42259+ }
42260+ throw new Exception('never get to getSel Obj5::sel');
42261+ }
42262+
42263+ /**
42264+ * @return Sel
42265+ */
42266+ public static function sampleSel(): Sel {
42267+ return Sel::sample(); /*39:sel*/
42268+ }
42269+
42270+ /**
42271+ * @param stdClass $value
42272+ * @throws Exception
42273+ * @return Select
42274+ */
42275+ public static function fromSelect(stdClass $value): Select {
42276+ return Select::from($value); /*class*/
42277+ }
42278+
42279+ /**
42280+ * @throws Exception
42281+ * @return stdClass
42282+ */
42283+ public function toSelect(): stdClass {
42284+ if (Obj5::validateSelect($this->select)) {
42285+ return $this->select->to(); /*class*/
42286+ }
42287+ throw new Exception('never get to this Obj5::select');
42288+ }
42289+
42290+ /**
42291+ * @param Select
42292+ * @return bool
42293+ * @throws Exception
42294+ */
42295+ public static function validateSelect(Select $value): bool {
42296+ $value->validate();
42297+ return true;
42298+ }
42299+
42300+ /**
42301+ * @throws Exception
42302+ * @return Select
42303+ */
42304+ public function getSelect(): Select {
42305+ if (Obj5::validateSelect($this->select)) {
42306+ return $this->select;
42307+ }
42308+ throw new Exception('never get to getSelect Obj5::select');
42309+ }
42310+
42311+ /**
42312+ * @return Select
42313+ */
42314+ public static function sampleSelect(): Select {
42315+ return Select::sample(); /*40:select*/
42316+ }
42317+
4217442318 /**
4217542319 * @param stdClass $value
4217642320 * @throws Exception
@@ -42216,7 +42360,7 @@ class Obj5 {
4221642360 * @return SelfClass
4221742361 */
4221842362 public static function sampleSelf(): SelfClass {
42219- return SelfClass::sample(); /*38:self*/
42363+ return SelfClass::sample(); /*41:self*/
4222042364 }
4222142365
4222242366 /**
@@ -42264,7 +42408,7 @@ class Obj5 {
4226442408 * @return Sendable
4226542409 */
4226642410 public static function sampleSendable(): Sendable {
42267- return Sendable::sample(); /*39:sendable*/
42411+ return Sendable::sample(); /*42:sendable*/
4226842412 }
4226942413
4227042414 /**
@@ -42312,7 +42456,7 @@ class Obj5 {
4231242456 * @return SerialDescriptor
4231342457 */
4231442458 public static function sampleSerialDescriptor(): SerialDescriptor {
42315- return SerialDescriptor::sample(); /*40:serialDescriptor*/
42459+ return SerialDescriptor::sample(); /*43:serialDescriptor*/
4231642460 }
4231742461
4231842462 /**
@@ -42360,7 +42504,7 @@ class Obj5 {
4236042504 * @return SerialName
4236142505 */
4236242506 public static function sampleSerialName(): SerialName {
42363- return SerialName::sample(); /*41:serialName*/
42507+ return SerialName::sample(); /*44:serialName*/
4236442508 }
4236542509
4236642510 /**
@@ -42408,7 +42552,7 @@ class Obj5 {
4240842552 * @return SerializableClass
4240942553 */
4241042554 public static function sampleSerializable(): SerializableClass {
42411- return SerializableClass::sample(); /*42:serializable*/
42555+ return SerializableClass::sample(); /*45:serializable*/
4241242556 }
4241342557
4241442558 /**
@@ -42456,7 +42600,7 @@ class Obj5 {
4245642600 * @return Serialize
4245742601 */
4245842602 public static function sampleSerialize(): Serialize {
42459- return Serialize::sample(); /*43:serialize*/
42603+ return Serialize::sample(); /*46:serialize*/
4246042604 }
4246142605
4246242606 /**
@@ -42504,7 +42648,7 @@ class Obj5 {
4250442648 * @return SerializerProvider
4250542649 */
4250642650 public static function sampleSerializerProvider(): SerializerProvider {
42507- return SerializerProvider::sample(); /*44:serializerProvider*/
42651+ return SerializerProvider::sample(); /*47:serializerProvider*/
4250842652 }
4250942653
4251042654 /**
@@ -42552,7 +42696,7 @@ class Obj5 {
4255242696 * @return Set
4255342697 */
4255442698 public static function sampleSet(): Set {
42555- return Set::sample(); /*45:set*/
42699+ return Set::sample(); /*48:set*/
4255642700 }
4255742701
4255842702 /**
@@ -42600,7 +42744,7 @@ class Obj5 {
4260042744 * @return Short
4260142745 */
4260242746 public static function sampleShort(): Short {
42603- return Short::sample(); /*46:short*/
42747+ return Short::sample(); /*49:short*/
4260442748 }
4260542749
4260642750 /**
@@ -42648,7 +42792,7 @@ class Obj5 {
4264842792 * @return Signed
4264942793 */
4265042794 public static function sampleSigned(): Signed {
42651- return Signed::sample(); /*47:signed*/
42795+ return Signed::sample(); /*50:signed*/
4265242796 }
4265342797
4265442798 /**
@@ -42696,7 +42840,7 @@ class Obj5 {
4269642840 * @return SimpleModule
4269742841 */
4269842842 public static function sampleSimpleModule(): SimpleModule {
42699- return SimpleModule::sample(); /*48:simpleModule*/
42843+ return SimpleModule::sample(); /*51:simpleModule*/
4270042844 }
4270142845
4270242846 /**
@@ -42744,7 +42888,7 @@ class Obj5 {
4274442888 * @return Sizeof
4274542889 */
4274642890 public static function sampleSizeof(): Sizeof {
42747- return Sizeof::sample(); /*49:sizeof*/
42891+ return Sizeof::sample(); /*52:sizeof*/
4274842892 }
4274942893
4275042894 /**
@@ -42792,7 +42936,7 @@ class Obj5 {
4279242936 * @return Stackalloc
4279342937 */
4279442938 public static function sampleStackalloc(): Stackalloc {
42795- return Stackalloc::sample(); /*50:stackalloc*/
42939+ return Stackalloc::sample(); /*53:stackalloc*/
4279642940 }
4279742941
4279842942 /**
@@ -42840,7 +42984,7 @@ class Obj5 {
4284042984 * @return Standards
4284142985 */
4284242986 public static function sampleStandards(): Standards {
42843- return Standards::sample(); /*51:standards*/
42987+ return Standards::sample(); /*54:standards*/
4284442988 }
4284542989
4284642990 /**
@@ -42888,7 +43032,7 @@ class Obj5 {
4288843032 * @return StaticClass
4288943033 */
4289043034 public static function sampleStatic(): StaticClass {
42891- return StaticClass::sample(); /*52:static*/
43035+ return StaticClass::sample(); /*55:static*/
4289243036 }
4289343037
4289443038 /**
@@ -42936,7 +43080,7 @@ class Obj5 {
4293643080 * @return StaticAssert
4293743081 */
4293843082 public static function sampleStaticAssert(): StaticAssert {
42939- return StaticAssert::sample(); /*53:staticAssert*/
43083+ return StaticAssert::sample(); /*56:staticAssert*/
4294043084 }
4294143085
4294243086 /**
@@ -42984,7 +43128,7 @@ class Obj5 {
4298443128 * @return StaticCast
4298543129 */
4298643130 public static function sampleStaticCast(): StaticCast {
42987- return StaticCast::sample(); /*54:staticCast*/
43131+ return StaticCast::sample(); /*57:staticCast*/
4298843132 }
4298943133
4299043134 /**
@@ -43032,7 +43176,7 @@ class Obj5 {
4303243176 * @return StdDeserializer
4303343177 */
4303443178 public static function sampleStdDeserializer(): StdDeserializer {
43035- return StdDeserializer::sample(); /*55:stdDeserializer*/
43179+ return StdDeserializer::sample(); /*58:stdDeserializer*/
4303643180 }
4303743181
4303843182 /**
@@ -43080,7 +43224,7 @@ class Obj5 {
4308043224 * @return StdSerializer
4308143225 */
4308243226 public static function sampleStdSerializer(): StdSerializer {
43083- return StdSerializer::sample(); /*56:stdSerializer*/
43227+ return StdSerializer::sample(); /*59:stdSerializer*/
4308443228 }
4308543229
4308643230 /**
@@ -43128,7 +43272,7 @@ class Obj5 {
4312843272 * @return Strictfp
4312943273 */
4313043274 public static function sampleStrictfp(): Strictfp {
43131- return Strictfp::sample(); /*57:strictfp*/
43275+ return Strictfp::sample(); /*60:strictfp*/
4313243276 }
4313343277
4313443278 /**
@@ -43176,7 +43320,7 @@ class Obj5 {
4317643320 * @return StringClass
4317743321 */
4317843322 public static function sampleString(): StringClass {
43179- return StringClass::sample(); /*58:string*/
43323+ return StringClass::sample(); /*61:string*/
4318043324 }
4318143325
4318243326 /**
@@ -43224,7 +43368,7 @@ class Obj5 {
4322443368 * @return Struct
4322543369 */
4322643370 public static function sampleStruct(): Struct {
43227- return Struct::sample(); /*59:struct*/
43371+ return Struct::sample(); /*62:struct*/
4322843372 }
4322943373
4323043374 /**
@@ -43272,7 +43416,7 @@ class Obj5 {
4327243416 * @return Subscript
4327343417 */
4327443418 public static function sampleSubscript(): Subscript {
43275- return Subscript::sample(); /*60:subscript*/
43419+ return Subscript::sample(); /*63:subscript*/
4327643420 }
4327743421
4327843422 /**
@@ -43320,7 +43464,7 @@ class Obj5 {
4332043464 * @return Super
4332143465 */
4332243466 public static function sampleSuper(): Super {
43323- return Super::sample(); /*61:super*/
43467+ return Super::sample(); /*64:super*/
4332443468 }
4332543469
4332643470 /**
@@ -43368,7 +43512,7 @@ class Obj5 {
4336843512 * @return SwitchClass
4336943513 */
4337043514 public static function sampleSwitch(): SwitchClass {
43371- return SwitchClass::sample(); /*62:switch*/
43515+ return SwitchClass::sample(); /*65:switch*/
4337243516 }
4337343517
4337443518 /**
@@ -43416,7 +43560,7 @@ class Obj5 {
4341643560 * @return Symbol
4341743561 */
4341843562 public static function sampleSymbol(): Symbol {
43419- return Symbol::sample(); /*63:symbol*/
43563+ return Symbol::sample(); /*66:symbol*/
4342043564 }
4342143565
4342243566 /**
@@ -43464,7 +43608,7 @@ class Obj5 {
4346443608 * @return Synchronized
4346543609 */
4346643610 public static function sampleSynchronized(): Synchronized {
43467- return Synchronized::sample(); /*64:synchronized*/
43611+ return Synchronized::sample(); /*67:synchronized*/
4346843612 }
4346943613
4347043614 /**
@@ -43512,7 +43656,7 @@ class Obj5 {
4351243656 * @return System
4351343657 */
4351443658 public static function sampleSystem(): System {
43515- return System::sample(); /*65:system*/
43659+ return System::sample(); /*68:system*/
4351643660 }
4351743661
4351843662 /**
@@ -43560,7 +43704,7 @@ class Obj5 {
4356043704 * @return Template
4356143705 */
4356243706 public static function sampleTemplate(): Template {
43563- return Template::sample(); /*66:template*/
43707+ return Template::sample(); /*69:template*/
4356443708 }
4356543709
4356643710 /**
@@ -43608,7 +43752,7 @@ class Obj5 {
4360843752 * @return Then
4360943753 */
4361043754 public static function sampleThen(): Then {
43611- return Then::sample(); /*67:then*/
43755+ return Then::sample(); /*70:then*/
4361243756 }
4361343757
4361443758 /**
@@ -43656,7 +43800,7 @@ class Obj5 {
4365643800 * @return ThreadLocal
4365743801 */
4365843802 public static function sampleThreadLocal(): ThreadLocal {
43659- return ThreadLocal::sample(); /*68:threadLocal*/
43803+ return ThreadLocal::sample(); /*71:threadLocal*/
4366043804 }
4366143805
4366243806 /**
@@ -43704,7 +43848,7 @@ class Obj5 {
4370443848 * @return ThrowClass
4370543849 */
4370643850 public static function sampleThrow(): ThrowClass {
43707- return ThrowClass::sample(); /*69:throw*/
43851+ return ThrowClass::sample(); /*72:throw*/
4370843852 }
4370943853
4371043854 /**
@@ -43752,7 +43896,7 @@ class Obj5 {
4375243896 * @return Throws
4375343897 */
4375443898 public static function sampleThrows(): Throws {
43755- return Throws::sample(); /*70:throws*/
43899+ return Throws::sample(); /*73:throws*/
4375643900 }
4375743901
4375843902 /**
@@ -43800,7 +43944,7 @@ class Obj5 {
4380043944 * @return TimeOnly
4380143945 */
4380243946 public static function sampleTimeOnly(): TimeOnly {
43803- return TimeOnly::sample(); /*71:timeOnly*/
43947+ return TimeOnly::sample(); /*74:timeOnly*/
4380443948 }
4380543949
4380643950 /**
@@ -43848,7 +43992,7 @@ class Obj5 {
4384843992 * @return TimeOnlyConverter
4384943993 */
4385043994 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
43851- return TimeOnlyConverter::sample(); /*72:timeOnlyConverter*/
43995+ return TimeOnlyConverter::sample(); /*75:timeOnlyConverter*/
4385243996 }
4385343997
4385443998 /**
@@ -43896,7 +44040,7 @@ class Obj5 {
4389644040 * @return TimeZone
4389744041 */
4389844042 public static function sampleTimeZone(): TimeZone {
43899- return TimeZone::sample(); /*73:timeZone*/
44043+ return TimeZone::sample(); /*76:timeZone*/
4390044044 }
4390144045
4390244046 /**
@@ -43944,7 +44088,7 @@ class Obj5 {
4394444088 * @return ToJSON
4394544089 */
4394644090 public static function sampleToJSON(): ToJSON {
43947- return ToJSON::sample(); /*74:toJSON*/
44091+ return ToJSON::sample(); /*77:toJSON*/
4394844092 }
4394944093
4395044094 /**
@@ -43992,7 +44136,7 @@ class Obj5 {
4399244136 * @return ToString
4399344137 */
4399444138 public static function sampleToString(): ToString {
43995- return ToString::sample(); /*75:toString*/
44139+ return ToString::sample(); /*78:toString*/
4399644140 }
4399744141
4399844142 /**
@@ -44040,7 +44184,7 @@ class Obj5 {
4404044184 * @return TopLevelClass
4404144185 */
4404244186 public static function sampleTopLevel(): TopLevelClass {
44043- return TopLevelClass::sample(); /*76:topLevel*/
44187+ return TopLevelClass::sample(); /*79:topLevel*/
4404444188 }
4404544189
4404644190 /**
@@ -44088,7 +44232,7 @@ class Obj5 {
4408844232 * @return Transient
4408944233 */
4409044234 public static function sampleTransient(): Transient {
44091- return Transient::sample(); /*77:transient*/
44235+ return Transient::sample(); /*80:transient*/
4409244236 }
4409344237
4409444238 /**
@@ -44136,7 +44280,7 @@ class Obj5 {
4413644280 * @return TrueClass
4413744281 */
4413844282 public static function sampleTrue(): TrueClass {
44139- return TrueClass::sample(); /*78:true*/
44283+ return TrueClass::sample(); /*81:true*/
4414044284 }
4414144285
4414244286 /**
@@ -44184,7 +44328,7 @@ class Obj5 {
4418444328 * @return TryClass
4418544329 */
4418644330 public static function sampleTry(): TryClass {
44187- return TryClass::sample(); /*79:try*/
44331+ return TryClass::sample(); /*82:try*/
4418844332 }
4418944333
4419044334 /**
@@ -44232,7 +44376,7 @@ class Obj5 {
4423244376 * @return Type
4423344377 */
4423444378 public static function sampleType(): Type {
44235- return Type::sample(); /*80:type*/
44379+ return Type::sample(); /*83:type*/
4423644380 }
4423744381
4423844382 /**
@@ -44280,7 +44424,7 @@ class Obj5 {
4428044424 * @return Typealias
4428144425 */
4428244426 public static function sampleTypealias(): Typealias {
44283- return Typealias::sample(); /*81:typealias*/
44427+ return Typealias::sample(); /*84:typealias*/
4428444428 }
4428544429
4428644430 /**
@@ -44328,7 +44472,7 @@ class Obj5 {
4432844472 * @return Typedef
4432944473 */
4433044474 public static function sampleTypedef(): Typedef {
44331- return Typedef::sample(); /*82:typedef*/
44475+ return Typedef::sample(); /*85:typedef*/
4433244476 }
4433344477
4433444478 /**
@@ -44376,7 +44520,7 @@ class Obj5 {
4437644520 * @return Typeid
4437744521 */
4437844522 public static function sampleTypeid(): Typeid {
44379- return Typeid::sample(); /*83:typeid*/
44523+ return Typeid::sample(); /*86:typeid*/
4438044524 }
4438144525
4438244526 /**
@@ -44424,7 +44568,7 @@ class Obj5 {
4442444568 * @return Typename
4442544569 */
4442644570 public static function sampleTypename(): Typename {
44427- return Typename::sample(); /*84:typename*/
44571+ return Typename::sample(); /*87:typename*/
4442844572 }
4442944573
4443044574 /**
@@ -44472,7 +44616,7 @@ class Obj5 {
4447244616 * @return Typeof
4447344617 */
4447444618 public static function sampleTypeof(): Typeof {
44475- return Typeof::sample(); /*85:typeof*/
44619+ return Typeof::sample(); /*88:typeof*/
4447644620 }
4447744621
4447844622 /**
@@ -44520,7 +44664,7 @@ class Obj5 {
4452044664 * @return Uint
4452144665 */
4452244666 public static function sampleUint(): Uint {
44523- return Uint::sample(); /*86:uint*/
44667+ return Uint::sample(); /*89:uint*/
4452444668 }
4452544669
4452644670 /**
@@ -44568,7 +44712,7 @@ class Obj5 {
4456844712 * @return Ulong
4456944713 */
4457044714 public static function sampleUlong(): Ulong {
44571- return Ulong::sample(); /*87:ulong*/
44715+ return Ulong::sample(); /*90:ulong*/
4457244716 }
4457344717
4457444718 /**
@@ -44616,7 +44760,7 @@ class Obj5 {
4461644760 * @return Unchecked
4461744761 */
4461844762 public static function sampleUnchecked(): Unchecked {
44619- return Unchecked::sample(); /*88:unchecked*/
44763+ return Unchecked::sample(); /*91:unchecked*/
4462044764 }
4462144765
4462244766 /**
@@ -44664,7 +44808,7 @@ class Obj5 {
4466444808 * @return Undefined
4466544809 */
4466644810 public static function sampleUndefined(): Undefined {
44667- return Undefined::sample(); /*89:undefined*/
44811+ return Undefined::sample(); /*92:undefined*/
4466844812 }
4466944813
4467044814 /**
@@ -44712,7 +44856,7 @@ class Obj5 {
4471244856 * @return Union
4471344857 */
4471444858 public static function sampleUnion(): Union {
44715- return Union::sample(); /*90:union*/
44859+ return Union::sample(); /*93:union*/
4471644860 }
4471744861
4471844862 /**
@@ -44760,103 +44904,7 @@ class Obj5 {
4476044904 * @return Unowned
4476144905 */
4476244906 public static function sampleUnowned(): Unowned {
44763- return Unowned::sample(); /*91:unowned*/
44764- }
44765-
44766- /**
44767- * @param stdClass $value
44768- * @throws Exception
44769- * @return Unsafe
44770- */
44771- public static function fromUnsafe(stdClass $value): Unsafe {
44772- return Unsafe::from($value); /*class*/
44773- }
44774-
44775- /**
44776- * @throws Exception
44777- * @return stdClass
44778- */
44779- public function toUnsafe(): stdClass {
44780- if (Obj5::validateUnsafe($this->unsafe)) {
44781- return $this->unsafe->to(); /*class*/
44782- }
44783- throw new Exception('never get to this Obj5::unsafe');
44784- }
44785-
44786- /**
44787- * @param Unsafe
44788- * @return bool
44789- * @throws Exception
44790- */
44791- public static function validateUnsafe(Unsafe $value): bool {
44792- $value->validate();
44793- return true;
44794- }
44795-
44796- /**
44797- * @throws Exception
44798- * @return Unsafe
44799- */
44800- public function getUnsafe(): Unsafe {
44801- if (Obj5::validateUnsafe($this->unsafe)) {
44802- return $this->unsafe;
44803- }
44804- throw new Exception('never get to getUnsafe Obj5::unsafe');
44805- }
44806-
44807- /**
44808- * @return Unsafe
44809- */
44810- public static function sampleUnsafe(): Unsafe {
44811- return Unsafe::sample(); /*92:unsafe*/
44812- }
44813-
44814- /**
44815- * @param stdClass $value
44816- * @throws Exception
44817- * @return Unsigned
44818- */
44819- public static function fromUnsigned(stdClass $value): Unsigned {
44820- return Unsigned::from($value); /*class*/
44821- }
44822-
44823- /**
44824- * @throws Exception
44825- * @return stdClass
44826- */
44827- public function toUnsigned(): stdClass {
44828- if (Obj5::validateUnsigned($this->unsigned)) {
44829- return $this->unsigned->to(); /*class*/
44830- }
44831- throw new Exception('never get to this Obj5::unsigned');
44832- }
44833-
44834- /**
44835- * @param Unsigned
44836- * @return bool
44837- * @throws Exception
44838- */
44839- public static function validateUnsigned(Unsigned $value): bool {
44840- $value->validate();
44841- return true;
44842- }
44843-
44844- /**
44845- * @throws Exception
44846- * @return Unsigned
44847- */
44848- public function getUnsigned(): Unsigned {
44849- if (Obj5::validateUnsigned($this->unsigned)) {
44850- return $this->unsigned;
44851- }
44852- throw new Exception('never get to getUnsigned Obj5::unsigned');
44853- }
44854-
44855- /**
44856- * @return Unsigned
44857- */
44858- public static function sampleUnsigned(): Unsigned {
44859- return Unsigned::sample(); /*93:unsigned*/
44907+ return Unowned::sample(); /*94:unowned*/
4486044908 }
4486144909
4486244910 /**
@@ -44904,55 +44952,7 @@ class Obj5 {
4490444952 * @return UseSerializers
4490544953 */
4490644954 public static function sampleUseSerializers(): UseSerializers {
44907- return UseSerializers::sample(); /*94:useSerializers*/
44908- }
44909-
44910- /**
44911- * @param stdClass $value
44912- * @throws Exception
44913- * @return Ushort
44914- */
44915- public static function fromUshort(stdClass $value): Ushort {
44916- return Ushort::from($value); /*class*/
44917- }
44918-
44919- /**
44920- * @throws Exception
44921- * @return stdClass
44922- */
44923- public function toUshort(): stdClass {
44924- if (Obj5::validateUshort($this->ushort)) {
44925- return $this->ushort->to(); /*class*/
44926- }
44927- throw new Exception('never get to this Obj5::ushort');
44928- }
44929-
44930- /**
44931- * @param Ushort
44932- * @return bool
44933- * @throws Exception
44934- */
44935- public static function validateUshort(Ushort $value): bool {
44936- $value->validate();
44937- return true;
44938- }
44939-
44940- /**
44941- * @throws Exception
44942- * @return Ushort
44943- */
44944- public function getUshort(): Ushort {
44945- if (Obj5::validateUshort($this->ushort)) {
44946- return $this->ushort;
44947- }
44948- throw new Exception('never get to getUshort Obj5::ushort');
44949- }
44950-
44951- /**
44952- * @return Ushort
44953- */
44954- public static function sampleUshort(): Ushort {
44955- return Ushort::sample(); /*95:ushort*/
44955+ return UseSerializers::sample(); /*95:useSerializers*/
4495644956 }
4495744957
4495844958 /**
@@ -44967,6 +44967,9 @@ class Obj5 {
4496744967 || Obj5::validateObj5True($this->obj5True)
4496844968 || Obj5::validateObj5Type($this->obj5Type)
4496944969 || Obj5::validatePrimitiveKind($this->primitiveKind)
44970+ || Obj5::validateSealed($this->sealed)
44971+ || Obj5::validateSel($this->sel)
44972+ || Obj5::validateSelect($this->select)
4497044973 || Obj5::validateSelf($this->self)
4497144974 || Obj5::validateSendable($this->sendable)
4497244975 || Obj5::validateSerialDescriptor($this->serialDescriptor)
@@ -45021,10 +45024,7 @@ class Obj5 {
4502145024 || Obj5::validateUndefined($this->undefined)
4502245025 || Obj5::validateUnion($this->union)
4502345026 || Obj5::validateUnowned($this->unowned)
45024- || Obj5::validateUnsafe($this->unsafe)
45025- || Obj5::validateUnsigned($this->unsigned)
45026- || Obj5::validateUseSerializers($this->useSerializers)
45027- || Obj5::validateUshort($this->ushort);
45027+ || Obj5::validateUseSerializers($this->useSerializers);
4502845028 }
4502945029
4503045030 /**
@@ -45040,6 +45040,9 @@ class Obj5 {
4504045040 $out->{'true'} = $this->toObj5True();
4504145041 $out->{'type'} = $this->toObj5Type();
4504245042 $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
45043+ $out->{'sealed'} = $this->toSealed();
45044+ $out->{'SEL'} = $this->toSel();
45045+ $out->{'select'} = $this->toSelect();
4504345046 $out->{'Self'} = $this->toSelf();
4504445047 $out->{'Sendable'} = $this->toSendable();
4504545048 $out->{'SerialDescriptor'} = $this->toSerialDescriptor();
@@ -45094,10 +45097,7 @@ class Obj5 {
4509445097 $out->{'undefined'} = $this->toUndefined();
4509545098 $out->{'union'} = $this->toUnion();
4509645099 $out->{'unowned'} = $this->toUnowned();
45097- $out->{'unsafe'} = $this->toUnsafe();
45098- $out->{'unsigned'} = $this->toUnsigned();
4509945100 $out->{'UseSerializers'} = $this->toUseSerializers();
45100- $out->{'ushort'} = $this->toUshort();
4510145101 return $out;
4510245102 }
4510345103
@@ -45128,6 +45128,15 @@ class Obj5 {
4512845128 if (!property_exists($obj, 'PrimitiveKind')) {
4512945129 throw new Exception("Missing required property");
4513045130 }
45131+ if (!property_exists($obj, 'sealed')) {
45132+ throw new Exception("Missing required property");
45133+ }
45134+ if (!property_exists($obj, 'SEL')) {
45135+ throw new Exception("Missing required property");
45136+ }
45137+ if (!property_exists($obj, 'select')) {
45138+ throw new Exception("Missing required property");
45139+ }
4513145140 if (!property_exists($obj, 'Self')) {
4513245141 throw new Exception("Missing required property");
4513345142 }
@@ -45290,18 +45299,9 @@ class Obj5 {
4529045299 if (!property_exists($obj, 'unowned')) {
4529145300 throw new Exception("Missing required property");
4529245301 }
45293- if (!property_exists($obj, 'unsafe')) {
45294- throw new Exception("Missing required property");
45295- }
45296- if (!property_exists($obj, 'unsigned')) {
45297- throw new Exception("Missing required property");
45298- }
4529945302 if (!property_exists($obj, 'UseSerializers')) {
4530045303 throw new Exception("Missing required property");
4530145304 }
45302- if (!property_exists($obj, 'ushort')) {
45303- throw new Exception("Missing required property");
45304- }
4530545305 return new Obj5(
4530645306 Obj5::fromDummy($obj->{'dummy'})
4530745307 ,Obj5::fromKSerializer($obj->{'KSerializer'})
@@ -45310,6 +45310,9 @@ class Obj5 {
4531045310 ,Obj5::fromObj5True($obj->{'true'})
4531145311 ,Obj5::fromObj5Type($obj->{'type'})
4531245312 ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'})
45313+ ,Obj5::fromSealed($obj->{'sealed'})
45314+ ,Obj5::fromSel($obj->{'SEL'})
45315+ ,Obj5::fromSelect($obj->{'select'})
4531345316 ,Obj5::fromSelf($obj->{'Self'})
4531445317 ,Obj5::fromSendable($obj->{'Sendable'})
4531545318 ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'})
@@ -45364,10 +45367,7 @@ class Obj5 {
4536445367 ,Obj5::fromUndefined($obj->{'undefined'})
4536545368 ,Obj5::fromUnion($obj->{'union'})
4536645369 ,Obj5::fromUnowned($obj->{'unowned'})
45367- ,Obj5::fromUnsafe($obj->{'unsafe'})
45368- ,Obj5::fromUnsigned($obj->{'unsigned'})
4536945370 ,Obj5::fromUseSerializers($obj->{'UseSerializers'})
45370- ,Obj5::fromUshort($obj->{'ushort'})
4537145371 );
4537245372 }
4537345373
@@ -45383,6 +45383,9 @@ class Obj5 {
4538345383 ,Obj5::sampleObj5True()
4538445384 ,Obj5::sampleObj5Type()
4538545385 ,Obj5::samplePrimitiveKind()
45386+ ,Obj5::sampleSealed()
45387+ ,Obj5::sampleSel()
45388+ ,Obj5::sampleSelect()
4538645389 ,Obj5::sampleSelf()
4538745390 ,Obj5::sampleSendable()
4538845391 ,Obj5::sampleSerialDescriptor()
@@ -45437,10 +45440,7 @@ class Obj5 {
4543745440 ,Obj5::sampleUndefined()
4543845441 ,Obj5::sampleUnion()
4543945442 ,Obj5::sampleUnowned()
45440- ,Obj5::sampleUnsafe()
45441- ,Obj5::sampleUnsigned()
4544245443 ,Obj5::sampleUseSerializers()
45443- ,Obj5::sampleUshort()
4544445444 );
4544545445 }
4544645446 }
@@ -45509,7 +45509,310 @@ class KSerializer {
4550945509 * @return bool
4551045510 */
4551145511 public function validate(): bool {
45512- return KSerializer::validateKSerializer($this->kSerializer);
45512+ return KSerializer::validateKSerializer($this->kSerializer);
45513+ }
45514+
45515+ /**
45516+ * @return stdClass
45517+ * @throws Exception
45518+ */
45519+ public function to(): stdClass {
45520+ $out = new stdClass();
45521+ $out->{'KSerializer'} = $this->toKSerializer();
45522+ return $out;
45523+ }
45524+
45525+ /**
45526+ * @param stdClass $obj
45527+ * @return KSerializer
45528+ * @throws Exception
45529+ */
45530+ public static function from(stdClass $obj): KSerializer {
45531+ if (!property_exists($obj, 'KSerializer')) {
45532+ throw new Exception("Missing required property");
45533+ }
45534+ return new KSerializer(
45535+ KSerializer::fromKSerializer($obj->{'KSerializer'})
45536+ );
45537+ }
45538+
45539+ /**
45540+ * @return KSerializer
45541+ */
45542+ public static function sample(): KSerializer {
45543+ return new KSerializer(
45544+ KSerializer::sampleKSerializer()
45545+ );
45546+ }
45547+}
45548+
45549+// This is an autogenerated file:Obj5Self
45550+
45551+class Obj5Self {
45552+ private int $self; // json:self Required
45553+
45554+ /**
45555+ * @param int $self
45556+ */
45557+ public function __construct(int $self) {
45558+ $this->self = $self;
45559+ }
45560+
45561+ /**
45562+ * @param int $value
45563+ * @throws Exception
45564+ * @return int
45565+ */
45566+ public static function fromSelf(int $value): int {
45567+ return $value; /*int*/
45568+ }
45569+
45570+ /**
45571+ * @throws Exception
45572+ * @return int
45573+ */
45574+ public function toSelf(): int {
45575+ if (Obj5Self::validateSelf($this->self)) {
45576+ return $this->self; /*int*/
45577+ }
45578+ throw new Exception('never get to this Obj5Self::self');
45579+ }
45580+
45581+ /**
45582+ * @param int
45583+ * @return bool
45584+ * @throws Exception
45585+ */
45586+ public static function validateSelf(int $value): bool {
45587+ return true;
45588+ }
45589+
45590+ /**
45591+ * @throws Exception
45592+ * @return int
45593+ */
45594+ public function getSelf(): int {
45595+ if (Obj5Self::validateSelf($this->self)) {
45596+ return $this->self;
45597+ }
45598+ throw new Exception('never get to getSelf Obj5Self::self');
45599+ }
45600+
45601+ /**
45602+ * @return int
45603+ */
45604+ public static function sampleSelf(): int {
45605+ return 31; /*31:self*/
45606+ }
45607+
45608+ /**
45609+ * @throws Exception
45610+ * @return bool
45611+ */
45612+ public function validate(): bool {
45613+ return Obj5Self::validateSelf($this->self);
45614+ }
45615+
45616+ /**
45617+ * @return stdClass
45618+ * @throws Exception
45619+ */
45620+ public function to(): stdClass {
45621+ $out = new stdClass();
45622+ $out->{'self'} = $this->toSelf();
45623+ return $out;
45624+ }
45625+
45626+ /**
45627+ * @param stdClass $obj
45628+ * @return Obj5Self
45629+ * @throws Exception
45630+ */
45631+ public static function from(stdClass $obj): Obj5Self {
45632+ if (!property_exists($obj, 'self')) {
45633+ throw new Exception("Missing required property");
45634+ }
45635+ return new Obj5Self(
45636+ Obj5Self::fromSelf($obj->{'self'})
45637+ );
45638+ }
45639+
45640+ /**
45641+ * @return Obj5Self
45642+ */
45643+ public static function sample(): Obj5Self {
45644+ return new Obj5Self(
45645+ Obj5Self::sampleSelf()
45646+ );
45647+ }
45648+}
45649+
45650+// This is an autogenerated file:This
45651+
45652+class This {
45653+ private int $thisThis; // json:this Required
45654+
45655+ /**
45656+ * @param int $thisThis
45657+ */
45658+ public function __construct(int $thisThis) {
45659+ $this->thisThis = $thisThis;
45660+ }
45661+
45662+ /**
45663+ * @param int $value
45664+ * @throws Exception
45665+ * @return int
45666+ */
45667+ public static function fromThisThis(int $value): int {
45668+ return $value; /*int*/
45669+ }
45670+
45671+ /**
45672+ * @throws Exception
45673+ * @return int
45674+ */
45675+ public function toThisThis(): int {
45676+ if (This::validateThisThis($this->thisThis)) {
45677+ return $this->thisThis; /*int*/
45678+ }
45679+ throw new Exception('never get to this This::thisThis');
45680+ }
45681+
45682+ /**
45683+ * @param int
45684+ * @return bool
45685+ * @throws Exception
45686+ */
45687+ public static function validateThisThis(int $value): bool {
45688+ return true;
45689+ }
45690+
45691+ /**
45692+ * @throws Exception
45693+ * @return int
45694+ */
45695+ public function getThisThis(): int {
45696+ if (This::validateThisThis($this->thisThis)) {
45697+ return $this->thisThis;
45698+ }
45699+ throw new Exception('never get to getThisThis This::thisThis');
45700+ }
45701+
45702+ /**
45703+ * @return int
45704+ */
45705+ public static function sampleThisThis(): int {
45706+ return 31; /*31:thisThis*/
45707+ }
45708+
45709+ /**
45710+ * @throws Exception
45711+ * @return bool
45712+ */
45713+ public function validate(): bool {
45714+ return This::validateThisThis($this->thisThis);
45715+ }
45716+
45717+ /**
45718+ * @return stdClass
45719+ * @throws Exception
45720+ */
45721+ public function to(): stdClass {
45722+ $out = new stdClass();
45723+ $out->{'this'} = $this->toThisThis();
45724+ return $out;
45725+ }
45726+
45727+ /**
45728+ * @param stdClass $obj
45729+ * @return This
45730+ * @throws Exception
45731+ */
45732+ public static function from(stdClass $obj): This {
45733+ if (!property_exists($obj, 'this')) {
45734+ throw new Exception("Missing required property");
45735+ }
45736+ return new This(
45737+ This::fromThisThis($obj->{'this'})
45738+ );
45739+ }
45740+
45741+ /**
45742+ * @return This
45743+ */
45744+ public static function sample(): This {
45745+ return new This(
45746+ This::sampleThisThis()
45747+ );
45748+ }
45749+}
45750+
45751+// This is an autogenerated file:Obj5True
45752+
45753+class Obj5True {
45754+ private int $true; // json:true Required
45755+
45756+ /**
45757+ * @param int $true
45758+ */
45759+ public function __construct(int $true) {
45760+ $this->true = $true;
45761+ }
45762+
45763+ /**
45764+ * @param int $value
45765+ * @throws Exception
45766+ * @return int
45767+ */
45768+ public static function fromTrue(int $value): int {
45769+ return $value; /*int*/
45770+ }
45771+
45772+ /**
45773+ * @throws Exception
45774+ * @return int
45775+ */
45776+ public function toTrue(): int {
45777+ if (Obj5True::validateTrue($this->true)) {
45778+ return $this->true; /*int*/
45779+ }
45780+ throw new Exception('never get to this Obj5True::true');
45781+ }
45782+
45783+ /**
45784+ * @param int
45785+ * @return bool
45786+ * @throws Exception
45787+ */
45788+ public static function validateTrue(int $value): bool {
45789+ return true;
45790+ }
45791+
45792+ /**
45793+ * @throws Exception
45794+ * @return int
45795+ */
45796+ public function getTrue(): int {
45797+ if (Obj5True::validateTrue($this->true)) {
45798+ return $this->true;
45799+ }
45800+ throw new Exception('never get to getTrue Obj5True::true');
45801+ }
45802+
45803+ /**
45804+ * @return int
45805+ */
45806+ public static function sampleTrue(): int {
45807+ return 31; /*31:true*/
45808+ }
45809+
45810+ /**
45811+ * @throws Exception
45812+ * @return bool
45813+ */
45814+ public function validate(): bool {
45815+ return Obj5True::validateTrue($this->true);
4551345816 }
4551445817
4551545818 /**
@@ -45518,44 +45821,44 @@ class KSerializer {
4551845821 */
4551945822 public function to(): stdClass {
4552045823 $out = new stdClass();
45521- $out->{'KSerializer'} = $this->toKSerializer();
45824+ $out->{'true'} = $this->toTrue();
4552245825 return $out;
4552345826 }
4552445827
4552545828 /**
4552645829 * @param stdClass $obj
45527- * @return KSerializer
45830+ * @return Obj5True
4552845831 * @throws Exception
4552945832 */
45530- public static function from(stdClass $obj): KSerializer {
45531- if (!property_exists($obj, 'KSerializer')) {
45833+ public static function from(stdClass $obj): Obj5True {
45834+ if (!property_exists($obj, 'true')) {
4553245835 throw new Exception("Missing required property");
4553345836 }
45534- return new KSerializer(
45535- KSerializer::fromKSerializer($obj->{'KSerializer'})
45837+ return new Obj5True(
45838+ Obj5True::fromTrue($obj->{'true'})
4553645839 );
4553745840 }
4553845841
4553945842 /**
45540- * @return KSerializer
45843+ * @return Obj5True
4554145844 */
45542- public static function sample(): KSerializer {
45543- return new KSerializer(
45544- KSerializer::sampleKSerializer()
45845+ public static function sample(): Obj5True {
45846+ return new Obj5True(
45847+ Obj5True::sampleTrue()
4554545848 );
4554645849 }
4554745850 }
4554845851
45549-// This is an autogenerated file:Obj5Self
45852+// This is an autogenerated file:TypeClass
4555045853
45551-class Obj5Self {
45552- private int $self; // json:self Required
45854+class TypeClass {
45855+ private int $type; // json:type Required
4555345856
4555445857 /**
45555- * @param int $self
45858+ * @param int $type
4555645859 */
45557- public function __construct(int $self) {
45558- $this->self = $self;
45860+ public function __construct(int $type) {
45861+ $this->type = $type;
4555945862 }
4556045863
4556145864 /**
@@ -45563,7 +45866,7 @@ class Obj5Self {
4556345866 * @throws Exception
4556445867 * @return int
4556545868 */
45566- public static function fromSelf(int $value): int {
45869+ public static function fromType(int $value): int {
4556745870 return $value; /*int*/
4556845871 }
4556945872
@@ -45571,11 +45874,11 @@ class Obj5Self {
4557145874 * @throws Exception
4557245875 * @return int
4557345876 */
45574- public function toSelf(): int {
45575- if (Obj5Self::validateSelf($this->self)) {
45576- return $this->self; /*int*/
45877+ public function toType(): int {
45878+ if (TypeClass::validateType($this->type)) {
45879+ return $this->type; /*int*/
4557745880 }
45578- throw new Exception('never get to this Obj5Self::self');
45881+ throw new Exception('never get to this TypeClass::type');
4557945882 }
4558045883
4558145884 /**
@@ -45583,7 +45886,7 @@ class Obj5Self {
4558345886 * @return bool
4558445887 * @throws Exception
4558545888 */
45586- public static function validateSelf(int $value): bool {
45889+ public static function validateType(int $value): bool {
4558745890 return true;
4558845891 }
4558945892
@@ -45591,18 +45894,18 @@ class Obj5Self {
4559145894 * @throws Exception
4559245895 * @return int
4559345896 */
45594- public function getSelf(): int {
45595- if (Obj5Self::validateSelf($this->self)) {
45596- return $this->self;
45897+ public function getType(): int {
45898+ if (TypeClass::validateType($this->type)) {
45899+ return $this->type;
4559745900 }
45598- throw new Exception('never get to getSelf Obj5Self::self');
45901+ throw new Exception('never get to getType TypeClass::type');
4559945902 }
4560045903
4560145904 /**
4560245905 * @return int
4560345906 */
45604- public static function sampleSelf(): int {
45605- return 31; /*31:self*/
45907+ public static function sampleType(): int {
45908+ return 31; /*31:type*/
4560645909 }
4560745910
4560845911 /**
@@ -45610,7 +45913,7 @@ class Obj5Self {
4561045913 * @return bool
4561145914 */
4561245915 public function validate(): bool {
45613- return Obj5Self::validateSelf($this->self);
45916+ return TypeClass::validateType($this->type);
4561445917 }
4561545918
4561645919 /**
@@ -45619,44 +45922,44 @@ class Obj5Self {
4561945922 */
4562045923 public function to(): stdClass {
4562145924 $out = new stdClass();
45622- $out->{'self'} = $this->toSelf();
45925+ $out->{'type'} = $this->toType();
4562345926 return $out;
4562445927 }
4562545928
4562645929 /**
4562745930 * @param stdClass $obj
45628- * @return Obj5Self
45931+ * @return TypeClass
4562945932 * @throws Exception
4563045933 */
45631- public static function from(stdClass $obj): Obj5Self {
45632- if (!property_exists($obj, 'self')) {
45934+ public static function from(stdClass $obj): TypeClass {
45935+ if (!property_exists($obj, 'type')) {
4563345936 throw new Exception("Missing required property");
4563445937 }
45635- return new Obj5Self(
45636- Obj5Self::fromSelf($obj->{'self'})
45938+ return new TypeClass(
45939+ TypeClass::fromType($obj->{'type'})
4563745940 );
4563845941 }
4563945942
4564045943 /**
45641- * @return Obj5Self
45944+ * @return TypeClass
4564245945 */
45643- public static function sample(): Obj5Self {
45644- return new Obj5Self(
45645- Obj5Self::sampleSelf()
45946+ public static function sample(): TypeClass {
45947+ return new TypeClass(
45948+ TypeClass::sampleType()
4564645949 );
4564745950 }
4564845951 }
4564945952
45650-// This is an autogenerated file:This
45953+// This is an autogenerated file:PrimitiveKind
4565145954
45652-class This {
45653- private int $thisThis; // json:this Required
45955+class PrimitiveKind {
45956+ private int $primitiveKind; // json:PrimitiveKind Required
4565445957
4565545958 /**
45656- * @param int $thisThis
45959+ * @param int $primitiveKind
4565745960 */
45658- public function __construct(int $thisThis) {
45659- $this->thisThis = $thisThis;
45961+ public function __construct(int $primitiveKind) {
45962+ $this->primitiveKind = $primitiveKind;
4566045963 }
4566145964
4566245965 /**
@@ -45664,7 +45967,7 @@ class This {
4566445967 * @throws Exception
4566545968 * @return int
4566645969 */
45667- public static function fromThisThis(int $value): int {
45970+ public static function fromPrimitiveKind(int $value): int {
4566845971 return $value; /*int*/
4566945972 }
4567045973
@@ -45672,11 +45975,11 @@ class This {
4567245975 * @throws Exception
4567345976 * @return int
4567445977 */
45675- public function toThisThis(): int {
45676- if (This::validateThisThis($this->thisThis)) {
45677- return $this->thisThis; /*int*/
45978+ public function toPrimitiveKind(): int {
45979+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
45980+ return $this->primitiveKind; /*int*/
4567845981 }
45679- throw new Exception('never get to this This::thisThis');
45982+ throw new Exception('never get to this PrimitiveKind::primitiveKind');
4568045983 }
4568145984
4568245985 /**
@@ -45684,7 +45987,7 @@ class This {
4568445987 * @return bool
4568545988 * @throws Exception
4568645989 */
45687- public static function validateThisThis(int $value): bool {
45990+ public static function validatePrimitiveKind(int $value): bool {
4568845991 return true;
4568945992 }
4569045993
@@ -45692,18 +45995,18 @@ class This {
4569245995 * @throws Exception
4569345996 * @return int
4569445997 */
45695- public function getThisThis(): int {
45696- if (This::validateThisThis($this->thisThis)) {
45697- return $this->thisThis;
45998+ public function getPrimitiveKind(): int {
45999+ if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46000+ return $this->primitiveKind;
4569846001 }
45699- throw new Exception('never get to getThisThis This::thisThis');
46002+ throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
4570046003 }
4570146004
4570246005 /**
4570346006 * @return int
4570446007 */
45705- public static function sampleThisThis(): int {
45706- return 31; /*31:thisThis*/
46008+ public static function samplePrimitiveKind(): int {
46009+ return 31; /*31:primitiveKind*/
4570746010 }
4570846011
4570946012 /**
@@ -45711,7 +46014,7 @@ class This {
4571146014 * @return bool
4571246015 */
4571346016 public function validate(): bool {
45714- return This::validateThisThis($this->thisThis);
46017+ return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
4571546018 }
4571646019
4571746020 /**
@@ -45720,44 +46023,44 @@ class This {
4572046023 */
4572146024 public function to(): stdClass {
4572246025 $out = new stdClass();
45723- $out->{'this'} = $this->toThisThis();
46026+ $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
4572446027 return $out;
4572546028 }
4572646029
4572746030 /**
4572846031 * @param stdClass $obj
45729- * @return This
46032+ * @return PrimitiveKind
4573046033 * @throws Exception
4573146034 */
45732- public static function from(stdClass $obj): This {
45733- if (!property_exists($obj, 'this')) {
46035+ public static function from(stdClass $obj): PrimitiveKind {
46036+ if (!property_exists($obj, 'PrimitiveKind')) {
4573446037 throw new Exception("Missing required property");
4573546038 }
45736- return new This(
45737- This::fromThisThis($obj->{'this'})
46039+ return new PrimitiveKind(
46040+ PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
4573846041 );
4573946042 }
4574046043
4574146044 /**
45742- * @return This
46045+ * @return PrimitiveKind
4574346046 */
45744- public static function sample(): This {
45745- return new This(
45746- This::sampleThisThis()
46047+ public static function sample(): PrimitiveKind {
46048+ return new PrimitiveKind(
46049+ PrimitiveKind::samplePrimitiveKind()
4574746050 );
4574846051 }
4574946052 }
4575046053
45751-// This is an autogenerated file:Obj5True
46054+// This is an autogenerated file:Sealed
4575246055
45753-class Obj5True {
45754- private int $true; // json:true Required
46056+class Sealed {
46057+ private int $sealed; // json:sealed Required
4575546058
4575646059 /**
45757- * @param int $true
46060+ * @param int $sealed
4575846061 */
45759- public function __construct(int $true) {
45760- $this->true = $true;
46062+ public function __construct(int $sealed) {
46063+ $this->sealed = $sealed;
4576146064 }
4576246065
4576346066 /**
@@ -45765,7 +46068,7 @@ class Obj5True {
4576546068 * @throws Exception
4576646069 * @return int
4576746070 */
45768- public static function fromTrue(int $value): int {
46071+ public static function fromSealed(int $value): int {
4576946072 return $value; /*int*/
4577046073 }
4577146074
@@ -45773,11 +46076,11 @@ class Obj5True {
4577346076 * @throws Exception
4577446077 * @return int
4577546078 */
45776- public function toTrue(): int {
45777- if (Obj5True::validateTrue($this->true)) {
45778- return $this->true; /*int*/
46079+ public function toSealed(): int {
46080+ if (Sealed::validateSealed($this->sealed)) {
46081+ return $this->sealed; /*int*/
4577946082 }
45780- throw new Exception('never get to this Obj5True::true');
46083+ throw new Exception('never get to this Sealed::sealed');
4578146084 }
4578246085
4578346086 /**
@@ -45785,7 +46088,7 @@ class Obj5True {
4578546088 * @return bool
4578646089 * @throws Exception
4578746090 */
45788- public static function validateTrue(int $value): bool {
46091+ public static function validateSealed(int $value): bool {
4578946092 return true;
4579046093 }
4579146094
@@ -45793,18 +46096,18 @@ class Obj5True {
4579346096 * @throws Exception
4579446097 * @return int
4579546098 */
45796- public function getTrue(): int {
45797- if (Obj5True::validateTrue($this->true)) {
45798- return $this->true;
46099+ public function getSealed(): int {
46100+ if (Sealed::validateSealed($this->sealed)) {
46101+ return $this->sealed;
4579946102 }
45800- throw new Exception('never get to getTrue Obj5True::true');
46103+ throw new Exception('never get to getSealed Sealed::sealed');
4580146104 }
4580246105
4580346106 /**
4580446107 * @return int
4580546108 */
45806- public static function sampleTrue(): int {
45807- return 31; /*31:true*/
46109+ public static function sampleSealed(): int {
46110+ return 31; /*31:sealed*/
4580846111 }
4580946112
4581046113 /**
@@ -45812,7 +46115,7 @@ class Obj5True {
4581246115 * @return bool
4581346116 */
4581446117 public function validate(): bool {
45815- return Obj5True::validateTrue($this->true);
46118+ return Sealed::validateSealed($this->sealed);
4581646119 }
4581746120
4581846121 /**
@@ -45821,44 +46124,44 @@ class Obj5True {
4582146124 */
4582246125 public function to(): stdClass {
4582346126 $out = new stdClass();
45824- $out->{'true'} = $this->toTrue();
46127+ $out->{'sealed'} = $this->toSealed();
4582546128 return $out;
4582646129 }
4582746130
4582846131 /**
4582946132 * @param stdClass $obj
45830- * @return Obj5True
46133+ * @return Sealed
4583146134 * @throws Exception
4583246135 */
45833- public static function from(stdClass $obj): Obj5True {
45834- if (!property_exists($obj, 'true')) {
46136+ public static function from(stdClass $obj): Sealed {
46137+ if (!property_exists($obj, 'sealed')) {
4583546138 throw new Exception("Missing required property");
4583646139 }
45837- return new Obj5True(
45838- Obj5True::fromTrue($obj->{'true'})
46140+ return new Sealed(
46141+ Sealed::fromSealed($obj->{'sealed'})
4583946142 );
4584046143 }
4584146144
4584246145 /**
45843- * @return Obj5True
46146+ * @return Sealed
4584446147 */
45845- public static function sample(): Obj5True {
45846- return new Obj5True(
45847- Obj5True::sampleTrue()
46148+ public static function sample(): Sealed {
46149+ return new Sealed(
46150+ Sealed::sampleSealed()
4584846151 );
4584946152 }
4585046153 }
4585146154
45852-// This is an autogenerated file:TypeClass
46155+// This is an autogenerated file:Sel
4585346156
45854-class TypeClass {
45855- private int $type; // json:type Required
46157+class Sel {
46158+ private int $sel; // json:SEL Required
4585646159
4585746160 /**
45858- * @param int $type
46161+ * @param int $sel
4585946162 */
45860- public function __construct(int $type) {
45861- $this->type = $type;
46163+ public function __construct(int $sel) {
46164+ $this->sel = $sel;
4586246165 }
4586346166
4586446167 /**
@@ -45866,7 +46169,7 @@ class TypeClass {
4586646169 * @throws Exception
4586746170 * @return int
4586846171 */
45869- public static function fromType(int $value): int {
46172+ public static function fromSel(int $value): int {
4587046173 return $value; /*int*/
4587146174 }
4587246175
@@ -45874,11 +46177,11 @@ class TypeClass {
4587446177 * @throws Exception
4587546178 * @return int
4587646179 */
45877- public function toType(): int {
45878- if (TypeClass::validateType($this->type)) {
45879- return $this->type; /*int*/
46180+ public function toSel(): int {
46181+ if (Sel::validateSel($this->sel)) {
46182+ return $this->sel; /*int*/
4588046183 }
45881- throw new Exception('never get to this TypeClass::type');
46184+ throw new Exception('never get to this Sel::sel');
4588246185 }
4588346186
4588446187 /**
@@ -45886,7 +46189,7 @@ class TypeClass {
4588646189 * @return bool
4588746190 * @throws Exception
4588846191 */
45889- public static function validateType(int $value): bool {
46192+ public static function validateSel(int $value): bool {
4589046193 return true;
4589146194 }
4589246195
@@ -45894,18 +46197,18 @@ class TypeClass {
4589446197 * @throws Exception
4589546198 * @return int
4589646199 */
45897- public function getType(): int {
45898- if (TypeClass::validateType($this->type)) {
45899- return $this->type;
46200+ public function getSel(): int {
46201+ if (Sel::validateSel($this->sel)) {
46202+ return $this->sel;
4590046203 }
45901- throw new Exception('never get to getType TypeClass::type');
46204+ throw new Exception('never get to getSel Sel::sel');
4590246205 }
4590346206
4590446207 /**
4590546208 * @return int
4590646209 */
45907- public static function sampleType(): int {
45908- return 31; /*31:type*/
46210+ public static function sampleSel(): int {
46211+ return 31; /*31:sel*/
4590946212 }
4591046213
4591146214 /**
@@ -45913,7 +46216,7 @@ class TypeClass {
4591346216 * @return bool
4591446217 */
4591546218 public function validate(): bool {
45916- return TypeClass::validateType($this->type);
46219+ return Sel::validateSel($this->sel);
4591746220 }
4591846221
4591946222 /**
@@ -45922,44 +46225,44 @@ class TypeClass {
4592246225 */
4592346226 public function to(): stdClass {
4592446227 $out = new stdClass();
45925- $out->{'type'} = $this->toType();
46228+ $out->{'SEL'} = $this->toSel();
4592646229 return $out;
4592746230 }
4592846231
4592946232 /**
4593046233 * @param stdClass $obj
45931- * @return TypeClass
46234+ * @return Sel
4593246235 * @throws Exception
4593346236 */
45934- public static function from(stdClass $obj): TypeClass {
45935- if (!property_exists($obj, 'type')) {
46237+ public static function from(stdClass $obj): Sel {
46238+ if (!property_exists($obj, 'SEL')) {
4593646239 throw new Exception("Missing required property");
4593746240 }
45938- return new TypeClass(
45939- TypeClass::fromType($obj->{'type'})
46241+ return new Sel(
46242+ Sel::fromSel($obj->{'SEL'})
4594046243 );
4594146244 }
4594246245
4594346246 /**
45944- * @return TypeClass
46247+ * @return Sel
4594546248 */
45946- public static function sample(): TypeClass {
45947- return new TypeClass(
45948- TypeClass::sampleType()
46249+ public static function sample(): Sel {
46250+ return new Sel(
46251+ Sel::sampleSel()
4594946252 );
4595046253 }
4595146254 }
4595246255
45953-// This is an autogenerated file:PrimitiveKind
46256+// This is an autogenerated file:Select
4595446257
45955-class PrimitiveKind {
45956- private int $primitiveKind; // json:PrimitiveKind Required
46258+class Select {
46259+ private int $select; // json:select Required
4595746260
4595846261 /**
45959- * @param int $primitiveKind
46262+ * @param int $select
4596046263 */
45961- public function __construct(int $primitiveKind) {
45962- $this->primitiveKind = $primitiveKind;
46264+ public function __construct(int $select) {
46265+ $this->select = $select;
4596346266 }
4596446267
4596546268 /**
@@ -45967,7 +46270,7 @@ class PrimitiveKind {
4596746270 * @throws Exception
4596846271 * @return int
4596946272 */
45970- public static function fromPrimitiveKind(int $value): int {
46273+ public static function fromSelect(int $value): int {
4597146274 return $value; /*int*/
4597246275 }
4597346276
@@ -45975,11 +46278,11 @@ class PrimitiveKind {
4597546278 * @throws Exception
4597646279 * @return int
4597746280 */
45978- public function toPrimitiveKind(): int {
45979- if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
45980- return $this->primitiveKind; /*int*/
46281+ public function toSelect(): int {
46282+ if (Select::validateSelect($this->select)) {
46283+ return $this->select; /*int*/
4598146284 }
45982- throw new Exception('never get to this PrimitiveKind::primitiveKind');
46285+ throw new Exception('never get to this Select::select');
4598346286 }
4598446287
4598546288 /**
@@ -45987,7 +46290,7 @@ class PrimitiveKind {
4598746290 * @return bool
4598846291 * @throws Exception
4598946292 */
45990- public static function validatePrimitiveKind(int $value): bool {
46293+ public static function validateSelect(int $value): bool {
4599146294 return true;
4599246295 }
4599346296
@@ -45995,18 +46298,18 @@ class PrimitiveKind {
4599546298 * @throws Exception
4599646299 * @return int
4599746300 */
45998- public function getPrimitiveKind(): int {
45999- if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) {
46000- return $this->primitiveKind;
46301+ public function getSelect(): int {
46302+ if (Select::validateSelect($this->select)) {
46303+ return $this->select;
4600146304 }
46002- throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind');
46305+ throw new Exception('never get to getSelect Select::select');
4600346306 }
4600446307
4600546308 /**
4600646309 * @return int
4600746310 */
46008- public static function samplePrimitiveKind(): int {
46009- return 31; /*31:primitiveKind*/
46311+ public static function sampleSelect(): int {
46312+ return 31; /*31:select*/
4601046313 }
4601146314
4601246315 /**
@@ -46014,7 +46317,7 @@ class PrimitiveKind {
4601446317 * @return bool
4601546318 */
4601646319 public function validate(): bool {
46017- return PrimitiveKind::validatePrimitiveKind($this->primitiveKind);
46320+ return Select::validateSelect($this->select);
4601846321 }
4601946322
4602046323 /**
@@ -46023,30 +46326,30 @@ class PrimitiveKind {
4602346326 */
4602446327 public function to(): stdClass {
4602546328 $out = new stdClass();
46026- $out->{'PrimitiveKind'} = $this->toPrimitiveKind();
46329+ $out->{'select'} = $this->toSelect();
4602746330 return $out;
4602846331 }
4602946332
4603046333 /**
4603146334 * @param stdClass $obj
46032- * @return PrimitiveKind
46335+ * @return Select
4603346336 * @throws Exception
4603446337 */
46035- public static function from(stdClass $obj): PrimitiveKind {
46036- if (!property_exists($obj, 'PrimitiveKind')) {
46338+ public static function from(stdClass $obj): Select {
46339+ if (!property_exists($obj, 'select')) {
4603746340 throw new Exception("Missing required property");
4603846341 }
46039- return new PrimitiveKind(
46040- PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'})
46342+ return new Select(
46343+ Select::fromSelect($obj->{'select'})
4604146344 );
4604246345 }
4604346346
4604446347 /**
46045- * @return PrimitiveKind
46348+ * @return Select
4604646349 */
46047- public static function sample(): PrimitiveKind {
46048- return new PrimitiveKind(
46049- PrimitiveKind::samplePrimitiveKind()
46350+ public static function sample(): Select {
46351+ return new Select(
46352+ Select::sampleSelect()
4605046353 );
4605146354 }
4605246355 }
@@ -51092,25 +51395,227 @@ class Ulong {
5109251395 }
5109351396
5109451397 /**
51095- * @return Ulong
51398+ * @return Ulong
51399+ */
51400+ public static function sample(): Ulong {
51401+ return new Ulong(
51402+ Ulong::sampleUlong()
51403+ );
51404+ }
51405+}
51406+
51407+// This is an autogenerated file:Unchecked
51408+
51409+class Unchecked {
51410+ private int $unchecked; // json:unchecked Required
51411+
51412+ /**
51413+ * @param int $unchecked
51414+ */
51415+ public function __construct(int $unchecked) {
51416+ $this->unchecked = $unchecked;
51417+ }
51418+
51419+ /**
51420+ * @param int $value
51421+ * @throws Exception
51422+ * @return int
51423+ */
51424+ public static function fromUnchecked(int $value): int {
51425+ return $value; /*int*/
51426+ }
51427+
51428+ /**
51429+ * @throws Exception
51430+ * @return int
51431+ */
51432+ public function toUnchecked(): int {
51433+ if (Unchecked::validateUnchecked($this->unchecked)) {
51434+ return $this->unchecked; /*int*/
51435+ }
51436+ throw new Exception('never get to this Unchecked::unchecked');
51437+ }
51438+
51439+ /**
51440+ * @param int
51441+ * @return bool
51442+ * @throws Exception
51443+ */
51444+ public static function validateUnchecked(int $value): bool {
51445+ return true;
51446+ }
51447+
51448+ /**
51449+ * @throws Exception
51450+ * @return int
51451+ */
51452+ public function getUnchecked(): int {
51453+ if (Unchecked::validateUnchecked($this->unchecked)) {
51454+ return $this->unchecked;
51455+ }
51456+ throw new Exception('never get to getUnchecked Unchecked::unchecked');
51457+ }
51458+
51459+ /**
51460+ * @return int
51461+ */
51462+ public static function sampleUnchecked(): int {
51463+ return 31; /*31:unchecked*/
51464+ }
51465+
51466+ /**
51467+ * @throws Exception
51468+ * @return bool
51469+ */
51470+ public function validate(): bool {
51471+ return Unchecked::validateUnchecked($this->unchecked);
51472+ }
51473+
51474+ /**
51475+ * @return stdClass
51476+ * @throws Exception
51477+ */
51478+ public function to(): stdClass {
51479+ $out = new stdClass();
51480+ $out->{'unchecked'} = $this->toUnchecked();
51481+ return $out;
51482+ }
51483+
51484+ /**
51485+ * @param stdClass $obj
51486+ * @return Unchecked
51487+ * @throws Exception
51488+ */
51489+ public static function from(stdClass $obj): Unchecked {
51490+ if (!property_exists($obj, 'unchecked')) {
51491+ throw new Exception("Missing required property");
51492+ }
51493+ return new Unchecked(
51494+ Unchecked::fromUnchecked($obj->{'unchecked'})
51495+ );
51496+ }
51497+
51498+ /**
51499+ * @return Unchecked
51500+ */
51501+ public static function sample(): Unchecked {
51502+ return new Unchecked(
51503+ Unchecked::sampleUnchecked()
51504+ );
51505+ }
51506+}
51507+
51508+// This is an autogenerated file:Undefined
51509+
51510+class Undefined {
51511+ private int $undefined; // json:undefined Required
51512+
51513+ /**
51514+ * @param int $undefined
51515+ */
51516+ public function __construct(int $undefined) {
51517+ $this->undefined = $undefined;
51518+ }
51519+
51520+ /**
51521+ * @param int $value
51522+ * @throws Exception
51523+ * @return int
51524+ */
51525+ public static function fromUndefined(int $value): int {
51526+ return $value; /*int*/
51527+ }
51528+
51529+ /**
51530+ * @throws Exception
51531+ * @return int
51532+ */
51533+ public function toUndefined(): int {
51534+ if (Undefined::validateUndefined($this->undefined)) {
51535+ return $this->undefined; /*int*/
51536+ }
51537+ throw new Exception('never get to this Undefined::undefined');
51538+ }
51539+
51540+ /**
51541+ * @param int
51542+ * @return bool
51543+ * @throws Exception
51544+ */
51545+ public static function validateUndefined(int $value): bool {
51546+ return true;
51547+ }
51548+
51549+ /**
51550+ * @throws Exception
51551+ * @return int
51552+ */
51553+ public function getUndefined(): int {
51554+ if (Undefined::validateUndefined($this->undefined)) {
51555+ return $this->undefined;
51556+ }
51557+ throw new Exception('never get to getUndefined Undefined::undefined');
51558+ }
51559+
51560+ /**
51561+ * @return int
51562+ */
51563+ public static function sampleUndefined(): int {
51564+ return 31; /*31:undefined*/
51565+ }
51566+
51567+ /**
51568+ * @throws Exception
51569+ * @return bool
51570+ */
51571+ public function validate(): bool {
51572+ return Undefined::validateUndefined($this->undefined);
51573+ }
51574+
51575+ /**
51576+ * @return stdClass
51577+ * @throws Exception
51578+ */
51579+ public function to(): stdClass {
51580+ $out = new stdClass();
51581+ $out->{'undefined'} = $this->toUndefined();
51582+ return $out;
51583+ }
51584+
51585+ /**
51586+ * @param stdClass $obj
51587+ * @return Undefined
51588+ * @throws Exception
51589+ */
51590+ public static function from(stdClass $obj): Undefined {
51591+ if (!property_exists($obj, 'undefined')) {
51592+ throw new Exception("Missing required property");
51593+ }
51594+ return new Undefined(
51595+ Undefined::fromUndefined($obj->{'undefined'})
51596+ );
51597+ }
51598+
51599+ /**
51600+ * @return Undefined
5109651601 */
51097- public static function sample(): Ulong {
51098- return new Ulong(
51099- Ulong::sampleUlong()
51602+ public static function sample(): Undefined {
51603+ return new Undefined(
51604+ Undefined::sampleUndefined()
5110051605 );
5110151606 }
5110251607 }
5110351608
51104-// This is an autogenerated file:Unchecked
51609+// This is an autogenerated file:Union
5110551610
51106-class Unchecked {
51107- private int $unchecked; // json:unchecked Required
51611+class Union {
51612+ private int $union; // json:union Required
5110851613
5110951614 /**
51110- * @param int $unchecked
51615+ * @param int $union
5111151616 */
51112- public function __construct(int $unchecked) {
51113- $this->unchecked = $unchecked;
51617+ public function __construct(int $union) {
51618+ $this->union = $union;
5111451619 }
5111551620
5111651621 /**
@@ -51118,7 +51623,7 @@ class Unchecked {
5111851623 * @throws Exception
5111951624 * @return int
5112051625 */
51121- public static function fromUnchecked(int $value): int {
51626+ public static function fromUnion(int $value): int {
5112251627 return $value; /*int*/
5112351628 }
5112451629
@@ -51126,11 +51631,11 @@ class Unchecked {
5112651631 * @throws Exception
5112751632 * @return int
5112851633 */
51129- public function toUnchecked(): int {
51130- if (Unchecked::validateUnchecked($this->unchecked)) {
51131- return $this->unchecked; /*int*/
51634+ public function toUnion(): int {
51635+ if (Union::validateUnion($this->union)) {
51636+ return $this->union; /*int*/
5113251637 }
51133- throw new Exception('never get to this Unchecked::unchecked');
51638+ throw new Exception('never get to this Union::union');
5113451639 }
5113551640
5113651641 /**
@@ -51138,7 +51643,7 @@ class Unchecked {
5113851643 * @return bool
5113951644 * @throws Exception
5114051645 */
51141- public static function validateUnchecked(int $value): bool {
51646+ public static function validateUnion(int $value): bool {
5114251647 return true;
5114351648 }
5114451649
@@ -51146,18 +51651,18 @@ class Unchecked {
5114651651 * @throws Exception
5114751652 * @return int
5114851653 */
51149- public function getUnchecked(): int {
51150- if (Unchecked::validateUnchecked($this->unchecked)) {
51151- return $this->unchecked;
51654+ public function getUnion(): int {
51655+ if (Union::validateUnion($this->union)) {
51656+ return $this->union;
5115251657 }
51153- throw new Exception('never get to getUnchecked Unchecked::unchecked');
51658+ throw new Exception('never get to getUnion Union::union');
5115451659 }
5115551660
5115651661 /**
5115751662 * @return int
5115851663 */
51159- public static function sampleUnchecked(): int {
51160- return 31; /*31:unchecked*/
51664+ public static function sampleUnion(): int {
51665+ return 31; /*31:union*/
5116151666 }
5116251667
5116351668 /**
@@ -51165,7 +51670,7 @@ class Unchecked {
5116551670 * @return bool
5116651671 */
5116751672 public function validate(): bool {
51168- return Unchecked::validateUnchecked($this->unchecked);
51673+ return Union::validateUnion($this->union);
5116951674 }
5117051675
5117151676 /**
@@ -51174,44 +51679,44 @@ class Unchecked {
5117451679 */
5117551680 public function to(): stdClass {
5117651681 $out = new stdClass();
51177- $out->{'unchecked'} = $this->toUnchecked();
51682+ $out->{'union'} = $this->toUnion();
5117851683 return $out;
5117951684 }
5118051685
5118151686 /**
5118251687 * @param stdClass $obj
51183- * @return Unchecked
51688+ * @return Union
5118451689 * @throws Exception
5118551690 */
51186- public static function from(stdClass $obj): Unchecked {
51187- if (!property_exists($obj, 'unchecked')) {
51691+ public static function from(stdClass $obj): Union {
51692+ if (!property_exists($obj, 'union')) {
5118851693 throw new Exception("Missing required property");
5118951694 }
51190- return new Unchecked(
51191- Unchecked::fromUnchecked($obj->{'unchecked'})
51695+ return new Union(
51696+ Union::fromUnion($obj->{'union'})
5119251697 );
5119351698 }
5119451699
5119551700 /**
51196- * @return Unchecked
51701+ * @return Union
5119751702 */
51198- public static function sample(): Unchecked {
51199- return new Unchecked(
51200- Unchecked::sampleUnchecked()
51703+ public static function sample(): Union {
51704+ return new Union(
51705+ Union::sampleUnion()
5120151706 );
5120251707 }
5120351708 }
5120451709
51205-// This is an autogenerated file:Undefined
51710+// This is an autogenerated file:Unowned
5120651711
51207-class Undefined {
51208- private int $undefined; // json:undefined Required
51712+class Unowned {
51713+ private int $unowned; // json:unowned Required
5120951714
5121051715 /**
51211- * @param int $undefined
51716+ * @param int $unowned
5121251717 */
51213- public function __construct(int $undefined) {
51214- $this->undefined = $undefined;
51718+ public function __construct(int $unowned) {
51719+ $this->unowned = $unowned;
5121551720 }
5121651721
5121751722 /**
@@ -51219,7 +51724,7 @@ class Undefined {
5121951724 * @throws Exception
5122051725 * @return int
5122151726 */
51222- public static function fromUndefined(int $value): int {
51727+ public static function fromUnowned(int $value): int {
5122351728 return $value; /*int*/
5122451729 }
5122551730
@@ -51227,11 +51732,11 @@ class Undefined {
5122751732 * @throws Exception
5122851733 * @return int
5122951734 */
51230- public function toUndefined(): int {
51231- if (Undefined::validateUndefined($this->undefined)) {
51232- return $this->undefined; /*int*/
51735+ public function toUnowned(): int {
51736+ if (Unowned::validateUnowned($this->unowned)) {
51737+ return $this->unowned; /*int*/
5123351738 }
51234- throw new Exception('never get to this Undefined::undefined');
51739+ throw new Exception('never get to this Unowned::unowned');
5123551740 }
5123651741
5123751742 /**
@@ -51239,7 +51744,7 @@ class Undefined {
5123951744 * @return bool
5124051745 * @throws Exception
5124151746 */
51242- public static function validateUndefined(int $value): bool {
51747+ public static function validateUnowned(int $value): bool {
5124351748 return true;
5124451749 }
5124551750
@@ -51247,18 +51752,18 @@ class Undefined {
5124751752 * @throws Exception
5124851753 * @return int
5124951754 */
51250- public function getUndefined(): int {
51251- if (Undefined::validateUndefined($this->undefined)) {
51252- return $this->undefined;
51755+ public function getUnowned(): int {
51756+ if (Unowned::validateUnowned($this->unowned)) {
51757+ return $this->unowned;
5125351758 }
51254- throw new Exception('never get to getUndefined Undefined::undefined');
51759+ throw new Exception('never get to getUnowned Unowned::unowned');
5125551760 }
5125651761
5125751762 /**
5125851763 * @return int
5125951764 */
51260- public static function sampleUndefined(): int {
51261- return 31; /*31:undefined*/
51765+ public static function sampleUnowned(): int {
51766+ return 31; /*31:unowned*/
5126251767 }
5126351768
5126451769 /**
@@ -51266,7 +51771,7 @@ class Undefined {
5126651771 * @return bool
5126751772 */
5126851773 public function validate(): bool {
51269- return Undefined::validateUndefined($this->undefined);
51774+ return Unowned::validateUnowned($this->unowned);
5127051775 }
5127151776
5127251777 /**
@@ -51275,44 +51780,44 @@ class Undefined {
5127551780 */
5127651781 public function to(): stdClass {
5127751782 $out = new stdClass();
51278- $out->{'undefined'} = $this->toUndefined();
51783+ $out->{'unowned'} = $this->toUnowned();
5127951784 return $out;
5128051785 }
5128151786
5128251787 /**
5128351788 * @param stdClass $obj
51284- * @return Undefined
51789+ * @return Unowned
5128551790 * @throws Exception
5128651791 */
51287- public static function from(stdClass $obj): Undefined {
51288- if (!property_exists($obj, 'undefined')) {
51792+ public static function from(stdClass $obj): Unowned {
51793+ if (!property_exists($obj, 'unowned')) {
5128951794 throw new Exception("Missing required property");
5129051795 }
51291- return new Undefined(
51292- Undefined::fromUndefined($obj->{'undefined'})
51796+ return new Unowned(
51797+ Unowned::fromUnowned($obj->{'unowned'})
5129351798 );
5129451799 }
5129551800
5129651801 /**
51297- * @return Undefined
51802+ * @return Unowned
5129851803 */
51299- public static function sample(): Undefined {
51300- return new Undefined(
51301- Undefined::sampleUndefined()
51804+ public static function sample(): Unowned {
51805+ return new Unowned(
51806+ Unowned::sampleUnowned()
5130251807 );
5130351808 }
5130451809 }
5130551810
51306-// This is an autogenerated file:Union
51811+// This is an autogenerated file:UseSerializers
5130751812
51308-class Union {
51309- private int $union; // json:union Required
51813+class UseSerializers {
51814+ private int $useSerializers; // json:UseSerializers Required
5131051815
5131151816 /**
51312- * @param int $union
51817+ * @param int $useSerializers
5131351818 */
51314- public function __construct(int $union) {
51315- $this->union = $union;
51819+ public function __construct(int $useSerializers) {
51820+ $this->useSerializers = $useSerializers;
5131651821 }
5131751822
5131851823 /**
@@ -51320,7 +51825,7 @@ class Union {
5132051825 * @throws Exception
5132151826 * @return int
5132251827 */
51323- public static function fromUnion(int $value): int {
51828+ public static function fromUseSerializers(int $value): int {
5132451829 return $value; /*int*/
5132551830 }
5132651831
@@ -51328,11 +51833,11 @@ class Union {
5132851833 * @throws Exception
5132951834 * @return int
5133051835 */
51331- public function toUnion(): int {
51332- if (Union::validateUnion($this->union)) {
51333- return $this->union; /*int*/
51836+ public function toUseSerializers(): int {
51837+ if (UseSerializers::validateUseSerializers($this->useSerializers)) {
51838+ return $this->useSerializers; /*int*/
5133451839 }
51335- throw new Exception('never get to this Union::union');
51840+ throw new Exception('never get to this UseSerializers::useSerializers');
5133651841 }
5133751842
5133851843 /**
@@ -51340,7 +51845,7 @@ class Union {
5134051845 * @return bool
5134151846 * @throws Exception
5134251847 */
51343- public static function validateUnion(int $value): bool {
51848+ public static function validateUseSerializers(int $value): bool {
5134451849 return true;
5134551850 }
5134651851
@@ -51348,18 +51853,18 @@ class Union {
5134851853 * @throws Exception
5134951854 * @return int
5135051855 */
51351- public function getUnion(): int {
51352- if (Union::validateUnion($this->union)) {
51353- return $this->union;
51856+ public function getUseSerializers(): int {
51857+ if (UseSerializers::validateUseSerializers($this->useSerializers)) {
51858+ return $this->useSerializers;
5135451859 }
51355- throw new Exception('never get to getUnion Union::union');
51860+ throw new Exception('never get to getUseSerializers UseSerializers::useSerializers');
5135651861 }
5135751862
5135851863 /**
5135951864 * @return int
5136051865 */
51361- public static function sampleUnion(): int {
51362- return 31; /*31:union*/
51866+ public static function sampleUseSerializers(): int {
51867+ return 31; /*31:useSerializers*/
5136351868 }
5136451869
5136551870 /**
@@ -51367,7 +51872,7 @@ class Union {
5136751872 * @return bool
5136851873 */
5136951874 public function validate(): bool {
51370- return Union::validateUnion($this->union);
51875+ return UseSerializers::validateUseSerializers($this->useSerializers);
5137151876 }
5137251877
5137351878 /**
@@ -51376,44 +51881,107 @@ class Union {
5137651881 */
5137751882 public function to(): stdClass {
5137851883 $out = new stdClass();
51379- $out->{'union'} = $this->toUnion();
51884+ $out->{'UseSerializers'} = $this->toUseSerializers();
5138051885 return $out;
5138151886 }
5138251887
5138351888 /**
5138451889 * @param stdClass $obj
51385- * @return Union
51890+ * @return UseSerializers
5138651891 * @throws Exception
5138751892 */
51388- public static function from(stdClass $obj): Union {
51389- if (!property_exists($obj, 'union')) {
51893+ public static function from(stdClass $obj): UseSerializers {
51894+ if (!property_exists($obj, 'UseSerializers')) {
5139051895 throw new Exception("Missing required property");
5139151896 }
51392- return new Union(
51393- Union::fromUnion($obj->{'union'})
51897+ return new UseSerializers(
51898+ UseSerializers::fromUseSerializers($obj->{'UseSerializers'})
5139451899 );
5139551900 }
5139651901
5139751902 /**
51398- * @return Union
51903+ * @return UseSerializers
5139951904 */
51400- public static function sample(): Union {
51401- return new Union(
51402- Union::sampleUnion()
51905+ public static function sample(): UseSerializers {
51906+ return new UseSerializers(
51907+ UseSerializers::sampleUseSerializers()
5140351908 );
5140451909 }
5140551910 }
5140651911
51407-// This is an autogenerated file:Unowned
51912+// This is an autogenerated file:Obj6
5140851913
51409-class Unowned {
51410- private int $unowned; // json:unowned Required
51914+class Obj6 {
51915+ private int $dummy; // json:dummy Required
51916+ private Unsafe $unsafe; // json:unsafe Required
51917+ private Unsigned $unsigned; // json:unsigned Required
51918+ private Ushort $ushort; // json:ushort Required
51919+ private Using $using; // json:using Required
51920+ private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
51921+ private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
51922+ private UUID $uuid; // json:UUID Required
51923+ private VarClass $var; // json:var Required
51924+ private Virtual $virtual; // json:virtual Required
51925+ private VoidClass $void; // json:void Required
51926+ private Volatile $volatile; // json:volatile Required
51927+ private WcharT $wcharT; // json:wchar_t Required
51928+ private Weak $weak; // json:weak Required
51929+ private Where $where; // json:where Required
51930+ private WhileClass $while; // json:while Required
51931+ private WillSet $willSet; // json:willSet Required
51932+ private With $with; // json:with Required
51933+ private XorClass $xor; // json:xor Required
51934+ private XorEq $xorEq; // json:xor_eq Required
51935+ private Yes $yes; // json:YES Required
51936+ private YieldClass $yield; // json:yield Required
5141151937
5141251938 /**
51413- * @param int $unowned
51939+ * @param int $dummy
51940+ * @param Unsafe $unsafe
51941+ * @param Unsigned $unsigned
51942+ * @param Ushort $ushort
51943+ * @param Using $using
51944+ * @param Utf8JSONReader $utf8JSONReader
51945+ * @param Utf8JSONWriter $utf8JSONWriter
51946+ * @param UUID $uuid
51947+ * @param VarClass $var
51948+ * @param Virtual $virtual
51949+ * @param VoidClass $void
51950+ * @param Volatile $volatile
51951+ * @param WcharT $wcharT
51952+ * @param Weak $weak
51953+ * @param Where $where
51954+ * @param WhileClass $while
51955+ * @param WillSet $willSet
51956+ * @param With $with
51957+ * @param XorClass $xor
51958+ * @param XorEq $xorEq
51959+ * @param Yes $yes
51960+ * @param YieldClass $yield
5141451961 */
51415- public function __construct(int $unowned) {
51416- $this->unowned = $unowned;
51962+ public function __construct(int $dummy, Unsafe $unsafe, Unsigned $unsigned, 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) {
51963+ $this->dummy = $dummy;
51964+ $this->unsafe = $unsafe;
51965+ $this->unsigned = $unsigned;
51966+ $this->ushort = $ushort;
51967+ $this->using = $using;
51968+ $this->utf8JSONReader = $utf8JSONReader;
51969+ $this->utf8JSONWriter = $utf8JSONWriter;
51970+ $this->uuid = $uuid;
51971+ $this->var = $var;
51972+ $this->virtual = $virtual;
51973+ $this->void = $void;
51974+ $this->volatile = $volatile;
51975+ $this->wcharT = $wcharT;
51976+ $this->weak = $weak;
51977+ $this->where = $where;
51978+ $this->while = $while;
51979+ $this->willSet = $willSet;
51980+ $this->with = $with;
51981+ $this->xor = $xor;
51982+ $this->xorEq = $xorEq;
51983+ $this->yes = $yes;
51984+ $this->yield = $yield;
5141751985 }
5141851986
5141951987 /**
@@ -51421,7 +51989,7 @@ class Unowned {
5142151989 * @throws Exception
5142251990 * @return int
5142351991 */
51424- public static function fromUnowned(int $value): int {
51992+ public static function fromDummy(int $value): int {
5142551993 return $value; /*int*/
5142651994 }
5142751995
@@ -51429,11 +51997,11 @@ class Unowned {
5142951997 * @throws Exception
5143051998 * @return int
5143151999 */
51432- public function toUnowned(): int {
51433- if (Unowned::validateUnowned($this->unowned)) {
51434- return $this->unowned; /*int*/
52000+ public function toDummy(): int {
52001+ if (Obj6::validateDummy($this->dummy)) {
52002+ return $this->dummy; /*int*/
5143552003 }
51436- throw new Exception('never get to this Unowned::unowned');
52004+ throw new Exception('never get to this Obj6::dummy');
5143752005 }
5143852006
5143952007 /**
@@ -51441,7 +52009,7 @@ class Unowned {
5144152009 * @return bool
5144252010 * @throws Exception
5144352011 */
51444- public static function validateUnowned(int $value): bool {
52012+ public static function validateDummy(int $value): bool {
5144552013 return true;
5144652014 }
5144752015
@@ -51449,1441 +52017,1476 @@ class Unowned {
5144952017 * @throws Exception
5145052018 * @return int
5145152019 */
51452- public function getUnowned(): int {
51453- if (Unowned::validateUnowned($this->unowned)) {
51454- return $this->unowned;
52020+ public function getDummy(): int {
52021+ if (Obj6::validateDummy($this->dummy)) {
52022+ return $this->dummy;
5145552023 }
51456- throw new Exception('never get to getUnowned Unowned::unowned');
52024+ throw new Exception('never get to getDummy Obj6::dummy');
5145752025 }
5145852026
5145952027 /**
5146052028 * @return int
5146152029 */
51462- public static function sampleUnowned(): int {
51463- return 31; /*31:unowned*/
52030+ public static function sampleDummy(): int {
52031+ return 31; /*31:dummy*/
5146452032 }
5146552033
5146652034 /**
52035+ * @param stdClass $value
5146752036 * @throws Exception
51468- * @return bool
52037+ * @return Unsafe
5146952038 */
51470- public function validate(): bool {
51471- return Unowned::validateUnowned($this->unowned);
52039+ public static function fromUnsafe(stdClass $value): Unsafe {
52040+ return Unsafe::from($value); /*class*/
5147252041 }
5147352042
5147452043 /**
51475- * @return stdClass
5147652044 * @throws Exception
52045+ * @return stdClass
5147752046 */
51478- public function to(): stdClass {
51479- $out = new stdClass();
51480- $out->{'unowned'} = $this->toUnowned();
51481- return $out;
52047+ public function toUnsafe(): stdClass {
52048+ if (Obj6::validateUnsafe($this->unsafe)) {
52049+ return $this->unsafe->to(); /*class*/
52050+ }
52051+ throw new Exception('never get to this Obj6::unsafe');
5148252052 }
5148352053
5148452054 /**
51485- * @param stdClass $obj
51486- * @return Unowned
52055+ * @param Unsafe
52056+ * @return bool
5148752057 * @throws Exception
5148852058 */
51489- public static function from(stdClass $obj): Unowned {
51490- if (!property_exists($obj, 'unowned')) {
51491- throw new Exception("Missing required property");
51492- }
51493- return new Unowned(
51494- Unowned::fromUnowned($obj->{'unowned'})
51495- );
52059+ public static function validateUnsafe(Unsafe $value): bool {
52060+ $value->validate();
52061+ return true;
5149652062 }
5149752063
5149852064 /**
51499- * @return Unowned
52065+ * @throws Exception
52066+ * @return Unsafe
5150052067 */
51501- public static function sample(): Unowned {
51502- return new Unowned(
51503- Unowned::sampleUnowned()
51504- );
52068+ public function getUnsafe(): Unsafe {
52069+ if (Obj6::validateUnsafe($this->unsafe)) {
52070+ return $this->unsafe;
52071+ }
52072+ throw new Exception('never get to getUnsafe Obj6::unsafe');
5150552073 }
51506-}
51507-
51508-// This is an autogenerated file:Unsafe
51509-
51510-class Unsafe {
51511- private int $unsafe; // json:unsafe Required
5151252074
5151352075 /**
51514- * @param int $unsafe
52076+ * @return Unsafe
5151552077 */
51516- public function __construct(int $unsafe) {
51517- $this->unsafe = $unsafe;
52078+ public static function sampleUnsafe(): Unsafe {
52079+ return Unsafe::sample(); /*32:unsafe*/
5151852080 }
5151952081
5152052082 /**
51521- * @param int $value
52083+ * @param stdClass $value
5152252084 * @throws Exception
51523- * @return int
52085+ * @return Unsigned
5152452086 */
51525- public static function fromUnsafe(int $value): int {
51526- return $value; /*int*/
52087+ public static function fromUnsigned(stdClass $value): Unsigned {
52088+ return Unsigned::from($value); /*class*/
5152752089 }
5152852090
5152952091 /**
5153052092 * @throws Exception
51531- * @return int
52093+ * @return stdClass
5153252094 */
51533- public function toUnsafe(): int {
51534- if (Unsafe::validateUnsafe($this->unsafe)) {
51535- return $this->unsafe; /*int*/
52095+ public function toUnsigned(): stdClass {
52096+ if (Obj6::validateUnsigned($this->unsigned)) {
52097+ return $this->unsigned->to(); /*class*/
5153652098 }
51537- throw new Exception('never get to this Unsafe::unsafe');
52099+ throw new Exception('never get to this Obj6::unsigned');
5153852100 }
5153952101
5154052102 /**
51541- * @param int
52103+ * @param Unsigned
5154252104 * @return bool
5154352105 * @throws Exception
5154452106 */
51545- public static function validateUnsafe(int $value): bool {
52107+ public static function validateUnsigned(Unsigned $value): bool {
52108+ $value->validate();
5154652109 return true;
5154752110 }
5154852111
5154952112 /**
5155052113 * @throws Exception
51551- * @return int
52114+ * @return Unsigned
5155252115 */
51553- public function getUnsafe(): int {
51554- if (Unsafe::validateUnsafe($this->unsafe)) {
51555- return $this->unsafe;
52116+ public function getUnsigned(): Unsigned {
52117+ if (Obj6::validateUnsigned($this->unsigned)) {
52118+ return $this->unsigned;
5155652119 }
51557- throw new Exception('never get to getUnsafe Unsafe::unsafe');
52120+ throw new Exception('never get to getUnsigned Obj6::unsigned');
5155852121 }
5155952122
5156052123 /**
51561- * @return int
52124+ * @return Unsigned
5156252125 */
51563- public static function sampleUnsafe(): int {
51564- return 31; /*31:unsafe*/
52126+ public static function sampleUnsigned(): Unsigned {
52127+ return Unsigned::sample(); /*33:unsigned*/
5156552128 }
5156652129
5156752130 /**
52131+ * @param stdClass $value
5156852132 * @throws Exception
51569- * @return bool
52133+ * @return Ushort
5157052134 */
51571- public function validate(): bool {
51572- return Unsafe::validateUnsafe($this->unsafe);
52135+ public static function fromUshort(stdClass $value): Ushort {
52136+ return Ushort::from($value); /*class*/
5157352137 }
5157452138
5157552139 /**
52140+ * @throws Exception
5157652141 * @return stdClass
52142+ */
52143+ public function toUshort(): stdClass {
52144+ if (Obj6::validateUshort($this->ushort)) {
52145+ return $this->ushort->to(); /*class*/
52146+ }
52147+ throw new Exception('never get to this Obj6::ushort');
52148+ }
52149+
52150+ /**
52151+ * @param Ushort
52152+ * @return bool
5157752153 * @throws Exception
5157852154 */
51579- public function to(): stdClass {
51580- $out = new stdClass();
51581- $out->{'unsafe'} = $this->toUnsafe();
51582- return $out;
52155+ public static function validateUshort(Ushort $value): bool {
52156+ $value->validate();
52157+ return true;
5158352158 }
5158452159
5158552160 /**
51586- * @param stdClass $obj
51587- * @return Unsafe
5158852161 * @throws Exception
52162+ * @return Ushort
5158952163 */
51590- public static function from(stdClass $obj): Unsafe {
51591- if (!property_exists($obj, 'unsafe')) {
51592- throw new Exception("Missing required property");
52164+ public function getUshort(): Ushort {
52165+ if (Obj6::validateUshort($this->ushort)) {
52166+ return $this->ushort;
5159352167 }
51594- return new Unsafe(
51595- Unsafe::fromUnsafe($obj->{'unsafe'})
51596- );
52168+ throw new Exception('never get to getUshort Obj6::ushort');
5159752169 }
5159852170
5159952171 /**
51600- * @return Unsafe
52172+ * @return Ushort
5160152173 */
51602- public static function sample(): Unsafe {
51603- return new Unsafe(
51604- Unsafe::sampleUnsafe()
51605- );
52174+ public static function sampleUshort(): Ushort {
52175+ return Ushort::sample(); /*34:ushort*/
5160652176 }
51607-}
5160852177
51609-// This is an autogenerated file:Unsigned
52178+ /**
52179+ * @param stdClass $value
52180+ * @throws Exception
52181+ * @return Using
52182+ */
52183+ public static function fromUsing(stdClass $value): Using {
52184+ return Using::from($value); /*class*/
52185+ }
5161052186
51611-class Unsigned {
51612- private int $unsigned; // json:unsigned Required
52187+ /**
52188+ * @throws Exception
52189+ * @return stdClass
52190+ */
52191+ public function toUsing(): stdClass {
52192+ if (Obj6::validateUsing($this->using)) {
52193+ return $this->using->to(); /*class*/
52194+ }
52195+ throw new Exception('never get to this Obj6::using');
52196+ }
5161352197
5161452198 /**
51615- * @param int $unsigned
52199+ * @param Using
52200+ * @return bool
52201+ * @throws Exception
5161652202 */
51617- public function __construct(int $unsigned) {
51618- $this->unsigned = $unsigned;
52203+ public static function validateUsing(Using $value): bool {
52204+ $value->validate();
52205+ return true;
5161952206 }
5162052207
5162152208 /**
51622- * @param int $value
5162352209 * @throws Exception
51624- * @return int
52210+ * @return Using
5162552211 */
51626- public static function fromUnsigned(int $value): int {
51627- return $value; /*int*/
52212+ public function getUsing(): Using {
52213+ if (Obj6::validateUsing($this->using)) {
52214+ return $this->using;
52215+ }
52216+ throw new Exception('never get to getUsing Obj6::using');
52217+ }
52218+
52219+ /**
52220+ * @return Using
52221+ */
52222+ public static function sampleUsing(): Using {
52223+ return Using::sample(); /*35:using*/
5162852224 }
5162952225
5163052226 /**
52227+ * @param stdClass $value
5163152228 * @throws Exception
51632- * @return int
52229+ * @return Utf8JSONReader
5163352230 */
51634- public function toUnsigned(): int {
51635- if (Unsigned::validateUnsigned($this->unsigned)) {
51636- return $this->unsigned; /*int*/
52231+ public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader {
52232+ return Utf8JSONReader::from($value); /*class*/
52233+ }
52234+
52235+ /**
52236+ * @throws Exception
52237+ * @return stdClass
52238+ */
52239+ public function toUtf8JSONReader(): stdClass {
52240+ if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52241+ return $this->utf8JSONReader->to(); /*class*/
5163752242 }
51638- throw new Exception('never get to this Unsigned::unsigned');
52243+ throw new Exception('never get to this Obj6::utf8JSONReader');
5163952244 }
5164052245
5164152246 /**
51642- * @param int
52247+ * @param Utf8JSONReader
5164352248 * @return bool
5164452249 * @throws Exception
5164552250 */
51646- public static function validateUnsigned(int $value): bool {
52251+ public static function validateUtf8JSONReader(Utf8JSONReader $value): bool {
52252+ $value->validate();
5164752253 return true;
5164852254 }
5164952255
5165052256 /**
5165152257 * @throws Exception
51652- * @return int
52258+ * @return Utf8JSONReader
5165352259 */
51654- public function getUnsigned(): int {
51655- if (Unsigned::validateUnsigned($this->unsigned)) {
51656- return $this->unsigned;
52260+ public function getUtf8JSONReader(): Utf8JSONReader {
52261+ if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52262+ return $this->utf8JSONReader;
5165752263 }
51658- throw new Exception('never get to getUnsigned Unsigned::unsigned');
52264+ throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader');
5165952265 }
5166052266
5166152267 /**
51662- * @return int
52268+ * @return Utf8JSONReader
5166352269 */
51664- public static function sampleUnsigned(): int {
51665- return 31; /*31:unsigned*/
52270+ public static function sampleUtf8JSONReader(): Utf8JSONReader {
52271+ return Utf8JSONReader::sample(); /*36:utf8JSONReader*/
5166652272 }
5166752273
5166852274 /**
52275+ * @param stdClass $value
5166952276 * @throws Exception
51670- * @return bool
52277+ * @return Utf8JSONWriter
5167152278 */
51672- public function validate(): bool {
51673- return Unsigned::validateUnsigned($this->unsigned);
52279+ public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter {
52280+ return Utf8JSONWriter::from($value); /*class*/
5167452281 }
5167552282
5167652283 /**
51677- * @return stdClass
5167852284 * @throws Exception
52285+ * @return stdClass
5167952286 */
51680- public function to(): stdClass {
51681- $out = new stdClass();
51682- $out->{'unsigned'} = $this->toUnsigned();
51683- return $out;
52287+ public function toUtf8JSONWriter(): stdClass {
52288+ if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52289+ return $this->utf8JSONWriter->to(); /*class*/
52290+ }
52291+ throw new Exception('never get to this Obj6::utf8JSONWriter');
5168452292 }
5168552293
5168652294 /**
51687- * @param stdClass $obj
51688- * @return Unsigned
52295+ * @param Utf8JSONWriter
52296+ * @return bool
5168952297 * @throws Exception
5169052298 */
51691- public static function from(stdClass $obj): Unsigned {
51692- if (!property_exists($obj, 'unsigned')) {
51693- throw new Exception("Missing required property");
51694- }
51695- return new Unsigned(
51696- Unsigned::fromUnsigned($obj->{'unsigned'})
51697- );
52299+ public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool {
52300+ $value->validate();
52301+ return true;
5169852302 }
5169952303
5170052304 /**
51701- * @return Unsigned
52305+ * @throws Exception
52306+ * @return Utf8JSONWriter
5170252307 */
51703- public static function sample(): Unsigned {
51704- return new Unsigned(
51705- Unsigned::sampleUnsigned()
51706- );
52308+ public function getUtf8JSONWriter(): Utf8JSONWriter {
52309+ if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52310+ return $this->utf8JSONWriter;
52311+ }
52312+ throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter');
5170752313 }
51708-}
51709-
51710-// This is an autogenerated file:UseSerializers
51711-
51712-class UseSerializers {
51713- private int $useSerializers; // json:UseSerializers Required
5171452314
5171552315 /**
51716- * @param int $useSerializers
52316+ * @return Utf8JSONWriter
5171752317 */
51718- public function __construct(int $useSerializers) {
51719- $this->useSerializers = $useSerializers;
52318+ public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
52319+ return Utf8JSONWriter::sample(); /*37:utf8JSONWriter*/
5172052320 }
5172152321
5172252322 /**
51723- * @param int $value
52323+ * @param stdClass $value
5172452324 * @throws Exception
51725- * @return int
52325+ * @return UUID
5172652326 */
51727- public static function fromUseSerializers(int $value): int {
51728- return $value; /*int*/
52327+ public static function fromUUID(stdClass $value): UUID {
52328+ return UUID::from($value); /*class*/
5172952329 }
5173052330
5173152331 /**
5173252332 * @throws Exception
51733- * @return int
52333+ * @return stdClass
5173452334 */
51735- public function toUseSerializers(): int {
51736- if (UseSerializers::validateUseSerializers($this->useSerializers)) {
51737- return $this->useSerializers; /*int*/
52335+ public function toUUID(): stdClass {
52336+ if (Obj6::validateUUID($this->uuid)) {
52337+ return $this->uuid->to(); /*class*/
5173852338 }
51739- throw new Exception('never get to this UseSerializers::useSerializers');
52339+ throw new Exception('never get to this Obj6::uuid');
5174052340 }
5174152341
5174252342 /**
51743- * @param int
52343+ * @param UUID
5174452344 * @return bool
5174552345 * @throws Exception
5174652346 */
51747- public static function validateUseSerializers(int $value): bool {
52347+ public static function validateUUID(UUID $value): bool {
52348+ $value->validate();
5174852349 return true;
5174952350 }
5175052351
5175152352 /**
5175252353 * @throws Exception
51753- * @return int
52354+ * @return UUID
5175452355 */
51755- public function getUseSerializers(): int {
51756- if (UseSerializers::validateUseSerializers($this->useSerializers)) {
51757- return $this->useSerializers;
52356+ public function getUUID(): UUID {
52357+ if (Obj6::validateUUID($this->uuid)) {
52358+ return $this->uuid;
5175852359 }
51759- throw new Exception('never get to getUseSerializers UseSerializers::useSerializers');
52360+ throw new Exception('never get to getUUID Obj6::uuid');
5176052361 }
5176152362
5176252363 /**
51763- * @return int
52364+ * @return UUID
5176452365 */
51765- public static function sampleUseSerializers(): int {
51766- return 31; /*31:useSerializers*/
52366+ public static function sampleUUID(): UUID {
52367+ return UUID::sample(); /*38:uuid*/
5176752368 }
5176852369
5176952370 /**
52371+ * @param stdClass $value
5177052372 * @throws Exception
51771- * @return bool
52373+ * @return VarClass
5177252374 */
51773- public function validate(): bool {
51774- return UseSerializers::validateUseSerializers($this->useSerializers);
52375+ public static function fromVar(stdClass $value): VarClass {
52376+ return VarClass::from($value); /*class*/
5177552377 }
5177652378
5177752379 /**
51778- * @return stdClass
5177952380 * @throws Exception
52381+ * @return stdClass
5178052382 */
51781- public function to(): stdClass {
51782- $out = new stdClass();
51783- $out->{'UseSerializers'} = $this->toUseSerializers();
51784- return $out;
52383+ public function toVar(): stdClass {
52384+ if (Obj6::validateVar($this->var)) {
52385+ return $this->var->to(); /*class*/
52386+ }
52387+ throw new Exception('never get to this Obj6::var');
5178552388 }
5178652389
5178752390 /**
51788- * @param stdClass $obj
51789- * @return UseSerializers
52391+ * @param VarClass
52392+ * @return bool
5179052393 * @throws Exception
5179152394 */
51792- public static function from(stdClass $obj): UseSerializers {
51793- if (!property_exists($obj, 'UseSerializers')) {
51794- throw new Exception("Missing required property");
51795- }
51796- return new UseSerializers(
51797- UseSerializers::fromUseSerializers($obj->{'UseSerializers'})
51798- );
52395+ public static function validateVar(VarClass $value): bool {
52396+ $value->validate();
52397+ return true;
5179952398 }
5180052399
5180152400 /**
51802- * @return UseSerializers
52401+ * @throws Exception
52402+ * @return VarClass
5180352403 */
51804- public static function sample(): UseSerializers {
51805- return new UseSerializers(
51806- UseSerializers::sampleUseSerializers()
51807- );
52404+ public function getVar(): VarClass {
52405+ if (Obj6::validateVar($this->var)) {
52406+ return $this->var;
52407+ }
52408+ throw new Exception('never get to getVar Obj6::var');
5180852409 }
51809-}
51810-
51811-// This is an autogenerated file:Ushort
51812-
51813-class Ushort {
51814- private int $ushort; // json:ushort Required
5181552410
5181652411 /**
51817- * @param int $ushort
52412+ * @return VarClass
5181852413 */
51819- public function __construct(int $ushort) {
51820- $this->ushort = $ushort;
52414+ public static function sampleVar(): VarClass {
52415+ return VarClass::sample(); /*39:var*/
5182152416 }
5182252417
5182352418 /**
51824- * @param int $value
52419+ * @param stdClass $value
5182552420 * @throws Exception
51826- * @return int
52421+ * @return Virtual
5182752422 */
51828- public static function fromUshort(int $value): int {
51829- return $value; /*int*/
52423+ public static function fromVirtual(stdClass $value): Virtual {
52424+ return Virtual::from($value); /*class*/
5183052425 }
5183152426
5183252427 /**
5183352428 * @throws Exception
51834- * @return int
52429+ * @return stdClass
5183552430 */
51836- public function toUshort(): int {
51837- if (Ushort::validateUshort($this->ushort)) {
51838- return $this->ushort; /*int*/
52431+ public function toVirtual(): stdClass {
52432+ if (Obj6::validateVirtual($this->virtual)) {
52433+ return $this->virtual->to(); /*class*/
5183952434 }
51840- throw new Exception('never get to this Ushort::ushort');
52435+ throw new Exception('never get to this Obj6::virtual');
5184152436 }
5184252437
5184352438 /**
51844- * @param int
52439+ * @param Virtual
5184552440 * @return bool
5184652441 * @throws Exception
5184752442 */
51848- public static function validateUshort(int $value): bool {
52443+ public static function validateVirtual(Virtual $value): bool {
52444+ $value->validate();
5184952445 return true;
5185052446 }
5185152447
5185252448 /**
5185352449 * @throws Exception
51854- * @return int
52450+ * @return Virtual
5185552451 */
51856- public function getUshort(): int {
51857- if (Ushort::validateUshort($this->ushort)) {
51858- return $this->ushort;
52452+ public function getVirtual(): Virtual {
52453+ if (Obj6::validateVirtual($this->virtual)) {
52454+ return $this->virtual;
5185952455 }
51860- throw new Exception('never get to getUshort Ushort::ushort');
52456+ throw new Exception('never get to getVirtual Obj6::virtual');
5186152457 }
5186252458
5186352459 /**
51864- * @return int
52460+ * @return Virtual
5186552461 */
51866- public static function sampleUshort(): int {
51867- return 31; /*31:ushort*/
52462+ public static function sampleVirtual(): Virtual {
52463+ return Virtual::sample(); /*40:virtual*/
5186852464 }
5186952465
5187052466 /**
52467+ * @param stdClass $value
5187152468 * @throws Exception
51872- * @return bool
52469+ * @return VoidClass
5187352470 */
51874- public function validate(): bool {
51875- return Ushort::validateUshort($this->ushort);
52471+ public static function fromVoid(stdClass $value): VoidClass {
52472+ return VoidClass::from($value); /*class*/
5187652473 }
5187752474
5187852475 /**
51879- * @return stdClass
5188052476 * @throws Exception
52477+ * @return stdClass
5188152478 */
51882- public function to(): stdClass {
51883- $out = new stdClass();
51884- $out->{'ushort'} = $this->toUshort();
51885- return $out;
52479+ public function toVoid(): stdClass {
52480+ if (Obj6::validateVoid($this->void)) {
52481+ return $this->void->to(); /*class*/
52482+ }
52483+ throw new Exception('never get to this Obj6::void');
5188652484 }
5188752485
5188852486 /**
51889- * @param stdClass $obj
51890- * @return Ushort
52487+ * @param VoidClass
52488+ * @return bool
5189152489 * @throws Exception
5189252490 */
51893- public static function from(stdClass $obj): Ushort {
51894- if (!property_exists($obj, 'ushort')) {
51895- throw new Exception("Missing required property");
51896- }
51897- return new Ushort(
51898- Ushort::fromUshort($obj->{'ushort'})
51899- );
52491+ public static function validateVoid(VoidClass $value): bool {
52492+ $value->validate();
52493+ return true;
5190052494 }
5190152495
5190252496 /**
51903- * @return Ushort
52497+ * @throws Exception
52498+ * @return VoidClass
5190452499 */
51905- public static function sample(): Ushort {
51906- return new Ushort(
51907- Ushort::sampleUshort()
51908- );
52500+ public function getVoid(): VoidClass {
52501+ if (Obj6::validateVoid($this->void)) {
52502+ return $this->void;
52503+ }
52504+ throw new Exception('never get to getVoid Obj6::void');
5190952505 }
51910-}
51911-
51912-// This is an autogenerated file:Obj6
51913-
51914-class Obj6 {
51915- private int $dummy; // json:dummy Required
51916- private Using $using; // json:using Required
51917- private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
51918- private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
51919- private UUID $uuid; // json:UUID Required
51920- private VarClass $var; // json:var Required
51921- private Virtual $virtual; // json:virtual Required
51922- private VoidClass $void; // json:void Required
51923- private Volatile $volatile; // json:volatile Required
51924- private WcharT $wcharT; // json:wchar_t Required
51925- private Weak $weak; // json:weak Required
51926- private Where $where; // json:where Required
51927- private WhileClass $while; // json:while Required
51928- private WillSet $willSet; // json:willSet Required
51929- private With $with; // json:with Required
51930- private XorClass $xor; // json:xor Required
51931- private XorEq $xorEq; // json:xor_eq Required
51932- private Yes $yes; // json:YES Required
51933- private YieldClass $yield; // json:yield Required
5193452506
5193552507 /**
51936- * @param int $dummy
51937- * @param Using $using
51938- * @param Utf8JSONReader $utf8JSONReader
51939- * @param Utf8JSONWriter $utf8JSONWriter
51940- * @param UUID $uuid
51941- * @param VarClass $var
51942- * @param Virtual $virtual
51943- * @param VoidClass $void
51944- * @param Volatile $volatile
51945- * @param WcharT $wcharT
51946- * @param Weak $weak
51947- * @param Where $where
51948- * @param WhileClass $while
51949- * @param WillSet $willSet
51950- * @param With $with
51951- * @param XorClass $xor
51952- * @param XorEq $xorEq
51953- * @param Yes $yes
51954- * @param YieldClass $yield
52508+ * @return VoidClass
5195552509 */
51956- public function __construct(int $dummy, 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) {
51957- $this->dummy = $dummy;
51958- $this->using = $using;
51959- $this->utf8JSONReader = $utf8JSONReader;
51960- $this->utf8JSONWriter = $utf8JSONWriter;
51961- $this->uuid = $uuid;
51962- $this->var = $var;
51963- $this->virtual = $virtual;
51964- $this->void = $void;
51965- $this->volatile = $volatile;
51966- $this->wcharT = $wcharT;
51967- $this->weak = $weak;
51968- $this->where = $where;
51969- $this->while = $while;
51970- $this->willSet = $willSet;
51971- $this->with = $with;
51972- $this->xor = $xor;
51973- $this->xorEq = $xorEq;
51974- $this->yes = $yes;
51975- $this->yield = $yield;
52510+ public static function sampleVoid(): VoidClass {
52511+ return VoidClass::sample(); /*41:void*/
5197652512 }
5197752513
5197852514 /**
51979- * @param int $value
52515+ * @param stdClass $value
5198052516 * @throws Exception
51981- * @return int
52517+ * @return Volatile
5198252518 */
51983- public static function fromDummy(int $value): int {
51984- return $value; /*int*/
52519+ public static function fromVolatile(stdClass $value): Volatile {
52520+ return Volatile::from($value); /*class*/
5198552521 }
5198652522
5198752523 /**
5198852524 * @throws Exception
51989- * @return int
52525+ * @return stdClass
5199052526 */
51991- public function toDummy(): int {
51992- if (Obj6::validateDummy($this->dummy)) {
51993- return $this->dummy; /*int*/
52527+ public function toVolatile(): stdClass {
52528+ if (Obj6::validateVolatile($this->volatile)) {
52529+ return $this->volatile->to(); /*class*/
5199452530 }
51995- throw new Exception('never get to this Obj6::dummy');
52531+ throw new Exception('never get to this Obj6::volatile');
5199652532 }
5199752533
5199852534 /**
51999- * @param int
52535+ * @param Volatile
5200052536 * @return bool
5200152537 * @throws Exception
5200252538 */
52003- public static function validateDummy(int $value): bool {
52539+ public static function validateVolatile(Volatile $value): bool {
52540+ $value->validate();
5200452541 return true;
5200552542 }
5200652543
5200752544 /**
5200852545 * @throws Exception
52009- * @return int
52546+ * @return Volatile
5201052547 */
52011- public function getDummy(): int {
52012- if (Obj6::validateDummy($this->dummy)) {
52013- return $this->dummy;
52548+ public function getVolatile(): Volatile {
52549+ if (Obj6::validateVolatile($this->volatile)) {
52550+ return $this->volatile;
5201452551 }
52015- throw new Exception('never get to getDummy Obj6::dummy');
52552+ throw new Exception('never get to getVolatile Obj6::volatile');
5201652553 }
5201752554
5201852555 /**
52019- * @return int
52556+ * @return Volatile
5202052557 */
52021- public static function sampleDummy(): int {
52022- return 31; /*31:dummy*/
52558+ public static function sampleVolatile(): Volatile {
52559+ return Volatile::sample(); /*42:volatile*/
5202352560 }
5202452561
5202552562 /**
5202652563 * @param stdClass $value
5202752564 * @throws Exception
52028- * @return Using
52565+ * @return WcharT
5202952566 */
52030- public static function fromUsing(stdClass $value): Using {
52031- return Using::from($value); /*class*/
52567+ public static function fromWcharT(stdClass $value): WcharT {
52568+ return WcharT::from($value); /*class*/
5203252569 }
5203352570
5203452571 /**
5203552572 * @throws Exception
5203652573 * @return stdClass
5203752574 */
52038- public function toUsing(): stdClass {
52039- if (Obj6::validateUsing($this->using)) {
52040- return $this->using->to(); /*class*/
52575+ public function toWcharT(): stdClass {
52576+ if (Obj6::validateWcharT($this->wcharT)) {
52577+ return $this->wcharT->to(); /*class*/
5204152578 }
52042- throw new Exception('never get to this Obj6::using');
52579+ throw new Exception('never get to this Obj6::wcharT');
5204352580 }
5204452581
5204552582 /**
52046- * @param Using
52583+ * @param WcharT
5204752584 * @return bool
5204852585 * @throws Exception
5204952586 */
52050- public static function validateUsing(Using $value): bool {
52587+ public static function validateWcharT(WcharT $value): bool {
5205152588 $value->validate();
5205252589 return true;
5205352590 }
5205452591
5205552592 /**
5205652593 * @throws Exception
52057- * @return Using
52594+ * @return WcharT
5205852595 */
52059- public function getUsing(): Using {
52060- if (Obj6::validateUsing($this->using)) {
52061- return $this->using;
52596+ public function getWcharT(): WcharT {
52597+ if (Obj6::validateWcharT($this->wcharT)) {
52598+ return $this->wcharT;
5206252599 }
52063- throw new Exception('never get to getUsing Obj6::using');
52600+ throw new Exception('never get to getWcharT Obj6::wcharT');
5206452601 }
5206552602
5206652603 /**
52067- * @return Using
52604+ * @return WcharT
5206852605 */
52069- public static function sampleUsing(): Using {
52070- return Using::sample(); /*32:using*/
52606+ public static function sampleWcharT(): WcharT {
52607+ return WcharT::sample(); /*43:wcharT*/
5207152608 }
5207252609
5207352610 /**
5207452611 * @param stdClass $value
5207552612 * @throws Exception
52076- * @return Utf8JSONReader
52613+ * @return Weak
5207752614 */
52078- public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader {
52079- return Utf8JSONReader::from($value); /*class*/
52615+ public static function fromWeak(stdClass $value): Weak {
52616+ return Weak::from($value); /*class*/
5208052617 }
5208152618
5208252619 /**
5208352620 * @throws Exception
5208452621 * @return stdClass
5208552622 */
52086- public function toUtf8JSONReader(): stdClass {
52087- if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52088- return $this->utf8JSONReader->to(); /*class*/
52623+ public function toWeak(): stdClass {
52624+ if (Obj6::validateWeak($this->weak)) {
52625+ return $this->weak->to(); /*class*/
5208952626 }
52090- throw new Exception('never get to this Obj6::utf8JSONReader');
52627+ throw new Exception('never get to this Obj6::weak');
5209152628 }
5209252629
5209352630 /**
52094- * @param Utf8JSONReader
52631+ * @param Weak
5209552632 * @return bool
5209652633 * @throws Exception
5209752634 */
52098- public static function validateUtf8JSONReader(Utf8JSONReader $value): bool {
52635+ public static function validateWeak(Weak $value): bool {
5209952636 $value->validate();
5210052637 return true;
5210152638 }
5210252639
5210352640 /**
5210452641 * @throws Exception
52105- * @return Utf8JSONReader
52642+ * @return Weak
5210652643 */
52107- public function getUtf8JSONReader(): Utf8JSONReader {
52108- if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) {
52109- return $this->utf8JSONReader;
52644+ public function getWeak(): Weak {
52645+ if (Obj6::validateWeak($this->weak)) {
52646+ return $this->weak;
5211052647 }
52111- throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader');
52648+ throw new Exception('never get to getWeak Obj6::weak');
5211252649 }
5211352650
5211452651 /**
52115- * @return Utf8JSONReader
52652+ * @return Weak
5211652653 */
52117- public static function sampleUtf8JSONReader(): Utf8JSONReader {
52118- return Utf8JSONReader::sample(); /*33:utf8JSONReader*/
52654+ public static function sampleWeak(): Weak {
52655+ return Weak::sample(); /*44:weak*/
5211952656 }
5212052657
5212152658 /**
5212252659 * @param stdClass $value
5212352660 * @throws Exception
52124- * @return Utf8JSONWriter
52661+ * @return Where
5212552662 */
52126- public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter {
52127- return Utf8JSONWriter::from($value); /*class*/
52663+ public static function fromWhere(stdClass $value): Where {
52664+ return Where::from($value); /*class*/
5212852665 }
5212952666
5213052667 /**
5213152668 * @throws Exception
5213252669 * @return stdClass
5213352670 */
52134- public function toUtf8JSONWriter(): stdClass {
52135- if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52136- return $this->utf8JSONWriter->to(); /*class*/
52671+ public function toWhere(): stdClass {
52672+ if (Obj6::validateWhere($this->where)) {
52673+ return $this->where->to(); /*class*/
5213752674 }
52138- throw new Exception('never get to this Obj6::utf8JSONWriter');
52675+ throw new Exception('never get to this Obj6::where');
5213952676 }
5214052677
5214152678 /**
52142- * @param Utf8JSONWriter
52679+ * @param Where
5214352680 * @return bool
5214452681 * @throws Exception
5214552682 */
52146- public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool {
52683+ public static function validateWhere(Where $value): bool {
5214752684 $value->validate();
5214852685 return true;
5214952686 }
5215052687
5215152688 /**
5215252689 * @throws Exception
52153- * @return Utf8JSONWriter
52690+ * @return Where
5215452691 */
52155- public function getUtf8JSONWriter(): Utf8JSONWriter {
52156- if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) {
52157- return $this->utf8JSONWriter;
52692+ public function getWhere(): Where {
52693+ if (Obj6::validateWhere($this->where)) {
52694+ return $this->where;
5215852695 }
52159- throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter');
52696+ throw new Exception('never get to getWhere Obj6::where');
5216052697 }
5216152698
5216252699 /**
52163- * @return Utf8JSONWriter
52700+ * @return Where
5216452701 */
52165- public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
52166- return Utf8JSONWriter::sample(); /*34:utf8JSONWriter*/
52702+ public static function sampleWhere(): Where {
52703+ return Where::sample(); /*45:where*/
5216752704 }
5216852705
5216952706 /**
5217052707 * @param stdClass $value
5217152708 * @throws Exception
52172- * @return UUID
52709+ * @return WhileClass
5217352710 */
52174- public static function fromUUID(stdClass $value): UUID {
52175- return UUID::from($value); /*class*/
52711+ public static function fromWhile(stdClass $value): WhileClass {
52712+ return WhileClass::from($value); /*class*/
5217652713 }
5217752714
5217852715 /**
5217952716 * @throws Exception
5218052717 * @return stdClass
5218152718 */
52182- public function toUUID(): stdClass {
52183- if (Obj6::validateUUID($this->uuid)) {
52184- return $this->uuid->to(); /*class*/
52719+ public function toWhile(): stdClass {
52720+ if (Obj6::validateWhile($this->while)) {
52721+ return $this->while->to(); /*class*/
5218552722 }
52186- throw new Exception('never get to this Obj6::uuid');
52723+ throw new Exception('never get to this Obj6::while');
5218752724 }
5218852725
5218952726 /**
52190- * @param UUID
52727+ * @param WhileClass
5219152728 * @return bool
5219252729 * @throws Exception
5219352730 */
52194- public static function validateUUID(UUID $value): bool {
52731+ public static function validateWhile(WhileClass $value): bool {
5219552732 $value->validate();
5219652733 return true;
5219752734 }
5219852735
5219952736 /**
5220052737 * @throws Exception
52201- * @return UUID
52738+ * @return WhileClass
5220252739 */
52203- public function getUUID(): UUID {
52204- if (Obj6::validateUUID($this->uuid)) {
52205- return $this->uuid;
52740+ public function getWhile(): WhileClass {
52741+ if (Obj6::validateWhile($this->while)) {
52742+ return $this->while;
5220652743 }
52207- throw new Exception('never get to getUUID Obj6::uuid');
52744+ throw new Exception('never get to getWhile Obj6::while');
5220852745 }
5220952746
5221052747 /**
52211- * @return UUID
52748+ * @return WhileClass
5221252749 */
52213- public static function sampleUUID(): UUID {
52214- return UUID::sample(); /*35:uuid*/
52750+ public static function sampleWhile(): WhileClass {
52751+ return WhileClass::sample(); /*46:while*/
5221552752 }
5221652753
5221752754 /**
5221852755 * @param stdClass $value
5221952756 * @throws Exception
52220- * @return VarClass
52757+ * @return WillSet
5222152758 */
52222- public static function fromVar(stdClass $value): VarClass {
52223- return VarClass::from($value); /*class*/
52759+ public static function fromWillSet(stdClass $value): WillSet {
52760+ return WillSet::from($value); /*class*/
5222452761 }
5222552762
5222652763 /**
5222752764 * @throws Exception
5222852765 * @return stdClass
5222952766 */
52230- public function toVar(): stdClass {
52231- if (Obj6::validateVar($this->var)) {
52232- return $this->var->to(); /*class*/
52767+ public function toWillSet(): stdClass {
52768+ if (Obj6::validateWillSet($this->willSet)) {
52769+ return $this->willSet->to(); /*class*/
5223352770 }
52234- throw new Exception('never get to this Obj6::var');
52771+ throw new Exception('never get to this Obj6::willSet');
5223552772 }
5223652773
5223752774 /**
52238- * @param VarClass
52775+ * @param WillSet
5223952776 * @return bool
5224052777 * @throws Exception
5224152778 */
52242- public static function validateVar(VarClass $value): bool {
52779+ public static function validateWillSet(WillSet $value): bool {
5224352780 $value->validate();
5224452781 return true;
5224552782 }
5224652783
5224752784 /**
5224852785 * @throws Exception
52249- * @return VarClass
52786+ * @return WillSet
5225052787 */
52251- public function getVar(): VarClass {
52252- if (Obj6::validateVar($this->var)) {
52253- return $this->var;
52788+ public function getWillSet(): WillSet {
52789+ if (Obj6::validateWillSet($this->willSet)) {
52790+ return $this->willSet;
5225452791 }
52255- throw new Exception('never get to getVar Obj6::var');
52792+ throw new Exception('never get to getWillSet Obj6::willSet');
5225652793 }
5225752794
5225852795 /**
52259- * @return VarClass
52796+ * @return WillSet
5226052797 */
52261- public static function sampleVar(): VarClass {
52262- return VarClass::sample(); /*36:var*/
52798+ public static function sampleWillSet(): WillSet {
52799+ return WillSet::sample(); /*47:willSet*/
5226352800 }
5226452801
5226552802 /**
5226652803 * @param stdClass $value
5226752804 * @throws Exception
52268- * @return Virtual
52805+ * @return With
5226952806 */
52270- public static function fromVirtual(stdClass $value): Virtual {
52271- return Virtual::from($value); /*class*/
52807+ public static function fromWith(stdClass $value): With {
52808+ return With::from($value); /*class*/
5227252809 }
5227352810
5227452811 /**
5227552812 * @throws Exception
5227652813 * @return stdClass
5227752814 */
52278- public function toVirtual(): stdClass {
52279- if (Obj6::validateVirtual($this->virtual)) {
52280- return $this->virtual->to(); /*class*/
52815+ public function toWith(): stdClass {
52816+ if (Obj6::validateWith($this->with)) {
52817+ return $this->with->to(); /*class*/
5228152818 }
52282- throw new Exception('never get to this Obj6::virtual');
52819+ throw new Exception('never get to this Obj6::with');
5228352820 }
5228452821
5228552822 /**
52286- * @param Virtual
52823+ * @param With
5228752824 * @return bool
5228852825 * @throws Exception
5228952826 */
52290- public static function validateVirtual(Virtual $value): bool {
52827+ public static function validateWith(With $value): bool {
5229152828 $value->validate();
5229252829 return true;
5229352830 }
5229452831
5229552832 /**
5229652833 * @throws Exception
52297- * @return Virtual
52834+ * @return With
5229852835 */
52299- public function getVirtual(): Virtual {
52300- if (Obj6::validateVirtual($this->virtual)) {
52301- return $this->virtual;
52836+ public function getWith(): With {
52837+ if (Obj6::validateWith($this->with)) {
52838+ return $this->with;
5230252839 }
52303- throw new Exception('never get to getVirtual Obj6::virtual');
52840+ throw new Exception('never get to getWith Obj6::with');
5230452841 }
5230552842
5230652843 /**
52307- * @return Virtual
52844+ * @return With
5230852845 */
52309- public static function sampleVirtual(): Virtual {
52310- return Virtual::sample(); /*37:virtual*/
52846+ public static function sampleWith(): With {
52847+ return With::sample(); /*48:with*/
5231152848 }
5231252849
5231352850 /**
5231452851 * @param stdClass $value
5231552852 * @throws Exception
52316- * @return VoidClass
52317- */
52318- public static function fromVoid(stdClass $value): VoidClass {
52319- return VoidClass::from($value); /*class*/
52853+ * @return XorClass
52854+ */
52855+ public static function fromXor(stdClass $value): XorClass {
52856+ return XorClass::from($value); /*class*/
5232052857 }
5232152858
5232252859 /**
5232352860 * @throws Exception
5232452861 * @return stdClass
5232552862 */
52326- public function toVoid(): stdClass {
52327- if (Obj6::validateVoid($this->void)) {
52328- return $this->void->to(); /*class*/
52863+ public function toXor(): stdClass {
52864+ if (Obj6::validateXor($this->xor)) {
52865+ return $this->xor->to(); /*class*/
5232952866 }
52330- throw new Exception('never get to this Obj6::void');
52867+ throw new Exception('never get to this Obj6::xor');
5233152868 }
5233252869
5233352870 /**
52334- * @param VoidClass
52871+ * @param XorClass
5233552872 * @return bool
5233652873 * @throws Exception
5233752874 */
52338- public static function validateVoid(VoidClass $value): bool {
52875+ public static function validateXor(XorClass $value): bool {
5233952876 $value->validate();
5234052877 return true;
5234152878 }
5234252879
5234352880 /**
5234452881 * @throws Exception
52345- * @return VoidClass
52882+ * @return XorClass
5234652883 */
52347- public function getVoid(): VoidClass {
52348- if (Obj6::validateVoid($this->void)) {
52349- return $this->void;
52884+ public function getXor(): XorClass {
52885+ if (Obj6::validateXor($this->xor)) {
52886+ return $this->xor;
5235052887 }
52351- throw new Exception('never get to getVoid Obj6::void');
52888+ throw new Exception('never get to getXor Obj6::xor');
5235252889 }
5235352890
5235452891 /**
52355- * @return VoidClass
52892+ * @return XorClass
5235652893 */
52357- public static function sampleVoid(): VoidClass {
52358- return VoidClass::sample(); /*38:void*/
52894+ public static function sampleXor(): XorClass {
52895+ return XorClass::sample(); /*49:xor*/
5235952896 }
5236052897
5236152898 /**
5236252899 * @param stdClass $value
5236352900 * @throws Exception
52364- * @return Volatile
52901+ * @return XorEq
5236552902 */
52366- public static function fromVolatile(stdClass $value): Volatile {
52367- return Volatile::from($value); /*class*/
52903+ public static function fromXorEq(stdClass $value): XorEq {
52904+ return XorEq::from($value); /*class*/
5236852905 }
5236952906
5237052907 /**
5237152908 * @throws Exception
5237252909 * @return stdClass
5237352910 */
52374- public function toVolatile(): stdClass {
52375- if (Obj6::validateVolatile($this->volatile)) {
52376- return $this->volatile->to(); /*class*/
52911+ public function toXorEq(): stdClass {
52912+ if (Obj6::validateXorEq($this->xorEq)) {
52913+ return $this->xorEq->to(); /*class*/
5237752914 }
52378- throw new Exception('never get to this Obj6::volatile');
52915+ throw new Exception('never get to this Obj6::xorEq');
5237952916 }
5238052917
5238152918 /**
52382- * @param Volatile
52919+ * @param XorEq
5238352920 * @return bool
5238452921 * @throws Exception
5238552922 */
52386- public static function validateVolatile(Volatile $value): bool {
52923+ public static function validateXorEq(XorEq $value): bool {
5238752924 $value->validate();
5238852925 return true;
5238952926 }
5239052927
5239152928 /**
5239252929 * @throws Exception
52393- * @return Volatile
52930+ * @return XorEq
5239452931 */
52395- public function getVolatile(): Volatile {
52396- if (Obj6::validateVolatile($this->volatile)) {
52397- return $this->volatile;
52932+ public function getXorEq(): XorEq {
52933+ if (Obj6::validateXorEq($this->xorEq)) {
52934+ return $this->xorEq;
5239852935 }
52399- throw new Exception('never get to getVolatile Obj6::volatile');
52936+ throw new Exception('never get to getXorEq Obj6::xorEq');
5240052937 }
5240152938
5240252939 /**
52403- * @return Volatile
52940+ * @return XorEq
5240452941 */
52405- public static function sampleVolatile(): Volatile {
52406- return Volatile::sample(); /*39:volatile*/
52942+ public static function sampleXorEq(): XorEq {
52943+ return XorEq::sample(); /*50:xorEq*/
5240752944 }
5240852945
5240952946 /**
5241052947 * @param stdClass $value
5241152948 * @throws Exception
52412- * @return WcharT
52949+ * @return Yes
5241352950 */
52414- public static function fromWcharT(stdClass $value): WcharT {
52415- return WcharT::from($value); /*class*/
52951+ public static function fromYes(stdClass $value): Yes {
52952+ return Yes::from($value); /*class*/
5241652953 }
5241752954
5241852955 /**
5241952956 * @throws Exception
5242052957 * @return stdClass
5242152958 */
52422- public function toWcharT(): stdClass {
52423- if (Obj6::validateWcharT($this->wcharT)) {
52424- return $this->wcharT->to(); /*class*/
52959+ public function toYes(): stdClass {
52960+ if (Obj6::validateYes($this->yes)) {
52961+ return $this->yes->to(); /*class*/
5242552962 }
52426- throw new Exception('never get to this Obj6::wcharT');
52963+ throw new Exception('never get to this Obj6::yes');
5242752964 }
5242852965
5242952966 /**
52430- * @param WcharT
52967+ * @param Yes
5243152968 * @return bool
5243252969 * @throws Exception
5243352970 */
52434- public static function validateWcharT(WcharT $value): bool {
52971+ public static function validateYes(Yes $value): bool {
5243552972 $value->validate();
5243652973 return true;
5243752974 }
5243852975
5243952976 /**
5244052977 * @throws Exception
52441- * @return WcharT
52978+ * @return Yes
5244252979 */
52443- public function getWcharT(): WcharT {
52444- if (Obj6::validateWcharT($this->wcharT)) {
52445- return $this->wcharT;
52980+ public function getYes(): Yes {
52981+ if (Obj6::validateYes($this->yes)) {
52982+ return $this->yes;
5244652983 }
52447- throw new Exception('never get to getWcharT Obj6::wcharT');
52984+ throw new Exception('never get to getYes Obj6::yes');
5244852985 }
5244952986
5245052987 /**
52451- * @return WcharT
52988+ * @return Yes
5245252989 */
52453- public static function sampleWcharT(): WcharT {
52454- return WcharT::sample(); /*40:wcharT*/
52990+ public static function sampleYes(): Yes {
52991+ return Yes::sample(); /*51:yes*/
5245552992 }
5245652993
5245752994 /**
5245852995 * @param stdClass $value
5245952996 * @throws Exception
52460- * @return Weak
52997+ * @return YieldClass
5246152998 */
52462- public static function fromWeak(stdClass $value): Weak {
52463- return Weak::from($value); /*class*/
52999+ public static function fromYield(stdClass $value): YieldClass {
53000+ return YieldClass::from($value); /*class*/
5246453001 }
5246553002
5246653003 /**
5246753004 * @throws Exception
5246853005 * @return stdClass
5246953006 */
52470- public function toWeak(): stdClass {
52471- if (Obj6::validateWeak($this->weak)) {
52472- return $this->weak->to(); /*class*/
53007+ public function toYield(): stdClass {
53008+ if (Obj6::validateYield($this->yield)) {
53009+ return $this->yield->to(); /*class*/
5247353010 }
52474- throw new Exception('never get to this Obj6::weak');
53011+ throw new Exception('never get to this Obj6::yield');
5247553012 }
5247653013
5247753014 /**
52478- * @param Weak
53015+ * @param YieldClass
5247953016 * @return bool
5248053017 * @throws Exception
5248153018 */
52482- public static function validateWeak(Weak $value): bool {
53019+ public static function validateYield(YieldClass $value): bool {
5248353020 $value->validate();
5248453021 return true;
5248553022 }
5248653023
5248753024 /**
5248853025 * @throws Exception
52489- * @return Weak
53026+ * @return YieldClass
5249053027 */
52491- public function getWeak(): Weak {
52492- if (Obj6::validateWeak($this->weak)) {
52493- return $this->weak;
53028+ public function getYield(): YieldClass {
53029+ if (Obj6::validateYield($this->yield)) {
53030+ return $this->yield;
5249453031 }
52495- throw new Exception('never get to getWeak Obj6::weak');
53032+ throw new Exception('never get to getYield Obj6::yield');
5249653033 }
5249753034
5249853035 /**
52499- * @return Weak
53036+ * @return YieldClass
5250053037 */
52501- public static function sampleWeak(): Weak {
52502- return Weak::sample(); /*41:weak*/
53038+ public static function sampleYield(): YieldClass {
53039+ return YieldClass::sample(); /*52:yield*/
5250353040 }
5250453041
5250553042 /**
52506- * @param stdClass $value
5250753043 * @throws Exception
52508- * @return Where
53044+ * @return bool
5250953045 */
52510- public static function fromWhere(stdClass $value): Where {
52511- return Where::from($value); /*class*/
53046+ public function validate(): bool {
53047+ return Obj6::validateDummy($this->dummy)
53048+ || Obj6::validateUnsafe($this->unsafe)
53049+ || Obj6::validateUnsigned($this->unsigned)
53050+ || Obj6::validateUshort($this->ushort)
53051+ || Obj6::validateUsing($this->using)
53052+ || Obj6::validateUtf8JSONReader($this->utf8JSONReader)
53053+ || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)
53054+ || Obj6::validateUUID($this->uuid)
53055+ || Obj6::validateVar($this->var)
53056+ || Obj6::validateVirtual($this->virtual)
53057+ || Obj6::validateVoid($this->void)
53058+ || Obj6::validateVolatile($this->volatile)
53059+ || Obj6::validateWcharT($this->wcharT)
53060+ || Obj6::validateWeak($this->weak)
53061+ || Obj6::validateWhere($this->where)
53062+ || Obj6::validateWhile($this->while)
53063+ || Obj6::validateWillSet($this->willSet)
53064+ || Obj6::validateWith($this->with)
53065+ || Obj6::validateXor($this->xor)
53066+ || Obj6::validateXorEq($this->xorEq)
53067+ || Obj6::validateYes($this->yes)
53068+ || Obj6::validateYield($this->yield);
5251253069 }
5251353070
5251453071 /**
52515- * @throws Exception
5251653072 * @return stdClass
52517- */
52518- public function toWhere(): stdClass {
52519- if (Obj6::validateWhere($this->where)) {
52520- return $this->where->to(); /*class*/
52521- }
52522- throw new Exception('never get to this Obj6::where');
52523- }
52524-
52525- /**
52526- * @param Where
52527- * @return bool
5252853073 * @throws Exception
5252953074 */
52530- public static function validateWhere(Where $value): bool {
52531- $value->validate();
52532- return true;
53075+ public function to(): stdClass {
53076+ $out = new stdClass();
53077+ $out->{'dummy'} = $this->toDummy();
53078+ $out->{'unsafe'} = $this->toUnsafe();
53079+ $out->{'unsigned'} = $this->toUnsigned();
53080+ $out->{'ushort'} = $this->toUshort();
53081+ $out->{'using'} = $this->toUsing();
53082+ $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
53083+ $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
53084+ $out->{'UUID'} = $this->toUUID();
53085+ $out->{'var'} = $this->toVar();
53086+ $out->{'virtual'} = $this->toVirtual();
53087+ $out->{'void'} = $this->toVoid();
53088+ $out->{'volatile'} = $this->toVolatile();
53089+ $out->{'wchar_t'} = $this->toWcharT();
53090+ $out->{'weak'} = $this->toWeak();
53091+ $out->{'where'} = $this->toWhere();
53092+ $out->{'while'} = $this->toWhile();
53093+ $out->{'willSet'} = $this->toWillSet();
53094+ $out->{'with'} = $this->toWith();
53095+ $out->{'xor'} = $this->toXor();
53096+ $out->{'xor_eq'} = $this->toXorEq();
53097+ $out->{'YES'} = $this->toYes();
53098+ $out->{'yield'} = $this->toYield();
53099+ return $out;
5253353100 }
5253453101
5253553102 /**
53103+ * @param stdClass $obj
53104+ * @return Obj6
5253653105 * @throws Exception
52537- * @return Where
5253853106 */
52539- public function getWhere(): Where {
52540- if (Obj6::validateWhere($this->where)) {
52541- return $this->where;
53107+ public static function from(stdClass $obj): Obj6 {
53108+ if (!property_exists($obj, 'dummy')) {
53109+ throw new Exception("Missing required property");
53110+ }
53111+ if (!property_exists($obj, 'unsafe')) {
53112+ throw new Exception("Missing required property");
53113+ }
53114+ if (!property_exists($obj, 'unsigned')) {
53115+ throw new Exception("Missing required property");
53116+ }
53117+ if (!property_exists($obj, 'ushort')) {
53118+ throw new Exception("Missing required property");
53119+ }
53120+ if (!property_exists($obj, 'using')) {
53121+ throw new Exception("Missing required property");
53122+ }
53123+ if (!property_exists($obj, 'Utf8JsonReader')) {
53124+ throw new Exception("Missing required property");
53125+ }
53126+ if (!property_exists($obj, 'Utf8JsonWriter')) {
53127+ throw new Exception("Missing required property");
53128+ }
53129+ if (!property_exists($obj, 'UUID')) {
53130+ throw new Exception("Missing required property");
53131+ }
53132+ if (!property_exists($obj, 'var')) {
53133+ throw new Exception("Missing required property");
53134+ }
53135+ if (!property_exists($obj, 'virtual')) {
53136+ throw new Exception("Missing required property");
53137+ }
53138+ if (!property_exists($obj, 'void')) {
53139+ throw new Exception("Missing required property");
53140+ }
53141+ if (!property_exists($obj, 'volatile')) {
53142+ throw new Exception("Missing required property");
53143+ }
53144+ if (!property_exists($obj, 'wchar_t')) {
53145+ throw new Exception("Missing required property");
53146+ }
53147+ if (!property_exists($obj, 'weak')) {
53148+ throw new Exception("Missing required property");
53149+ }
53150+ if (!property_exists($obj, 'where')) {
53151+ throw new Exception("Missing required property");
53152+ }
53153+ if (!property_exists($obj, 'while')) {
53154+ throw new Exception("Missing required property");
53155+ }
53156+ if (!property_exists($obj, 'willSet')) {
53157+ throw new Exception("Missing required property");
53158+ }
53159+ if (!property_exists($obj, 'with')) {
53160+ throw new Exception("Missing required property");
53161+ }
53162+ if (!property_exists($obj, 'xor')) {
53163+ throw new Exception("Missing required property");
53164+ }
53165+ if (!property_exists($obj, 'xor_eq')) {
53166+ throw new Exception("Missing required property");
5254253167 }
52543- throw new Exception('never get to getWhere Obj6::where');
52544- }
52545-
52546- /**
52547- * @return Where
52548- */
52549- public static function sampleWhere(): Where {
52550- return Where::sample(); /*42:where*/
52551- }
52552-
52553- /**
52554- * @param stdClass $value
52555- * @throws Exception
52556- * @return WhileClass
52557- */
52558- public static function fromWhile(stdClass $value): WhileClass {
52559- return WhileClass::from($value); /*class*/
52560- }
52561-
52562- /**
52563- * @throws Exception
52564- * @return stdClass
52565- */
52566- public function toWhile(): stdClass {
52567- if (Obj6::validateWhile($this->while)) {
52568- return $this->while->to(); /*class*/
53168+ if (!property_exists($obj, 'YES')) {
53169+ throw new Exception("Missing required property");
5256953170 }
52570- throw new Exception('never get to this Obj6::while');
53171+ if (!property_exists($obj, 'yield')) {
53172+ throw new Exception("Missing required property");
53173+ }
53174+ return new Obj6(
53175+ Obj6::fromDummy($obj->{'dummy'})
53176+ ,Obj6::fromUnsafe($obj->{'unsafe'})
53177+ ,Obj6::fromUnsigned($obj->{'unsigned'})
53178+ ,Obj6::fromUshort($obj->{'ushort'})
53179+ ,Obj6::fromUsing($obj->{'using'})
53180+ ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
53181+ ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
53182+ ,Obj6::fromUUID($obj->{'UUID'})
53183+ ,Obj6::fromVar($obj->{'var'})
53184+ ,Obj6::fromVirtual($obj->{'virtual'})
53185+ ,Obj6::fromVoid($obj->{'void'})
53186+ ,Obj6::fromVolatile($obj->{'volatile'})
53187+ ,Obj6::fromWcharT($obj->{'wchar_t'})
53188+ ,Obj6::fromWeak($obj->{'weak'})
53189+ ,Obj6::fromWhere($obj->{'where'})
53190+ ,Obj6::fromWhile($obj->{'while'})
53191+ ,Obj6::fromWillSet($obj->{'willSet'})
53192+ ,Obj6::fromWith($obj->{'with'})
53193+ ,Obj6::fromXor($obj->{'xor'})
53194+ ,Obj6::fromXorEq($obj->{'xor_eq'})
53195+ ,Obj6::fromYes($obj->{'YES'})
53196+ ,Obj6::fromYield($obj->{'yield'})
53197+ );
5257153198 }
5257253199
5257353200 /**
52574- * @param WhileClass
52575- * @return bool
52576- * @throws Exception
53201+ * @return Obj6
5257753202 */
52578- public static function validateWhile(WhileClass $value): bool {
52579- $value->validate();
52580- return true;
53203+ public static function sample(): Obj6 {
53204+ return new Obj6(
53205+ Obj6::sampleDummy()
53206+ ,Obj6::sampleUnsafe()
53207+ ,Obj6::sampleUnsigned()
53208+ ,Obj6::sampleUshort()
53209+ ,Obj6::sampleUsing()
53210+ ,Obj6::sampleUtf8JSONReader()
53211+ ,Obj6::sampleUtf8JSONWriter()
53212+ ,Obj6::sampleUUID()
53213+ ,Obj6::sampleVar()
53214+ ,Obj6::sampleVirtual()
53215+ ,Obj6::sampleVoid()
53216+ ,Obj6::sampleVolatile()
53217+ ,Obj6::sampleWcharT()
53218+ ,Obj6::sampleWeak()
53219+ ,Obj6::sampleWhere()
53220+ ,Obj6::sampleWhile()
53221+ ,Obj6::sampleWillSet()
53222+ ,Obj6::sampleWith()
53223+ ,Obj6::sampleXor()
53224+ ,Obj6::sampleXorEq()
53225+ ,Obj6::sampleYes()
53226+ ,Obj6::sampleYield()
53227+ );
5258153228 }
53229+}
5258253230
52583- /**
52584- * @throws Exception
52585- * @return WhileClass
52586- */
52587- public function getWhile(): WhileClass {
52588- if (Obj6::validateWhile($this->while)) {
52589- return $this->while;
52590- }
52591- throw new Exception('never get to getWhile Obj6::while');
52592- }
53231+// This is an autogenerated file:Unsafe
53232+
53233+class Unsafe {
53234+ private int $unsafe; // json:unsafe Required
5259353235
5259453236 /**
52595- * @return WhileClass
53237+ * @param int $unsafe
5259653238 */
52597- public static function sampleWhile(): WhileClass {
52598- return WhileClass::sample(); /*43:while*/
53239+ public function __construct(int $unsafe) {
53240+ $this->unsafe = $unsafe;
5259953241 }
5260053242
5260153243 /**
52602- * @param stdClass $value
53244+ * @param int $value
5260353245 * @throws Exception
52604- * @return WillSet
53246+ * @return int
5260553247 */
52606- public static function fromWillSet(stdClass $value): WillSet {
52607- return WillSet::from($value); /*class*/
53248+ public static function fromUnsafe(int $value): int {
53249+ return $value; /*int*/
5260853250 }
5260953251
5261053252 /**
5261153253 * @throws Exception
52612- * @return stdClass
53254+ * @return int
5261353255 */
52614- public function toWillSet(): stdClass {
52615- if (Obj6::validateWillSet($this->willSet)) {
52616- return $this->willSet->to(); /*class*/
53256+ public function toUnsafe(): int {
53257+ if (Unsafe::validateUnsafe($this->unsafe)) {
53258+ return $this->unsafe; /*int*/
5261753259 }
52618- throw new Exception('never get to this Obj6::willSet');
53260+ throw new Exception('never get to this Unsafe::unsafe');
5261953261 }
5262053262
5262153263 /**
52622- * @param WillSet
53264+ * @param int
5262353265 * @return bool
5262453266 * @throws Exception
5262553267 */
52626- public static function validateWillSet(WillSet $value): bool {
52627- $value->validate();
53268+ public static function validateUnsafe(int $value): bool {
5262853269 return true;
5262953270 }
5263053271
5263153272 /**
5263253273 * @throws Exception
52633- * @return WillSet
53274+ * @return int
5263453275 */
52635- public function getWillSet(): WillSet {
52636- if (Obj6::validateWillSet($this->willSet)) {
52637- return $this->willSet;
53276+ public function getUnsafe(): int {
53277+ if (Unsafe::validateUnsafe($this->unsafe)) {
53278+ return $this->unsafe;
5263853279 }
52639- throw new Exception('never get to getWillSet Obj6::willSet');
53280+ throw new Exception('never get to getUnsafe Unsafe::unsafe');
5264053281 }
5264153282
5264253283 /**
52643- * @return WillSet
53284+ * @return int
5264453285 */
52645- public static function sampleWillSet(): WillSet {
52646- return WillSet::sample(); /*44:willSet*/
53286+ public static function sampleUnsafe(): int {
53287+ return 31; /*31:unsafe*/
5264753288 }
5264853289
5264953290 /**
52650- * @param stdClass $value
5265153291 * @throws Exception
52652- * @return With
53292+ * @return bool
5265353293 */
52654- public static function fromWith(stdClass $value): With {
52655- return With::from($value); /*class*/
53294+ public function validate(): bool {
53295+ return Unsafe::validateUnsafe($this->unsafe);
5265653296 }
5265753297
5265853298 /**
52659- * @throws Exception
5266053299 * @return stdClass
52661- */
52662- public function toWith(): stdClass {
52663- if (Obj6::validateWith($this->with)) {
52664- return $this->with->to(); /*class*/
52665- }
52666- throw new Exception('never get to this Obj6::with');
52667- }
52668-
52669- /**
52670- * @param With
52671- * @return bool
5267253300 * @throws Exception
5267353301 */
52674- public static function validateWith(With $value): bool {
52675- $value->validate();
52676- return true;
53302+ public function to(): stdClass {
53303+ $out = new stdClass();
53304+ $out->{'unsafe'} = $this->toUnsafe();
53305+ return $out;
5267753306 }
5267853307
5267953308 /**
53309+ * @param stdClass $obj
53310+ * @return Unsafe
5268053311 * @throws Exception
52681- * @return With
5268253312 */
52683- public function getWith(): With {
52684- if (Obj6::validateWith($this->with)) {
52685- return $this->with;
53313+ public static function from(stdClass $obj): Unsafe {
53314+ if (!property_exists($obj, 'unsafe')) {
53315+ throw new Exception("Missing required property");
5268653316 }
52687- throw new Exception('never get to getWith Obj6::with');
52688- }
52689-
52690- /**
52691- * @return With
52692- */
52693- public static function sampleWith(): With {
52694- return With::sample(); /*45:with*/
52695- }
52696-
52697- /**
52698- * @param stdClass $value
52699- * @throws Exception
52700- * @return XorClass
52701- */
52702- public static function fromXor(stdClass $value): XorClass {
52703- return XorClass::from($value); /*class*/
53317+ return new Unsafe(
53318+ Unsafe::fromUnsafe($obj->{'unsafe'})
53319+ );
5270453320 }
5270553321
5270653322 /**
52707- * @throws Exception
52708- * @return stdClass
53323+ * @return Unsafe
5270953324 */
52710- public function toXor(): stdClass {
52711- if (Obj6::validateXor($this->xor)) {
52712- return $this->xor->to(); /*class*/
52713- }
52714- throw new Exception('never get to this Obj6::xor');
53325+ public static function sample(): Unsafe {
53326+ return new Unsafe(
53327+ Unsafe::sampleUnsafe()
53328+ );
5271553329 }
53330+}
5271653331
52717- /**
52718- * @param XorClass
52719- * @return bool
52720- * @throws Exception
52721- */
52722- public static function validateXor(XorClass $value): bool {
52723- $value->validate();
52724- return true;
52725- }
53332+// This is an autogenerated file:Unsigned
5272653333
52727- /**
52728- * @throws Exception
52729- * @return XorClass
52730- */
52731- public function getXor(): XorClass {
52732- if (Obj6::validateXor($this->xor)) {
52733- return $this->xor;
52734- }
52735- throw new Exception('never get to getXor Obj6::xor');
52736- }
53334+class Unsigned {
53335+ private int $unsigned; // json:unsigned Required
5273753336
5273853337 /**
52739- * @return XorClass
53338+ * @param int $unsigned
5274053339 */
52741- public static function sampleXor(): XorClass {
52742- return XorClass::sample(); /*46:xor*/
53340+ public function __construct(int $unsigned) {
53341+ $this->unsigned = $unsigned;
5274353342 }
5274453343
5274553344 /**
52746- * @param stdClass $value
53345+ * @param int $value
5274753346 * @throws Exception
52748- * @return XorEq
53347+ * @return int
5274953348 */
52750- public static function fromXorEq(stdClass $value): XorEq {
52751- return XorEq::from($value); /*class*/
53349+ public static function fromUnsigned(int $value): int {
53350+ return $value; /*int*/
5275253351 }
5275353352
5275453353 /**
5275553354 * @throws Exception
52756- * @return stdClass
53355+ * @return int
5275753356 */
52758- public function toXorEq(): stdClass {
52759- if (Obj6::validateXorEq($this->xorEq)) {
52760- return $this->xorEq->to(); /*class*/
53357+ public function toUnsigned(): int {
53358+ if (Unsigned::validateUnsigned($this->unsigned)) {
53359+ return $this->unsigned; /*int*/
5276153360 }
52762- throw new Exception('never get to this Obj6::xorEq');
53361+ throw new Exception('never get to this Unsigned::unsigned');
5276353362 }
5276453363
5276553364 /**
52766- * @param XorEq
53365+ * @param int
5276753366 * @return bool
5276853367 * @throws Exception
5276953368 */
52770- public static function validateXorEq(XorEq $value): bool {
52771- $value->validate();
53369+ public static function validateUnsigned(int $value): bool {
5277253370 return true;
5277353371 }
5277453372
5277553373 /**
5277653374 * @throws Exception
52777- * @return XorEq
53375+ * @return int
5277853376 */
52779- public function getXorEq(): XorEq {
52780- if (Obj6::validateXorEq($this->xorEq)) {
52781- return $this->xorEq;
53377+ public function getUnsigned(): int {
53378+ if (Unsigned::validateUnsigned($this->unsigned)) {
53379+ return $this->unsigned;
5278253380 }
52783- throw new Exception('never get to getXorEq Obj6::xorEq');
53381+ throw new Exception('never get to getUnsigned Unsigned::unsigned');
5278453382 }
5278553383
5278653384 /**
52787- * @return XorEq
53385+ * @return int
5278853386 */
52789- public static function sampleXorEq(): XorEq {
52790- return XorEq::sample(); /*47:xorEq*/
53387+ public static function sampleUnsigned(): int {
53388+ return 31; /*31:unsigned*/
5279153389 }
5279253390
5279353391 /**
52794- * @param stdClass $value
5279553392 * @throws Exception
52796- * @return Yes
53393+ * @return bool
5279753394 */
52798- public static function fromYes(stdClass $value): Yes {
52799- return Yes::from($value); /*class*/
53395+ public function validate(): bool {
53396+ return Unsigned::validateUnsigned($this->unsigned);
5280053397 }
5280153398
5280253399 /**
52803- * @throws Exception
5280453400 * @return stdClass
53401+ * @throws Exception
5280553402 */
52806- public function toYes(): stdClass {
52807- if (Obj6::validateYes($this->yes)) {
52808- return $this->yes->to(); /*class*/
52809- }
52810- throw new Exception('never get to this Obj6::yes');
53403+ public function to(): stdClass {
53404+ $out = new stdClass();
53405+ $out->{'unsigned'} = $this->toUnsigned();
53406+ return $out;
5281153407 }
5281253408
5281353409 /**
52814- * @param Yes
52815- * @return bool
53410+ * @param stdClass $obj
53411+ * @return Unsigned
5281653412 * @throws Exception
5281753413 */
52818- public static function validateYes(Yes $value): bool {
52819- $value->validate();
52820- return true;
53414+ public static function from(stdClass $obj): Unsigned {
53415+ if (!property_exists($obj, 'unsigned')) {
53416+ throw new Exception("Missing required property");
53417+ }
53418+ return new Unsigned(
53419+ Unsigned::fromUnsigned($obj->{'unsigned'})
53420+ );
5282153421 }
5282253422
5282353423 /**
52824- * @throws Exception
52825- * @return Yes
53424+ * @return Unsigned
5282653425 */
52827- public function getYes(): Yes {
52828- if (Obj6::validateYes($this->yes)) {
52829- return $this->yes;
52830- }
52831- throw new Exception('never get to getYes Obj6::yes');
53426+ public static function sample(): Unsigned {
53427+ return new Unsigned(
53428+ Unsigned::sampleUnsigned()
53429+ );
5283253430 }
53431+}
53432+
53433+// This is an autogenerated file:Ushort
53434+
53435+class Ushort {
53436+ private int $ushort; // json:ushort Required
5283353437
5283453438 /**
52835- * @return Yes
53439+ * @param int $ushort
5283653440 */
52837- public static function sampleYes(): Yes {
52838- return Yes::sample(); /*48:yes*/
53441+ public function __construct(int $ushort) {
53442+ $this->ushort = $ushort;
5283953443 }
5284053444
5284153445 /**
52842- * @param stdClass $value
53446+ * @param int $value
5284353447 * @throws Exception
52844- * @return YieldClass
53448+ * @return int
5284553449 */
52846- public static function fromYield(stdClass $value): YieldClass {
52847- return YieldClass::from($value); /*class*/
53450+ public static function fromUshort(int $value): int {
53451+ return $value; /*int*/
5284853452 }
5284953453
5285053454 /**
5285153455 * @throws Exception
52852- * @return stdClass
53456+ * @return int
5285353457 */
52854- public function toYield(): stdClass {
52855- if (Obj6::validateYield($this->yield)) {
52856- return $this->yield->to(); /*class*/
53458+ public function toUshort(): int {
53459+ if (Ushort::validateUshort($this->ushort)) {
53460+ return $this->ushort; /*int*/
5285753461 }
52858- throw new Exception('never get to this Obj6::yield');
53462+ throw new Exception('never get to this Ushort::ushort');
5285953463 }
5286053464
5286153465 /**
52862- * @param YieldClass
53466+ * @param int
5286353467 * @return bool
5286453468 * @throws Exception
5286553469 */
52866- public static function validateYield(YieldClass $value): bool {
52867- $value->validate();
53470+ public static function validateUshort(int $value): bool {
5286853471 return true;
5286953472 }
5287053473
5287153474 /**
5287253475 * @throws Exception
52873- * @return YieldClass
53476+ * @return int
5287453477 */
52875- public function getYield(): YieldClass {
52876- if (Obj6::validateYield($this->yield)) {
52877- return $this->yield;
53478+ public function getUshort(): int {
53479+ if (Ushort::validateUshort($this->ushort)) {
53480+ return $this->ushort;
5287853481 }
52879- throw new Exception('never get to getYield Obj6::yield');
53482+ throw new Exception('never get to getUshort Ushort::ushort');
5288053483 }
5288153484
5288253485 /**
52883- * @return YieldClass
53486+ * @return int
5288453487 */
52885- public static function sampleYield(): YieldClass {
52886- return YieldClass::sample(); /*49:yield*/
53488+ public static function sampleUshort(): int {
53489+ return 31; /*31:ushort*/
5288753490 }
5288853491
5288953492 /**
@@ -52891,25 +53494,7 @@ class Obj6 {
5289153494 * @return bool
5289253495 */
5289353496 public function validate(): bool {
52894- return Obj6::validateDummy($this->dummy)
52895- || Obj6::validateUsing($this->using)
52896- || Obj6::validateUtf8JSONReader($this->utf8JSONReader)
52897- || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)
52898- || Obj6::validateUUID($this->uuid)
52899- || Obj6::validateVar($this->var)
52900- || Obj6::validateVirtual($this->virtual)
52901- || Obj6::validateVoid($this->void)
52902- || Obj6::validateVolatile($this->volatile)
52903- || Obj6::validateWcharT($this->wcharT)
52904- || Obj6::validateWeak($this->weak)
52905- || Obj6::validateWhere($this->where)
52906- || Obj6::validateWhile($this->while)
52907- || Obj6::validateWillSet($this->willSet)
52908- || Obj6::validateWith($this->with)
52909- || Obj6::validateXor($this->xor)
52910- || Obj6::validateXorEq($this->xorEq)
52911- || Obj6::validateYes($this->yes)
52912- || Obj6::validateYield($this->yield);
53497+ return Ushort::validateUshort($this->ushort);
5291353498 }
5291453499
5291553500 /**
@@ -52918,138 +53503,30 @@ class Obj6 {
5291853503 */
5291953504 public function to(): stdClass {
5292053505 $out = new stdClass();
52921- $out->{'dummy'} = $this->toDummy();
52922- $out->{'using'} = $this->toUsing();
52923- $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
52924- $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
52925- $out->{'UUID'} = $this->toUUID();
52926- $out->{'var'} = $this->toVar();
52927- $out->{'virtual'} = $this->toVirtual();
52928- $out->{'void'} = $this->toVoid();
52929- $out->{'volatile'} = $this->toVolatile();
52930- $out->{'wchar_t'} = $this->toWcharT();
52931- $out->{'weak'} = $this->toWeak();
52932- $out->{'where'} = $this->toWhere();
52933- $out->{'while'} = $this->toWhile();
52934- $out->{'willSet'} = $this->toWillSet();
52935- $out->{'with'} = $this->toWith();
52936- $out->{'xor'} = $this->toXor();
52937- $out->{'xor_eq'} = $this->toXorEq();
52938- $out->{'YES'} = $this->toYes();
52939- $out->{'yield'} = $this->toYield();
53506+ $out->{'ushort'} = $this->toUshort();
5294053507 return $out;
5294153508 }
5294253509
5294353510 /**
5294453511 * @param stdClass $obj
52945- * @return Obj6
53512+ * @return Ushort
5294653513 * @throws Exception
5294753514 */
52948- public static function from(stdClass $obj): Obj6 {
52949- if (!property_exists($obj, 'dummy')) {
52950- throw new Exception("Missing required property");
52951- }
52952- if (!property_exists($obj, 'using')) {
52953- throw new Exception("Missing required property");
52954- }
52955- if (!property_exists($obj, 'Utf8JsonReader')) {
52956- throw new Exception("Missing required property");
52957- }
52958- if (!property_exists($obj, 'Utf8JsonWriter')) {
52959- throw new Exception("Missing required property");
52960- }
52961- if (!property_exists($obj, 'UUID')) {
52962- throw new Exception("Missing required property");
52963- }
52964- if (!property_exists($obj, 'var')) {
52965- throw new Exception("Missing required property");
52966- }
52967- if (!property_exists($obj, 'virtual')) {
52968- throw new Exception("Missing required property");
52969- }
52970- if (!property_exists($obj, 'void')) {
52971- throw new Exception("Missing required property");
52972- }
52973- if (!property_exists($obj, 'volatile')) {
52974- throw new Exception("Missing required property");
52975- }
52976- if (!property_exists($obj, 'wchar_t')) {
52977- throw new Exception("Missing required property");
52978- }
52979- if (!property_exists($obj, 'weak')) {
52980- throw new Exception("Missing required property");
52981- }
52982- if (!property_exists($obj, 'where')) {
52983- throw new Exception("Missing required property");
52984- }
52985- if (!property_exists($obj, 'while')) {
52986- throw new Exception("Missing required property");
52987- }
52988- if (!property_exists($obj, 'willSet')) {
52989- throw new Exception("Missing required property");
52990- }
52991- if (!property_exists($obj, 'with')) {
52992- throw new Exception("Missing required property");
52993- }
52994- if (!property_exists($obj, 'xor')) {
52995- throw new Exception("Missing required property");
52996- }
52997- if (!property_exists($obj, 'xor_eq')) {
52998- throw new Exception("Missing required property");
52999- }
53000- if (!property_exists($obj, 'YES')) {
53001- throw new Exception("Missing required property");
53002- }
53003- if (!property_exists($obj, 'yield')) {
53515+ public static function from(stdClass $obj): Ushort {
53516+ if (!property_exists($obj, 'ushort')) {
5300453517 throw new Exception("Missing required property");
5300553518 }
53006- return new Obj6(
53007- Obj6::fromDummy($obj->{'dummy'})
53008- ,Obj6::fromUsing($obj->{'using'})
53009- ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
53010- ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
53011- ,Obj6::fromUUID($obj->{'UUID'})
53012- ,Obj6::fromVar($obj->{'var'})
53013- ,Obj6::fromVirtual($obj->{'virtual'})
53014- ,Obj6::fromVoid($obj->{'void'})
53015- ,Obj6::fromVolatile($obj->{'volatile'})
53016- ,Obj6::fromWcharT($obj->{'wchar_t'})
53017- ,Obj6::fromWeak($obj->{'weak'})
53018- ,Obj6::fromWhere($obj->{'where'})
53019- ,Obj6::fromWhile($obj->{'while'})
53020- ,Obj6::fromWillSet($obj->{'willSet'})
53021- ,Obj6::fromWith($obj->{'with'})
53022- ,Obj6::fromXor($obj->{'xor'})
53023- ,Obj6::fromXorEq($obj->{'xor_eq'})
53024- ,Obj6::fromYes($obj->{'YES'})
53025- ,Obj6::fromYield($obj->{'yield'})
53519+ return new Ushort(
53520+ Ushort::fromUshort($obj->{'ushort'})
5302653521 );
5302753522 }
5302853523
5302953524 /**
53030- * @return Obj6
53525+ * @return Ushort
5303153526 */
53032- public static function sample(): Obj6 {
53033- return new Obj6(
53034- Obj6::sampleDummy()
53035- ,Obj6::sampleUsing()
53036- ,Obj6::sampleUtf8JSONReader()
53037- ,Obj6::sampleUtf8JSONWriter()
53038- ,Obj6::sampleUUID()
53039- ,Obj6::sampleVar()
53040- ,Obj6::sampleVirtual()
53041- ,Obj6::sampleVoid()
53042- ,Obj6::sampleVolatile()
53043- ,Obj6::sampleWcharT()
53044- ,Obj6::sampleWeak()
53045- ,Obj6::sampleWhere()
53046- ,Obj6::sampleWhile()
53047- ,Obj6::sampleWillSet()
53048- ,Obj6::sampleWith()
53049- ,Obj6::sampleXor()
53050- ,Obj6::sampleXorEq()
53051- ,Obj6::sampleYes()
53052- ,Obj6::sampleYield()
53527+ public static function sample(): Ushort {
53528+ return new Ushort(
53529+ Ushort::sampleUshort()
5305353530 );
5305453531 }
5305553532 }
Mpikedefault / TopLevel.pmod+250 −175
@@ -3351,6 +3351,7 @@ class Obj3 {
33513351 Left left; // json: "left"
33523352 Let let; // json: "let"
33533353 List list; // json: "list"
3354+ LocalDate local_date; // json: "LocalDate"
33543355 Locale locale; // json: "Locale"
33553356 Lock lock; // json: "lock"
33563357 Long long; // json: "long"
@@ -3366,7 +3367,6 @@ class Obj3 {
33663367 Newtonsoft newtonsoft; // json: "newtonsoft"
33673368 Nil nil; // json: "nil"
33683369 No no; // json: "NO"
3369- Noexcept noexcept; // json: "noexcept"
33703370 If obj3_if; // json: "if"
33713371 Import obj3_import; // json: "import"
33723372 Inline obj3_inline; // json: "inline"
@@ -3419,6 +3419,7 @@ class Obj3 {
34193419 "left" : left,
34203420 "let" : let,
34213421 "list" : list,
3422+ "LocalDate" : local_date,
34223423 "Locale" : locale,
34233424 "lock" : lock,
34243425 "long" : long,
@@ -3434,7 +3435,6 @@ class Obj3 {
34343435 "newtonsoft" : newtonsoft,
34353436 "nil" : nil,
34363437 "NO" : no,
3437- "noexcept" : noexcept,
34383438 "if" : obj3_if,
34393439 "import" : obj3_import,
34403440 "inline" : obj3_inline,
@@ -3537,6 +3537,8 @@ Obj3 Obj3_from_JSON(mixed json) {
35373537 retval.let = json["let"];
35383538 if (!mappingp(json["list"])) error("Expected object");
35393539 retval.list = json["list"];
3540+ if (!mappingp(json["LocalDate"])) error("Expected object");
3541+ retval.local_date = json["LocalDate"];
35403542 if (!mappingp(json["Locale"])) error("Expected object");
35413543 retval.locale = json["Locale"];
35423544 if (!mappingp(json["lock"])) error("Expected object");
@@ -3567,8 +3569,6 @@ Obj3 Obj3_from_JSON(mixed json) {
35673569 retval.nil = json["nil"];
35683570 if (!mappingp(json["NO"])) error("Expected object");
35693571 retval.no = json["NO"];
3570- if (!mappingp(json["noexcept"])) error("Expected object");
3571- retval.noexcept = json["noexcept"];
35723572 if (!mappingp(json["if"])) error("Expected object");
35733573 retval.obj3_if = json["if"];
35743574 if (!mappingp(json["import"])) error("Expected object");
@@ -4485,6 +4485,27 @@ List List_from_JSON(mixed json) {
44854485 return retval;
44864486 }
44874487
4488+class LocalDate {
4489+ int local_date; // json: "LocalDate"
4490+
4491+ string encode_json() {
4492+ mapping(string:mixed) json = ([
4493+ "LocalDate" : local_date,
4494+ ]);
4495+
4496+ return Standards.JSON.encode(json);
4497+ }
4498+}
4499+
4500+LocalDate LocalDate_from_JSON(mixed json) {
4501+ LocalDate retval = LocalDate();
4502+
4503+ if (!intp(json["LocalDate"])) error("Expected integer");
4504+ retval.local_date = json["LocalDate"];
4505+
4506+ return retval;
4507+}
4508+
44884509 class Locale {
44894510 int locale; // json: "Locale"
44904511
@@ -4800,27 +4821,6 @@ No No_from_JSON(mixed json) {
48004821 return retval;
48014822 }
48024823
4803-class Noexcept {
4804- int noexcept; // json: "noexcept"
4805-
4806- string encode_json() {
4807- mapping(string:mixed) json = ([
4808- "noexcept" : noexcept,
4809- ]);
4810-
4811- return Standards.JSON.encode(json);
4812- }
4813-}
4814-
4815-Noexcept Noexcept_from_JSON(mixed json) {
4816- Noexcept retval = Noexcept();
4817-
4818- if (!intp(json["noexcept"])) error("Expected integer");
4819- retval.noexcept = json["noexcept"];
4820-
4821- return retval;
4822-}
4823-
48244824 class If {
48254825 int if_if; // json: "if"
48264826
@@ -4929,6 +4929,7 @@ Lambda Lambda_from_JSON(mixed json) {
49294929 class Obj4 {
49304930 int dummy; // json: "dummy"
49314931 NoSuchMethod no_such_method; // json: "noSuchMethod"
4932+ Noexcept noexcept; // json: "noexcept"
49324933 Nonatomic nonatomic; // json: "nonatomic"
49334934 None none; // json: "None"
49344935 Nonlocal nonlocal; // json: "nonlocal"
@@ -4952,6 +4953,8 @@ class Obj4 {
49524953 Return obj4_return; // json: "return"
49534954 ObjectMapper object_mapper; // json: "ObjectMapper"
49544955 Of of; // json: "of"
4956+ OffsetDateTime offset_date_time; // json: "OffsetDateTime"
4957+ OffsetTime offset_time; // json: "OffsetTime"
49554958 Oneway oneway; // json: "oneway"
49564959 Open open; // json: "open"
49574960 Operator operator; // json: "operator"
@@ -4989,14 +4992,12 @@ class Obj4 {
49894992 RuntimeType runtime_type; // json: "runtimeType"
49904993 S s; // json: "s"
49914994 Sbyte sbyte; // json: "sbyte"
4992- Sealed sealed; // json: "sealed"
4993- Sel sel; // json: "SEL"
4994- Select select; // json: "select"
49954995
49964996 string encode_json() {
49974997 mapping(string:mixed) json = ([
49984998 "dummy" : dummy,
49994999 "noSuchMethod" : no_such_method,
5000+ "noexcept" : noexcept,
50005001 "nonatomic" : nonatomic,
50015002 "None" : none,
50025003 "nonlocal" : nonlocal,
@@ -5020,6 +5021,8 @@ class Obj4 {
50205021 "return" : obj4_return,
50215022 "ObjectMapper" : object_mapper,
50225023 "of" : of,
5024+ "OffsetDateTime" : offset_date_time,
5025+ "OffsetTime" : offset_time,
50235026 "oneway" : oneway,
50245027 "open" : open,
50255028 "operator" : operator,
@@ -5057,9 +5060,6 @@ class Obj4 {
50575060 "runtimeType" : runtime_type,
50585061 "s" : s,
50595062 "sbyte" : sbyte,
5060- "sealed" : sealed,
5061- "SEL" : sel,
5062- "select" : select,
50635063 ]);
50645064
50655065 return Standards.JSON.encode(json);
@@ -5073,6 +5073,8 @@ Obj4 Obj4_from_JSON(mixed json) {
50735073 retval.dummy = json["dummy"];
50745074 if (!mappingp(json["noSuchMethod"])) error("Expected object");
50755075 retval.no_such_method = json["noSuchMethod"];
5076+ if (!mappingp(json["noexcept"])) error("Expected object");
5077+ retval.noexcept = json["noexcept"];
50765078 if (!mappingp(json["nonatomic"])) error("Expected object");
50775079 retval.nonatomic = json["nonatomic"];
50785080 if (!mappingp(json["None"])) error("Expected object");
@@ -5119,6 +5121,10 @@ Obj4 Obj4_from_JSON(mixed json) {
51195121 retval.object_mapper = json["ObjectMapper"];
51205122 if (!mappingp(json["of"])) error("Expected object");
51215123 retval.of = json["of"];
5124+ if (!mappingp(json["OffsetDateTime"])) error("Expected object");
5125+ retval.offset_date_time = json["OffsetDateTime"];
5126+ if (!mappingp(json["OffsetTime"])) error("Expected object");
5127+ retval.offset_time = json["OffsetTime"];
51225128 if (!mappingp(json["oneway"])) error("Expected object");
51235129 retval.oneway = json["oneway"];
51245130 if (!mappingp(json["open"])) error("Expected object");
@@ -5193,12 +5199,6 @@ Obj4 Obj4_from_JSON(mixed json) {
51935199 retval.s = json["s"];
51945200 if (!mappingp(json["sbyte"])) error("Expected object");
51955201 retval.sbyte = json["sbyte"];
5196- if (!mappingp(json["sealed"])) error("Expected object");
5197- retval.sealed = json["sealed"];
5198- if (!mappingp(json["SEL"])) error("Expected object");
5199- retval.sel = json["SEL"];
5200- if (!mappingp(json["select"])) error("Expected object");
5201- retval.select = json["select"];
52025202
52035203 return retval;
52045204 }
@@ -5224,6 +5224,27 @@ NoSuchMethod NoSuchMethod_from_JSON(mixed json) {
52245224 return retval;
52255225 }
52265226
5227+class Noexcept {
5228+ int noexcept; // json: "noexcept"
5229+
5230+ string encode_json() {
5231+ mapping(string:mixed) json = ([
5232+ "noexcept" : noexcept,
5233+ ]);
5234+
5235+ return Standards.JSON.encode(json);
5236+ }
5237+}
5238+
5239+Noexcept Noexcept_from_JSON(mixed json) {
5240+ Noexcept retval = Noexcept();
5241+
5242+ if (!intp(json["noexcept"])) error("Expected integer");
5243+ retval.noexcept = json["noexcept"];
5244+
5245+ return retval;
5246+}
5247+
52275248 class Nonatomic {
52285249 int nonatomic; // json: "nonatomic"
52295250
@@ -5707,6 +5728,48 @@ Of Of_from_JSON(mixed json) {
57075728 return retval;
57085729 }
57095730
5731+class OffsetDateTime {
5732+ int offset_date_time; // json: "OffsetDateTime"
5733+
5734+ string encode_json() {
5735+ mapping(string:mixed) json = ([
5736+ "OffsetDateTime" : offset_date_time,
5737+ ]);
5738+
5739+ return Standards.JSON.encode(json);
5740+ }
5741+}
5742+
5743+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5744+ OffsetDateTime retval = OffsetDateTime();
5745+
5746+ if (!intp(json["OffsetDateTime"])) error("Expected integer");
5747+ retval.offset_date_time = json["OffsetDateTime"];
5748+
5749+ return retval;
5750+}
5751+
5752+class OffsetTime {
5753+ int offset_time; // json: "OffsetTime"
5754+
5755+ string encode_json() {
5756+ mapping(string:mixed) json = ([
5757+ "OffsetTime" : offset_time,
5758+ ]);
5759+
5760+ return Standards.JSON.encode(json);
5761+ }
5762+}
5763+
5764+OffsetTime OffsetTime_from_JSON(mixed json) {
5765+ OffsetTime retval = OffsetTime();
5766+
5767+ if (!intp(json["OffsetTime"])) error("Expected integer");
5768+ retval.offset_time = json["OffsetTime"];
5769+
5770+ return retval;
5771+}
5772+
57105773 class Oneway {
57115774 int oneway; // json: "oneway"
57125775
@@ -6483,69 +6546,6 @@ Sbyte Sbyte_from_JSON(mixed json) {
64836546 return retval;
64846547 }
64856548
6486-class Sealed {
6487- int sealed; // json: "sealed"
6488-
6489- string encode_json() {
6490- mapping(string:mixed) json = ([
6491- "sealed" : sealed,
6492- ]);
6493-
6494- return Standards.JSON.encode(json);
6495- }
6496-}
6497-
6498-Sealed Sealed_from_JSON(mixed json) {
6499- Sealed retval = Sealed();
6500-
6501- if (!intp(json["sealed"])) error("Expected integer");
6502- retval.sealed = json["sealed"];
6503-
6504- return retval;
6505-}
6506-
6507-class Sel {
6508- int sel; // json: "SEL"
6509-
6510- string encode_json() {
6511- mapping(string:mixed) json = ([
6512- "SEL" : sel,
6513- ]);
6514-
6515- return Standards.JSON.encode(json);
6516- }
6517-}
6518-
6519-Sel Sel_from_JSON(mixed json) {
6520- Sel retval = Sel();
6521-
6522- if (!intp(json["SEL"])) error("Expected integer");
6523- retval.sel = json["SEL"];
6524-
6525- return retval;
6526-}
6527-
6528-class Select {
6529- int select; // json: "select"
6530-
6531- string encode_json() {
6532- mapping(string:mixed) json = ([
6533- "select" : select,
6534- ]);
6535-
6536- return Standards.JSON.encode(json);
6537- }
6538-}
6539-
6540-Select Select_from_JSON(mixed json) {
6541- Select retval = Select();
6542-
6543- if (!intp(json["select"])) error("Expected integer");
6544- retval.select = json["select"];
6545-
6546- return retval;
6547-}
6548-
65496549 class Obj5 {
65506550 int dummy; // json: "dummy"
65516551 KSerializer k_serializer; // json: "KSerializer"
@@ -6558,6 +6558,9 @@ class Obj5 {
65586558 Typedef obj5_typedef; // json: "typedef"
65596559 Typeof obj5_typeof; // json: "typeof"
65606560 PrimitiveKind primitive_kind; // json: "PrimitiveKind"
6561+ Sealed sealed; // json: "sealed"
6562+ Sel sel; // json: "SEL"
6563+ Select select; // json: "select"
65616564 Self self; // json: "Self"
65626565 Sendable sendable; // json: "Sendable"
65636566 SerialDescriptor serial_descriptor; // json: "SerialDescriptor"
@@ -6608,10 +6611,7 @@ class Obj5 {
66086611 Undefined undefined; // json: "undefined"
66096612 Union union; // json: "union"
66106613 Unowned unowned; // json: "unowned"
6611- Unsafe unsafe; // json: "unsafe"
6612- Unsigned unsigned; // json: "unsigned"
66136614 UseSerializers use_serializers; // json: "UseSerializers"
6614- Ushort ushort; // json: "ushort"
66156615
66166616 string encode_json() {
66176617 mapping(string:mixed) json = ([
@@ -6626,6 +6626,9 @@ class Obj5 {
66266626 "typedef" : obj5_typedef,
66276627 "typeof" : obj5_typeof,
66286628 "PrimitiveKind" : primitive_kind,
6629+ "sealed" : sealed,
6630+ "SEL" : sel,
6631+ "select" : select,
66296632 "Self" : self,
66306633 "Sendable" : sendable,
66316634 "SerialDescriptor" : serial_descriptor,
@@ -6676,10 +6679,7 @@ class Obj5 {
66766679 "undefined" : undefined,
66776680 "union" : union,
66786681 "unowned" : unowned,
6679- "unsafe" : unsafe,
6680- "unsigned" : unsigned,
66816682 "UseSerializers" : use_serializers,
6682- "ushort" : ushort,
66836683 ]);
66846684
66856685 return Standards.JSON.encode(json);
@@ -6711,6 +6711,12 @@ Obj5 Obj5_from_JSON(mixed json) {
67116711 retval.obj5_typeof = json["typeof"];
67126712 if (!mappingp(json["PrimitiveKind"])) error("Expected object");
67136713 retval.primitive_kind = json["PrimitiveKind"];
6714+ if (!mappingp(json["sealed"])) error("Expected object");
6715+ retval.sealed = json["sealed"];
6716+ if (!mappingp(json["SEL"])) error("Expected object");
6717+ retval.sel = json["SEL"];
6718+ if (!mappingp(json["select"])) error("Expected object");
6719+ retval.select = json["select"];
67146720 if (!mappingp(json["Self"])) error("Expected object");
67156721 retval.self = json["Self"];
67166722 if (!mappingp(json["Sendable"])) error("Expected object");
@@ -6811,14 +6817,8 @@ Obj5 Obj5_from_JSON(mixed json) {
68116817 retval.union = json["union"];
68126818 if (!mappingp(json["unowned"])) error("Expected object");
68136819 retval.unowned = json["unowned"];
6814- if (!mappingp(json["unsafe"])) error("Expected object");
6815- retval.unsafe = json["unsafe"];
6816- if (!mappingp(json["unsigned"])) error("Expected object");
6817- retval.unsigned = json["unsigned"];
68186820 if (!mappingp(json["UseSerializers"])) error("Expected object");
68196821 retval.use_serializers = json["UseSerializers"];
6820- if (!mappingp(json["ushort"])) error("Expected object");
6821- retval.ushort = json["ushort"];
68226822
68236823 return retval;
68246824 }
@@ -7033,6 +7033,69 @@ PrimitiveKind PrimitiveKind_from_JSON(mixed json) {
70337033 return retval;
70347034 }
70357035
7036+class Sealed {
7037+ int sealed; // json: "sealed"
7038+
7039+ string encode_json() {
7040+ mapping(string:mixed) json = ([
7041+ "sealed" : sealed,
7042+ ]);
7043+
7044+ return Standards.JSON.encode(json);
7045+ }
7046+}
7047+
7048+Sealed Sealed_from_JSON(mixed json) {
7049+ Sealed retval = Sealed();
7050+
7051+ if (!intp(json["sealed"])) error("Expected integer");
7052+ retval.sealed = json["sealed"];
7053+
7054+ return retval;
7055+}
7056+
7057+class Sel {
7058+ int sel; // json: "SEL"
7059+
7060+ string encode_json() {
7061+ mapping(string:mixed) json = ([
7062+ "SEL" : sel,
7063+ ]);
7064+
7065+ return Standards.JSON.encode(json);
7066+ }
7067+}
7068+
7069+Sel Sel_from_JSON(mixed json) {
7070+ Sel retval = Sel();
7071+
7072+ if (!intp(json["SEL"])) error("Expected integer");
7073+ retval.sel = json["SEL"];
7074+
7075+ return retval;
7076+}
7077+
7078+class Select {
7079+ int select; // json: "select"
7080+
7081+ string encode_json() {
7082+ mapping(string:mixed) json = ([
7083+ "select" : select,
7084+ ]);
7085+
7086+ return Standards.JSON.encode(json);
7087+ }
7088+}
7089+
7090+Select Select_from_JSON(mixed json) {
7091+ Select retval = Select();
7092+
7093+ if (!intp(json["select"])) error("Expected integer");
7094+ retval.select = json["select"];
7095+
7096+ return retval;
7097+}
7098+
70367099 class Self {
70377100 int self; // json: "Self"
70387101
@@ -8083,48 +8146,6 @@ Unowned Unowned_from_JSON(mixed json) {
80838146 return retval;
80848147 }
80858148
8086-class Unsafe {
8087- int unsafe; // json: "unsafe"
8088-
8089- string encode_json() {
8090- mapping(string:mixed) json = ([
8091- "unsafe" : unsafe,
8092- ]);
8093-
8094- return Standards.JSON.encode(json);
8095- }
8096-}
8097-
8098-Unsafe Unsafe_from_JSON(mixed json) {
8099- Unsafe retval = Unsafe();
8100-
8101- if (!intp(json["unsafe"])) error("Expected integer");
8102- retval.unsafe = json["unsafe"];
8103-
8104- return retval;
8105-}
8106-
8107-class Unsigned {
8108- int unsigned; // json: "unsigned"
8109-
8110- string encode_json() {
8111- mapping(string:mixed) json = ([
8112- "unsigned" : unsigned,
8113- ]);
8114-
8115- return Standards.JSON.encode(json);
8116- }
8117-}
8118-
8119-Unsigned Unsigned_from_JSON(mixed json) {
8120- Unsigned retval = Unsigned();
8121-
8122- if (!intp(json["unsigned"])) error("Expected integer");
8123- retval.unsigned = json["unsigned"];
8124-
8125- return retval;
8126-}
8127-
81288149 class UseSerializers {
81298150 int use_serializers; // json: "UseSerializers"
81308151
@@ -8146,31 +8167,13 @@ UseSerializers UseSerializers_from_JSON(mixed json) {
81468167 return retval;
81478168 }
81488169
8149-class Ushort {
8150- int ushort; // json: "ushort"
8151-
8152- string encode_json() {
8153- mapping(string:mixed) json = ([
8154- "ushort" : ushort,
8155- ]);
8156-
8157- return Standards.JSON.encode(json);
8158- }
8159-}
8160-
8161-Ushort Ushort_from_JSON(mixed json) {
8162- Ushort retval = Ushort();
8163-
8164- if (!intp(json["ushort"])) error("Expected integer");
8165- retval.ushort = json["ushort"];
8166-
8167- return retval;
8168-}
8169-
81708170 class Obj6 {
81718171 int dummy; // json: "dummy"
81728172 Void obj6_void; // json: "void"
81738173 While obj6_while; // json: "while"
8174+ Unsafe unsafe; // json: "unsafe"
8175+ Unsigned unsigned; // json: "unsigned"
8176+ Ushort ushort; // json: "ushort"
81748177 Using using; // json: "using"
81758178 Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
81768179 Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter"
@@ -8193,6 +8196,9 @@ class Obj6 {
81938196 "dummy" : dummy,
81948197 "void" : obj6_void,
81958198 "while" : obj6_while,
8199+ "unsafe" : unsafe,
8200+ "unsigned" : unsigned,
8201+ "ushort" : ushort,
81968202 "using" : using,
81978203 "Utf8JsonReader" : utf8_json_reader,
81988204 "Utf8JsonWriter" : utf8_json_writer,
@@ -8224,6 +8230,12 @@ Obj6 Obj6_from_JSON(mixed json) {
82248230 retval.obj6_void = json["void"];
82258231 if (!mappingp(json["while"])) error("Expected object");
82268232 retval.obj6_while = json["while"];
8233+ if (!mappingp(json["unsafe"])) error("Expected object");
8234+ retval.unsafe = json["unsafe"];
8235+ if (!mappingp(json["unsigned"])) error("Expected object");
8236+ retval.unsigned = json["unsigned"];
8237+ if (!mappingp(json["ushort"])) error("Expected object");
8238+ retval.ushort = json["ushort"];
82278239 if (!mappingp(json["using"])) error("Expected object");
82288240 retval.using = json["using"];
82298241 if (!mappingp(json["Utf8JsonReader"])) error("Expected object");
@@ -8302,6 +8314,69 @@ While While_from_JSON(mixed json) {
83028314 return retval;
83038315 }
83048316
8317+class Unsafe {
8318+ int unsafe; // json: "unsafe"
8319+
8320+ string encode_json() {
8321+ mapping(string:mixed) json = ([
8322+ "unsafe" : unsafe,
8323+ ]);
8324+
8325+ return Standards.JSON.encode(json);
8326+ }
8327+}
8328+
8329+Unsafe Unsafe_from_JSON(mixed json) {
8330+ Unsafe retval = Unsafe();
8331+
8332+ if (!intp(json["unsafe"])) error("Expected integer");
8333+ retval.unsafe = json["unsafe"];
8334+
8335+ return retval;
8336+}
8337+
8338+class Unsigned {
8339+ int unsigned; // json: "unsigned"
8340+
8341+ string encode_json() {
8342+ mapping(string:mixed) json = ([
8343+ "unsigned" : unsigned,
8344+ ]);
8345+
8346+ return Standards.JSON.encode(json);
8347+ }
8348+}
8349+
8350+Unsigned Unsigned_from_JSON(mixed json) {
8351+ Unsigned retval = Unsigned();
8352+
8353+ if (!intp(json["unsigned"])) error("Expected integer");
8354+ retval.unsigned = json["unsigned"];
8355+
8356+ return retval;
8357+}
8358+
8359+class Ushort {
8360+ int ushort; // json: "ushort"
8361+
8362+ string encode_json() {
8363+ mapping(string:mixed) json = ([
8364+ "ushort" : ushort,
8365+ ]);
8366+
8367+ return Standards.JSON.encode(json);
8368+ }
8369+}
8370+
8371+Ushort Ushort_from_JSON(mixed json) {
8372+ Ushort retval = Ushort();
8373+
8374+ if (!intp(json["ushort"])) error("Expected integer");
8375+ retval.ushort = json["ushort"];
8376+
8377+ return retval;
8378+}
8379+
83058380 class Using {
83068381 int using; // json: "using"
Mpythondefault / quicktype.py+194 −137
@@ -3180,6 +3180,22 @@ class ListClass:
31803180 return result
31813181
31823182
3183+@dataclass
3184+class LocalDate:
3185+ local_date: int
3186+
3187+ @staticmethod
3188+ def from_dict(obj: Any) -> 'LocalDate':
3189+ assert isinstance(obj, dict)
3190+ local_date = from_int(obj["LocalDate"])
3191+ return LocalDate(local_date)
3192+
3193+ def to_dict(self) -> dict:
3194+ result: dict = {}
3195+ result["LocalDate"] = from_int(self.local_date)
3196+ return result
3197+
3198+
31833199 @dataclass
31843200 class Locale:
31853201 locale: int
@@ -3420,22 +3436,6 @@ class No:
34203436 return result
34213437
34223438
3423-@dataclass
3424-class Noexcept:
3425- noexcept: int
3426-
3427- @staticmethod
3428- def from_dict(obj: Any) -> 'Noexcept':
3429- assert isinstance(obj, dict)
3430- noexcept = from_int(obj["noexcept"])
3431- return Noexcept(noexcept)
3432-
3433- def to_dict(self) -> dict:
3434- result: dict = {}
3435- result["noexcept"] = from_int(self.noexcept)
3436- return result
3437-
3438-
34393439 @dataclass
34403440 class If:
34413441 if_if: int
@@ -3549,6 +3549,7 @@ class Obj3:
35493549 json_parser: JSONParser
35503550 json_reader: JSONReader
35513551 json_token_type: JSONTokenType
3552+ local_date: LocalDate
35523553 locale: Locale
35533554 map_entry: MapEntry
35543555 no: No
@@ -3598,7 +3599,6 @@ class Obj3:
35983599 new: New
35993600 newtonsoft: Newtonsoft
36003601 nil: Nil
3601- noexcept: Noexcept
36023602
36033603 @staticmethod
36043604 def from_dict(obj: Any) -> 'Obj3':
@@ -3618,6 +3618,7 @@ class Obj3:
36183618 json_parser = JSONParser.from_dict(obj["JsonParser"])
36193619 json_reader = JSONReader.from_dict(obj["JsonReader"])
36203620 json_token_type = JSONTokenType.from_dict(obj["JsonTokenType"])
3621+ local_date = LocalDate.from_dict(obj["LocalDate"])
36213622 locale = Locale.from_dict(obj["Locale"])
36223623 map_entry = MapEntry.from_dict(obj["MapEntry"])
36233624 no = No.from_dict(obj["NO"])
@@ -3667,8 +3668,7 @@ class Obj3:
36673668 new = New.from_dict(obj["new"])
36683669 newtonsoft = Newtonsoft.from_dict(obj["newtonsoft"])
36693670 nil = Nil.from_dict(obj["nil"])
3670- noexcept = Noexcept.from_dict(obj["noexcept"])
3671- return Obj3(hashable, hasher, imp, 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, map_entry, no, dummy, 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, namespace, native, new, newtonsoft, nil, noexcept)
3671+ return Obj3(hashable, hasher, imp, 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, map_entry, no, dummy, 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, namespace, native, new, newtonsoft, nil)
36723672
36733673 def to_dict(self) -> dict:
36743674 result: dict = {}
@@ -3687,6 +3687,7 @@ class Obj3:
36873687 result["JsonParser"] = to_class(JSONParser, self.json_parser)
36883688 result["JsonReader"] = to_class(JSONReader, self.json_reader)
36893689 result["JsonTokenType"] = to_class(JSONTokenType, self.json_token_type)
3690+ result["LocalDate"] = to_class(LocalDate, self.local_date)
36903691 result["Locale"] = to_class(Locale, self.locale)
36913692 result["MapEntry"] = to_class(MapEntry, self.map_entry)
36923693 result["NO"] = to_class(No, self.no)
@@ -3736,7 +3737,6 @@ class Obj3:
37363737 result["new"] = to_class(New, self.new)
37373738 result["newtonsoft"] = to_class(Newtonsoft, self.newtonsoft)
37383739 result["nil"] = to_class(Nil, self.nil)
3739- result["noexcept"] = to_class(Noexcept, self.noexcept)
37403740 return result
37413741
37423742
@@ -3756,6 +3756,22 @@ class NoSuchMethod:
37563756 return result
37573757
37583758
3759+@dataclass
3760+class Noexcept:
3761+ noexcept: int
3762+
3763+ @staticmethod
3764+ def from_dict(obj: Any) -> 'Noexcept':
3765+ assert isinstance(obj, dict)
3766+ noexcept = from_int(obj["noexcept"])
3767+ return Noexcept(noexcept)
3768+
3769+ def to_dict(self) -> dict:
3770+ result: dict = {}
3771+ result["noexcept"] = from_int(self.noexcept)
3772+ return result
3773+
3774+
37593775 @dataclass
37603776 class Nonatomic:
37613777 nonatomic: int
@@ -4124,6 +4140,38 @@ class Of:
41244140 return result
41254141
41264142
4143+@dataclass
4144+class OffsetDateTime:
4145+ offset_date_time: int
4146+
4147+ @staticmethod
4148+ def from_dict(obj: Any) -> 'OffsetDateTime':
4149+ assert isinstance(obj, dict)
4150+ offset_date_time = from_int(obj["OffsetDateTime"])
4151+ return OffsetDateTime(offset_date_time)
4152+
4153+ def to_dict(self) -> dict:
4154+ result: dict = {}
4155+ result["OffsetDateTime"] = from_int(self.offset_date_time)
4156+ return result
4157+
4158+
4159+@dataclass
4160+class OffsetTime:
4161+ offset_time: int
4162+
4163+ @staticmethod
4164+ def from_dict(obj: Any) -> 'OffsetTime':
4165+ assert isinstance(obj, dict)
4166+ offset_time = from_int(obj["OffsetTime"])
4167+ return OffsetTime(offset_time)
4168+
4169+ def to_dict(self) -> dict:
4170+ result: dict = {}
4171+ result["OffsetTime"] = from_int(self.offset_time)
4172+ return result
4173+
4174+
41274175 @dataclass
41284176 class Oneway:
41294177 oneway: int
@@ -4716,54 +4764,6 @@ class Sbyte:
47164764 return result
47174765
47184766
4719-@dataclass
4720-class Sealed:
4721- sealed: int
4722-
4723- @staticmethod
4724- def from_dict(obj: Any) -> 'Sealed':
4725- assert isinstance(obj, dict)
4726- sealed = from_int(obj["sealed"])
4727- return Sealed(sealed)
4728-
4729- def to_dict(self) -> dict:
4730- result: dict = {}
4731- result["sealed"] = from_int(self.sealed)
4732- return result
4733-
4734-
4735-@dataclass
4736-class Sel:
4737- sel: int
4738-
4739- @staticmethod
4740- def from_dict(obj: Any) -> 'Sel':
4741- assert isinstance(obj, dict)
4742- sel = from_int(obj["SEL"])
4743- return Sel(sel)
4744-
4745- def to_dict(self) -> dict:
4746- result: dict = {}
4747- result["SEL"] = from_int(self.sel)
4748- return result
4749-
4750-
4751-@dataclass
4752-class Select:
4753- select: int
4754-
4755- @staticmethod
4756- def from_dict(obj: Any) -> 'Select':
4757- assert isinstance(obj, dict)
4758- select = from_int(obj["select"])
4759- return Select(select)
4760-
4761- def to_dict(self) -> dict:
4762- result: dict = {}
4763- result["select"] = from_int(self.select)
4764- return result
4765-
4766-
47674767 @dataclass
47684768 class Obj4:
47694769 ns_error: NSError
@@ -4772,11 +4772,13 @@ class Obj4:
47724772 null: Null
47734773 none: NoneClass
47744774 object_mapper: ObjectMapper
4775+ offset_date_time: OffsetDateTime
4776+ offset_time: OffsetTime
47754777 protocol: Protocol
47764778 reg_exp: RegExp
4777- sel: Sel
47784779 dummy: int
47794780 no_such_method: NoSuchMethod
4781+ noexcept: Noexcept
47804782 nonatomic: Nonatomic
47814783 obj4_none: Obj4None
47824784 obj4_nonlocal: Nonlocal
@@ -4829,8 +4831,6 @@ class Obj4:
48294831 runtime_type: RuntimeType
48304832 s: S
48314833 sbyte: Sbyte
4832- sealed: Sealed
4833- select: Select
48344834
48354835 @staticmethod
48364836 def from_dict(obj: Any) -> 'Obj4':
@@ -4841,11 +4841,13 @@ class Obj4:
48414841 null = Null.from_dict(obj["NULL"])
48424842 none = NoneClass.from_dict(obj["None"])
48434843 object_mapper = ObjectMapper.from_dict(obj["ObjectMapper"])
4844+ offset_date_time = OffsetDateTime.from_dict(obj["OffsetDateTime"])
4845+ offset_time = OffsetTime.from_dict(obj["OffsetTime"])
48444846 protocol = Protocol.from_dict(obj["Protocol"])
48454847 reg_exp = RegExp.from_dict(obj["RegExp"])
4846- sel = Sel.from_dict(obj["SEL"])
48474848 dummy = from_int(obj["dummy"])
48484849 no_such_method = NoSuchMethod.from_dict(obj["noSuchMethod"])
4850+ noexcept = Noexcept.from_dict(obj["noexcept"])
48494851 nonatomic = Nonatomic.from_dict(obj["nonatomic"])
48504852 obj4_none = Obj4None.from_dict(obj["none"])
48514853 obj4_nonlocal = Nonlocal.from_dict(obj["nonlocal"])
@@ -4898,9 +4900,7 @@ class Obj4:
48984900 runtime_type = RuntimeType.from_dict(obj["runtimeType"])
48994901 s = S.from_dict(obj["s"])
49004902 sbyte = Sbyte.from_dict(obj["sbyte"])
4901- sealed = Sealed.from_dict(obj["sealed"])
4902- select = Select.from_dict(obj["select"])
4903- return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, protocol, reg_exp, sel, dummy, no_such_method, 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, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte, sealed, select)
4903+ return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, offset_date_time, offset_time, protocol, reg_exp, dummy, 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, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte)
49044904
49054905 def to_dict(self) -> dict:
49064906 result: dict = {}
@@ -4910,11 +4910,13 @@ class Obj4:
49104910 result["NULL"] = to_class(Null, self.null)
49114911 result["None"] = to_class(NoneClass, self.none)
49124912 result["ObjectMapper"] = to_class(ObjectMapper, self.object_mapper)
4913+ result["OffsetDateTime"] = to_class(OffsetDateTime, self.offset_date_time)
4914+ result["OffsetTime"] = to_class(OffsetTime, self.offset_time)
49134915 result["Protocol"] = to_class(Protocol, self.protocol)
49144916 result["RegExp"] = to_class(RegExp, self.reg_exp)
4915- result["SEL"] = to_class(Sel, self.sel)
49164917 result["dummy"] = from_int(self.dummy)
49174918 result["noSuchMethod"] = to_class(NoSuchMethod, self.no_such_method)
4919+ result["noexcept"] = to_class(Noexcept, self.noexcept)
49184920 result["nonatomic"] = to_class(Nonatomic, self.nonatomic)
49194921 result["none"] = to_class(Obj4None, self.obj4_none)
49204922 result["nonlocal"] = to_class(Nonlocal, self.obj4_nonlocal)
@@ -4967,8 +4969,6 @@ class Obj4:
49674969 result["runtimeType"] = to_class(RuntimeType, self.runtime_type)
49684970 result["s"] = to_class(S, self.s)
49694971 result["sbyte"] = to_class(Sbyte, self.sbyte)
4970- result["sealed"] = to_class(Sealed, self.sealed)
4971- result["select"] = to_class(Select, self.select)
49724972 return result
49734973
49744974
@@ -5084,6 +5084,54 @@ class SelfClass:
50845084 return result
50855085
50865086
5087+@dataclass
5088+class Sealed:
5089+ sealed: int
5090+
5091+ @staticmethod
5092+ def from_dict(obj: Any) -> 'Sealed':
5093+ assert isinstance(obj, dict)
5094+ sealed = from_int(obj["sealed"])
5095+ return Sealed(sealed)
5096+
5097+ def to_dict(self) -> dict:
5098+ result: dict = {}
5099+ result["sealed"] = from_int(self.sealed)
5100+ return result
5101+
5102+
5103+@dataclass
5104+class Sel:
5105+ sel: int
5106+
5107+ @staticmethod
5108+ def from_dict(obj: Any) -> 'Sel':
5109+ assert isinstance(obj, dict)
5110+ sel = from_int(obj["SEL"])
5111+ return Sel(sel)
5112+
5113+ def to_dict(self) -> dict:
5114+ result: dict = {}
5115+ result["SEL"] = from_int(self.sel)
5116+ return result
5117+
5118+
5119+@dataclass
5120+class Select:
5121+ select: int
5122+
5123+ @staticmethod
5124+ def from_dict(obj: Any) -> 'Select':
5125+ assert isinstance(obj, dict)
5126+ select = from_int(obj["select"])
5127+ return Select(select)
5128+
5129+ def to_dict(self) -> dict:
5130+ result: dict = {}
5131+ result["select"] = from_int(self.select)
5132+ return result
5133+
5134+
50875135 @dataclass
50885136 class Sendable:
50895137 sendable: int
@@ -5932,38 +5980,6 @@ class Unowned:
59325980 return result
59335981
59345982
5935-@dataclass
5936-class Unsafe:
5937- unsafe: int
5938-
5939- @staticmethod
5940- def from_dict(obj: Any) -> 'Unsafe':
5941- assert isinstance(obj, dict)
5942- unsafe = from_int(obj["unsafe"])
5943- return Unsafe(unsafe)
5944-
5945- def to_dict(self) -> dict:
5946- result: dict = {}
5947- result["unsafe"] = from_int(self.unsafe)
5948- return result
5949-
5950-
5951-@dataclass
5952-class Unsigned:
5953- unsigned: int
5954-
5955- @staticmethod
5956- def from_dict(obj: Any) -> 'Unsigned':
5957- assert isinstance(obj, dict)
5958- unsigned = from_int(obj["unsigned"])
5959- return Unsigned(unsigned)
5960-
5961- def to_dict(self) -> dict:
5962- result: dict = {}
5963- result["unsigned"] = from_int(self.unsigned)
5964- return result
5965-
5966-
59675983 @dataclass
59685984 class UseSerializers:
59695985 use_serializers: int
@@ -5980,26 +5996,11 @@ class UseSerializers:
59805996 return result
59815997
59825998
5983-@dataclass
5984-class Ushort:
5985- ushort: int
5986-
5987- @staticmethod
5988- def from_dict(obj: Any) -> 'Ushort':
5989- assert isinstance(obj, dict)
5990- ushort = from_int(obj["ushort"])
5991- return Ushort(ushort)
5992-
5993- def to_dict(self) -> dict:
5994- result: dict = {}
5995- result["ushort"] = from_int(self.ushort)
5996- return result
5997-
5998-
59995999 @dataclass
60006000 class Obj5:
60016001 k_serializer: KSerializer
60026002 primitive_kind: PrimitiveKind
6003+ sel: Sel
60036004 obj5_self: Self
60046005 sendable: Sendable
60056006 serial_descriptor: SerialDescriptor
@@ -6017,6 +6018,8 @@ class Obj5:
60176018 type: TypeClass
60186019 use_serializers: UseSerializers
60196020 dummy: int
6021+ sealed: Sealed
6022+ select: Select
60206023 purple_self: SelfClass
60216024 serialize: Serialize
60226025 set: Set
@@ -6060,15 +6063,13 @@ class Obj5:
60606063 undefined: Undefined
60616064 union: UnionClass
60626065 unowned: Unowned
6063- unsafe: Unsafe
6064- unsigned: Unsigned
6065- ushort: Ushort
60666066
60676067 @staticmethod
60686068 def from_dict(obj: Any) -> 'Obj5':
60696069 assert isinstance(obj, dict)
60706070 k_serializer = KSerializer.from_dict(obj["KSerializer"])
60716071 primitive_kind = PrimitiveKind.from_dict(obj["PrimitiveKind"])
6072+ sel = Sel.from_dict(obj["SEL"])
60726073 obj5_self = Self.from_dict(obj["Self"])
60736074 sendable = Sendable.from_dict(obj["Sendable"])
60746075 serial_descriptor = SerialDescriptor.from_dict(obj["SerialDescriptor"])
@@ -6086,6 +6087,8 @@ class Obj5:
60866087 type = TypeClass.from_dict(obj["Type"])
60876088 use_serializers = UseSerializers.from_dict(obj["UseSerializers"])
60886089 dummy = from_int(obj["dummy"])
6090+ sealed = Sealed.from_dict(obj["sealed"])
6091+ select = Select.from_dict(obj["select"])
60896092 purple_self = SelfClass.from_dict(obj["self"])
60906093 serialize = Serialize.from_dict(obj["serialize"])
60916094 set = Set.from_dict(obj["set"])
@@ -6129,15 +6132,13 @@ class Obj5:
61296132 undefined = Undefined.from_dict(obj["undefined"])
61306133 union = UnionClass.from_dict(obj["union"])
61316134 unowned = Unowned.from_dict(obj["unowned"])
6132- unsafe = Unsafe.from_dict(obj["unsafe"])
6133- unsigned = Unsigned.from_dict(obj["unsigned"])
6134- ushort = Ushort.from_dict(obj["ushort"])
6135- return Obj5(k_serializer, primitive_kind, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, dummy, 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, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort)
6135+ return Obj5(k_serializer, primitive_kind, sel, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, dummy, 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, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned)
61366136
61376137 def to_dict(self) -> dict:
61386138 result: dict = {}
61396139 result["KSerializer"] = to_class(KSerializer, self.k_serializer)
61406140 result["PrimitiveKind"] = to_class(PrimitiveKind, self.primitive_kind)
6141+ result["SEL"] = to_class(Sel, self.sel)
61416142 result["Self"] = to_class(Self, self.obj5_self)
61426143 result["Sendable"] = to_class(Sendable, self.sendable)
61436144 result["SerialDescriptor"] = to_class(SerialDescriptor, self.serial_descriptor)
@@ -6155,6 +6156,8 @@ class Obj5:
61556156 result["Type"] = to_class(TypeClass, self.type)
61566157 result["UseSerializers"] = to_class(UseSerializers, self.use_serializers)
61576158 result["dummy"] = from_int(self.dummy)
6159+ result["sealed"] = to_class(Sealed, self.sealed)
6160+ result["select"] = to_class(Select, self.select)
61586161 result["self"] = to_class(SelfClass, self.purple_self)
61596162 result["serialize"] = to_class(Serialize, self.serialize)
61606163 result["set"] = to_class(Set, self.set)
@@ -6198,9 +6201,6 @@ class Obj5:
61986201 result["undefined"] = to_class(Undefined, self.undefined)
61996202 result["union"] = to_class(UnionClass, self.union)
62006203 result["unowned"] = to_class(Unowned, self.unowned)
6201- result["unsafe"] = to_class(Unsafe, self.unsafe)
6202- result["unsigned"] = to_class(Unsigned, self.unsigned)
6203- result["ushort"] = to_class(Ushort, self.ushort)
62046204 return result
62056205
62066206
@@ -6252,6 +6252,54 @@ class Yield:
62526252 return result
62536253
62546254
6255+@dataclass
6256+class Unsafe:
6257+ unsafe: int
6258+
6259+ @staticmethod
6260+ def from_dict(obj: Any) -> 'Unsafe':
6261+ assert isinstance(obj, dict)
6262+ unsafe = from_int(obj["unsafe"])
6263+ return Unsafe(unsafe)
6264+
6265+ def to_dict(self) -> dict:
6266+ result: dict = {}
6267+ result["unsafe"] = from_int(self.unsafe)
6268+ return result
6269+
6270+
6271+@dataclass
6272+class Unsigned:
6273+ unsigned: int
6274+
6275+ @staticmethod
6276+ def from_dict(obj: Any) -> 'Unsigned':
6277+ assert isinstance(obj, dict)
6278+ unsigned = from_int(obj["unsigned"])
6279+ return Unsigned(unsigned)
6280+
6281+ def to_dict(self) -> dict:
6282+ result: dict = {}
6283+ result["unsigned"] = from_int(self.unsigned)
6284+ return result
6285+
6286+
6287+@dataclass
6288+class Ushort:
6289+ ushort: int
6290+
6291+ @staticmethod
6292+ def from_dict(obj: Any) -> 'Ushort':
6293+ assert isinstance(obj, dict)
6294+ ushort = from_int(obj["ushort"])
6295+ return Ushort(ushort)
6296+
6297+ def to_dict(self) -> dict:
6298+ result: dict = {}
6299+ result["ushort"] = from_int(self.ushort)
6300+ return result
6301+
6302+
62556303 @dataclass
62566304 class Using:
62576305 using: int
@@ -6499,6 +6547,9 @@ class Obj6:
64996547 utf8_json_writer: Utf8JSONWriter
65006548 yes: Yes
65016549 dummy: int
6550+ unsafe: Unsafe
6551+ unsigned: Unsigned
6552+ ushort: Ushort
65026553 using: Using
65036554 var: Var
65046555 virtual: Virtual
@@ -6522,6 +6573,9 @@ class Obj6:
65226573 utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
65236574 yes = Yes.from_dict(obj["YES"])
65246575 dummy = from_int(obj["dummy"])
6576+ unsafe = Unsafe.from_dict(obj["unsafe"])
6577+ unsigned = Unsigned.from_dict(obj["unsigned"])
6578+ ushort = Ushort.from_dict(obj["ushort"])
65256579 using = Using.from_dict(obj["using"])
65266580 var = Var.from_dict(obj["var"])
65276581 virtual = Virtual.from_dict(obj["virtual"])
@@ -6536,7 +6590,7 @@ class Obj6:
65366590 xor = Xor.from_dict(obj["xor"])
65376591 xor_eq = XorEq.from_dict(obj["xor_eq"])
65386592 obj6_yield = Yield.from_dict(obj["yield"])
6539- return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
6593+ return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, unsafe, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
65406594
65416595 def to_dict(self) -> dict:
65426596 result: dict = {}
@@ -6545,6 +6599,9 @@ class Obj6:
65456599 result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
65466600 result["YES"] = to_class(Yes, self.yes)
65476601 result["dummy"] = from_int(self.dummy)
6602+ result["unsafe"] = to_class(Unsafe, self.unsafe)
6603+ result["unsigned"] = to_class(Unsigned, self.unsigned)
6604+ result["ushort"] = to_class(Ushort, self.ushort)
65486605 result["using"] = to_class(Using, self.using)
65496606 result["var"] = to_class(Var, self.var)
65506607 result["virtual"] = to_class(Virtual, self.virtual)
Mrubydefault / TopLevel.rb+271 −187
@@ -4786,6 +4786,31 @@ class List < Dry::Struct
47864786 end
47874787 end
47884788
4789+class LocalDate < Dry::Struct
4790+ attribute :local_date, Types::Integer
4791+
4792+ def self.from_dynamic!(d)
4793+ d = Types::Hash[d]
4794+ new(
4795+ local_date: d.fetch("LocalDate"),
4796+ )
4797+ end
4798+
4799+ def self.from_json!(json)
4800+ from_dynamic!(JSON.parse(json))
4801+ end
4802+
4803+ def to_dynamic
4804+ {
4805+ "LocalDate" => local_date,
4806+ }
4807+ end
4808+
4809+ def to_json(options = nil)
4810+ JSON.generate(to_dynamic, options)
4811+ end
4812+end
4813+
47894814 class Locale < Dry::Struct
47904815 attribute :locale, Types::Integer
47914816
@@ -5086,31 +5111,6 @@ class No < Dry::Struct
50865111 end
50875112 end
50885113
5089-class Noexcept < Dry::Struct
5090- attribute :noexcept, Types::Integer
5091-
5092- def self.from_dynamic!(d)
5093- d = Types::Hash[d]
5094- new(
5095- noexcept: d.fetch("noexcept"),
5096- )
5097- end
5098-
5099- def self.from_json!(json)
5100- from_dynamic!(JSON.parse(json))
5101- end
5102-
5103- def to_dynamic
5104- {
5105- "noexcept" => noexcept,
5106- }
5107- end
5108-
5109- def to_json(options = nil)
5110- JSON.generate(to_dynamic, options)
5111- end
5112-end
5113-
51145114 class If < Dry::Struct
51155115 attribute :if_if, Types::Integer
51165116
@@ -5308,6 +5308,7 @@ class Obj3 < Dry::Struct
53085308 attribute :left, Left
53095309 attribute :let, Let
53105310 attribute :list, List
5311+ attribute :local_date, LocalDate
53115312 attribute :locale, Locale
53125313 attribute :lock, Lock
53135314 attribute :long, Long
@@ -5320,7 +5321,6 @@ class Obj3 < Dry::Struct
53205321 attribute :native, Native
53215322 attribute :newtonsoft, Newtonsoft
53225323 attribute :no, No
5323- attribute :noexcept, Noexcept
53245324 attribute :obj3_if, If
53255325 attribute :obj3_in, In
53265326 attribute :obj3_lambda, Lambda
@@ -5377,6 +5377,7 @@ class Obj3 < Dry::Struct
53775377 left: Left.from_dynamic!(d.fetch("left")),
53785378 let: Let.from_dynamic!(d.fetch("let")),
53795379 list: List.from_dynamic!(d.fetch("list")),
5380+ local_date: LocalDate.from_dynamic!(d.fetch("LocalDate")),
53805381 locale: Locale.from_dynamic!(d.fetch("Locale")),
53815382 lock: Lock.from_dynamic!(d.fetch("lock")),
53825383 long: Long.from_dynamic!(d.fetch("long")),
@@ -5389,7 +5390,6 @@ class Obj3 < Dry::Struct
53895390 native: Native.from_dynamic!(d.fetch("native")),
53905391 newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")),
53915392 no: No.from_dynamic!(d.fetch("NO")),
5392- noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")),
53935393 obj3_if: If.from_dynamic!(d.fetch("if")),
53945394 obj3_in: In.from_dynamic!(d.fetch("in")),
53955395 obj3_lambda: Lambda.from_dynamic!(d.fetch("lambda")),
@@ -5451,6 +5451,7 @@ class Obj3 < Dry::Struct
54515451 "left" => left.to_dynamic,
54525452 "let" => let.to_dynamic,
54535453 "list" => list.to_dynamic,
5454+ "LocalDate" => local_date.to_dynamic,
54545455 "Locale" => locale.to_dynamic,
54555456 "lock" => lock.to_dynamic,
54565457 "long" => long.to_dynamic,
@@ -5463,7 +5464,6 @@ class Obj3 < Dry::Struct
54635464 "native" => native.to_dynamic,
54645465 "newtonsoft" => newtonsoft.to_dynamic,
54655466 "NO" => no.to_dynamic,
5466- "noexcept" => noexcept.to_dynamic,
54675467 "if" => obj3_if.to_dynamic,
54685468 "in" => obj3_in.to_dynamic,
54695469 "lambda" => obj3_lambda.to_dynamic,
@@ -5503,6 +5503,31 @@ class NoSuchMethod < Dry::Struct
55035503 end
55045504 end
55055505
5506+class Noexcept < Dry::Struct
5507+ attribute :noexcept, Types::Integer
5508+
5509+ def self.from_dynamic!(d)
5510+ d = Types::Hash[d]
5511+ new(
5512+ noexcept: d.fetch("noexcept"),
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+ "noexcept" => noexcept,
5523+ }
5524+ end
5525+
5526+ def to_json(options = nil)
5527+ JSON.generate(to_dynamic, options)
5528+ end
5529+end
5530+
55065531 class Nonatomic < Dry::Struct
55075532 attribute :nonatomic, Types::Integer
55085533
@@ -6078,13 +6103,13 @@ class Return < Dry::Struct
60786103 end
60796104 end
60806105
6081-class Select < Dry::Struct
6082- attribute :select_select, Types::Integer
6106+class ObjectClass < Dry::Struct
6107+ attribute :object, Types::Integer
60836108
60846109 def self.from_dynamic!(d)
60856110 d = Types::Hash[d]
60866111 new(
6087- select_select: d.fetch("select"),
6112+ object: d.fetch("object"),
60886113 )
60896114 end
60906115
@@ -6094,7 +6119,7 @@ class Select < Dry::Struct
60946119
60956120 def to_dynamic
60966121 {
6097- "select" => select_select,
6122+ "object" => object,
60986123 }
60996124 end
61006125
@@ -6103,13 +6128,13 @@ class Select < Dry::Struct
61036128 end
61046129 end
61056130
6106-class ObjectClass < Dry::Struct
6107- attribute :object, Types::Integer
6131+class ObjectMapper < Dry::Struct
6132+ attribute :object_mapper, Types::Integer
61086133
61096134 def self.from_dynamic!(d)
61106135 d = Types::Hash[d]
61116136 new(
6112- object: d.fetch("object"),
6137+ object_mapper: d.fetch("ObjectMapper"),
61136138 )
61146139 end
61156140
@@ -6119,7 +6144,7 @@ class ObjectClass < Dry::Struct
61196144
61206145 def to_dynamic
61216146 {
6122- "object" => object,
6147+ "ObjectMapper" => object_mapper,
61236148 }
61246149 end
61256150
@@ -6128,13 +6153,13 @@ class ObjectClass < Dry::Struct
61286153 end
61296154 end
61306155
6131-class ObjectMapper < Dry::Struct
6132- attribute :object_mapper, Types::Integer
6156+class Of < Dry::Struct
6157+ attribute :of, Types::Integer
61336158
61346159 def self.from_dynamic!(d)
61356160 d = Types::Hash[d]
61366161 new(
6137- object_mapper: d.fetch("ObjectMapper"),
6162+ of: d.fetch("of"),
61386163 )
61396164 end
61406165
@@ -6144,7 +6169,7 @@ class ObjectMapper < Dry::Struct
61446169
61456170 def to_dynamic
61466171 {
6147- "ObjectMapper" => object_mapper,
6172+ "of" => of,
61486173 }
61496174 end
61506175
@@ -6153,13 +6178,13 @@ class ObjectMapper < Dry::Struct
61536178 end
61546179 end
61556180
6156-class Of < Dry::Struct
6157- attribute :of, Types::Integer
6181+class OffsetDateTime < Dry::Struct
6182+ attribute :offset_date_time, Types::Integer
61586183
61596184 def self.from_dynamic!(d)
61606185 d = Types::Hash[d]
61616186 new(
6162- of: d.fetch("of"),
6187+ offset_date_time: d.fetch("OffsetDateTime"),
61636188 )
61646189 end
61656190
@@ -6169,7 +6194,32 @@ class Of < Dry::Struct
61696194
61706195 def to_dynamic
61716196 {
6172- "of" => of,
6197+ "OffsetDateTime" => offset_date_time,
6198+ }
6199+ end
6200+
6201+ def to_json(options = nil)
6202+ JSON.generate(to_dynamic, options)
6203+ end
6204+end
6205+
6206+class OffsetTime < Dry::Struct
6207+ attribute :offset_time, Types::Integer
6208+
6209+ def self.from_dynamic!(d)
6210+ d = Types::Hash[d]
6211+ new(
6212+ offset_time: d.fetch("OffsetTime"),
6213+ )
6214+ end
6215+
6216+ def self.from_json!(json)
6217+ from_dynamic!(JSON.parse(json))
6218+ end
6219+
6220+ def to_dynamic
6221+ {
6222+ "OffsetTime" => offset_time,
61736223 }
61746224 end
61756225
@@ -7028,59 +7078,10 @@ class Sbyte < Dry::Struct
70287078 end
70297079 end
70307080
7031-class Sealed < Dry::Struct
7032- attribute :sealed, Types::Integer
7033-
7034- def self.from_dynamic!(d)
7035- d = Types::Hash[d]
7036- new(
7037- sealed: d.fetch("sealed"),
7038- )
7039- end
7040-
7041- def self.from_json!(json)
7042- from_dynamic!(JSON.parse(json))
7043- end
7044-
7045- def to_dynamic
7046- {
7047- "sealed" => sealed,
7048- }
7049- end
7050-
7051- def to_json(options = nil)
7052- JSON.generate(to_dynamic, options)
7053- end
7054-end
7055-
7056-class Sel < Dry::Struct
7057- attribute :sel, Types::Integer
7058-
7059- def self.from_dynamic!(d)
7060- d = Types::Hash[d]
7061- new(
7062- sel: d.fetch("SEL"),
7063- )
7064- end
7065-
7066- def self.from_json!(json)
7067- from_dynamic!(JSON.parse(json))
7068- end
7069-
7070- def to_dynamic
7071- {
7072- "SEL" => sel,
7073- }
7074- end
7075-
7076- def to_json(options = nil)
7077- JSON.generate(to_dynamic, options)
7078- end
7079-end
7080-
70817081 class Obj4 < Dry::Struct
70827082 attribute :dummy, Types::Integer
70837083 attribute :no_such_method, NoSuchMethod
7084+ attribute :noexcept, Noexcept
70847085 attribute :nonatomic, Nonatomic
70857086 attribute :none, None
70867087 attribute :nonlocal, Nonlocal
@@ -7104,10 +7105,11 @@ class Obj4 < Dry::Struct
71047105 attribute :obj4_raise, Raise
71057106 attribute :obj4_require, Require
71067107 attribute :obj4_return, Return
7107- attribute :obj4_select, Select
71087108 attribute :object, ObjectClass
71097109 attribute :object_mapper, ObjectMapper
71107110 attribute :of, Of
7111+ attribute :offset_date_time, OffsetDateTime
7112+ attribute :offset_time, OffsetTime
71117113 attribute :oneway, Oneway
71127114 attribute :operator, Operator
71137115 attribute :or_eq, OrEq
@@ -7142,14 +7144,13 @@ class Obj4 < Dry::Struct
71427144 attribute :runtime_type, RuntimeType
71437145 attribute :s, S
71447146 attribute :sbyte, Sbyte
7145- attribute :sealed, Sealed
7146- attribute :sel, Sel
71477147
71487148 def self.from_dynamic!(d)
71497149 d = Types::Hash[d]
71507150 new(
71517151 dummy: d.fetch("dummy"),
71527152 no_such_method: NoSuchMethod.from_dynamic!(d.fetch("noSuchMethod")),
7153+ noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")),
71537154 nonatomic: Nonatomic.from_dynamic!(d.fetch("nonatomic")),
71547155 none: None.from_dynamic!(d.fetch("None")),
71557156 nonlocal: Nonlocal.from_dynamic!(d.fetch("nonlocal")),
@@ -7173,10 +7174,11 @@ class Obj4 < Dry::Struct
71737174 obj4_raise: Raise.from_dynamic!(d.fetch("raise")),
71747175 obj4_require: Require.from_dynamic!(d.fetch("require")),
71757176 obj4_return: Return.from_dynamic!(d.fetch("return")),
7176- obj4_select: Select.from_dynamic!(d.fetch("select")),
71777177 object: ObjectClass.from_dynamic!(d.fetch("object")),
71787178 object_mapper: ObjectMapper.from_dynamic!(d.fetch("ObjectMapper")),
71797179 of: Of.from_dynamic!(d.fetch("of")),
7180+ offset_date_time: OffsetDateTime.from_dynamic!(d.fetch("OffsetDateTime")),
7181+ offset_time: OffsetTime.from_dynamic!(d.fetch("OffsetTime")),
71807182 oneway: Oneway.from_dynamic!(d.fetch("oneway")),
71817183 operator: Operator.from_dynamic!(d.fetch("operator")),
71827184 or_eq: OrEq.from_dynamic!(d.fetch("or_eq")),
@@ -7211,8 +7213,6 @@ class Obj4 < Dry::Struct
72117213 runtime_type: RuntimeType.from_dynamic!(d.fetch("runtimeType")),
72127214 s: S.from_dynamic!(d.fetch("s")),
72137215 sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")),
7214- sealed: Sealed.from_dynamic!(d.fetch("sealed")),
7215- sel: Sel.from_dynamic!(d.fetch("SEL")),
72167216 )
72177217 end
72187218
@@ -7224,6 +7224,7 @@ class Obj4 < Dry::Struct
72247224 {
72257225 "dummy" => dummy,
72267226 "noSuchMethod" => no_such_method.to_dynamic,
7227+ "noexcept" => noexcept.to_dynamic,
72277228 "nonatomic" => nonatomic.to_dynamic,
72287229 "None" => none.to_dynamic,
72297230 "nonlocal" => nonlocal.to_dynamic,
@@ -7247,10 +7248,11 @@ class Obj4 < Dry::Struct
72477248 "raise" => obj4_raise.to_dynamic,
72487249 "require" => obj4_require.to_dynamic,
72497250 "return" => obj4_return.to_dynamic,
7250- "select" => obj4_select.to_dynamic,
72517251 "object" => object.to_dynamic,
72527252 "ObjectMapper" => object_mapper.to_dynamic,
72537253 "of" => of.to_dynamic,
7254+ "OffsetDateTime" => offset_date_time.to_dynamic,
7255+ "OffsetTime" => offset_time.to_dynamic,
72547256 "oneway" => oneway.to_dynamic,
72557257 "operator" => operator.to_dynamic,
72567258 "or_eq" => or_eq.to_dynamic,
@@ -7285,8 +7287,6 @@ class Obj4 < Dry::Struct
72857287 "runtimeType" => runtime_type.to_dynamic,
72867288 "s" => s.to_dynamic,
72877289 "sbyte" => sbyte.to_dynamic,
7288- "sealed" => sealed.to_dynamic,
7289- "SEL" => sel.to_dynamic,
72907290 }
72917291 end
72927292
@@ -7320,6 +7320,31 @@ class KSerializer < Dry::Struct
73207320 end
73217321 end
73227322
7323+class Select < Dry::Struct
7324+ attribute :select_select, Types::Integer
7325+
7326+ def self.from_dynamic!(d)
7327+ d = Types::Hash[d]
7328+ new(
7329+ select_select: d.fetch("select"),
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+ "select" => select_select,
7340+ }
7341+ end
7342+
7343+ def to_json(options = nil)
7344+ JSON.generate(to_dynamic, options)
7345+ end
7346+end
7347+
73237348 class SelfClass < Dry::Struct
73247349 attribute :self_self, Types::Integer
73257350
@@ -7570,6 +7595,56 @@ class PrimitiveKind < Dry::Struct
75707595 end
75717596 end
75727597
7598+class Sealed < Dry::Struct
7599+ attribute :sealed, Types::Integer
7600+
7601+ def self.from_dynamic!(d)
7602+ d = Types::Hash[d]
7603+ new(
7604+ sealed: d.fetch("sealed"),
7605+ )
7606+ end
7607+
7608+ def self.from_json!(json)
7609+ from_dynamic!(JSON.parse(json))
7610+ end
7611+
7612+ def to_dynamic
7613+ {
7614+ "sealed" => sealed,
7615+ }
7616+ end
7617+
7618+ def to_json(options = nil)
7619+ JSON.generate(to_dynamic, options)
7620+ end
7621+end
7622+
7623+class Sel < Dry::Struct
7624+ attribute :sel, Types::Integer
7625+
7626+ def self.from_dynamic!(d)
7627+ d = Types::Hash[d]
7628+ new(
7629+ sel: d.fetch("SEL"),
7630+ )
7631+ end
7632+
7633+ def self.from_json!(json)
7634+ from_dynamic!(JSON.parse(json))
7635+ end
7636+
7637+ def to_dynamic
7638+ {
7639+ "SEL" => sel,
7640+ }
7641+ end
7642+
7643+ def to_json(options = nil)
7644+ JSON.generate(to_dynamic, options)
7645+ end
7646+end
7647+
75737648 class Obj5Self < Dry::Struct
75747649 attribute :self_self, Types::Integer
75757650
@@ -8795,56 +8870,6 @@ class Unowned < Dry::Struct
87958870 end
87968871 end
87978872
8798-class Unsafe < Dry::Struct
8799- attribute :unsafe, Types::Integer
8800-
8801- def self.from_dynamic!(d)
8802- d = Types::Hash[d]
8803- new(
8804- unsafe: d.fetch("unsafe"),
8805- )
8806- end
8807-
8808- def self.from_json!(json)
8809- from_dynamic!(JSON.parse(json))
8810- end
8811-
8812- def to_dynamic
8813- {
8814- "unsafe" => unsafe,
8815- }
8816- end
8817-
8818- def to_json(options = nil)
8819- JSON.generate(to_dynamic, options)
8820- end
8821-end
8822-
8823-class Unsigned < Dry::Struct
8824- attribute :unsigned, Types::Integer
8825-
8826- def self.from_dynamic!(d)
8827- d = Types::Hash[d]
8828- new(
8829- unsigned: d.fetch("unsigned"),
8830- )
8831- end
8832-
8833- def self.from_json!(json)
8834- from_dynamic!(JSON.parse(json))
8835- end
8836-
8837- def to_dynamic
8838- {
8839- "unsigned" => unsigned,
8840- }
8841- end
8842-
8843- def to_json(options = nil)
8844- JSON.generate(to_dynamic, options)
8845- end
8846-end
8847-
88488873 class UseSerializers < Dry::Struct
88498874 attribute :use_serializers, Types::Integer
88508875
@@ -8870,34 +8895,10 @@ class UseSerializers < Dry::Struct
88708895 end
88718896 end
88728897
8873-class Ushort < Dry::Struct
8874- attribute :ushort, Types::Integer
8875-
8876- def self.from_dynamic!(d)
8877- d = Types::Hash[d]
8878- new(
8879- ushort: d.fetch("ushort"),
8880- )
8881- end
8882-
8883- def self.from_json!(json)
8884- from_dynamic!(JSON.parse(json))
8885- end
8886-
8887- def to_dynamic
8888- {
8889- "ushort" => ushort,
8890- }
8891- end
8892-
8893- def to_json(options = nil)
8894- JSON.generate(to_dynamic, options)
8895- end
8896-end
8897-
88988898 class Obj5 < Dry::Struct
88998899 attribute :dummy, Types::Integer
89008900 attribute :k_serializer, KSerializer
8901+ attribute :obj5_select, Select
89018902 attribute :obj5_self, SelfClass
89028903 attribute :obj5_super, Super
89038904 attribute :obj5_system, System
@@ -8908,6 +8909,8 @@ class Obj5 < Dry::Struct
89088909 attribute :obj5_try, Try
89098910 attribute :obj5_type, Type
89108911 attribute :primitive_kind, PrimitiveKind
8912+ attribute :sealed, Sealed
8913+ attribute :sel, Sel
89118914 attribute :self_1, Obj5Self
89128915 attribute :sendable, Sendable
89138916 attribute :serial_descriptor, SerialDescriptor
@@ -8957,16 +8960,14 @@ class Obj5 < Dry::Struct
89578960 attribute :undefined, UndefinedClass
89588961 attribute :union, Union
89598962 attribute :unowned, Unowned
8960- attribute :unsafe, Unsafe
8961- attribute :unsigned, Unsigned
89628963 attribute :use_serializers, UseSerializers
8963- attribute :ushort, Ushort
89648964
89658965 def self.from_dynamic!(d)
89668966 d = Types::Hash[d]
89678967 new(
89688968 dummy: d.fetch("dummy"),
89698969 k_serializer: KSerializer.from_dynamic!(d.fetch("KSerializer")),
8970+ obj5_select: Select.from_dynamic!(d.fetch("select")),
89708971 obj5_self: SelfClass.from_dynamic!(d.fetch("Self")),
89718972 obj5_super: Super.from_dynamic!(d.fetch("super")),
89728973 obj5_system: System.from_dynamic!(d.fetch("system")),
@@ -8977,6 +8978,8 @@ class Obj5 < Dry::Struct
89778978 obj5_try: Try.from_dynamic!(d.fetch("try")),
89788979 obj5_type: Type.from_dynamic!(d.fetch("Type")),
89798980 primitive_kind: PrimitiveKind.from_dynamic!(d.fetch("PrimitiveKind")),
8981+ sealed: Sealed.from_dynamic!(d.fetch("sealed")),
8982+ sel: Sel.from_dynamic!(d.fetch("SEL")),
89808983 self_1: Obj5Self.from_dynamic!(d.fetch("self")),
89818984 sendable: Sendable.from_dynamic!(d.fetch("Sendable")),
89828985 serial_descriptor: SerialDescriptor.from_dynamic!(d.fetch("SerialDescriptor")),
@@ -9026,10 +9029,7 @@ class Obj5 < Dry::Struct
90269029 undefined: UndefinedClass.from_dynamic!(d.fetch("undefined")),
90279030 union: Union.from_dynamic!(d.fetch("union")),
90289031 unowned: Unowned.from_dynamic!(d.fetch("unowned")),
9029- unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")),
9030- unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")),
90319032 use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")),
9032- ushort: Ushort.from_dynamic!(d.fetch("ushort")),
90339033 )
90349034 end
90359035
@@ -9041,6 +9041,7 @@ class Obj5 < Dry::Struct
90419041 {
90429042 "dummy" => dummy,
90439043 "KSerializer" => k_serializer.to_dynamic,
9044+ "select" => obj5_select.to_dynamic,
90449045 "Self" => obj5_self.to_dynamic,
90459046 "super" => obj5_super.to_dynamic,
90469047 "system" => obj5_system.to_dynamic,
@@ -9051,6 +9052,8 @@ class Obj5 < Dry::Struct
90519052 "try" => obj5_try.to_dynamic,
90529053 "Type" => obj5_type.to_dynamic,
90539054 "PrimitiveKind" => primitive_kind.to_dynamic,
9055+ "sealed" => sealed.to_dynamic,
9056+ "SEL" => sel.to_dynamic,
90549057 "self" => self_1.to_dynamic,
90559058 "Sendable" => sendable.to_dynamic,
90569059 "SerialDescriptor" => serial_descriptor.to_dynamic,
@@ -9100,10 +9103,7 @@ class Obj5 < Dry::Struct
91009103 "undefined" => undefined.to_dynamic,
91019104 "union" => union.to_dynamic,
91029105 "unowned" => unowned.to_dynamic,
9103- "unsafe" => unsafe.to_dynamic,
9104- "unsigned" => unsigned.to_dynamic,
91059106 "UseSerializers" => use_serializers.to_dynamic,
9106- "ushort" => ushort.to_dynamic,
91079107 }
91089108 end
91099109
@@ -9187,6 +9187,81 @@ class Yield < Dry::Struct
91879187 end
91889188 end
91899189
9190+class Unsafe < Dry::Struct
9191+ attribute :unsafe, Types::Integer
9192+
9193+ def self.from_dynamic!(d)
9194+ d = Types::Hash[d]
9195+ new(
9196+ unsafe: d.fetch("unsafe"),
9197+ )
9198+ end
9199+
9200+ def self.from_json!(json)
9201+ from_dynamic!(JSON.parse(json))
9202+ end
9203+
9204+ def to_dynamic
9205+ {
9206+ "unsafe" => unsafe,
9207+ }
9208+ end
9209+
9210+ def to_json(options = nil)
9211+ JSON.generate(to_dynamic, options)
9212+ end
9213+end
9214+
9215+class Unsigned < Dry::Struct
9216+ attribute :unsigned, Types::Integer
9217+
9218+ def self.from_dynamic!(d)
9219+ d = Types::Hash[d]
9220+ new(
9221+ unsigned: d.fetch("unsigned"),
9222+ )
9223+ end
9224+
9225+ def self.from_json!(json)
9226+ from_dynamic!(JSON.parse(json))
9227+ end
9228+
9229+ def to_dynamic
9230+ {
9231+ "unsigned" => unsigned,
9232+ }
9233+ end
9234+
9235+ def to_json(options = nil)
9236+ JSON.generate(to_dynamic, options)
9237+ end
9238+end
9239+
9240+class Ushort < Dry::Struct
9241+ attribute :ushort, Types::Integer
9242+
9243+ def self.from_dynamic!(d)
9244+ d = Types::Hash[d]
9245+ new(
9246+ ushort: d.fetch("ushort"),
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+ "ushort" => ushort,
9257+ }
9258+ end
9259+
9260+ def to_json(options = nil)
9261+ JSON.generate(to_dynamic, options)
9262+ end
9263+end
9264+
91909265 class Using < Dry::Struct
91919266 attribute :using, Types::Integer
91929267
@@ -9567,6 +9642,9 @@ class Obj6 < Dry::Struct
95679642 attribute :obj6_while, While
95689643 attribute :obj6_with, With
95699644 attribute :obj6_yield, Yield
9645+ attribute :unsafe, Unsafe
9646+ attribute :unsigned, Unsigned
9647+ attribute :ushort, Ushort
95709648 attribute :using, Using
95719649 attribute :utf8_json_reader, Utf8JSONReader
95729650 attribute :utf8_json_writer, Utf8JSONWriter
@@ -9590,6 +9668,9 @@ class Obj6 < Dry::Struct
95909668 obj6_while: While.from_dynamic!(d.fetch("while")),
95919669 obj6_with: With.from_dynamic!(d.fetch("with")),
95929670 obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9671+ unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")),
9672+ unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")),
9673+ ushort: Ushort.from_dynamic!(d.fetch("ushort")),
95939674 using: Using.from_dynamic!(d.fetch("using")),
95949675 utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
95959676 utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")),
@@ -9618,6 +9699,9 @@ class Obj6 < Dry::Struct
96189699 "while" => obj6_while.to_dynamic,
96199700 "with" => obj6_with.to_dynamic,
96209701 "yield" => obj6_yield.to_dynamic,
9702+ "unsafe" => unsafe.to_dynamic,
9703+ "unsigned" => unsigned.to_dynamic,
9704+ "ushort" => ushort.to_dynamic,
96219705 "using" => using.to_dynamic,
96229706 "Utf8JsonReader" => utf8_json_reader.to_dynamic,
96239707 "Utf8JsonWriter" => utf8_json_writer.to_dynamic,
Mrustdefault / module_under_test.rs+80 −53
@@ -1143,6 +1143,9 @@ pub struct Obj3 {
11431143
11441144 pub list: List,
11451145
1146+ #[serde(rename = "LocalDate")]
1147+ pub local_date: LocalDate,
1148+
11461149 #[serde(rename = "Locale")]
11471150 pub locale: Locale,
11481151
@@ -1176,8 +1179,6 @@ pub struct Obj3 {
11761179 #[serde(rename = "NO")]
11771180 pub no: No,
11781181
1179- pub noexcept: Noexcept,
1180-
11811182 #[serde(rename = "if")]
11821183 pub obj3_if: If,
11831184
@@ -1435,6 +1436,12 @@ pub struct List {
14351436 pub list: i64,
14361437 }
14371438
1439+#[derive(Debug, Clone, Serialize, Deserialize)]
1440+#[serde(rename_all = "PascalCase")]
1441+pub struct LocalDate {
1442+ pub local_date: i64,
1443+}
1444+
14381445 #[derive(Debug, Clone, Serialize, Deserialize)]
14391446 #[serde(rename_all = "PascalCase")]
14401447 pub struct Locale {
@@ -1513,11 +1520,6 @@ pub struct No {
15131520 pub no: i64,
15141521 }
15151522
1516-#[derive(Debug, Clone, Serialize, Deserialize)]
1517-pub struct Noexcept {
1518- pub noexcept: i64,
1519-}
1520-
15211523 #[derive(Debug, Clone, Serialize, Deserialize)]
15221524 pub struct If {
15231525 #[serde(rename = "if")]
@@ -1543,6 +1545,8 @@ pub struct Obj4 {
15431545 #[serde(rename = "noSuchMethod")]
15441546 pub no_such_method: NoSuchMethod,
15451547
1548+ pub noexcept: Noexcept,
1549+
15461550 pub nonatomic: Nonatomic,
15471551
15481552 #[serde(rename = "None")]
@@ -1597,6 +1601,12 @@ pub struct Obj4 {
15971601
15981602 pub of: Of,
15991603
1604+ #[serde(rename = "OffsetDateTime")]
1605+ pub offset_date_time: OffsetDateTime,
1606+
1607+ #[serde(rename = "OffsetTime")]
1608+ pub offset_time: OffsetTime,
1609+
16001610 pub oneway: Oneway,
16011611
16021612 pub open: Open,
@@ -1678,13 +1688,6 @@ pub struct Obj4 {
16781688 pub s: S,
16791689
16801690 pub sbyte: Sbyte,
1681-
1682- pub sealed: Sealed,
1683-
1684- #[serde(rename = "SEL")]
1685- pub sel: Sel,
1686-
1687- pub select: Select,
16881691 }
16891692
16901693 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -1693,6 +1696,11 @@ pub struct NoSuchMethod {
16931696 pub no_such_method: i64,
16941697 }
16951698
1699+#[derive(Debug, Clone, Serialize, Deserialize)]
1700+pub struct Noexcept {
1701+ pub noexcept: i64,
1702+}
1703+
16961704 #[derive(Debug, Clone, Serialize, Deserialize)]
16971705 pub struct Nonatomic {
16981706 pub nonatomic: i64,
@@ -1810,6 +1818,18 @@ pub struct Of {
18101818 pub of: i64,
18111819 }
18121820
1821+#[derive(Debug, Clone, Serialize, Deserialize)]
1822+#[serde(rename_all = "PascalCase")]
1823+pub struct OffsetDateTime {
1824+ pub offset_date_time: i64,
1825+}
1826+
1827+#[derive(Debug, Clone, Serialize, Deserialize)]
1828+#[serde(rename_all = "PascalCase")]
1829+pub struct OffsetTime {
1830+ pub offset_time: i64,
1831+}
1832+
18131833 #[derive(Debug, Clone, Serialize, Deserialize)]
18141834 pub struct Oneway {
18151835 pub oneway: i64,
@@ -2009,22 +2029,6 @@ pub struct Sbyte {
20092029 pub sbyte: i64,
20102030 }
20112031
2012-#[derive(Debug, Clone, Serialize, Deserialize)]
2013-pub struct Sealed {
2014- pub sealed: i64,
2015-}
2016-
2017-#[derive(Debug, Clone, Serialize, Deserialize)]
2018-#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2019-pub struct Sel {
2020- pub sel: i64,
2021-}
2022-
2023-#[derive(Debug, Clone, Serialize, Deserialize)]
2024-pub struct Select {
2025- pub select: i64,
2026-}
2027-
20282032 #[derive(Debug, Clone, Serialize, Deserialize)]
20292033 pub struct Obj5 {
20302034 pub dummy: i64,
@@ -2059,9 +2063,6 @@ pub struct Obj5 {
20592063 #[serde(rename = "union")]
20602064 pub obj5_union: Union,
20612065
2062- #[serde(rename = "unsafe")]
2063- pub obj5_unsafe: Unsafe,
2064-
20652066 #[serde(rename = "PrimitiveKind")]
20662067 pub primitive_kind: PrimitiveKind,
20672068
@@ -2074,6 +2075,13 @@ pub struct Obj5 {
20742075 #[serde(rename = "type")]
20752076 pub purple_type: TypeClass,
20762077
2078+ pub sealed: Sealed,
2079+
2080+ #[serde(rename = "SEL")]
2081+ pub sel: Sel,
2082+
2083+ pub select: Select,
2084+
20772085 #[serde(rename = "Sendable")]
20782086 pub sendable: Sendable,
20792087
@@ -2179,12 +2187,8 @@ pub struct Obj5 {
21792187
21802188 pub unowned: Unowned,
21812189
2182- pub unsigned: Unsigned,
2183-
21842190 #[serde(rename = "UseSerializers")]
21852191 pub use_serializers: UseSerializers,
2186-
2187- pub ushort: Ushort,
21882192 }
21892193
21902194 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2250,12 +2254,6 @@ pub struct Union {
22502254 pub union_union: i64,
22512255 }
22522256
2253-#[derive(Debug, Clone, Serialize, Deserialize)]
2254-pub struct Unsafe {
2255- #[serde(rename = "unsafe")]
2256- pub unsafe_unsafe: i64,
2257-}
2258-
22592257 #[derive(Debug, Clone, Serialize, Deserialize)]
22602258 #[serde(rename_all = "PascalCase")]
22612259 pub struct PrimitiveKind {
@@ -2280,6 +2278,22 @@ pub struct TypeClass {
22802278 pub type_type: i64,
22812279 }
22822280
2281+#[derive(Debug, Clone, Serialize, Deserialize)]
2282+pub struct Sealed {
2283+ pub sealed: i64,
2284+}
2285+
2286+#[derive(Debug, Clone, Serialize, Deserialize)]
2287+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2288+pub struct Sel {
2289+ pub sel: i64,
2290+}
2291+
2292+#[derive(Debug, Clone, Serialize, Deserialize)]
2293+pub struct Select {
2294+ pub select: i64,
2295+}
2296+
22832297 #[derive(Debug, Clone, Serialize, Deserialize)]
22842298 #[serde(rename_all = "PascalCase")]
22852299 pub struct Sendable {
@@ -2523,26 +2537,19 @@ pub struct Unowned {
25232537 pub unowned: i64,
25242538 }
25252539
2526-#[derive(Debug, Clone, Serialize, Deserialize)]
2527-pub struct Unsigned {
2528- pub unsigned: i64,
2529-}
2530-
25312540 #[derive(Debug, Clone, Serialize, Deserialize)]
25322541 #[serde(rename_all = "PascalCase")]
25332542 pub struct UseSerializers {
25342543 pub use_serializers: i64,
25352544 }
25362545
2537-#[derive(Debug, Clone, Serialize, Deserialize)]
2538-pub struct Ushort {
2539- pub ushort: i64,
2540-}
2541-
25422546 #[derive(Debug, Clone, Serialize, Deserialize)]
25432547 pub struct Obj6 {
25442548 pub dummy: i64,
25452549
2550+ #[serde(rename = "unsafe")]
2551+ pub obj6_unsafe: Unsafe,
2552+
25462553 #[serde(rename = "virtual")]
25472554 pub obj6_virtual: Virtual,
25482555
@@ -2555,6 +2562,10 @@ pub struct Obj6 {
25552562 #[serde(rename = "yield")]
25562563 pub obj6_yield: Yield,
25572564
2565+ pub unsigned: Unsigned,
2566+
2567+ pub ushort: Ushort,
2568+
25582569 pub using: Using,
25592570
25602571 #[serde(rename = "Utf8JsonReader")]
@@ -2589,6 +2600,12 @@ pub struct Obj6 {
25892600 pub yes: Yes,
25902601 }
25912602
2603+#[derive(Debug, Clone, Serialize, Deserialize)]
2604+pub struct Unsafe {
2605+ #[serde(rename = "unsafe")]
2606+ pub unsafe_unsafe: i64,
2607+}
2608+
25922609 #[derive(Debug, Clone, Serialize, Deserialize)]
25932610 pub struct Virtual {
25942611 #[serde(rename = "virtual")]
@@ -2613,6 +2630,16 @@ pub struct Yield {
26132630 pub yield_yield: i64,
26142631 }
26152632
2633+#[derive(Debug, Clone, Serialize, Deserialize)]
2634+pub struct Unsigned {
2635+ pub unsigned: i64,
2636+}
2637+
2638+#[derive(Debug, Clone, Serialize, Deserialize)]
2639+pub struct Ushort {
2640+ pub ushort: i64,
2641+}
2642+
26162643 #[derive(Debug, Clone, Serialize, Deserialize)]
26172644 pub struct Using {
26182645 pub using: i64,
Mscala3-upickledefault / TopLevel.scala+52 −37
@@ -803,6 +803,7 @@ case class Obj3 (
803803 val left : Left,
804804 val let : Let,
805805 val list : ListClass,
806+ val LocalDate : LocalDate,
806807 val Locale : Locale,
807808 val lock : Lock,
808809 val long : LongClass,
@@ -817,7 +818,6 @@ case class Obj3 (
817818 val newtonsoft : Newtonsoft,
818819 val nil : Nil,
819820 val NO : No,
820- val noexcept : Noexcept,
821821 val `if` : If,
822822 val `implicit` : Implicit,
823823 val `import` : Import,
@@ -1002,6 +1002,10 @@ case class ListClass (
10021002 val list : Long
10031003 ) derives OptionPickler.ReadWriter
10041004
1005+case class LocalDate (
1006+ val LocalDate : Long
1007+) derives OptionPickler.ReadWriter
1008+
10051009 case class Locale (
10061010 val Locale : Long
10071011 ) derives OptionPickler.ReadWriter
@@ -1058,10 +1062,6 @@ case class No (
10581062 val NO : Long
10591063 ) derives OptionPickler.ReadWriter
10601064
1061-case class Noexcept (
1062- val noexcept : Long
1063-) derives OptionPickler.ReadWriter
1064-
10651065 case class If (
10661066 val `if` : Long
10671067 ) derives OptionPickler.ReadWriter
@@ -1085,6 +1085,7 @@ case class New (
10851085 case class Obj4 (
10861086 val dummy : Long,
10871087 val noSuchMethod : NoSuchMethod,
1088+ val noexcept : Noexcept,
10881089 val nonatomic : Nonatomic,
10891090 val None : NoneClass,
10901091 val nonlocal : Nonlocal,
@@ -1106,9 +1107,10 @@ case class Obj4 (
11061107 val `protected` : Protected,
11071108 val protocol : ProtocolClass,
11081109 val `return` : Return,
1109- val `sealed` : Sealed,
11101110 val ObjectMapper : ObjectMapper,
11111111 val of : Of,
1112+ val OffsetDateTime : OffsetDateTime,
1113+ val OffsetTime : OffsetTime,
11121114 val oneway : Oneway,
11131115 val open : Open,
11141116 val operator : Operator,
@@ -1145,15 +1147,17 @@ case class Obj4 (
11451147 val right : Right,
11461148 val runtimeType : RuntimeType,
11471149 val s : S,
1148- val sbyte : Sbyte,
1149- val SEL : Sel,
1150- val select : Select
1150+ val sbyte : Sbyte
11511151 ) derives OptionPickler.ReadWriter
11521152
11531153 case class NoSuchMethod (
11541154 val noSuchMethod : Long
11551155 ) derives OptionPickler.ReadWriter
11561156
1157+case class Noexcept (
1158+ val noexcept : Long
1159+) derives OptionPickler.ReadWriter
1160+
11571161 case class Nonatomic (
11581162 val nonatomic : Long
11591163 ) derives OptionPickler.ReadWriter
@@ -1238,10 +1242,6 @@ case class Return (
12381242 val `return` : Long
12391243 ) derives OptionPickler.ReadWriter
12401244
1241-case class Sealed (
1242- val `sealed` : Long
1243-) derives OptionPickler.ReadWriter
1244-
12451245 case class ObjectMapper (
12461246 val ObjectMapper : Long
12471247 ) derives OptionPickler.ReadWriter
@@ -1250,6 +1250,14 @@ case class Of (
12501250 val of : Long
12511251 ) derives OptionPickler.ReadWriter
12521252
1253+case class OffsetDateTime (
1254+ val OffsetDateTime : Long
1255+) derives OptionPickler.ReadWriter
1256+
1257+case class OffsetTime (
1258+ val OffsetTime : Long
1259+) derives OptionPickler.ReadWriter
1260+
12531261 case class Oneway (
12541262 val oneway : Long
12551263 ) derives OptionPickler.ReadWriter
@@ -1398,17 +1406,10 @@ case class Sbyte (
13981406 val sbyte : Long
13991407 ) derives OptionPickler.ReadWriter
14001408
1401-case class Sel (
1402- val SEL : Long
1403-) derives OptionPickler.ReadWriter
1404-
1405-case class Select (
1406- val select : Long
1407-) derives OptionPickler.ReadWriter
1408-
14091409 case class Obj5 (
14101410 val dummy : Long,
14111411 val KSerializer : KSerializer,
1412+ val `sealed` : Sealed,
14121413 val self : SelfClass,
14131414 val `super` : Super,
14141415 val `then` : Then,
@@ -1420,6 +1421,8 @@ case class Obj5 (
14201421 val PrimitiveKind : PrimitiveKind,
14211422 val `true` : TrueClass,
14221423 val `type` : TypeClass,
1424+ val SEL : Sel,
1425+ val select : Select,
14231426 val Self : Self,
14241427 val Sendable : Sendable,
14251428 val SerialDescriptor : SerialDescriptor,
@@ -1470,16 +1473,17 @@ case class Obj5 (
14701473 val undefined : Undefined,
14711474 val union : Union,
14721475 val unowned : Unowned,
1473- val unsafe : Unsafe,
1474- val unsigned : Unsigned,
1475- val UseSerializers : UseSerializers,
1476- val ushort : Ushort
1476+ val UseSerializers : UseSerializers
14771477 ) derives OptionPickler.ReadWriter
14781478
14791479 case class KSerializer (
14801480 val KSerializer : Long
14811481 ) derives OptionPickler.ReadWriter
14821482
1483+case class Sealed (
1484+ val `sealed` : Long
1485+) derives OptionPickler.ReadWriter
1486+
14831487 case class SelfClass (
14841488 val self : Long
14851489 ) derives OptionPickler.ReadWriter
@@ -1524,6 +1528,14 @@ case class TypeClass (
15241528 val `type` : Long
15251529 ) derives OptionPickler.ReadWriter
15261530
1531+case class Sel (
1532+ val SEL : Long
1533+) derives OptionPickler.ReadWriter
1534+
1535+case class Select (
1536+ val select : Long
1537+) derives OptionPickler.ReadWriter
1538+
15271539 case class Self (
15281540 val Self : Long
15291541 ) derives OptionPickler.ReadWriter
@@ -1718,28 +1730,19 @@ case class Unowned (
17181730 val unowned : Long
17191731 ) derives OptionPickler.ReadWriter
17201732
1721-case class Unsafe (
1722- val unsafe : Long
1723-) derives OptionPickler.ReadWriter
1724-
1725-case class Unsigned (
1726- val unsigned : Long
1727-) derives OptionPickler.ReadWriter
1728-
17291733 case class UseSerializers (
17301734 val UseSerializers : Long
17311735 ) derives OptionPickler.ReadWriter
17321736
1733-case class Ushort (
1734- val ushort : Long
1735-) derives OptionPickler.ReadWriter
1736-
17371737 case class Obj6 (
17381738 val dummy : Long,
17391739 val `var` : Var,
17401740 val `while` : While,
17411741 val `with` : With,
17421742 val `yield` : Yield,
1743+ val unsafe : Unsafe,
1744+ val unsigned : Unsigned,
1745+ val ushort : Ushort,
17431746 val using : Using,
17441747 val Utf8JsonReader : Utf8JSONReader,
17451748 val Utf8JsonWriter : Utf8JSONWriter,
@@ -1772,6 +1775,18 @@ case class Yield (
17721775 val `yield` : Long
17731776 ) derives OptionPickler.ReadWriter
17741777
1778+case class Unsafe (
1779+ val unsafe : Long
1780+) derives OptionPickler.ReadWriter
1781+
1782+case class Unsigned (
1783+ val unsigned : Long
1784+) derives OptionPickler.ReadWriter
1785+
1786+case class Ushort (
1787+ val ushort : Long
1788+) derives OptionPickler.ReadWriter
1789+
17751790 case class Using (
17761791 val using : Long
17771792 ) derives OptionPickler.ReadWriter
Mscala3default / TopLevel.scala+52 −37
@@ -753,6 +753,7 @@ case class Obj3 (
753753 val left : Left,
754754 val let : Let,
755755 val list : ListClass,
756+ val LocalDate : LocalDate,
756757 val Locale : Locale,
757758 val lock : Lock,
758759 val long : LongClass,
@@ -767,7 +768,6 @@ case class Obj3 (
767768 val newtonsoft : Newtonsoft,
768769 val nil : Nil,
769770 val NO : No,
770- val noexcept : Noexcept,
771771 val `if` : If,
772772 val `implicit` : Implicit,
773773 val `import` : Import,
@@ -969,6 +969,10 @@ case class ListClass (
969969 val list : Long
970970 ) derives Encoder.AsObject, Decoder
971971
972+case class LocalDate (
973+ val LocalDate : Long
974+) derives Encoder.AsObject, Decoder
975+
972976 case class Locale (
973977 val Locale : Long
974978 ) derives Encoder.AsObject, Decoder
@@ -1025,10 +1029,6 @@ case class No (
10251029 val NO : Long
10261030 ) derives Encoder.AsObject, Decoder
10271031
1028-case class Noexcept (
1029- val noexcept : Long
1030-) derives Encoder.AsObject, Decoder
1031-
10321032 case class If (
10331033 val `if` : Long
10341034 ) derives Encoder.AsObject, Decoder
@@ -1052,6 +1052,7 @@ case class New (
10521052 case class Obj4 (
10531053 val dummy : Long,
10541054 val noSuchMethod : NoSuchMethod,
1055+ val noexcept : Noexcept,
10551056 val nonatomic : Nonatomic,
10561057 val None : NoneClass,
10571058 val nonlocal : Nonlocal,
@@ -1073,9 +1074,10 @@ case class Obj4 (
10731074 val `protected` : Protected,
10741075 val protocol : ProtocolClass,
10751076 val `return` : Return,
1076- val `sealed` : Sealed,
10771077 val ObjectMapper : ObjectMapper,
10781078 val of : Of,
1079+ val OffsetDateTime : OffsetDateTime,
1080+ val OffsetTime : OffsetTime,
10791081 val oneway : Oneway,
10801082 val open : Open,
10811083 val operator : Operator,
@@ -1112,15 +1114,17 @@ case class Obj4 (
11121114 val right : Right,
11131115 val runtimeType : RuntimeType,
11141116 val s : S,
1115- val sbyte : Sbyte,
1116- val SEL : Sel,
1117- val select : Select
1117+ val sbyte : Sbyte
11181118 ) derives Encoder.AsObject, Decoder
11191119
11201120 case class NoSuchMethod (
11211121 val noSuchMethod : Long
11221122 ) derives Encoder.AsObject, Decoder
11231123
1124+case class Noexcept (
1125+ val noexcept : Long
1126+) derives Encoder.AsObject, Decoder
1127+
11241128 case class Nonatomic (
11251129 val nonatomic : Long
11261130 ) derives Encoder.AsObject, Decoder
@@ -1205,10 +1209,6 @@ case class Return (
12051209 val `return` : Long
12061210 ) derives Encoder.AsObject, Decoder
12071211
1208-case class Sealed (
1209- val `sealed` : Long
1210-) derives Encoder.AsObject, Decoder
1211-
12121212 case class ObjectMapper (
12131213 val ObjectMapper : Long
12141214 ) derives Encoder.AsObject, Decoder
@@ -1217,6 +1217,14 @@ case class Of (
12171217 val of : Long
12181218 ) derives Encoder.AsObject, Decoder
12191219
1220+case class OffsetDateTime (
1221+ val OffsetDateTime : Long
1222+) derives Encoder.AsObject, Decoder
1223+
1224+case class OffsetTime (
1225+ val OffsetTime : Long
1226+) derives Encoder.AsObject, Decoder
1227+
12201228 case class Oneway (
12211229 val oneway : Long
12221230 ) derives Encoder.AsObject, Decoder
@@ -1365,17 +1373,10 @@ case class Sbyte (
13651373 val sbyte : Long
13661374 ) derives Encoder.AsObject, Decoder
13671375
1368-case class Sel (
1369- val SEL : Long
1370-) derives Encoder.AsObject, Decoder
1371-
1372-case class Select (
1373- val select : Long
1374-) derives Encoder.AsObject, Decoder
1375-
13761376 case class Obj5 (
13771377 val dummy : Long,
13781378 val KSerializer : KSerializer,
1379+ val `sealed` : Sealed,
13791380 val self : SelfClass,
13801381 val `super` : Super,
13811382 val `then` : Then,
@@ -1387,6 +1388,8 @@ case class Obj5 (
13871388 val PrimitiveKind : PrimitiveKind,
13881389 val `true` : TrueClass,
13891390 val `type` : TypeClass,
1391+ val SEL : Sel,
1392+ val select : Select,
13901393 val Self : Self,
13911394 val Sendable : Sendable,
13921395 val SerialDescriptor : SerialDescriptor,
@@ -1435,10 +1438,7 @@ case class Obj5 (
14351438 val undefined : Undefined,
14361439 val union : Union,
14371440 val unowned : Unowned,
1438- val unsafe : Unsafe,
1439- val unsigned : Unsigned,
1440- val UseSerializers : UseSerializers,
1441- val ushort : Ushort
1441+ val UseSerializers : UseSerializers
14421442 )
14431443
14441444 object Obj5:
@@ -1455,6 +1455,10 @@ case class KSerializer (
14551455 val KSerializer : Long
14561456 ) derives Encoder.AsObject, Decoder
14571457
1458+case class Sealed (
1459+ val `sealed` : Long
1460+) derives Encoder.AsObject, Decoder
1461+
14581462 case class SelfClass (
14591463 val self : Long
14601464 ) derives Encoder.AsObject, Decoder
@@ -1499,6 +1503,14 @@ case class TypeClass (
14991503 val `type` : Long
15001504 ) derives Encoder.AsObject, Decoder
15011505
1506+case class Sel (
1507+ val SEL : Long
1508+) derives Encoder.AsObject, Decoder
1509+
1510+case class Select (
1511+ val select : Long
1512+) derives Encoder.AsObject, Decoder
1513+
15021514 case class Self (
15031515 val Self : Long
15041516 ) derives Encoder.AsObject, Decoder
@@ -1709,28 +1721,19 @@ case class Unowned (
17091721 val unowned : Long
17101722 ) derives Encoder.AsObject, Decoder
17111723
1712-case class Unsafe (
1713- val unsafe : Long
1714-) derives Encoder.AsObject, Decoder
1715-
1716-case class Unsigned (
1717- val unsigned : Long
1718-) derives Encoder.AsObject, Decoder
1719-
17201724 case class UseSerializers (
17211725 val UseSerializers : Long
17221726 ) derives Encoder.AsObject, Decoder
17231727
1724-case class Ushort (
1725- val ushort : Long
1726-) derives Encoder.AsObject, Decoder
1727-
17281728 case class Obj6 (
17291729 val dummy : Long,
17301730 val `var` : Var,
17311731 val `while` : While,
17321732 val `with` : With,
17331733 val `yield` : Yield,
1734+ val unsafe : Unsafe,
1735+ val unsigned : Unsigned,
1736+ val ushort : Ushort,
17341737 val using : Using,
17351738 val Utf8JsonReader : Utf8JSONReader,
17361739 val Utf8JsonWriter : Utf8JSONWriter,
@@ -1763,6 +1766,18 @@ case class Yield (
17631766 val `yield` : Long
17641767 ) derives Encoder.AsObject, Decoder
17651768
1769+case class Unsafe (
1770+ val unsafe : Long
1771+) derives Encoder.AsObject, Decoder
1772+
1773+case class Unsigned (
1774+ val unsigned : Long
1775+) derives Encoder.AsObject, Decoder
1776+
1777+case class Ushort (
1778+ val ushort : Long
1779+) derives Encoder.AsObject, Decoder
1780+
17661781 case class Using (
17671782 val using : Long
17681783 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+484 −340
@@ -6347,6 +6347,7 @@ struct Obj3: Codable {
63476347 let jsonWriter: JSONWriter
63486348 let lambda: Lambda
63496349 let list: List
6350+ let localDate: LocalDate
63506351 let locale: LocaleClass
63516352 let lock: Lock
63526353 let long: Long
@@ -6360,7 +6361,6 @@ struct Obj3: Codable {
63606361 let new: New
63616362 let newtonsoft: Newtonsoft
63626363 let no: No
6363- let noexcept: Noexcept
63646364 let obj3Guard: Guard
63656365 let obj3If: If
63666366 let obj3Import: Import
@@ -6414,6 +6414,7 @@ struct Obj3: Codable {
64146414 case jsonWriter = "json_writer"
64156415 case lambda = "lambda"
64166416 case list = "list"
6417+ case localDate = "LocalDate"
64176418 case locale = "Locale"
64186419 case lock = "lock"
64196420 case long = "long"
@@ -6427,7 +6428,6 @@ struct Obj3: Codable {
64276428 case new = "new"
64286429 case newtonsoft = "newtonsoft"
64296430 case no = "NO"
6430- case noexcept = "noexcept"
64316431 case obj3Guard = "guard"
64326432 case obj3If = "if"
64336433 case obj3Import = "import"
@@ -6501,6 +6501,7 @@ extension Obj3 {
65016501 jsonWriter: JSONWriter? = nil,
65026502 lambda: Lambda? = nil,
65036503 list: List? = nil,
6504+ localDate: LocalDate? = nil,
65046505 locale: LocaleClass? = nil,
65056506 lock: Lock? = nil,
65066507 long: Long? = nil,
@@ -6514,7 +6515,6 @@ extension Obj3 {
65146515 new: New? = nil,
65156516 newtonsoft: Newtonsoft? = nil,
65166517 no: No? = nil,
6517- noexcept: Noexcept? = nil,
65186518 obj3Guard: Guard? = nil,
65196519 obj3If: If? = nil,
65206520 obj3Import: Import? = nil,
@@ -6568,6 +6568,7 @@ extension Obj3 {
65686568 jsonWriter: jsonWriter ?? self.jsonWriter,
65696569 lambda: lambda ?? self.lambda,
65706570 list: list ?? self.list,
6571+ localDate: localDate ?? self.localDate,
65716572 locale: locale ?? self.locale,
65726573 lock: lock ?? self.lock,
65736574 long: long ?? self.long,
@@ -6581,7 +6582,6 @@ extension Obj3 {
65816582 new: new ?? self.new,
65826583 newtonsoft: newtonsoft ?? self.newtonsoft,
65836584 no: no ?? self.no,
6584- noexcept: noexcept ?? self.noexcept,
65856585 obj3Guard: obj3Guard ?? self.obj3Guard,
65866586 obj3If: obj3If ?? self.obj3If,
65876587 obj3Import: obj3Import ?? self.obj3Import,
@@ -8106,6 +8106,50 @@ extension List {
81068106 }
81078107 }
81088108
8109+// MARK: - LocalDate
8110+struct LocalDate: Codable {
8111+ let localDate: Int
8112+
8113+ enum CodingKeys: String, CodingKey {
8114+ case localDate = "LocalDate"
8115+ }
8116+}
8117+
8118+// MARK: LocalDate convenience initializers and mutators
8119+
8120+extension LocalDate {
8121+ init(data: Data) throws {
8122+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
8123+ }
8124+
8125+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8126+ guard let data = json.data(using: encoding) else {
8127+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8128+ }
8129+ try self.init(data: data)
8130+ }
8131+
8132+ init(fromURL url: URL) throws {
8133+ try self.init(data: try Data(contentsOf: url))
8134+ }
8135+
8136+ func with(
8137+ localDate: Int? = nil
8138+ ) -> LocalDate {
8139+ return LocalDate(
8140+ localDate: localDate ?? self.localDate
8141+ )
8142+ }
8143+
8144+ func jsonData() throws -> Data {
8145+ return try newJSONEncoder().encode(self)
8146+ }
8147+
8148+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8149+ return String(data: try self.jsonData(), encoding: encoding)
8150+ }
8151+}
8152+
81098153 // MARK: - LocaleClass
81108154 struct LocaleClass: Codable {
81118155 let locale: Int
@@ -8678,50 +8722,6 @@ extension No {
86788722 }
86798723 }
86808724
8681-// MARK: - Noexcept
8682-struct Noexcept: Codable {
8683- let noexcept: Int
8684-
8685- enum CodingKeys: String, CodingKey {
8686- case noexcept = "noexcept"
8687- }
8688-}
8689-
8690-// MARK: Noexcept convenience initializers and mutators
8691-
8692-extension Noexcept {
8693- init(data: Data) throws {
8694- self = try newJSONDecoder().decode(Noexcept.self, from: data)
8695- }
8696-
8697- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8698- guard let data = json.data(using: encoding) else {
8699- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8700- }
8701- try self.init(data: data)
8702- }
8703-
8704- init(fromURL url: URL) throws {
8705- try self.init(data: try Data(contentsOf: url))
8706- }
8707-
8708- func with(
8709- noexcept: Int? = nil
8710- ) -> Noexcept {
8711- return Noexcept(
8712- noexcept: noexcept ?? self.noexcept
8713- )
8714- }
8715-
8716- func jsonData() throws -> Data {
8717- return try newJSONEncoder().encode(self)
8718- }
8719-
8720- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8721- return String(data: try self.jsonData(), encoding: encoding)
8722- }
8723-}
8724-
87258725 // MARK: - Guard
87268726 struct Guard: Codable {
87278727 let guardGuard: Int
@@ -9430,6 +9430,7 @@ extension Nil {
94309430 struct Obj4: Codable {
94319431 let dummy: Int
94329432 let noSuchMethod: NoSuchMethod
9433+ let noexcept: Noexcept
94339434 let nonatomic: Nonatomic
94349435 let none: None
94359436 let nonlocal: Nonlocal
@@ -9462,6 +9463,8 @@ struct Obj4: Codable {
94629463 let object: Object
94639464 let objectMapper: ObjectMapper
94649465 let of: Of
9466+ let offsetDateTime: OffsetDateTime
9467+ let offsetTime: OffsetTime
94659468 let oneway: Oneway
94669469 let or: Or
94679470 let orEq: OrEq
@@ -9490,13 +9493,11 @@ struct Obj4: Codable {
94909493 let runtimeType: RuntimeType
94919494 let s: S
94929495 let sbyte: Sbyte
9493- let sealed: Sealed
9494- let sel: Sel
9495- let select: Select
94969496
94979497 enum CodingKeys: String, CodingKey {
94989498 case dummy = "dummy"
94999499 case noSuchMethod = "noSuchMethod"
9500+ case noexcept = "noexcept"
95009501 case nonatomic = "nonatomic"
95019502 case none = "None"
95029503 case nonlocal = "nonlocal"
@@ -9529,6 +9530,8 @@ struct Obj4: Codable {
95299530 case object = "object"
95309531 case objectMapper = "ObjectMapper"
95319532 case of = "of"
9533+ case offsetDateTime = "OffsetDateTime"
9534+ case offsetTime = "OffsetTime"
95329535 case oneway = "oneway"
95339536 case or = "or"
95349537 case orEq = "or_eq"
@@ -9557,9 +9560,6 @@ struct Obj4: Codable {
95579560 case runtimeType = "runtimeType"
95589561 case s = "s"
95599562 case sbyte = "sbyte"
9560- case sealed = "sealed"
9561- case sel = "SEL"
9562- case select = "select"
95639563 }
95649564 }
95659565
@@ -9584,6 +9584,7 @@ extension Obj4 {
95849584 func with(
95859585 dummy: Int? = nil,
95869586 noSuchMethod: NoSuchMethod? = nil,
9587+ noexcept: Noexcept? = nil,
95879588 nonatomic: Nonatomic? = nil,
95889589 none: None? = nil,
95899590 nonlocal: Nonlocal? = nil,
@@ -9616,6 +9617,8 @@ extension Obj4 {
96169617 object: Object? = nil,
96179618 objectMapper: ObjectMapper? = nil,
96189619 of: Of? = nil,
9620+ offsetDateTime: OffsetDateTime? = nil,
9621+ offsetTime: OffsetTime? = nil,
96199622 oneway: Oneway? = nil,
96209623 or: Or? = nil,
96219624 orEq: OrEq? = nil,
@@ -9643,14 +9646,12 @@ extension Obj4 {
96439646 retain: Retain? = nil,
96449647 runtimeType: RuntimeType? = nil,
96459648 s: S? = nil,
9646- sbyte: Sbyte? = nil,
9647- sealed: Sealed? = nil,
9648- sel: Sel? = nil,
9649- select: Select? = nil
9649+ sbyte: Sbyte? = nil
96509650 ) -> Obj4 {
96519651 return Obj4(
96529652 dummy: dummy ?? self.dummy,
96539653 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
9654+ noexcept: noexcept ?? self.noexcept,
96549655 nonatomic: nonatomic ?? self.nonatomic,
96559656 none: none ?? self.none,
96569657 nonlocal: nonlocal ?? self.nonlocal,
@@ -9683,6 +9684,8 @@ extension Obj4 {
96839684 object: object ?? self.object,
96849685 objectMapper: objectMapper ?? self.objectMapper,
96859686 of: of ?? self.of,
9687+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
9688+ offsetTime: offsetTime ?? self.offsetTime,
96869689 oneway: oneway ?? self.oneway,
96879690 or: or ?? self.or,
96889691 orEq: orEq ?? self.orEq,
@@ -9710,10 +9713,7 @@ extension Obj4 {
97109713 retain: retain ?? self.retain,
97119714 runtimeType: runtimeType ?? self.runtimeType,
97129715 s: s ?? self.s,
9713- sbyte: sbyte ?? self.sbyte,
9714- sealed: sealed ?? self.sealed,
9715- sel: sel ?? self.sel,
9716- select: select ?? self.select
9716+ sbyte: sbyte ?? self.sbyte
97179717 )
97189718 }
97199719
@@ -9770,6 +9770,50 @@ extension NoSuchMethod {
97709770 }
97719771 }
97729772
9773+// MARK: - Noexcept
9774+struct Noexcept: Codable {
9775+ let noexcept: Int
9776+
9777+ enum CodingKeys: String, CodingKey {
9778+ case noexcept = "noexcept"
9779+ }
9780+}
9781+
9782+// MARK: Noexcept convenience initializers and mutators
9783+
9784+extension Noexcept {
9785+ init(data: Data) throws {
9786+ self = try newJSONDecoder().decode(Noexcept.self, from: data)
9787+ }
9788+
9789+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9790+ guard let data = json.data(using: encoding) else {
9791+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9792+ }
9793+ try self.init(data: data)
9794+ }
9795+
9796+ init(fromURL url: URL) throws {
9797+ try self.init(data: try Data(contentsOf: url))
9798+ }
9799+
9800+ func with(
9801+ noexcept: Int? = nil
9802+ ) -> Noexcept {
9803+ return Noexcept(
9804+ noexcept: noexcept ?? self.noexcept
9805+ )
9806+ }
9807+
9808+ func jsonData() throws -> Data {
9809+ return try newJSONEncoder().encode(self)
9810+ }
9811+
9812+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9813+ return String(data: try self.jsonData(), encoding: encoding)
9814+ }
9815+}
9816+
97739817 // MARK: - Nonatomic
97749818 struct Nonatomic: Codable {
97759819 let nonatomic: Int
@@ -11178,6 +11222,94 @@ extension Of {
1117811222 }
1117911223 }
1118011224
11225+// MARK: - OffsetDateTime
11226+struct OffsetDateTime: Codable {
11227+ let offsetDateTime: Int
11228+
11229+ enum CodingKeys: String, CodingKey {
11230+ case offsetDateTime = "OffsetDateTime"
11231+ }
11232+}
11233+
11234+// MARK: OffsetDateTime convenience initializers and mutators
11235+
11236+extension OffsetDateTime {
11237+ init(data: Data) throws {
11238+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
11239+ }
11240+
11241+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11242+ guard let data = json.data(using: encoding) else {
11243+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11244+ }
11245+ try self.init(data: data)
11246+ }
11247+
11248+ init(fromURL url: URL) throws {
11249+ try self.init(data: try Data(contentsOf: url))
11250+ }
11251+
11252+ func with(
11253+ offsetDateTime: Int? = nil
11254+ ) -> OffsetDateTime {
11255+ return OffsetDateTime(
11256+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
11257+ )
11258+ }
11259+
11260+ func jsonData() throws -> Data {
11261+ return try newJSONEncoder().encode(self)
11262+ }
11263+
11264+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11265+ return String(data: try self.jsonData(), encoding: encoding)
11266+ }
11267+}
11268+
11269+// MARK: - OffsetTime
11270+struct OffsetTime: Codable {
11271+ let offsetTime: Int
11272+
11273+ enum CodingKeys: String, CodingKey {
11274+ case offsetTime = "OffsetTime"
11275+ }
11276+}
11277+
11278+// MARK: OffsetTime convenience initializers and mutators
11279+
11280+extension OffsetTime {
11281+ init(data: Data) throws {
11282+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
11283+ }
11284+
11285+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11286+ guard let data = json.data(using: encoding) else {
11287+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11288+ }
11289+ try self.init(data: data)
11290+ }
11291+
11292+ init(fromURL url: URL) throws {
11293+ try self.init(data: try Data(contentsOf: url))
11294+ }
11295+
11296+ func with(
11297+ offsetTime: Int? = nil
11298+ ) -> OffsetTime {
11299+ return OffsetTime(
11300+ offsetTime: offsetTime ?? self.offsetTime
11301+ )
11302+ }
11303+
11304+ func jsonData() throws -> Data {
11305+ return try newJSONEncoder().encode(self)
11306+ }
11307+
11308+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11309+ return String(data: try self.jsonData(), encoding: encoding)
11310+ }
11311+}
11312+
1118111313 // MARK: - Oneway
1118211314 struct Oneway: Codable {
1118311315 let oneway: Int
@@ -12410,138 +12542,6 @@ extension Sbyte {
1241012542 }
1241112543 }
1241212544
12413-// MARK: - Sealed
12414-struct Sealed: Codable {
12415- let sealed: Int
12416-
12417- enum CodingKeys: String, CodingKey {
12418- case sealed = "sealed"
12419- }
12420-}
12421-
12422-// MARK: Sealed convenience initializers and mutators
12423-
12424-extension Sealed {
12425- init(data: Data) throws {
12426- self = try newJSONDecoder().decode(Sealed.self, from: data)
12427- }
12428-
12429- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12430- guard let data = json.data(using: encoding) else {
12431- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12432- }
12433- try self.init(data: data)
12434- }
12435-
12436- init(fromURL url: URL) throws {
12437- try self.init(data: try Data(contentsOf: url))
12438- }
12439-
12440- func with(
12441- sealed: Int? = nil
12442- ) -> Sealed {
12443- return Sealed(
12444- sealed: sealed ?? self.sealed
12445- )
12446- }
12447-
12448- func jsonData() throws -> Data {
12449- return try newJSONEncoder().encode(self)
12450- }
12451-
12452- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12453- return String(data: try self.jsonData(), encoding: encoding)
12454- }
12455-}
12456-
12457-// MARK: - Sel
12458-struct Sel: Codable {
12459- let sel: Int
12460-
12461- enum CodingKeys: String, CodingKey {
12462- case sel = "SEL"
12463- }
12464-}
12465-
12466-// MARK: Sel convenience initializers and mutators
12467-
12468-extension Sel {
12469- init(data: Data) throws {
12470- self = try newJSONDecoder().decode(Sel.self, from: data)
12471- }
12472-
12473- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12474- guard let data = json.data(using: encoding) else {
12475- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12476- }
12477- try self.init(data: data)
12478- }
12479-
12480- init(fromURL url: URL) throws {
12481- try self.init(data: try Data(contentsOf: url))
12482- }
12483-
12484- func with(
12485- sel: Int? = nil
12486- ) -> Sel {
12487- return Sel(
12488- sel: sel ?? self.sel
12489- )
12490- }
12491-
12492- func jsonData() throws -> Data {
12493- return try newJSONEncoder().encode(self)
12494- }
12495-
12496- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12497- return String(data: try self.jsonData(), encoding: encoding)
12498- }
12499-}
12500-
12501-// MARK: - Select
12502-struct Select: Codable {
12503- let select: Int
12504-
12505- enum CodingKeys: String, CodingKey {
12506- case select = "select"
12507- }
12508-}
12509-
12510-// MARK: Select convenience initializers and mutators
12511-
12512-extension Select {
12513- init(data: Data) throws {
12514- self = try newJSONDecoder().decode(Select.self, from: data)
12515- }
12516-
12517- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12518- guard let data = json.data(using: encoding) else {
12519- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12520- }
12521- try self.init(data: data)
12522- }
12523-
12524- init(fromURL url: URL) throws {
12525- try self.init(data: try Data(contentsOf: url))
12526- }
12527-
12528- func with(
12529- select: Int? = nil
12530- ) -> Select {
12531- return Select(
12532- select: select ?? self.select
12533- )
12534- }
12535-
12536- func jsonData() throws -> Data {
12537- return try newJSONEncoder().encode(self)
12538- }
12539-
12540- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12541- return String(data: try self.jsonData(), encoding: encoding)
12542- }
12543-}
12544-
1254512545 // MARK: - Obj5
1254612546 struct Obj5: Codable {
1254712547 let dummy: Int
@@ -12563,6 +12563,9 @@ struct Obj5: Codable {
1256312563 let primitiveKind: PrimitiveKind
1256412564 let purpleSelf: Obj5Self
1256512565 let purpleTrue: TrueClass
12566+ let sealed: Sealed
12567+ let sel: Sel
12568+ let select: Select
1256612569 let sendable: Sendable
1256712570 let serialDescriptor: SerialDescriptor
1256812571 let serialName: SerialName
@@ -12605,10 +12608,7 @@ struct Obj5: Codable {
1260512608 let unchecked: Unchecked
1260612609 let undefined: Undefined
1260712610 let union: Union
12608- let unsafe: Unsafe
12609- let unsigned: Unsigned
1261012611 let useSerializers: UseSerializers
12611- let ushort: Ushort
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12630,6 +12630,9 @@ struct Obj5: Codable {
1263012630 case primitiveKind = "PrimitiveKind"
1263112631 case purpleSelf = "self"
1263212632 case purpleTrue = "true"
12633+ case sealed = "sealed"
12634+ case sel = "SEL"
12635+ case select = "select"
1263312636 case sendable = "Sendable"
1263412637 case serialDescriptor = "SerialDescriptor"
1263512638 case serialName = "SerialName"
@@ -12672,10 +12675,7 @@ struct Obj5: Codable {
1267212675 case unchecked = "unchecked"
1267312676 case undefined = "undefined"
1267412677 case union = "union"
12675- case unsafe = "unsafe"
12676- case unsigned = "unsigned"
1267712678 case useSerializers = "UseSerializers"
12678- case ushort = "ushort"
1267912679 }
1268012680 }
1268112681
@@ -12717,6 +12717,9 @@ extension Obj5 {
1271712717 primitiveKind: PrimitiveKind? = nil,
1271812718 purpleSelf: Obj5Self? = nil,
1271912719 purpleTrue: TrueClass? = nil,
12720+ sealed: Sealed? = nil,
12721+ sel: Sel? = nil,
12722+ select: Select? = nil,
1272012723 sendable: Sendable? = nil,
1272112724 serialDescriptor: SerialDescriptor? = nil,
1272212725 serialName: SerialName? = nil,
@@ -12759,10 +12762,7 @@ extension Obj5 {
1275912762 unchecked: Unchecked? = nil,
1276012763 undefined: Undefined? = nil,
1276112764 union: Union? = nil,
12762- unsafe: Unsafe? = nil,
12763- unsigned: Unsigned? = nil,
12764- useSerializers: UseSerializers? = nil,
12765- ushort: Ushort? = nil
12765+ useSerializers: UseSerializers? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12784,6 +12784,9 @@ extension Obj5 {
1278412784 primitiveKind: primitiveKind ?? self.primitiveKind,
1278512785 purpleSelf: purpleSelf ?? self.purpleSelf,
1278612786 purpleTrue: purpleTrue ?? self.purpleTrue,
12787+ sealed: sealed ?? self.sealed,
12788+ sel: sel ?? self.sel,
12789+ select: select ?? self.select,
1278712790 sendable: sendable ?? self.sendable,
1278812791 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1278912792 serialName: serialName ?? self.serialName,
@@ -12826,10 +12829,7 @@ extension Obj5 {
1282612829 unchecked: unchecked ?? self.unchecked,
1282712830 undefined: undefined ?? self.undefined,
1282812831 union: union ?? self.union,
12829- unsafe: unsafe ?? self.unsafe,
12830- unsigned: unsigned ?? self.unsigned,
12831- useSerializers: useSerializers ?? self.useSerializers,
12832- ushort: ushort ?? self.ushort
12832+ useSerializers: useSerializers ?? self.useSerializers
1283312833 )
1283412834 }
1283512835
@@ -13634,6 +13634,138 @@ extension TrueClass {
1363413634 }
1363513635 }
1363613636
13637+// MARK: - Sealed
13638+struct Sealed: Codable {
13639+ let sealed: Int
13640+
13641+ enum CodingKeys: String, CodingKey {
13642+ case sealed = "sealed"
13643+ }
13644+}
13645+
13646+// MARK: Sealed convenience initializers and mutators
13647+
13648+extension Sealed {
13649+ init(data: Data) throws {
13650+ self = try newJSONDecoder().decode(Sealed.self, from: data)
13651+ }
13652+
13653+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13654+ guard let data = json.data(using: encoding) else {
13655+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13656+ }
13657+ try self.init(data: data)
13658+ }
13659+
13660+ init(fromURL url: URL) throws {
13661+ try self.init(data: try Data(contentsOf: url))
13662+ }
13663+
13664+ func with(
13665+ sealed: Int? = nil
13666+ ) -> Sealed {
13667+ return Sealed(
13668+ sealed: sealed ?? self.sealed
13669+ )
13670+ }
13671+
13672+ func jsonData() throws -> Data {
13673+ return try newJSONEncoder().encode(self)
13674+ }
13675+
13676+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13677+ return String(data: try self.jsonData(), encoding: encoding)
13678+ }
13679+}
13680+
13681+// MARK: - Sel
13682+struct Sel: Codable {
13683+ let sel: Int
13684+
13685+ enum CodingKeys: String, CodingKey {
13686+ case sel = "SEL"
13687+ }
13688+}
13689+
13690+// MARK: Sel convenience initializers and mutators
13691+
13692+extension Sel {
13693+ init(data: Data) throws {
13694+ self = try newJSONDecoder().decode(Sel.self, from: data)
13695+ }
13696+
13697+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13698+ guard let data = json.data(using: encoding) else {
13699+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13700+ }
13701+ try self.init(data: data)
13702+ }
13703+
13704+ init(fromURL url: URL) throws {
13705+ try self.init(data: try Data(contentsOf: url))
13706+ }
13707+
13708+ func with(
13709+ sel: Int? = nil
13710+ ) -> Sel {
13711+ return Sel(
13712+ sel: sel ?? self.sel
13713+ )
13714+ }
13715+
13716+ func jsonData() throws -> Data {
13717+ return try newJSONEncoder().encode(self)
13718+ }
13719+
13720+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13721+ return String(data: try self.jsonData(), encoding: encoding)
13722+ }
13723+}
13724+
13725+// MARK: - Select
13726+struct Select: Codable {
13727+ let select: Int
13728+
13729+ enum CodingKeys: String, CodingKey {
13730+ case select = "select"
13731+ }
13732+}
13733+
13734+// MARK: Select convenience initializers and mutators
13735+
13736+extension Select {
13737+ init(data: Data) throws {
13738+ self = try newJSONDecoder().decode(Select.self, from: data)
13739+ }
13740+
13741+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13742+ guard let data = json.data(using: encoding) else {
13743+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13744+ }
13745+ try self.init(data: data)
13746+ }
13747+
13748+ init(fromURL url: URL) throws {
13749+ try self.init(data: try Data(contentsOf: url))
13750+ }
13751+
13752+ func with(
13753+ select: Int? = nil
13754+ ) -> Select {
13755+ return Select(
13756+ select: select ?? self.select
13757+ )
13758+ }
13759+
13760+ func jsonData() throws -> Data {
13761+ return try newJSONEncoder().encode(self)
13762+ }
13763+
13764+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13765+ return String(data: try self.jsonData(), encoding: encoding)
13766+ }
13767+}
13768+
1363713769 // MARK: - Sendable
1363813770 struct Sendable: Codable {
1363913771 let sendable: Int
@@ -15482,94 +15614,6 @@ extension Union {
1548215614 }
1548315615 }
1548415616
15485-// MARK: - Unsafe
15486-struct Unsafe: Codable {
15487- let unsafe: Int
15488-
15489- enum CodingKeys: String, CodingKey {
15490- case unsafe = "unsafe"
15491- }
15492-}
15493-
15494-// MARK: Unsafe convenience initializers and mutators
15495-
15496-extension Unsafe {
15497- init(data: Data) throws {
15498- self = try newJSONDecoder().decode(Unsafe.self, from: data)
15499- }
15500-
15501- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15502- guard let data = json.data(using: encoding) else {
15503- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15504- }
15505- try self.init(data: data)
15506- }
15507-
15508- init(fromURL url: URL) throws {
15509- try self.init(data: try Data(contentsOf: url))
15510- }
15511-
15512- func with(
15513- unsafe: Int? = nil
15514- ) -> Unsafe {
15515- return Unsafe(
15516- unsafe: unsafe ?? self.unsafe
15517- )
15518- }
15519-
15520- func jsonData() throws -> Data {
15521- return try newJSONEncoder().encode(self)
15522- }
15523-
15524- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15525- return String(data: try self.jsonData(), encoding: encoding)
15526- }
15527-}
15528-
15529-// MARK: - Unsigned
15530-struct Unsigned: Codable {
15531- let unsigned: Int
15532-
15533- enum CodingKeys: String, CodingKey {
15534- case unsigned = "unsigned"
15535- }
15536-}
15537-
15538-// MARK: Unsigned convenience initializers and mutators
15539-
15540-extension Unsigned {
15541- init(data: Data) throws {
15542- self = try newJSONDecoder().decode(Unsigned.self, from: data)
15543- }
15544-
15545- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15546- guard let data = json.data(using: encoding) else {
15547- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15548- }
15549- try self.init(data: data)
15550- }
15551-
15552- init(fromURL url: URL) throws {
15553- try self.init(data: try Data(contentsOf: url))
15554- }
15555-
15556- func with(
15557- unsigned: Int? = nil
15558- ) -> Unsigned {
15559- return Unsigned(
15560- unsigned: unsigned ?? self.unsigned
15561- )
15562- }
15563-
15564- func jsonData() throws -> Data {
15565- return try newJSONEncoder().encode(self)
15566- }
15567-
15568- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15569- return String(data: try self.jsonData(), encoding: encoding)
15570- }
15571-}
15572-
1557315617 // MARK: - UseSerializers
1557415618 struct UseSerializers: Codable {
1557515619 let useSerializers: Int
@@ -15614,50 +15658,6 @@ extension UseSerializers {
1561415658 }
1561515659 }
1561615660
15617-// MARK: - Ushort
15618-struct Ushort: Codable {
15619- let ushort: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case ushort = "ushort"
15623- }
15624-}
15625-
15626-// MARK: Ushort convenience initializers and mutators
15627-
15628-extension Ushort {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Ushort.self, from: data)
15631- }
15632-
15633- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15634- guard let data = json.data(using: encoding) else {
15635- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15636- }
15637- try self.init(data: data)
15638- }
15639-
15640- init(fromURL url: URL) throws {
15641- try self.init(data: try Data(contentsOf: url))
15642- }
15643-
15644- func with(
15645- ushort: Int? = nil
15646- ) -> Ushort {
15647- return Ushort(
15648- ushort: ushort ?? self.ushort
15649- )
15650- }
15651-
15652- func jsonData() throws -> Data {
15653- return try newJSONEncoder().encode(self)
15654- }
15655-
15656- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15657- return String(data: try self.jsonData(), encoding: encoding)
15658- }
15659-}
15660-
1566115661 // MARK: - Obj6
1566215662 struct Obj6: Codable {
1566315663 let dummy: Int
@@ -15666,6 +15666,9 @@ struct Obj6: Codable {
1566615666 let obj6Where: Where
1566715667 let obj6While: While
1566815668 let obj6WillSet: WillSet
15669+ let unsafe: Unsafe
15670+ let unsigned: Unsigned
15671+ let ushort: Ushort
1566915672 let using: Using
1567015673 let utf8JSONReader: Utf8JSONReader
1567115674 let utf8JSONWriter: Utf8JSONWriter
@@ -15687,6 +15690,9 @@ struct Obj6: Codable {
1568715690 case obj6Where = "where"
1568815691 case obj6While = "while"
1568915692 case obj6WillSet = "willSet"
15693+ case unsafe = "unsafe"
15694+ case unsigned = "unsigned"
15695+ case ushort = "ushort"
1569015696 case using = "using"
1569115697 case utf8JSONReader = "Utf8JsonReader"
1569215698 case utf8JSONWriter = "Utf8JsonWriter"
@@ -15728,6 +15734,9 @@ extension Obj6 {
1572815734 obj6Where: Where? = nil,
1572915735 obj6While: While? = nil,
1573015736 obj6WillSet: WillSet? = nil,
15737+ unsafe: Unsafe? = nil,
15738+ unsigned: Unsigned? = nil,
15739+ ushort: Ushort? = nil,
1573115740 using: Using? = nil,
1573215741 utf8JSONReader: Utf8JSONReader? = nil,
1573315742 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -15749,6 +15758,9 @@ extension Obj6 {
1574915758 obj6Where: obj6Where ?? self.obj6Where,
1575015759 obj6While: obj6While ?? self.obj6While,
1575115760 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15761+ unsafe: unsafe ?? self.unsafe,
15762+ unsigned: unsigned ?? self.unsigned,
15763+ ushort: ushort ?? self.ushort,
1575215764 using: using ?? self.using,
1575315765 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1575415766 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -15994,6 +16006,138 @@ extension WillSet {
1599416006 }
1599516007 }
1599616008
16009+// MARK: - Unsafe
16010+struct Unsafe: Codable {
16011+ let unsafe: Int
16012+
16013+ enum CodingKeys: String, CodingKey {
16014+ case unsafe = "unsafe"
16015+ }
16016+}
16017+
16018+// MARK: Unsafe convenience initializers and mutators
16019+
16020+extension Unsafe {
16021+ init(data: Data) throws {
16022+ self = try newJSONDecoder().decode(Unsafe.self, from: data)
16023+ }
16024+
16025+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16026+ guard let data = json.data(using: encoding) else {
16027+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16028+ }
16029+ try self.init(data: data)
16030+ }
16031+
16032+ init(fromURL url: URL) throws {
16033+ try self.init(data: try Data(contentsOf: url))
16034+ }
16035+
16036+ func with(
16037+ unsafe: Int? = nil
16038+ ) -> Unsafe {
16039+ return Unsafe(
16040+ unsafe: unsafe ?? self.unsafe
16041+ )
16042+ }
16043+
16044+ func jsonData() throws -> Data {
16045+ return try newJSONEncoder().encode(self)
16046+ }
16047+
16048+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16049+ return String(data: try self.jsonData(), encoding: encoding)
16050+ }
16051+}
16052+
16053+// MARK: - Unsigned
16054+struct Unsigned: Codable {
16055+ let unsigned: Int
16056+
16057+ enum CodingKeys: String, CodingKey {
16058+ case unsigned = "unsigned"
16059+ }
16060+}
16061+
16062+// MARK: Unsigned convenience initializers and mutators
16063+
16064+extension Unsigned {
16065+ init(data: Data) throws {
16066+ self = try newJSONDecoder().decode(Unsigned.self, from: data)
16067+ }
16068+
16069+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16070+ guard let data = json.data(using: encoding) else {
16071+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16072+ }
16073+ try self.init(data: data)
16074+ }
16075+
16076+ init(fromURL url: URL) throws {
16077+ try self.init(data: try Data(contentsOf: url))
16078+ }
16079+
16080+ func with(
16081+ unsigned: Int? = nil
16082+ ) -> Unsigned {
16083+ return Unsigned(
16084+ unsigned: unsigned ?? self.unsigned
16085+ )
16086+ }
16087+
16088+ func jsonData() throws -> Data {
16089+ return try newJSONEncoder().encode(self)
16090+ }
16091+
16092+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16093+ return String(data: try self.jsonData(), encoding: encoding)
16094+ }
16095+}
16096+
16097+// MARK: - Ushort
16098+struct Ushort: Codable {
16099+ let ushort: Int
16100+
16101+ enum CodingKeys: String, CodingKey {
16102+ case ushort = "ushort"
16103+ }
16104+}
16105+
16106+// MARK: Ushort convenience initializers and mutators
16107+
16108+extension Ushort {
16109+ init(data: Data) throws {
16110+ self = try newJSONDecoder().decode(Ushort.self, from: data)
16111+ }
16112+
16113+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16114+ guard let data = json.data(using: encoding) else {
16115+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16116+ }
16117+ try self.init(data: data)
16118+ }
16119+
16120+ init(fromURL url: URL) throws {
16121+ try self.init(data: try Data(contentsOf: url))
16122+ }
16123+
16124+ func with(
16125+ ushort: Int? = nil
16126+ ) -> Ushort {
16127+ return Ushort(
16128+ ushort: ushort ?? self.ushort
16129+ )
16130+ }
16131+
16132+ func jsonData() throws -> Data {
16133+ return try newJSONEncoder().encode(self)
16134+ }
16135+
16136+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16137+ return String(data: try self.jsonData(), encoding: encoding)
16138+ }
16139+}
16140+
1599716141 // MARK: - Using
1599816142 struct Using: Codable {
1599916143 let using: Int
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+609 −447
@@ -7136,6 +7136,7 @@ extension FalseClass {
71367136 let jsonWriter: JSONWriter
71377137 let lambda: Lambda
71387138 let list: List
7139+ let localDate: LocalDate
71397140 let locale: LocaleClass
71407141 let lock: Lock
71417142 let long: Long
@@ -7149,7 +7150,6 @@ extension FalseClass {
71497150 let new: New
71507151 let newtonsoft: Newtonsoft
71517152 let no: No
7152- let noexcept: Noexcept
71537153 let obj3Guard: Guard
71547154 let obj3If: If
71557155 let obj3Import: Import
@@ -7203,6 +7203,7 @@ extension FalseClass {
72037203 case jsonWriter = "json_writer"
72047204 case lambda = "lambda"
72057205 case list = "list"
7206+ case localDate = "LocalDate"
72067207 case locale = "Locale"
72077208 case lock = "lock"
72087209 case long = "long"
@@ -7216,7 +7217,6 @@ extension FalseClass {
72167217 case new = "new"
72177218 case newtonsoft = "newtonsoft"
72187219 case no = "NO"
7219- case noexcept = "noexcept"
72207220 case obj3Guard = "guard"
72217221 case obj3If = "if"
72227222 case obj3Import = "import"
@@ -7235,7 +7235,7 @@ extension FalseClass {
72357235 case obj3Nil = "nil"
72367236 }
72377237
7238- init(dummy: Int, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, 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, map: Map, mapEntry: MapEntry, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, noexcept: Noexcept, 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, obj3Nil: Nil) {
7238+ init(dummy: Int, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, 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, map: Map, mapEntry: MapEntry, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, 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, obj3Nil: Nil) {
72397239 self.dummy = dummy
72407240 self.hasOwnProperty = hasOwnProperty
72417241 self.hashCode = hashCode
@@ -7271,6 +7271,7 @@ extension FalseClass {
72717271 self.jsonWriter = jsonWriter
72727272 self.lambda = lambda
72737273 self.list = list
7274+ self.localDate = localDate
72747275 self.locale = locale
72757276 self.lock = lock
72767277 self.long = long
@@ -7284,7 +7285,6 @@ extension FalseClass {
72847285 self.new = new
72857286 self.newtonsoft = newtonsoft
72867287 self.no = no
7287- self.noexcept = noexcept
72887288 self.obj3Guard = obj3Guard
72897289 self.obj3If = obj3If
72907290 self.obj3Import = obj3Import
@@ -7309,7 +7309,7 @@ extension FalseClass {
73097309 extension Obj3 {
73107310 convenience init(data: Data) throws {
73117311 let me = try newJSONDecoder().decode(Obj3.self, from: data)
7312- self.init(dummy: me.dummy, 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, 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, map: me.map, mapEntry: me.mapEntry, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, noexcept: me.noexcept, 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, obj3Nil: me.obj3Nil)
7312+ self.init(dummy: me.dummy, 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, 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, map: me.map, mapEntry: me.mapEntry, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, 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, obj3Nil: me.obj3Nil)
73137313 }
73147314
73157315 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -7359,6 +7359,7 @@ extension Obj3 {
73597359 jsonWriter: JSONWriter? = nil,
73607360 lambda: Lambda? = nil,
73617361 list: List? = nil,
7362+ localDate: LocalDate? = nil,
73627363 locale: LocaleClass? = nil,
73637364 lock: Lock? = nil,
73647365 long: Long? = nil,
@@ -7372,7 +7373,6 @@ extension Obj3 {
73727373 new: New? = nil,
73737374 newtonsoft: Newtonsoft? = nil,
73747375 no: No? = nil,
7375- noexcept: Noexcept? = nil,
73767376 obj3Guard: Guard? = nil,
73777377 obj3If: If? = nil,
73787378 obj3Import: Import? = nil,
@@ -7426,6 +7426,7 @@ extension Obj3 {
74267426 jsonWriter: jsonWriter ?? self.jsonWriter,
74277427 lambda: lambda ?? self.lambda,
74287428 list: list ?? self.list,
7429+ localDate: localDate ?? self.localDate,
74297430 locale: locale ?? self.locale,
74307431 lock: lock ?? self.lock,
74317432 long: long ?? self.long,
@@ -7439,7 +7440,6 @@ extension Obj3 {
74397440 new: new ?? self.new,
74407441 newtonsoft: newtonsoft ?? self.newtonsoft,
74417442 no: no ?? self.no,
7442- noexcept: noexcept ?? self.noexcept,
74437443 obj3Guard: obj3Guard ?? self.obj3Guard,
74447444 obj3If: obj3If ?? self.obj3If,
74457445 obj3Import: obj3Import ?? self.obj3Import,
@@ -9134,6 +9134,55 @@ extension List {
91349134 }
91359135 }
91369136
9137+// MARK: - LocalDate
9138+@objcMembers class LocalDate: NSObject, Codable {
9139+ let localDate: Int
9140+
9141+ enum CodingKeys: String, CodingKey {
9142+ case localDate = "LocalDate"
9143+ }
9144+
9145+ init(localDate: Int) {
9146+ self.localDate = localDate
9147+ }
9148+}
9149+
9150+// MARK: LocalDate convenience initializers and mutators
9151+
9152+extension LocalDate {
9153+ convenience init(data: Data) throws {
9154+ let me = try newJSONDecoder().decode(LocalDate.self, from: data)
9155+ self.init(localDate: me.localDate)
9156+ }
9157+
9158+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9159+ guard let data = json.data(using: encoding) else {
9160+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9161+ }
9162+ try self.init(data: data)
9163+ }
9164+
9165+ convenience init(fromURL url: URL) throws {
9166+ try self.init(data: try Data(contentsOf: url))
9167+ }
9168+
9169+ func with(
9170+ localDate: Int? = nil
9171+ ) -> LocalDate {
9172+ return LocalDate(
9173+ localDate: localDate ?? self.localDate
9174+ )
9175+ }
9176+
9177+ func jsonData() throws -> Data {
9178+ return try newJSONEncoder().encode(self)
9179+ }
9180+
9181+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9182+ return String(data: try self.jsonData(), encoding: encoding)
9183+ }
9184+}
9185+
91379186 // MARK: - LocaleClass
91389187 @objcMembers class LocaleClass: NSObject, Codable {
91399188 let locale: Int
@@ -9771,55 +9820,6 @@ extension No {
97719820 }
97729821 }
97739822
9774-// MARK: - Noexcept
9775-@objcMembers class Noexcept: NSObject, Codable {
9776- let noexcept: Int
9777-
9778- enum CodingKeys: String, CodingKey {
9779- case noexcept = "noexcept"
9780- }
9781-
9782- init(noexcept: Int) {
9783- self.noexcept = noexcept
9784- }
9785-}
9786-
9787-// MARK: Noexcept convenience initializers and mutators
9788-
9789-extension Noexcept {
9790- convenience init(data: Data) throws {
9791- let me = try newJSONDecoder().decode(Noexcept.self, from: data)
9792- self.init(noexcept: me.noexcept)
9793- }
9794-
9795- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9796- guard let data = json.data(using: encoding) else {
9797- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9798- }
9799- try self.init(data: data)
9800- }
9801-
9802- convenience init(fromURL url: URL) throws {
9803- try self.init(data: try Data(contentsOf: url))
9804- }
9805-
9806- func with(
9807- noexcept: Int? = nil
9808- ) -> Noexcept {
9809- return Noexcept(
9810- noexcept: noexcept ?? self.noexcept
9811- )
9812- }
9813-
9814- func jsonData() throws -> Data {
9815- return try newJSONEncoder().encode(self)
9816- }
9817-
9818- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9819- return String(data: try self.jsonData(), encoding: encoding)
9820- }
9821-}
9822-
98239823 // MARK: - Guard
98249824 @objcMembers class Guard: NSObject, Codable {
98259825 let guardGuard: Int
@@ -10608,6 +10608,7 @@ extension Nil {
1060810608 @objcMembers class Obj4: NSObject, Codable {
1060910609 let dummy: Int
1061010610 let noSuchMethod: NoSuchMethod
10611+ let noexcept: Noexcept
1061110612 let nonatomic: Nonatomic
1061210613 let none: None
1061310614 let nonlocal: Nonlocal
@@ -10641,6 +10642,8 @@ extension Nil {
1064110642 let object: Object
1064210643 let objectMapper: ObjectMapper
1064310644 let of: Of
10645+ let offsetDateTime: OffsetDateTime
10646+ let offsetTime: OffsetTime
1064410647 let oneway: Oneway
1064510648 let or: Or
1064610649 let orEq: OrEq
@@ -10668,13 +10671,11 @@ extension Nil {
1066810671 let runtimeType: RuntimeType
1066910672 let s: S
1067010673 let sbyte: Sbyte
10671- let sealed: Sealed
10672- let sel: Sel
10673- let select: Select
1067410674
1067510675 enum CodingKeys: String, CodingKey {
1067610676 case dummy = "dummy"
1067710677 case noSuchMethod = "noSuchMethod"
10678+ case noexcept = "noexcept"
1067810679 case nonatomic = "nonatomic"
1067910680 case none = "None"
1068010681 case nonlocal = "nonlocal"
@@ -10708,6 +10709,8 @@ extension Nil {
1070810709 case object = "object"
1070910710 case objectMapper = "ObjectMapper"
1071010711 case of = "of"
10712+ case offsetDateTime = "OffsetDateTime"
10713+ case offsetTime = "OffsetTime"
1071110714 case oneway = "oneway"
1071210715 case or = "or"
1071310716 case orEq = "or_eq"
@@ -10735,14 +10738,12 @@ extension Nil {
1073510738 case runtimeType = "runtimeType"
1073610739 case s = "s"
1073710740 case sbyte = "sbyte"
10738- case sealed = "sealed"
10739- case sel = "SEL"
10740- case select = "select"
1074110741 }
1074210742
10743- init(dummy: Int, noSuchMethod: NoSuchMethod, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, 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, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, 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, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, select: Select) {
10743+ init(dummy: Int, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, 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, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, 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, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte) {
1074410744 self.dummy = dummy
1074510745 self.noSuchMethod = noSuchMethod
10746+ self.noexcept = noexcept
1074610747 self.nonatomic = nonatomic
1074710748 self.none = none
1074810749 self.nonlocal = nonlocal
@@ -10776,6 +10777,8 @@ extension Nil {
1077610777 self.object = object
1077710778 self.objectMapper = objectMapper
1077810779 self.of = of
10780+ self.offsetDateTime = offsetDateTime
10781+ self.offsetTime = offsetTime
1077910782 self.oneway = oneway
1078010783 self.or = or
1078110784 self.orEq = orEq
@@ -10803,9 +10806,6 @@ extension Nil {
1080310806 self.runtimeType = runtimeType
1080410807 self.s = s
1080510808 self.sbyte = sbyte
10806- self.sealed = sealed
10807- self.sel = sel
10808- self.select = select
1080910809 }
1081010810 }
1081110811
@@ -10814,7 +10814,7 @@ extension Nil {
1081410814 extension Obj4 {
1081510815 convenience init(data: Data) throws {
1081610816 let me = try newJSONDecoder().decode(Obj4.self, from: data)
10817- self.init(dummy: me.dummy, noSuchMethod: me.noSuchMethod, 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, nullptr: me.nullptr, number: me.number, 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, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, 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, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, select: me.select)
10817+ self.init(dummy: me.dummy, 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, nullptr: me.nullptr, number: me.number, 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, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, 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, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte)
1081810818 }
1081910819
1082010820 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -10831,6 +10831,7 @@ extension Obj4 {
1083110831 func with(
1083210832 dummy: Int? = nil,
1083310833 noSuchMethod: NoSuchMethod? = nil,
10834+ noexcept: Noexcept? = nil,
1083410835 nonatomic: Nonatomic? = nil,
1083510836 none: None? = nil,
1083610837 nonlocal: Nonlocal? = nil,
@@ -10864,6 +10865,8 @@ extension Obj4 {
1086410865 object: Object? = nil,
1086510866 objectMapper: ObjectMapper? = nil,
1086610867 of: Of? = nil,
10868+ offsetDateTime: OffsetDateTime? = nil,
10869+ offsetTime: OffsetTime? = nil,
1086710870 oneway: Oneway? = nil,
1086810871 or: Or? = nil,
1086910872 orEq: OrEq? = nil,
@@ -10890,14 +10893,12 @@ extension Obj4 {
1089010893 restrict: Restrict? = nil,
1089110894 runtimeType: RuntimeType? = nil,
1089210895 s: S? = nil,
10893- sbyte: Sbyte? = nil,
10894- sealed: Sealed? = nil,
10895- sel: Sel? = nil,
10896- select: Select? = nil
10896+ sbyte: Sbyte? = nil
1089710897 ) -> Obj4 {
1089810898 return Obj4(
1089910899 dummy: dummy ?? self.dummy,
1090010900 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
10901+ noexcept: noexcept ?? self.noexcept,
1090110902 nonatomic: nonatomic ?? self.nonatomic,
1090210903 none: none ?? self.none,
1090310904 nonlocal: nonlocal ?? self.nonlocal,
@@ -10931,6 +10932,8 @@ extension Obj4 {
1093110932 object: object ?? self.object,
1093210933 objectMapper: objectMapper ?? self.objectMapper,
1093310934 of: of ?? self.of,
10935+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
10936+ offsetTime: offsetTime ?? self.offsetTime,
1093410937 oneway: oneway ?? self.oneway,
1093510938 or: or ?? self.or,
1093610939 orEq: orEq ?? self.orEq,
@@ -10957,10 +10960,7 @@ extension Obj4 {
1095710960 restrict: restrict ?? self.restrict,
1095810961 runtimeType: runtimeType ?? self.runtimeType,
1095910962 s: s ?? self.s,
10960- sbyte: sbyte ?? self.sbyte,
10961- sealed: sealed ?? self.sealed,
10962- sel: sel ?? self.sel,
10963- select: select ?? self.select
10963+ sbyte: sbyte ?? self.sbyte
1096410964 )
1096510965 }
1096610966
@@ -11022,6 +11022,55 @@ extension NoSuchMethod {
1102211022 }
1102311023 }
1102411024
11025+// MARK: - Noexcept
11026+@objcMembers class Noexcept: NSObject, Codable {
11027+ let noexcept: Int
11028+
11029+ enum CodingKeys: String, CodingKey {
11030+ case noexcept = "noexcept"
11031+ }
11032+
11033+ init(noexcept: Int) {
11034+ self.noexcept = noexcept
11035+ }
11036+}
11037+
11038+// MARK: Noexcept convenience initializers and mutators
11039+
11040+extension Noexcept {
11041+ convenience init(data: Data) throws {
11042+ let me = try newJSONDecoder().decode(Noexcept.self, from: data)
11043+ self.init(noexcept: me.noexcept)
11044+ }
11045+
11046+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11047+ guard let data = json.data(using: encoding) else {
11048+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11049+ }
11050+ try self.init(data: data)
11051+ }
11052+
11053+ convenience init(fromURL url: URL) throws {
11054+ try self.init(data: try Data(contentsOf: url))
11055+ }
11056+
11057+ func with(
11058+ noexcept: Int? = nil
11059+ ) -> Noexcept {
11060+ return Noexcept(
11061+ noexcept: noexcept ?? self.noexcept
11062+ )
11063+ }
11064+
11065+ func jsonData() throws -> Data {
11066+ return try newJSONEncoder().encode(self)
11067+ }
11068+
11069+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11070+ return String(data: try self.jsonData(), encoding: encoding)
11071+ }
11072+}
11073+
1102511074 // MARK: - Nonatomic
1102611075 @objcMembers class Nonatomic: NSObject, Codable {
1102711076 let nonatomic: Int
@@ -12639,6 +12688,104 @@ extension Of {
1263912688 }
1264012689 }
1264112690
12691+// MARK: - OffsetDateTime
12692+@objcMembers class OffsetDateTime: NSObject, Codable {
12693+ let offsetDateTime: Int
12694+
12695+ enum CodingKeys: String, CodingKey {
12696+ case offsetDateTime = "OffsetDateTime"
12697+ }
12698+
12699+ init(offsetDateTime: Int) {
12700+ self.offsetDateTime = offsetDateTime
12701+ }
12702+}
12703+
12704+// MARK: OffsetDateTime convenience initializers and mutators
12705+
12706+extension OffsetDateTime {
12707+ convenience init(data: Data) throws {
12708+ let me = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
12709+ self.init(offsetDateTime: me.offsetDateTime)
12710+ }
12711+
12712+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12713+ guard let data = json.data(using: encoding) else {
12714+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12715+ }
12716+ try self.init(data: data)
12717+ }
12718+
12719+ convenience init(fromURL url: URL) throws {
12720+ try self.init(data: try Data(contentsOf: url))
12721+ }
12722+
12723+ func with(
12724+ offsetDateTime: Int? = nil
12725+ ) -> OffsetDateTime {
12726+ return OffsetDateTime(
12727+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
12728+ )
12729+ }
12730+
12731+ func jsonData() throws -> Data {
12732+ return try newJSONEncoder().encode(self)
12733+ }
12734+
12735+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12736+ return String(data: try self.jsonData(), encoding: encoding)
12737+ }
12738+}
12739+
12740+// MARK: - OffsetTime
12741+@objcMembers class OffsetTime: NSObject, Codable {
12742+ let offsetTime: Int
12743+
12744+ enum CodingKeys: String, CodingKey {
12745+ case offsetTime = "OffsetTime"
12746+ }
12747+
12748+ init(offsetTime: Int) {
12749+ self.offsetTime = offsetTime
12750+ }
12751+}
12752+
12753+// MARK: OffsetTime convenience initializers and mutators
12754+
12755+extension OffsetTime {
12756+ convenience init(data: Data) throws {
12757+ let me = try newJSONDecoder().decode(OffsetTime.self, from: data)
12758+ self.init(offsetTime: me.offsetTime)
12759+ }
12760+
12761+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12762+ guard let data = json.data(using: encoding) else {
12763+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12764+ }
12765+ try self.init(data: data)
12766+ }
12767+
12768+ convenience init(fromURL url: URL) throws {
12769+ try self.init(data: try Data(contentsOf: url))
12770+ }
12771+
12772+ func with(
12773+ offsetTime: Int? = nil
12774+ ) -> OffsetTime {
12775+ return OffsetTime(
12776+ offsetTime: offsetTime ?? self.offsetTime
12777+ )
12778+ }
12779+
12780+ func jsonData() throws -> Data {
12781+ return try newJSONEncoder().encode(self)
12782+ }
12783+
12784+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12785+ return String(data: try self.jsonData(), encoding: encoding)
12786+ }
12787+}
12788+
1264212789 // MARK: - Oneway
1264312790 @objcMembers class Oneway: NSObject, Codable {
1264412791 let oneway: Int
@@ -13962,153 +14109,6 @@ extension Sbyte {
1396214109 }
1396314110 }
1396414111
13965-// MARK: - Sealed
13966-@objcMembers class Sealed: NSObject, Codable {
13967- let sealed: Int
13968-
13969- enum CodingKeys: String, CodingKey {
13970- case sealed = "sealed"
13971- }
13972-
13973- init(sealed: Int) {
13974- self.sealed = sealed
13975- }
13976-}
13977-
13978-// MARK: Sealed convenience initializers and mutators
13979-
13980-extension Sealed {
13981- convenience init(data: Data) throws {
13982- let me = try newJSONDecoder().decode(Sealed.self, from: data)
13983- self.init(sealed: me.sealed)
13984- }
13985-
13986- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13987- guard let data = json.data(using: encoding) else {
13988- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13989- }
13990- try self.init(data: data)
13991- }
13992-
13993- convenience init(fromURL url: URL) throws {
13994- try self.init(data: try Data(contentsOf: url))
13995- }
13996-
13997- func with(
13998- sealed: Int? = nil
13999- ) -> Sealed {
14000- return Sealed(
14001- sealed: sealed ?? self.sealed
14002- )
14003- }
14004-
14005- func jsonData() throws -> Data {
14006- return try newJSONEncoder().encode(self)
14007- }
14008-
14009- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14010- return String(data: try self.jsonData(), encoding: encoding)
14011- }
14012-}
14013-
14014-// MARK: - Sel
14015-@objcMembers class Sel: NSObject, Codable {
14016- let sel: Int
14017-
14018- enum CodingKeys: String, CodingKey {
14019- case sel = "SEL"
14020- }
14021-
14022- init(sel: Int) {
14023- self.sel = sel
14024- }
14025-}
14026-
14027-// MARK: Sel convenience initializers and mutators
14028-
14029-extension Sel {
14030- convenience init(data: Data) throws {
14031- let me = try newJSONDecoder().decode(Sel.self, from: data)
14032- self.init(sel: me.sel)
14033- }
14034-
14035- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14036- guard let data = json.data(using: encoding) else {
14037- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14038- }
14039- try self.init(data: data)
14040- }
14041-
14042- convenience init(fromURL url: URL) throws {
14043- try self.init(data: try Data(contentsOf: url))
14044- }
14045-
14046- func with(
14047- sel: Int? = nil
14048- ) -> Sel {
14049- return Sel(
14050- sel: sel ?? self.sel
14051- )
14052- }
14053-
14054- func jsonData() throws -> Data {
14055- return try newJSONEncoder().encode(self)
14056- }
14057-
14058- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14059- return String(data: try self.jsonData(), encoding: encoding)
14060- }
14061-}
14062-
14063-// MARK: - Select
14064-@objcMembers class Select: NSObject, Codable {
14065- let select: Int
14066-
14067- enum CodingKeys: String, CodingKey {
14068- case select = "select"
14069- }
14070-
14071- init(select: Int) {
14072- self.select = select
14073- }
14074-}
14075-
14076-// MARK: Select convenience initializers and mutators
14077-
14078-extension Select {
14079- convenience init(data: Data) throws {
14080- let me = try newJSONDecoder().decode(Select.self, from: data)
14081- self.init(select: me.select)
14082- }
14083-
14084- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14085- guard let data = json.data(using: encoding) else {
14086- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14087- }
14088- try self.init(data: data)
14089- }
14090-
14091- convenience init(fromURL url: URL) throws {
14092- try self.init(data: try Data(contentsOf: url))
14093- }
14094-
14095- func with(
14096- select: Int? = nil
14097- ) -> Select {
14098- return Select(
14099- select: select ?? self.select
14100- )
14101- }
14102-
14103- func jsonData() throws -> Data {
14104- return try newJSONEncoder().encode(self)
14105- }
14106-
14107- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14108- return String(data: try self.jsonData(), encoding: encoding)
14109- }
14110-}
14111-
1411214112 // MARK: - Obj5
1411314113 @objcMembers class Obj5: NSObject, Codable {
1411414114 let dummy: Int
@@ -14130,6 +14130,9 @@ extension Select {
1413014130 let primitiveKind: PrimitiveKind
1413114131 let purpleSelf: Obj5Self
1413214132 let purpleTrue: TrueClass
14133+ let sealed: Sealed
14134+ let sel: Sel
14135+ let select: Select
1413314136 let sendable: Sendable
1413414137 let serialDescriptor: SerialDescriptor
1413514138 let serialName: SerialName
@@ -14172,10 +14175,7 @@ extension Select {
1417214175 let unchecked: Unchecked
1417314176 let undefined: Undefined
1417414177 let union: Union
14175- let unsafe: Unsafe
14176- let unsigned: Unsigned
1417714178 let useSerializers: UseSerializers
14178- let ushort: Ushort
1417914179
1418014180 enum CodingKeys: String, CodingKey {
1418114181 case dummy = "dummy"
@@ -14197,6 +14197,9 @@ extension Select {
1419714197 case primitiveKind = "PrimitiveKind"
1419814198 case purpleSelf = "self"
1419914199 case purpleTrue = "true"
14200+ case sealed = "sealed"
14201+ case sel = "SEL"
14202+ case select = "select"
1420014203 case sendable = "Sendable"
1420114204 case serialDescriptor = "SerialDescriptor"
1420214205 case serialName = "SerialName"
@@ -14239,13 +14242,10 @@ extension Select {
1423914242 case unchecked = "unchecked"
1424014243 case undefined = "undefined"
1424114244 case union = "union"
14242- case unsafe = "unsafe"
14243- case unsigned = "unsigned"
1424414245 case useSerializers = "UseSerializers"
14245- case ushort = "ushort"
1424614246 }
1424714247
14248- init(dummy: Int, kSerializer: KSerializer, 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, obj5Unowned: Unowned, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, 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, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, useSerializers: UseSerializers, ushort: Ushort) {
14248+ init(dummy: Int, kSerializer: KSerializer, 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, obj5Unowned: Unowned, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, 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, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, useSerializers: UseSerializers) {
1424914249 self.dummy = dummy
1425014250 self.kSerializer = kSerializer
1425114251 self.obj5Self = obj5Self
@@ -14265,6 +14265,9 @@ extension Select {
1426514265 self.primitiveKind = primitiveKind
1426614266 self.purpleSelf = purpleSelf
1426714267 self.purpleTrue = purpleTrue
14268+ self.sealed = sealed
14269+ self.sel = sel
14270+ self.select = select
1426814271 self.sendable = sendable
1426914272 self.serialDescriptor = serialDescriptor
1427014273 self.serialName = serialName
@@ -14307,10 +14310,7 @@ extension Select {
1430714310 self.unchecked = unchecked
1430814311 self.undefined = undefined
1430914312 self.union = union
14310- self.unsafe = unsafe
14311- self.unsigned = unsigned
1431214313 self.useSerializers = useSerializers
14313- self.ushort = ushort
1431414314 }
1431514315 }
1431614316
@@ -14319,7 +14319,7 @@ extension Select {
1431914319 extension Obj5 {
1432014320 convenience init(data: Data) throws {
1432114321 let me = try newJSONDecoder().decode(Obj5.self, from: data)
14322- self.init(dummy: me.dummy, kSerializer: me.kSerializer, 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, obj5Unowned: me.obj5Unowned, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, 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, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, 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, unsafe: me.unsafe, unsigned: me.unsigned, useSerializers: me.useSerializers, ushort: me.ushort)
14322+ self.init(dummy: me.dummy, kSerializer: me.kSerializer, 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, obj5Unowned: me.obj5Unowned, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, 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, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, 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, useSerializers: me.useSerializers)
1432314323 }
1432414324
1432514325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14353,6 +14353,9 @@ extension Obj5 {
1435314353 primitiveKind: PrimitiveKind? = nil,
1435414354 purpleSelf: Obj5Self? = nil,
1435514355 purpleTrue: TrueClass? = nil,
14356+ sealed: Sealed? = nil,
14357+ sel: Sel? = nil,
14358+ select: Select? = nil,
1435614359 sendable: Sendable? = nil,
1435714360 serialDescriptor: SerialDescriptor? = nil,
1435814361 serialName: SerialName? = nil,
@@ -14395,10 +14398,7 @@ extension Obj5 {
1439514398 unchecked: Unchecked? = nil,
1439614399 undefined: Undefined? = nil,
1439714400 union: Union? = nil,
14398- unsafe: Unsafe? = nil,
14399- unsigned: Unsigned? = nil,
14400- useSerializers: UseSerializers? = nil,
14401- ushort: Ushort? = nil
14401+ useSerializers: UseSerializers? = nil
1440214402 ) -> Obj5 {
1440314403 return Obj5(
1440414404 dummy: dummy ?? self.dummy,
@@ -14420,6 +14420,9 @@ extension Obj5 {
1442014420 primitiveKind: primitiveKind ?? self.primitiveKind,
1442114421 purpleSelf: purpleSelf ?? self.purpleSelf,
1442214422 purpleTrue: purpleTrue ?? self.purpleTrue,
14423+ sealed: sealed ?? self.sealed,
14424+ sel: sel ?? self.sel,
14425+ select: select ?? self.select,
1442314426 sendable: sendable ?? self.sendable,
1442414427 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1442514428 serialName: serialName ?? self.serialName,
@@ -14462,10 +14465,7 @@ extension Obj5 {
1446214465 unchecked: unchecked ?? self.unchecked,
1446314466 undefined: undefined ?? self.undefined,
1446414467 union: union ?? self.union,
14465- unsafe: unsafe ?? self.unsafe,
14466- unsigned: unsigned ?? self.unsigned,
14467- useSerializers: useSerializers ?? self.useSerializers,
14468- ushort: ushort ?? self.ushort
14468+ useSerializers: useSerializers ?? self.useSerializers
1446914469 )
1447014470 }
1447114471
@@ -15360,25 +15360,25 @@ extension TrueClass {
1536015360 }
1536115361 }
1536215362
15363-// MARK: - Sendable
15364-@objcMembers class Sendable: NSObject, Codable {
15365- let sendable: Int
15363+// MARK: - Sealed
15364+@objcMembers class Sealed: NSObject, Codable {
15365+ let sealed: Int
1536615366
1536715367 enum CodingKeys: String, CodingKey {
15368- case sendable = "Sendable"
15368+ case sealed = "sealed"
1536915369 }
1537015370
15371- init(sendable: Int) {
15372- self.sendable = sendable
15371+ init(sealed: Int) {
15372+ self.sealed = sealed
1537315373 }
1537415374 }
1537515375
15376-// MARK: Sendable convenience initializers and mutators
15376+// MARK: Sealed convenience initializers and mutators
1537715377
15378-extension Sendable {
15378+extension Sealed {
1537915379 convenience init(data: Data) throws {
15380- let me = try newJSONDecoder().decode(Sendable.self, from: data)
15381- self.init(sendable: me.sendable)
15380+ let me = try newJSONDecoder().decode(Sealed.self, from: data)
15381+ self.init(sealed: me.sealed)
1538215382 }
1538315383
1538415384 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15393,10 +15393,10 @@ extension Sendable {
1539315393 }
1539415394
1539515395 func with(
15396- sendable: Int? = nil
15397- ) -> Sendable {
15398- return Sendable(
15399- sendable: sendable ?? self.sendable
15396+ sealed: Int? = nil
15397+ ) -> Sealed {
15398+ return Sealed(
15399+ sealed: sealed ?? self.sealed
1540015400 )
1540115401 }
1540215402
@@ -15409,25 +15409,25 @@ extension Sendable {
1540915409 }
1541015410 }
1541115411
15412-// MARK: - SerialDescriptor
15413-@objcMembers class SerialDescriptor: NSObject, Codable {
15414- let serialDescriptor: Int
15412+// MARK: - Sel
15413+@objcMembers class Sel: NSObject, Codable {
15414+ let sel: Int
1541515415
1541615416 enum CodingKeys: String, CodingKey {
15417- case serialDescriptor = "SerialDescriptor"
15417+ case sel = "SEL"
1541815418 }
1541915419
15420- init(serialDescriptor: Int) {
15421- self.serialDescriptor = serialDescriptor
15420+ init(sel: Int) {
15421+ self.sel = sel
1542215422 }
1542315423 }
1542415424
15425-// MARK: SerialDescriptor convenience initializers and mutators
15425+// MARK: Sel convenience initializers and mutators
1542615426
15427-extension SerialDescriptor {
15427+extension Sel {
1542815428 convenience init(data: Data) throws {
15429- let me = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
15430- self.init(serialDescriptor: me.serialDescriptor)
15429+ let me = try newJSONDecoder().decode(Sel.self, from: data)
15430+ self.init(sel: me.sel)
1543115431 }
1543215432
1543315433 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15442,10 +15442,10 @@ extension SerialDescriptor {
1544215442 }
1544315443
1544415444 func with(
15445- serialDescriptor: Int? = nil
15446- ) -> SerialDescriptor {
15447- return SerialDescriptor(
15448- serialDescriptor: serialDescriptor ?? self.serialDescriptor
15445+ sel: Int? = nil
15446+ ) -> Sel {
15447+ return Sel(
15448+ sel: sel ?? self.sel
1544915449 )
1545015450 }
1545115451
@@ -15458,25 +15458,25 @@ extension SerialDescriptor {
1545815458 }
1545915459 }
1546015460
15461-// MARK: - SerialName
15462-@objcMembers class SerialName: NSObject, Codable {
15463- let serialName: Int
15461+// MARK: - Select
15462+@objcMembers class Select: NSObject, Codable {
15463+ let select: Int
1546415464
1546515465 enum CodingKeys: String, CodingKey {
15466- case serialName = "SerialName"
15466+ case select = "select"
1546715467 }
1546815468
15469- init(serialName: Int) {
15470- self.serialName = serialName
15469+ init(select: Int) {
15470+ self.select = select
1547115471 }
1547215472 }
1547315473
15474-// MARK: SerialName convenience initializers and mutators
15474+// MARK: Select convenience initializers and mutators
1547515475
15476-extension SerialName {
15476+extension Select {
1547715477 convenience init(data: Data) throws {
15478- let me = try newJSONDecoder().decode(SerialName.self, from: data)
15479- self.init(serialName: me.serialName)
15478+ let me = try newJSONDecoder().decode(Select.self, from: data)
15479+ self.init(select: me.select)
1548015480 }
1548115481
1548215482 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15491,10 +15491,10 @@ extension SerialName {
1549115491 }
1549215492
1549315493 func with(
15494- serialName: Int? = nil
15495- ) -> SerialName {
15496- return SerialName(
15497- serialName: serialName ?? self.serialName
15494+ select: Int? = nil
15495+ ) -> Select {
15496+ return Select(
15497+ select: select ?? self.select
1549815498 )
1549915499 }
1550015500
@@ -15507,25 +15507,25 @@ extension SerialName {
1550715507 }
1550815508 }
1550915509
15510-// MARK: - Serializable
15511-@objcMembers class Serializable: NSObject, Codable {
15512- let serializable: Int
15510+// MARK: - Sendable
15511+@objcMembers class Sendable: NSObject, Codable {
15512+ let sendable: Int
1551315513
1551415514 enum CodingKeys: String, CodingKey {
15515- case serializable = "Serializable"
15515+ case sendable = "Sendable"
1551615516 }
1551715517
15518- init(serializable: Int) {
15519- self.serializable = serializable
15518+ init(sendable: Int) {
15519+ self.sendable = sendable
1552015520 }
1552115521 }
1552215522
15523-// MARK: Serializable convenience initializers and mutators
15523+// MARK: Sendable convenience initializers and mutators
1552415524
15525-extension Serializable {
15525+extension Sendable {
1552615526 convenience init(data: Data) throws {
15527- let me = try newJSONDecoder().decode(Serializable.self, from: data)
15528- self.init(serializable: me.serializable)
15527+ let me = try newJSONDecoder().decode(Sendable.self, from: data)
15528+ self.init(sendable: me.sendable)
1552915529 }
1553015530
1553115531 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15540,11 +15540,158 @@ extension Serializable {
1554015540 }
1554115541
1554215542 func with(
15543- serializable: Int? = nil
15544- ) -> Serializable {
15545- return Serializable(
15546- serializable: serializable ?? self.serializable
15547- )
15543+ sendable: Int? = nil
15544+ ) -> Sendable {
15545+ return Sendable(
15546+ sendable: sendable ?? self.sendable
15547+ )
15548+ }
15549+
15550+ func jsonData() throws -> Data {
15551+ return try newJSONEncoder().encode(self)
15552+ }
15553+
15554+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15555+ return String(data: try self.jsonData(), encoding: encoding)
15556+ }
15557+}
15558+
15559+// MARK: - SerialDescriptor
15560+@objcMembers class SerialDescriptor: NSObject, Codable {
15561+ let serialDescriptor: Int
15562+
15563+ enum CodingKeys: String, CodingKey {
15564+ case serialDescriptor = "SerialDescriptor"
15565+ }
15566+
15567+ init(serialDescriptor: Int) {
15568+ self.serialDescriptor = serialDescriptor
15569+ }
15570+}
15571+
15572+// MARK: SerialDescriptor convenience initializers and mutators
15573+
15574+extension SerialDescriptor {
15575+ convenience init(data: Data) throws {
15576+ let me = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
15577+ self.init(serialDescriptor: me.serialDescriptor)
15578+ }
15579+
15580+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15581+ guard let data = json.data(using: encoding) else {
15582+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15583+ }
15584+ try self.init(data: data)
15585+ }
15586+
15587+ convenience init(fromURL url: URL) throws {
15588+ try self.init(data: try Data(contentsOf: url))
15589+ }
15590+
15591+ func with(
15592+ serialDescriptor: Int? = nil
15593+ ) -> SerialDescriptor {
15594+ return SerialDescriptor(
15595+ serialDescriptor: serialDescriptor ?? self.serialDescriptor
15596+ )
15597+ }
15598+
15599+ func jsonData() throws -> Data {
15600+ return try newJSONEncoder().encode(self)
15601+ }
15602+
15603+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15604+ return String(data: try self.jsonData(), encoding: encoding)
15605+ }
15606+}
15607+
15608+// MARK: - SerialName
15609+@objcMembers class SerialName: NSObject, Codable {
15610+ let serialName: Int
15611+
15612+ enum CodingKeys: String, CodingKey {
15613+ case serialName = "SerialName"
15614+ }
15615+
15616+ init(serialName: Int) {
15617+ self.serialName = serialName
15618+ }
15619+}
15620+
15621+// MARK: SerialName convenience initializers and mutators
15622+
15623+extension SerialName {
15624+ convenience init(data: Data) throws {
15625+ let me = try newJSONDecoder().decode(SerialName.self, from: data)
15626+ self.init(serialName: me.serialName)
15627+ }
15628+
15629+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15630+ guard let data = json.data(using: encoding) else {
15631+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15632+ }
15633+ try self.init(data: data)
15634+ }
15635+
15636+ convenience init(fromURL url: URL) throws {
15637+ try self.init(data: try Data(contentsOf: url))
15638+ }
15639+
15640+ func with(
15641+ serialName: Int? = nil
15642+ ) -> SerialName {
15643+ return SerialName(
15644+ serialName: serialName ?? self.serialName
15645+ )
15646+ }
15647+
15648+ func jsonData() throws -> Data {
15649+ return try newJSONEncoder().encode(self)
15650+ }
15651+
15652+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15653+ return String(data: try self.jsonData(), encoding: encoding)
15654+ }
15655+}
15656+
15657+// MARK: - Serializable
15658+@objcMembers class Serializable: NSObject, Codable {
15659+ let serializable: Int
15660+
15661+ enum CodingKeys: String, CodingKey {
15662+ case serializable = "Serializable"
15663+ }
15664+
15665+ init(serializable: Int) {
15666+ self.serializable = serializable
15667+ }
15668+}
15669+
15670+// MARK: Serializable convenience initializers and mutators
15671+
15672+extension Serializable {
15673+ convenience init(data: Data) throws {
15674+ let me = try newJSONDecoder().decode(Serializable.self, from: data)
15675+ self.init(serializable: me.serializable)
15676+ }
15677+
15678+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15679+ guard let data = json.data(using: encoding) else {
15680+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15681+ }
15682+ try self.init(data: data)
15683+ }
15684+
15685+ convenience init(fromURL url: URL) throws {
15686+ try self.init(data: try Data(contentsOf: url))
15687+ }
15688+
15689+ func with(
15690+ serializable: Int? = nil
15691+ ) -> Serializable {
15692+ return Serializable(
15693+ serializable: serializable ?? self.serializable
15694+ )
1554815695 }
1554915696
1555015697 func jsonData() throws -> Data {
@@ -17418,104 +17565,6 @@ extension Union {
1741817565 }
1741917566 }
1742017567
17421-// MARK: - Unsafe
17422-@objcMembers class Unsafe: NSObject, Codable {
17423- let unsafe: Int
17424-
17425- enum CodingKeys: String, CodingKey {
17426- case unsafe = "unsafe"
17427- }
17428-
17429- init(unsafe: Int) {
17430- self.unsafe = unsafe
17431- }
17432-}
17433-
17434-// MARK: Unsafe convenience initializers and mutators
17435-
17436-extension Unsafe {
17437- convenience init(data: Data) throws {
17438- let me = try newJSONDecoder().decode(Unsafe.self, from: data)
17439- self.init(unsafe: me.unsafe)
17440- }
17441-
17442- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17443- guard let data = json.data(using: encoding) else {
17444- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17445- }
17446- try self.init(data: data)
17447- }
17448-
17449- convenience init(fromURL url: URL) throws {
17450- try self.init(data: try Data(contentsOf: url))
17451- }
17452-
17453- func with(
17454- unsafe: Int? = nil
17455- ) -> Unsafe {
17456- return Unsafe(
17457- unsafe: unsafe ?? self.unsafe
17458- )
17459- }
17460-
17461- func jsonData() throws -> Data {
17462- return try newJSONEncoder().encode(self)
17463- }
17464-
17465- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17466- return String(data: try self.jsonData(), encoding: encoding)
17467- }
17468-}
17469-
17470-// MARK: - Unsigned
17471-@objcMembers class Unsigned: NSObject, Codable {
17472- let unsigned: Int
17473-
17474- enum CodingKeys: String, CodingKey {
17475- case unsigned = "unsigned"
17476- }
17477-
17478- init(unsigned: Int) {
17479- self.unsigned = unsigned
17480- }
17481-}
17482-
17483-// MARK: Unsigned convenience initializers and mutators
17484-
17485-extension Unsigned {
17486- convenience init(data: Data) throws {
17487- let me = try newJSONDecoder().decode(Unsigned.self, from: data)
17488- self.init(unsigned: me.unsigned)
17489- }
17490-
17491- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17492- guard let data = json.data(using: encoding) else {
17493- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17494- }
17495- try self.init(data: data)
17496- }
17497-
17498- convenience init(fromURL url: URL) throws {
17499- try self.init(data: try Data(contentsOf: url))
17500- }
17501-
17502- func with(
17503- unsigned: Int? = nil
17504- ) -> Unsigned {
17505- return Unsigned(
17506- unsigned: unsigned ?? self.unsigned
17507- )
17508- }
17509-
17510- func jsonData() throws -> Data {
17511- return try newJSONEncoder().encode(self)
17512- }
17513-
17514- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17515- return String(data: try self.jsonData(), encoding: encoding)
17516- }
17517-}
17518-
1751917568 // MARK: - UseSerializers
1752017569 @objcMembers class UseSerializers: NSObject, Codable {
1752117570 let useSerializers: Int
@@ -17565,55 +17614,6 @@ extension UseSerializers {
1756517614 }
1756617615 }
1756717616
17568-// MARK: - Ushort
17569-@objcMembers class Ushort: NSObject, Codable {
17570- let ushort: Int
17571-
17572- enum CodingKeys: String, CodingKey {
17573- case ushort = "ushort"
17574- }
17575-
17576- init(ushort: Int) {
17577- self.ushort = ushort
17578- }
17579-}
17580-
17581-// MARK: Ushort convenience initializers and mutators
17582-
17583-extension Ushort {
17584- convenience init(data: Data) throws {
17585- let me = try newJSONDecoder().decode(Ushort.self, from: data)
17586- self.init(ushort: me.ushort)
17587- }
17588-
17589- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17590- guard let data = json.data(using: encoding) else {
17591- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17592- }
17593- try self.init(data: data)
17594- }
17595-
17596- convenience init(fromURL url: URL) throws {
17597- try self.init(data: try Data(contentsOf: url))
17598- }
17599-
17600- func with(
17601- ushort: Int? = nil
17602- ) -> Ushort {
17603- return Ushort(
17604- ushort: ushort ?? self.ushort
17605- )
17606- }
17607-
17608- func jsonData() throws -> Data {
17609- return try newJSONEncoder().encode(self)
17610- }
17611-
17612- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17613- return String(data: try self.jsonData(), encoding: encoding)
17614- }
17615-}
17616-
1761717617 // MARK: - Obj6
1761817618 @objcMembers class Obj6: NSObject, Codable {
1761917619 let dummy: Int
@@ -17622,6 +17622,9 @@ extension Ushort {
1762217622 let obj6Where: Where
1762317623 let obj6While: While
1762417624 let obj6WillSet: WillSet
17625+ let unsafe: Unsafe
17626+ let unsigned: Unsigned
17627+ let ushort: Ushort
1762517628 let using: Using
1762617629 let utf8JSONReader: Utf8JSONReader
1762717630 let utf8JSONWriter: Utf8JSONWriter
@@ -17643,6 +17646,9 @@ extension Ushort {
1764317646 case obj6Where = "where"
1764417647 case obj6While = "while"
1764517648 case obj6WillSet = "willSet"
17649+ case unsafe = "unsafe"
17650+ case unsigned = "unsigned"
17651+ case ushort = "ushort"
1764617652 case using = "using"
1764717653 case utf8JSONReader = "Utf8JsonReader"
1764817654 case utf8JSONWriter = "Utf8JsonWriter"
@@ -17658,13 +17664,16 @@ extension Ushort {
1765817664 case yield = "yield"
1765917665 }
1766017666
17661- init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, 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) {
17667+ init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, unsafe: Unsafe, unsigned: Unsigned, 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) {
1766217668 self.dummy = dummy
1766317669 self.obj6Var = obj6Var
1766417670 self.obj6Weak = obj6Weak
1766517671 self.obj6Where = obj6Where
1766617672 self.obj6While = obj6While
1766717673 self.obj6WillSet = obj6WillSet
17674+ self.unsafe = unsafe
17675+ self.unsigned = unsigned
17676+ self.ushort = ushort
1766817677 self.using = using
1766917678 self.utf8JSONReader = utf8JSONReader
1767017679 self.utf8JSONWriter = utf8JSONWriter
@@ -17686,7 +17695,7 @@ extension Ushort {
1768617695 extension Obj6 {
1768717696 convenience init(data: Data) throws {
1768817697 let me = try newJSONDecoder().decode(Obj6.self, from: data)
17689- self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, 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)
17698+ self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, unsafe: me.unsafe, unsigned: me.unsigned, 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)
1769017699 }
1769117700
1769217701 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17707,6 +17716,9 @@ extension Obj6 {
1770717716 obj6Where: Where? = nil,
1770817717 obj6While: While? = nil,
1770917718 obj6WillSet: WillSet? = nil,
17719+ unsafe: Unsafe? = nil,
17720+ unsigned: Unsigned? = nil,
17721+ ushort: Ushort? = nil,
1771017722 using: Using? = nil,
1771117723 utf8JSONReader: Utf8JSONReader? = nil,
1771217724 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -17728,6 +17740,9 @@ extension Obj6 {
1772817740 obj6Where: obj6Where ?? self.obj6Where,
1772917741 obj6While: obj6While ?? self.obj6While,
1773017742 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17743+ unsafe: unsafe ?? self.unsafe,
17744+ unsigned: unsigned ?? self.unsigned,
17745+ ushort: ushort ?? self.ushort,
1773117746 using: using ?? self.using,
1773217747 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1773317748 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -17998,6 +18013,153 @@ extension WillSet {
1799818013 }
1799918014 }
1800018015
18016+// MARK: - Unsafe
18017+@objcMembers class Unsafe: NSObject, Codable {
18018+ let unsafe: Int
18019+
18020+ enum CodingKeys: String, CodingKey {
18021+ case unsafe = "unsafe"
18022+ }
18023+
18024+ init(unsafe: Int) {
18025+ self.unsafe = unsafe
18026+ }
18027+}
18028+
18029+// MARK: Unsafe convenience initializers and mutators
18030+
18031+extension Unsafe {
18032+ convenience init(data: Data) throws {
18033+ let me = try newJSONDecoder().decode(Unsafe.self, from: data)
18034+ self.init(unsafe: me.unsafe)
18035+ }
18036+
18037+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18038+ guard let data = json.data(using: encoding) else {
18039+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18040+ }
18041+ try self.init(data: data)
18042+ }
18043+
18044+ convenience init(fromURL url: URL) throws {
18045+ try self.init(data: try Data(contentsOf: url))
18046+ }
18047+
18048+ func with(
18049+ unsafe: Int? = nil
18050+ ) -> Unsafe {
18051+ return Unsafe(
18052+ unsafe: unsafe ?? self.unsafe
18053+ )
18054+ }
18055+
18056+ func jsonData() throws -> Data {
18057+ return try newJSONEncoder().encode(self)
18058+ }
18059+
18060+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18061+ return String(data: try self.jsonData(), encoding: encoding)
18062+ }
18063+}
18064+
18065+// MARK: - Unsigned
18066+@objcMembers class Unsigned: NSObject, Codable {
18067+ let unsigned: Int
18068+
18069+ enum CodingKeys: String, CodingKey {
18070+ case unsigned = "unsigned"
18071+ }
18072+
18073+ init(unsigned: Int) {
18074+ self.unsigned = unsigned
18075+ }
18076+}
18077+
18078+// MARK: Unsigned convenience initializers and mutators
18079+
18080+extension Unsigned {
18081+ convenience init(data: Data) throws {
18082+ let me = try newJSONDecoder().decode(Unsigned.self, from: data)
18083+ self.init(unsigned: me.unsigned)
18084+ }
18085+
18086+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18087+ guard let data = json.data(using: encoding) else {
18088+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18089+ }
18090+ try self.init(data: data)
18091+ }
18092+
18093+ convenience init(fromURL url: URL) throws {
18094+ try self.init(data: try Data(contentsOf: url))
18095+ }
18096+
18097+ func with(
18098+ unsigned: Int? = nil
18099+ ) -> Unsigned {
18100+ return Unsigned(
18101+ unsigned: unsigned ?? self.unsigned
18102+ )
18103+ }
18104+
18105+ func jsonData() throws -> Data {
18106+ return try newJSONEncoder().encode(self)
18107+ }
18108+
18109+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18110+ return String(data: try self.jsonData(), encoding: encoding)
18111+ }
18112+}
18113+
18114+// MARK: - Ushort
18115+@objcMembers class Ushort: NSObject, Codable {
18116+ let ushort: Int
18117+
18118+ enum CodingKeys: String, CodingKey {
18119+ case ushort = "ushort"
18120+ }
18121+
18122+ init(ushort: Int) {
18123+ self.ushort = ushort
18124+ }
18125+}
18126+
18127+// MARK: Ushort convenience initializers and mutators
18128+
18129+extension Ushort {
18130+ convenience init(data: Data) throws {
18131+ let me = try newJSONDecoder().decode(Ushort.self, from: data)
18132+ self.init(ushort: me.ushort)
18133+ }
18134+
18135+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18136+ guard let data = json.data(using: encoding) else {
18137+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18138+ }
18139+ try self.init(data: data)
18140+ }
18141+
18142+ convenience init(fromURL url: URL) throws {
18143+ try self.init(data: try Data(contentsOf: url))
18144+ }
18145+
18146+ func with(
18147+ ushort: Int? = nil
18148+ ) -> Ushort {
18149+ return Ushort(
18150+ ushort: ushort ?? self.ushort
18151+ )
18152+ }
18153+
18154+ func jsonData() throws -> Data {
18155+ return try newJSONEncoder().encode(self)
18156+ }
18157+
18158+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18159+ return String(data: try self.jsonData(), encoding: encoding)
18160+ }
18161+}
18162+
1800118163 // MARK: - Using
1800218164 @objcMembers class Using: NSObject, Codable {
1800318165 let using: Int
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+596 −434
@@ -7139,6 +7139,7 @@ struct Obj3: Codable, Equatable {
71397139 let jsonWriter: JSONWriter
71407140 let lambda: Lambda
71417141 let list: List
7142+ let localDate: LocalDate
71427143 let locale: LocaleClass
71437144 let lock: Lock
71447145 let long: Long
@@ -7152,7 +7153,6 @@ struct Obj3: Codable, Equatable {
71527153 let new: New
71537154 let newtonsoft: Newtonsoft
71547155 let no: No
7155- let noexcept: Noexcept
71567156 let obj3Guard: Guard
71577157 let obj3If: If
71587158 let obj3Import: Import
@@ -7206,6 +7206,7 @@ struct Obj3: Codable, Equatable {
72067206 case jsonWriter = "json_writer"
72077207 case lambda = "lambda"
72087208 case list = "list"
7209+ case localDate = "LocalDate"
72097210 case locale = "Locale"
72107211 case lock = "lock"
72117212 case long = "long"
@@ -7219,7 +7220,6 @@ struct Obj3: Codable, Equatable {
72197220 case new = "new"
72207221 case newtonsoft = "newtonsoft"
72217222 case no = "NO"
7222- case noexcept = "noexcept"
72237223 case obj3Guard = "guard"
72247224 case obj3If = "if"
72257225 case obj3Import = "import"
@@ -7293,6 +7293,7 @@ extension Obj3 {
72937293 jsonWriter: JSONWriter? = nil,
72947294 lambda: Lambda? = nil,
72957295 list: List? = nil,
7296+ localDate: LocalDate? = nil,
72967297 locale: LocaleClass? = nil,
72977298 lock: Lock? = nil,
72987299 long: Long? = nil,
@@ -7306,7 +7307,6 @@ extension Obj3 {
73067307 new: New? = nil,
73077308 newtonsoft: Newtonsoft? = nil,
73087309 no: No? = nil,
7309- noexcept: Noexcept? = nil,
73107310 obj3Guard: Guard? = nil,
73117311 obj3If: If? = nil,
73127312 obj3Import: Import? = nil,
@@ -7360,6 +7360,7 @@ extension Obj3 {
73607360 jsonWriter: jsonWriter ?? self.jsonWriter,
73617361 lambda: lambda ?? self.lambda,
73627362 list: list ?? self.list,
7363+ localDate: localDate ?? self.localDate,
73637364 locale: locale ?? self.locale,
73647365 lock: lock ?? self.lock,
73657366 long: long ?? self.long,
@@ -7373,7 +7374,6 @@ extension Obj3 {
73737374 new: new ?? self.new,
73747375 newtonsoft: newtonsoft ?? self.newtonsoft,
73757376 no: no ?? self.no,
7376- noexcept: noexcept ?? self.noexcept,
73777377 obj3Guard: obj3Guard ?? self.obj3Guard,
73787378 obj3If: obj3If ?? self.obj3If,
73797379 obj3Import: obj3Import ?? self.obj3Import,
@@ -9108,6 +9108,56 @@ extension List {
91089108 // for types that require the use of JSONAny, nor will the implementation of Hashable be
91099109 // synthesized for types that have collections (such as arrays or dictionaries).
91109110
9111+// MARK: - LocalDate
9112+struct LocalDate: Codable, Equatable {
9113+ let localDate: Int
9114+
9115+ enum CodingKeys: String, CodingKey {
9116+ case localDate = "LocalDate"
9117+ }
9118+}
9119+
9120+// MARK: LocalDate convenience initializers and mutators
9121+
9122+extension LocalDate {
9123+ init(data: Data) throws {
9124+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
9125+ }
9126+
9127+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9128+ guard let data = json.data(using: encoding) else {
9129+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9130+ }
9131+ try self.init(data: data)
9132+ }
9133+
9134+ init(fromURL url: URL) throws {
9135+ try self.init(data: try Data(contentsOf: url))
9136+ }
9137+
9138+ func with(
9139+ localDate: Int? = nil
9140+ ) -> LocalDate {
9141+ return LocalDate(
9142+ localDate: localDate ?? self.localDate
9143+ )
9144+ }
9145+
9146+ func jsonData() throws -> Data {
9147+ return try newJSONEncoder().encode(self)
9148+ }
9149+
9150+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9151+ return String(data: try self.jsonData(), encoding: encoding)
9152+ }
9153+}
9154+
9155+//
9156+// Hashable or Equatable:
9157+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9158+// for types that require the use of JSONAny, nor will the implementation of Hashable be
9159+// synthesized for types that have collections (such as arrays or dictionaries).
9160+
91119161 // MARK: - LocaleClass
91129162 struct LocaleClass: Codable, Equatable {
91139163 let locale: Int
@@ -9758,56 +9808,6 @@ extension No {
97589808 // for types that require the use of JSONAny, nor will the implementation of Hashable be
97599809 // synthesized for types that have collections (such as arrays or dictionaries).
97609810
9761-// MARK: - Noexcept
9762-struct Noexcept: Codable, Equatable {
9763- let noexcept: Int
9764-
9765- enum CodingKeys: String, CodingKey {
9766- case noexcept = "noexcept"
9767- }
9768-}
9769-
9770-// MARK: Noexcept convenience initializers and mutators
9771-
9772-extension Noexcept {
9773- init(data: Data) throws {
9774- self = try newJSONDecoder().decode(Noexcept.self, from: data)
9775- }
9776-
9777- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9778- guard let data = json.data(using: encoding) else {
9779- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9780- }
9781- try self.init(data: data)
9782- }
9783-
9784- init(fromURL url: URL) throws {
9785- try self.init(data: try Data(contentsOf: url))
9786- }
9787-
9788- func with(
9789- noexcept: Int? = nil
9790- ) -> Noexcept {
9791- return Noexcept(
9792- noexcept: noexcept ?? self.noexcept
9793- )
9794- }
9795-
9796- func jsonData() throws -> Data {
9797- return try newJSONEncoder().encode(self)
9798- }
9799-
9800- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9801- return String(data: try self.jsonData(), encoding: encoding)
9802- }
9803-}
9804-
9805-//
9806-// Hashable or Equatable:
9807-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
9808-// for types that require the use of JSONAny, nor will the implementation of Hashable be
9809-// synthesized for types that have collections (such as arrays or dictionaries).
9810-
98119811 // MARK: - Guard
98129812 struct Guard: Codable, Equatable {
98139813 let guardGuard: Int
@@ -10612,6 +10612,7 @@ extension Nil {
1061210612 struct Obj4: Codable, Equatable {
1061310613 let dummy: Int
1061410614 let noSuchMethod: NoSuchMethod
10615+ let noexcept: Noexcept
1061510616 let nonatomic: Nonatomic
1061610617 let none: None
1061710618 let nonlocal: Nonlocal
@@ -10644,6 +10645,8 @@ struct Obj4: Codable, Equatable {
1064410645 let object: Object
1064510646 let objectMapper: ObjectMapper
1064610647 let of: Of
10648+ let offsetDateTime: OffsetDateTime
10649+ let offsetTime: OffsetTime
1064710650 let oneway: Oneway
1064810651 let or: Or
1064910652 let orEq: OrEq
@@ -10672,13 +10675,11 @@ struct Obj4: Codable, Equatable {
1067210675 let runtimeType: RuntimeType
1067310676 let s: S
1067410677 let sbyte: Sbyte
10675- let sealed: Sealed
10676- let sel: Sel
10677- let select: Select
1067810678
1067910679 enum CodingKeys: String, CodingKey {
1068010680 case dummy = "dummy"
1068110681 case noSuchMethod = "noSuchMethod"
10682+ case noexcept = "noexcept"
1068210683 case nonatomic = "nonatomic"
1068310684 case none = "None"
1068410685 case nonlocal = "nonlocal"
@@ -10711,6 +10712,8 @@ struct Obj4: Codable, Equatable {
1071110712 case object = "object"
1071210713 case objectMapper = "ObjectMapper"
1071310714 case of = "of"
10715+ case offsetDateTime = "OffsetDateTime"
10716+ case offsetTime = "OffsetTime"
1071410717 case oneway = "oneway"
1071510718 case or = "or"
1071610719 case orEq = "or_eq"
@@ -10739,9 +10742,6 @@ struct Obj4: Codable, Equatable {
1073910742 case runtimeType = "runtimeType"
1074010743 case s = "s"
1074110744 case sbyte = "sbyte"
10742- case sealed = "sealed"
10743- case sel = "SEL"
10744- case select = "select"
1074510745 }
1074610746 }
1074710747
@@ -10766,6 +10766,7 @@ extension Obj4 {
1076610766 func with(
1076710767 dummy: Int? = nil,
1076810768 noSuchMethod: NoSuchMethod? = nil,
10769+ noexcept: Noexcept? = nil,
1076910770 nonatomic: Nonatomic? = nil,
1077010771 none: None? = nil,
1077110772 nonlocal: Nonlocal? = nil,
@@ -10798,6 +10799,8 @@ extension Obj4 {
1079810799 object: Object? = nil,
1079910800 objectMapper: ObjectMapper? = nil,
1080010801 of: Of? = nil,
10802+ offsetDateTime: OffsetDateTime? = nil,
10803+ offsetTime: OffsetTime? = nil,
1080110804 oneway: Oneway? = nil,
1080210805 or: Or? = nil,
1080310806 orEq: OrEq? = nil,
@@ -10825,14 +10828,12 @@ extension Obj4 {
1082510828 retain: Retain? = nil,
1082610829 runtimeType: RuntimeType? = nil,
1082710830 s: S? = nil,
10828- sbyte: Sbyte? = nil,
10829- sealed: Sealed? = nil,
10830- sel: Sel? = nil,
10831- select: Select? = nil
10831+ sbyte: Sbyte? = nil
1083210832 ) -> Obj4 {
1083310833 return Obj4(
1083410834 dummy: dummy ?? self.dummy,
1083510835 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
10836+ noexcept: noexcept ?? self.noexcept,
1083610837 nonatomic: nonatomic ?? self.nonatomic,
1083710838 none: none ?? self.none,
1083810839 nonlocal: nonlocal ?? self.nonlocal,
@@ -10865,6 +10866,8 @@ extension Obj4 {
1086510866 object: object ?? self.object,
1086610867 objectMapper: objectMapper ?? self.objectMapper,
1086710868 of: of ?? self.of,
10869+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
10870+ offsetTime: offsetTime ?? self.offsetTime,
1086810871 oneway: oneway ?? self.oneway,
1086910872 or: or ?? self.or,
1087010873 orEq: orEq ?? self.orEq,
@@ -10892,10 +10895,7 @@ extension Obj4 {
1089210895 retain: retain ?? self.retain,
1089310896 runtimeType: runtimeType ?? self.runtimeType,
1089410897 s: s ?? self.s,
10895- sbyte: sbyte ?? self.sbyte,
10896- sealed: sealed ?? self.sealed,
10897- sel: sel ?? self.sel,
10898- select: select ?? self.select
10898+ sbyte: sbyte ?? self.sbyte
1089910899 )
1090010900 }
1090110901
@@ -10964,6 +10964,56 @@ extension NoSuchMethod {
1096410964 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1096510965 // synthesized for types that have collections (such as arrays or dictionaries).
1096610966
10967+// MARK: - Noexcept
10968+struct Noexcept: Codable, Equatable {
10969+ let noexcept: Int
10970+
10971+ enum CodingKeys: String, CodingKey {
10972+ case noexcept = "noexcept"
10973+ }
10974+}
10975+
10976+// MARK: Noexcept convenience initializers and mutators
10977+
10978+extension Noexcept {
10979+ init(data: Data) throws {
10980+ self = try newJSONDecoder().decode(Noexcept.self, from: data)
10981+ }
10982+
10983+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10984+ guard let data = json.data(using: encoding) else {
10985+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10986+ }
10987+ try self.init(data: data)
10988+ }
10989+
10990+ init(fromURL url: URL) throws {
10991+ try self.init(data: try Data(contentsOf: url))
10992+ }
10993+
10994+ func with(
10995+ noexcept: Int? = nil
10996+ ) -> Noexcept {
10997+ return Noexcept(
10998+ noexcept: noexcept ?? self.noexcept
10999+ )
11000+ }
11001+
11002+ func jsonData() throws -> Data {
11003+ return try newJSONEncoder().encode(self)
11004+ }
11005+
11006+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11007+ return String(data: try self.jsonData(), encoding: encoding)
11008+ }
11009+}
11010+
11011+//
11012+// Hashable or Equatable:
11013+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
11014+// for types that require the use of JSONAny, nor will the implementation of Hashable be
11015+// synthesized for types that have collections (such as arrays or dictionaries).
11016+
1096711017 // MARK: - Nonatomic
1096811018 struct Nonatomic: Codable, Equatable {
1096911019 let nonatomic: Int
@@ -12564,6 +12614,106 @@ extension Of {
1256412614 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1256512615 // synthesized for types that have collections (such as arrays or dictionaries).
1256612616
12617+// MARK: - OffsetDateTime
12618+struct OffsetDateTime: Codable, Equatable {
12619+ let offsetDateTime: Int
12620+
12621+ enum CodingKeys: String, CodingKey {
12622+ case offsetDateTime = "OffsetDateTime"
12623+ }
12624+}
12625+
12626+// MARK: OffsetDateTime convenience initializers and mutators
12627+
12628+extension OffsetDateTime {
12629+ init(data: Data) throws {
12630+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
12631+ }
12632+
12633+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12634+ guard let data = json.data(using: encoding) else {
12635+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12636+ }
12637+ try self.init(data: data)
12638+ }
12639+
12640+ init(fromURL url: URL) throws {
12641+ try self.init(data: try Data(contentsOf: url))
12642+ }
12643+
12644+ func with(
12645+ offsetDateTime: Int? = nil
12646+ ) -> OffsetDateTime {
12647+ return OffsetDateTime(
12648+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
12649+ )
12650+ }
12651+
12652+ func jsonData() throws -> Data {
12653+ return try newJSONEncoder().encode(self)
12654+ }
12655+
12656+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12657+ return String(data: try self.jsonData(), encoding: encoding)
12658+ }
12659+}
12660+
12661+//
12662+// Hashable or Equatable:
12663+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
12664+// for types that require the use of JSONAny, nor will the implementation of Hashable be
12665+// synthesized for types that have collections (such as arrays or dictionaries).
12666+
12667+// MARK: - OffsetTime
12668+struct OffsetTime: Codable, Equatable {
12669+ let offsetTime: Int
12670+
12671+ enum CodingKeys: String, CodingKey {
12672+ case offsetTime = "OffsetTime"
12673+ }
12674+}
12675+
12676+// MARK: OffsetTime convenience initializers and mutators
12677+
12678+extension OffsetTime {
12679+ init(data: Data) throws {
12680+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
12681+ }
12682+
12683+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12684+ guard let data = json.data(using: encoding) else {
12685+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12686+ }
12687+ try self.init(data: data)
12688+ }
12689+
12690+ init(fromURL url: URL) throws {
12691+ try self.init(data: try Data(contentsOf: url))
12692+ }
12693+
12694+ func with(
12695+ offsetTime: Int? = nil
12696+ ) -> OffsetTime {
12697+ return OffsetTime(
12698+ offsetTime: offsetTime ?? self.offsetTime
12699+ )
12700+ }
12701+
12702+ func jsonData() throws -> Data {
12703+ return try newJSONEncoder().encode(self)
12704+ }
12705+
12706+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12707+ return String(data: try self.jsonData(), encoding: encoding)
12708+ }
12709+}
12710+
12711+//
12712+// Hashable or Equatable:
12713+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
12714+// for types that require the use of JSONAny, nor will the implementation of Hashable be
12715+// synthesized for types that have collections (such as arrays or dictionaries).
12716+
1256712717 // MARK: - Oneway
1256812718 struct Oneway: Codable, Equatable {
1256912719 let oneway: Int
@@ -13964,156 +14114,6 @@ extension Sbyte {
1396414114 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1396514115 // synthesized for types that have collections (such as arrays or dictionaries).
1396614116
13967-// MARK: - Sealed
13968-struct Sealed: Codable, Equatable {
13969- let sealed: Int
13970-
13971- enum CodingKeys: String, CodingKey {
13972- case sealed = "sealed"
13973- }
13974-}
13975-
13976-// MARK: Sealed convenience initializers and mutators
13977-
13978-extension Sealed {
13979- init(data: Data) throws {
13980- self = try newJSONDecoder().decode(Sealed.self, from: data)
13981- }
13982-
13983- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13984- guard let data = json.data(using: encoding) else {
13985- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13986- }
13987- try self.init(data: data)
13988- }
13989-
13990- init(fromURL url: URL) throws {
13991- try self.init(data: try Data(contentsOf: url))
13992- }
13993-
13994- func with(
13995- sealed: Int? = nil
13996- ) -> Sealed {
13997- return Sealed(
13998- sealed: sealed ?? self.sealed
13999- )
14000- }
14001-
14002- func jsonData() throws -> Data {
14003- return try newJSONEncoder().encode(self)
14004- }
14005-
14006- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14007- return String(data: try self.jsonData(), encoding: encoding)
14008- }
14009-}
14010-
14011-//
14012-// Hashable or Equatable:
14013-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14014-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14015-// synthesized for types that have collections (such as arrays or dictionaries).
14016-
14017-// MARK: - Sel
14018-struct Sel: Codable, Equatable {
14019- let sel: Int
14020-
14021- enum CodingKeys: String, CodingKey {
14022- case sel = "SEL"
14023- }
14024-}
14025-
14026-// MARK: Sel convenience initializers and mutators
14027-
14028-extension Sel {
14029- init(data: Data) throws {
14030- self = try newJSONDecoder().decode(Sel.self, from: data)
14031- }
14032-
14033- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14034- guard let data = json.data(using: encoding) else {
14035- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14036- }
14037- try self.init(data: data)
14038- }
14039-
14040- init(fromURL url: URL) throws {
14041- try self.init(data: try Data(contentsOf: url))
14042- }
14043-
14044- func with(
14045- sel: Int? = nil
14046- ) -> Sel {
14047- return Sel(
14048- sel: sel ?? self.sel
14049- )
14050- }
14051-
14052- func jsonData() throws -> Data {
14053- return try newJSONEncoder().encode(self)
14054- }
14055-
14056- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14057- return String(data: try self.jsonData(), encoding: encoding)
14058- }
14059-}
14060-
14061-//
14062-// Hashable or Equatable:
14063-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14064-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14065-// synthesized for types that have collections (such as arrays or dictionaries).
14066-
14067-// MARK: - Select
14068-struct Select: Codable, Equatable {
14069- let select: Int
14070-
14071- enum CodingKeys: String, CodingKey {
14072- case select = "select"
14073- }
14074-}
14075-
14076-// MARK: Select convenience initializers and mutators
14077-
14078-extension Select {
14079- init(data: Data) throws {
14080- self = try newJSONDecoder().decode(Select.self, from: data)
14081- }
14082-
14083- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
14084- guard let data = json.data(using: encoding) else {
14085- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
14086- }
14087- try self.init(data: data)
14088- }
14089-
14090- init(fromURL url: URL) throws {
14091- try self.init(data: try Data(contentsOf: url))
14092- }
14093-
14094- func with(
14095- select: Int? = nil
14096- ) -> Select {
14097- return Select(
14098- select: select ?? self.select
14099- )
14100- }
14101-
14102- func jsonData() throws -> Data {
14103- return try newJSONEncoder().encode(self)
14104- }
14105-
14106- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
14107- return String(data: try self.jsonData(), encoding: encoding)
14108- }
14109-}
14110-
14111-//
14112-// Hashable or Equatable:
14113-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
14114-// for types that require the use of JSONAny, nor will the implementation of Hashable be
14115-// synthesized for types that have collections (such as arrays or dictionaries).
14116-
1411714117 // MARK: - Obj5
1411814118 struct Obj5: Codable, Equatable {
1411914119 let dummy: Int
@@ -14135,6 +14135,9 @@ struct Obj5: Codable, Equatable {
1413514135 let primitiveKind: PrimitiveKind
1413614136 let purpleSelf: Obj5Self
1413714137 let purpleTrue: TrueClass
14138+ let sealed: Sealed
14139+ let sel: Sel
14140+ let select: Select
1413814141 let sendable: Sendable
1413914142 let serialDescriptor: SerialDescriptor
1414014143 let serialName: SerialName
@@ -14177,10 +14180,7 @@ struct Obj5: Codable, Equatable {
1417714180 let unchecked: Unchecked
1417814181 let undefined: Undefined
1417914182 let union: Union
14180- let unsafe: Unsafe
14181- let unsigned: Unsigned
1418214183 let useSerializers: UseSerializers
14183- let ushort: Ushort
1418414184
1418514185 enum CodingKeys: String, CodingKey {
1418614186 case dummy = "dummy"
@@ -14202,6 +14202,9 @@ struct Obj5: Codable, Equatable {
1420214202 case primitiveKind = "PrimitiveKind"
1420314203 case purpleSelf = "self"
1420414204 case purpleTrue = "true"
14205+ case sealed = "sealed"
14206+ case sel = "SEL"
14207+ case select = "select"
1420514208 case sendable = "Sendable"
1420614209 case serialDescriptor = "SerialDescriptor"
1420714210 case serialName = "SerialName"
@@ -14244,10 +14247,7 @@ struct Obj5: Codable, Equatable {
1424414247 case unchecked = "unchecked"
1424514248 case undefined = "undefined"
1424614249 case union = "union"
14247- case unsafe = "unsafe"
14248- case unsigned = "unsigned"
1424914250 case useSerializers = "UseSerializers"
14250- case ushort = "ushort"
1425114251 }
1425214252 }
1425314253
@@ -14289,6 +14289,9 @@ extension Obj5 {
1428914289 primitiveKind: PrimitiveKind? = nil,
1429014290 purpleSelf: Obj5Self? = nil,
1429114291 purpleTrue: TrueClass? = nil,
14292+ sealed: Sealed? = nil,
14293+ sel: Sel? = nil,
14294+ select: Select? = nil,
1429214295 sendable: Sendable? = nil,
1429314296 serialDescriptor: SerialDescriptor? = nil,
1429414297 serialName: SerialName? = nil,
@@ -14331,10 +14334,7 @@ extension Obj5 {
1433114334 unchecked: Unchecked? = nil,
1433214335 undefined: Undefined? = nil,
1433314336 union: Union? = nil,
14334- unsafe: Unsafe? = nil,
14335- unsigned: Unsigned? = nil,
14336- useSerializers: UseSerializers? = nil,
14337- ushort: Ushort? = nil
14337+ useSerializers: UseSerializers? = nil
1433814338 ) -> Obj5 {
1433914339 return Obj5(
1434014340 dummy: dummy ?? self.dummy,
@@ -14356,6 +14356,9 @@ extension Obj5 {
1435614356 primitiveKind: primitiveKind ?? self.primitiveKind,
1435714357 purpleSelf: purpleSelf ?? self.purpleSelf,
1435814358 purpleTrue: purpleTrue ?? self.purpleTrue,
14359+ sealed: sealed ?? self.sealed,
14360+ sel: sel ?? self.sel,
14361+ select: select ?? self.select,
1435914362 sendable: sendable ?? self.sendable,
1436014363 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1436114364 serialName: serialName ?? self.serialName,
@@ -14398,10 +14401,7 @@ extension Obj5 {
1439814401 unchecked: unchecked ?? self.unchecked,
1439914402 undefined: undefined ?? self.undefined,
1440014403 union: union ?? self.union,
14401- unsafe: unsafe ?? self.unsafe,
14402- unsigned: unsigned ?? self.unsigned,
14403- useSerializers: useSerializers ?? self.useSerializers,
14404- ushort: ushort ?? self.ushort
14404+ useSerializers: useSerializers ?? self.useSerializers
1440514405 )
1440614406 }
1440714407
@@ -15320,20 +15320,20 @@ extension TrueClass {
1532015320 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1532115321 // synthesized for types that have collections (such as arrays or dictionaries).
1532215322
15323-// MARK: - Sendable
15324-struct Sendable: Codable, Equatable {
15325- let sendable: Int
15323+// MARK: - Sealed
15324+struct Sealed: Codable, Equatable {
15325+ let sealed: Int
1532615326
1532715327 enum CodingKeys: String, CodingKey {
15328- case sendable = "Sendable"
15328+ case sealed = "sealed"
1532915329 }
1533015330 }
1533115331
15332-// MARK: Sendable convenience initializers and mutators
15332+// MARK: Sealed convenience initializers and mutators
1533315333
15334-extension Sendable {
15334+extension Sealed {
1533515335 init(data: Data) throws {
15336- self = try newJSONDecoder().decode(Sendable.self, from: data)
15336+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1533715337 }
1533815338
1533915339 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15348,10 +15348,10 @@ extension Sendable {
1534815348 }
1534915349
1535015350 func with(
15351- sendable: Int? = nil
15352- ) -> Sendable {
15353- return Sendable(
15354- sendable: sendable ?? self.sendable
15351+ sealed: Int? = nil
15352+ ) -> Sealed {
15353+ return Sealed(
15354+ sealed: sealed ?? self.sealed
1535515355 )
1535615356 }
1535715357
@@ -15370,20 +15370,20 @@ extension Sendable {
1537015370 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1537115371 // synthesized for types that have collections (such as arrays or dictionaries).
1537215372
15373-// MARK: - SerialDescriptor
15374-struct SerialDescriptor: Codable, Equatable {
15375- let serialDescriptor: Int
15373+// MARK: - Sel
15374+struct Sel: Codable, Equatable {
15375+ let sel: Int
1537615376
1537715377 enum CodingKeys: String, CodingKey {
15378- case serialDescriptor = "SerialDescriptor"
15378+ case sel = "SEL"
1537915379 }
1538015380 }
1538115381
15382-// MARK: SerialDescriptor convenience initializers and mutators
15382+// MARK: Sel convenience initializers and mutators
1538315383
15384-extension SerialDescriptor {
15384+extension Sel {
1538515385 init(data: Data) throws {
15386- self = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
15386+ self = try newJSONDecoder().decode(Sel.self, from: data)
1538715387 }
1538815388
1538915389 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15398,10 +15398,10 @@ extension SerialDescriptor {
1539815398 }
1539915399
1540015400 func with(
15401- serialDescriptor: Int? = nil
15402- ) -> SerialDescriptor {
15403- return SerialDescriptor(
15404- serialDescriptor: serialDescriptor ?? self.serialDescriptor
15401+ sel: Int? = nil
15402+ ) -> Sel {
15403+ return Sel(
15404+ sel: sel ?? self.sel
1540515405 )
1540615406 }
1540715407
@@ -15420,20 +15420,20 @@ extension SerialDescriptor {
1542015420 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1542115421 // synthesized for types that have collections (such as arrays or dictionaries).
1542215422
15423-// MARK: - SerialName
15424-struct SerialName: Codable, Equatable {
15425- let serialName: Int
15423+// MARK: - Select
15424+struct Select: Codable, Equatable {
15425+ let select: Int
1542615426
1542715427 enum CodingKeys: String, CodingKey {
15428- case serialName = "SerialName"
15428+ case select = "select"
1542915429 }
1543015430 }
1543115431
15432-// MARK: SerialName convenience initializers and mutators
15432+// MARK: Select convenience initializers and mutators
1543315433
15434-extension SerialName {
15434+extension Select {
1543515435 init(data: Data) throws {
15436- self = try newJSONDecoder().decode(SerialName.self, from: data)
15436+ self = try newJSONDecoder().decode(Select.self, from: data)
1543715437 }
1543815438
1543915439 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15448,10 +15448,10 @@ extension SerialName {
1544815448 }
1544915449
1545015450 func with(
15451- serialName: Int? = nil
15452- ) -> SerialName {
15453- return SerialName(
15454- serialName: serialName ?? self.serialName
15451+ select: Int? = nil
15452+ ) -> Select {
15453+ return Select(
15454+ select: select ?? self.select
1545515455 )
1545615456 }
1545715457
@@ -15470,20 +15470,20 @@ extension SerialName {
1547015470 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1547115471 // synthesized for types that have collections (such as arrays or dictionaries).
1547215472
15473-// MARK: - Serializable
15474-struct Serializable: Codable, Equatable {
15475- let serializable: Int
15473+// MARK: - Sendable
15474+struct Sendable: Codable, Equatable {
15475+ let sendable: Int
1547615476
1547715477 enum CodingKeys: String, CodingKey {
15478- case serializable = "Serializable"
15478+ case sendable = "Sendable"
1547915479 }
1548015480 }
1548115481
15482-// MARK: Serializable convenience initializers and mutators
15482+// MARK: Sendable convenience initializers and mutators
1548315483
15484-extension Serializable {
15484+extension Sendable {
1548515485 init(data: Data) throws {
15486- self = try newJSONDecoder().decode(Serializable.self, from: data)
15486+ self = try newJSONDecoder().decode(Sendable.self, from: data)
1548715487 }
1548815488
1548915489 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15498,10 +15498,10 @@ extension Serializable {
1549815498 }
1549915499
1550015500 func with(
15501- serializable: Int? = nil
15502- ) -> Serializable {
15503- return Serializable(
15504- serializable: serializable ?? self.serializable
15501+ sendable: Int? = nil
15502+ ) -> Sendable {
15503+ return Sendable(
15504+ sendable: sendable ?? self.sendable
1550515505 )
1550615506 }
1550715507
@@ -15520,20 +15520,20 @@ extension Serializable {
1552015520 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1552115521 // synthesized for types that have collections (such as arrays or dictionaries).
1552215522
15523-// MARK: - Serialize
15524-struct Serialize: Codable, Equatable {
15525- let serialize: Int
15523+// MARK: - SerialDescriptor
15524+struct SerialDescriptor: Codable, Equatable {
15525+ let serialDescriptor: Int
1552615526
1552715527 enum CodingKeys: String, CodingKey {
15528- case serialize = "serialize"
15528+ case serialDescriptor = "SerialDescriptor"
1552915529 }
1553015530 }
1553115531
15532-// MARK: Serialize convenience initializers and mutators
15532+// MARK: SerialDescriptor convenience initializers and mutators
1553315533
15534-extension Serialize {
15534+extension SerialDescriptor {
1553515535 init(data: Data) throws {
15536- self = try newJSONDecoder().decode(Serialize.self, from: data)
15536+ self = try newJSONDecoder().decode(SerialDescriptor.self, from: data)
1553715537 }
1553815538
1553915539 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15548,7 +15548,157 @@ extension Serialize {
1554815548 }
1554915549
1555015550 func with(
15551- serialize: Int? = nil
15551+ serialDescriptor: Int? = nil
15552+ ) -> SerialDescriptor {
15553+ return SerialDescriptor(
15554+ serialDescriptor: serialDescriptor ?? self.serialDescriptor
15555+ )
15556+ }
15557+
15558+ func jsonData() throws -> Data {
15559+ return try newJSONEncoder().encode(self)
15560+ }
15561+
15562+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15563+ return String(data: try self.jsonData(), encoding: encoding)
15564+ }
15565+}
15566+
15567+//
15568+// Hashable or Equatable:
15569+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15570+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15571+// synthesized for types that have collections (such as arrays or dictionaries).
15572+
15573+// MARK: - SerialName
15574+struct SerialName: Codable, Equatable {
15575+ let serialName: Int
15576+
15577+ enum CodingKeys: String, CodingKey {
15578+ case serialName = "SerialName"
15579+ }
15580+}
15581+
15582+// MARK: SerialName convenience initializers and mutators
15583+
15584+extension SerialName {
15585+ init(data: Data) throws {
15586+ self = try newJSONDecoder().decode(SerialName.self, from: data)
15587+ }
15588+
15589+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15590+ guard let data = json.data(using: encoding) else {
15591+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15592+ }
15593+ try self.init(data: data)
15594+ }
15595+
15596+ init(fromURL url: URL) throws {
15597+ try self.init(data: try Data(contentsOf: url))
15598+ }
15599+
15600+ func with(
15601+ serialName: Int? = nil
15602+ ) -> SerialName {
15603+ return SerialName(
15604+ serialName: serialName ?? self.serialName
15605+ )
15606+ }
15607+
15608+ func jsonData() throws -> Data {
15609+ return try newJSONEncoder().encode(self)
15610+ }
15611+
15612+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15613+ return String(data: try self.jsonData(), encoding: encoding)
15614+ }
15615+}
15616+
15617+//
15618+// Hashable or Equatable:
15619+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15620+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15621+// synthesized for types that have collections (such as arrays or dictionaries).
15622+
15623+// MARK: - Serializable
15624+struct Serializable: Codable, Equatable {
15625+ let serializable: Int
15626+
15627+ enum CodingKeys: String, CodingKey {
15628+ case serializable = "Serializable"
15629+ }
15630+}
15631+
15632+// MARK: Serializable convenience initializers and mutators
15633+
15634+extension Serializable {
15635+ init(data: Data) throws {
15636+ self = try newJSONDecoder().decode(Serializable.self, from: data)
15637+ }
15638+
15639+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15640+ guard let data = json.data(using: encoding) else {
15641+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15642+ }
15643+ try self.init(data: data)
15644+ }
15645+
15646+ init(fromURL url: URL) throws {
15647+ try self.init(data: try Data(contentsOf: url))
15648+ }
15649+
15650+ func with(
15651+ serializable: Int? = nil
15652+ ) -> Serializable {
15653+ return Serializable(
15654+ serializable: serializable ?? self.serializable
15655+ )
15656+ }
15657+
15658+ func jsonData() throws -> Data {
15659+ return try newJSONEncoder().encode(self)
15660+ }
15661+
15662+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15663+ return String(data: try self.jsonData(), encoding: encoding)
15664+ }
15665+}
15666+
15667+//
15668+// Hashable or Equatable:
15669+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15670+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15671+// synthesized for types that have collections (such as arrays or dictionaries).
15672+
15673+// MARK: - Serialize
15674+struct Serialize: Codable, Equatable {
15675+ let serialize: Int
15676+
15677+ enum CodingKeys: String, CodingKey {
15678+ case serialize = "serialize"
15679+ }
15680+}
15681+
15682+// MARK: Serialize convenience initializers and mutators
15683+
15684+extension Serialize {
15685+ init(data: Data) throws {
15686+ self = try newJSONDecoder().decode(Serialize.self, from: data)
15687+ }
15688+
15689+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15690+ guard let data = json.data(using: encoding) else {
15691+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15692+ }
15693+ try self.init(data: data)
15694+ }
15695+
15696+ init(fromURL url: URL) throws {
15697+ try self.init(data: try Data(contentsOf: url))
15698+ }
15699+
15700+ func with(
15701+ serialize: Int? = nil
1555215702 ) -> Serialize {
1555315703 return Serialize(
1555415704 serialize: serialize ?? self.serialize
@@ -17420,106 +17570,6 @@ extension Union {
1742017570 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1742117571 // synthesized for types that have collections (such as arrays or dictionaries).
1742217572
17423-// MARK: - Unsafe
17424-struct Unsafe: Codable, Equatable {
17425- let unsafe: Int
17426-
17427- enum CodingKeys: String, CodingKey {
17428- case unsafe = "unsafe"
17429- }
17430-}
17431-
17432-// MARK: Unsafe convenience initializers and mutators
17433-
17434-extension Unsafe {
17435- init(data: Data) throws {
17436- self = try newJSONDecoder().decode(Unsafe.self, from: data)
17437- }
17438-
17439- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17440- guard let data = json.data(using: encoding) else {
17441- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17442- }
17443- try self.init(data: data)
17444- }
17445-
17446- init(fromURL url: URL) throws {
17447- try self.init(data: try Data(contentsOf: url))
17448- }
17449-
17450- func with(
17451- unsafe: Int? = nil
17452- ) -> Unsafe {
17453- return Unsafe(
17454- unsafe: unsafe ?? self.unsafe
17455- )
17456- }
17457-
17458- func jsonData() throws -> Data {
17459- return try newJSONEncoder().encode(self)
17460- }
17461-
17462- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17463- return String(data: try self.jsonData(), encoding: encoding)
17464- }
17465-}
17466-
17467-//
17468-// Hashable or Equatable:
17469-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17470-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17471-// synthesized for types that have collections (such as arrays or dictionaries).
17472-
17473-// MARK: - Unsigned
17474-struct Unsigned: Codable, Equatable {
17475- let unsigned: Int
17476-
17477- enum CodingKeys: String, CodingKey {
17478- case unsigned = "unsigned"
17479- }
17480-}
17481-
17482-// MARK: Unsigned convenience initializers and mutators
17483-
17484-extension Unsigned {
17485- init(data: Data) throws {
17486- self = try newJSONDecoder().decode(Unsigned.self, from: data)
17487- }
17488-
17489- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17490- guard let data = json.data(using: encoding) else {
17491- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17492- }
17493- try self.init(data: data)
17494- }
17495-
17496- init(fromURL url: URL) throws {
17497- try self.init(data: try Data(contentsOf: url))
17498- }
17499-
17500- func with(
17501- unsigned: Int? = nil
17502- ) -> Unsigned {
17503- return Unsigned(
17504- unsigned: unsigned ?? self.unsigned
17505- )
17506- }
17507-
17508- func jsonData() throws -> Data {
17509- return try newJSONEncoder().encode(self)
17510- }
17511-
17512- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17513- return String(data: try self.jsonData(), encoding: encoding)
17514- }
17515-}
17516-
17517-//
17518-// Hashable or Equatable:
17519-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17520-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17521-// synthesized for types that have collections (such as arrays or dictionaries).
17522-
1752317573 // MARK: - UseSerializers
1752417574 struct UseSerializers: Codable, Equatable {
1752517575 let useSerializers: Int
@@ -17570,56 +17620,6 @@ extension UseSerializers {
1757017620 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1757117621 // synthesized for types that have collections (such as arrays or dictionaries).
1757217622
17573-// MARK: - Ushort
17574-struct Ushort: Codable, Equatable {
17575- let ushort: Int
17576-
17577- enum CodingKeys: String, CodingKey {
17578- case ushort = "ushort"
17579- }
17580-}
17581-
17582-// MARK: Ushort convenience initializers and mutators
17583-
17584-extension Ushort {
17585- init(data: Data) throws {
17586- self = try newJSONDecoder().decode(Ushort.self, from: data)
17587- }
17588-
17589- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17590- guard let data = json.data(using: encoding) else {
17591- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17592- }
17593- try self.init(data: data)
17594- }
17595-
17596- init(fromURL url: URL) throws {
17597- try self.init(data: try Data(contentsOf: url))
17598- }
17599-
17600- func with(
17601- ushort: Int? = nil
17602- ) -> Ushort {
17603- return Ushort(
17604- ushort: ushort ?? self.ushort
17605- )
17606- }
17607-
17608- func jsonData() throws -> Data {
17609- return try newJSONEncoder().encode(self)
17610- }
17611-
17612- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17613- return String(data: try self.jsonData(), encoding: encoding)
17614- }
17615-}
17616-
17617-//
17618-// Hashable or Equatable:
17619-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17620-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17621-// synthesized for types that have collections (such as arrays or dictionaries).
17622-
1762317623 // MARK: - Obj6
1762417624 struct Obj6: Codable, Equatable {
1762517625 let dummy: Int
@@ -17628,6 +17628,9 @@ struct Obj6: Codable, Equatable {
1762817628 let obj6Where: Where
1762917629 let obj6While: While
1763017630 let obj6WillSet: WillSet
17631+ let unsafe: Unsafe
17632+ let unsigned: Unsigned
17633+ let ushort: Ushort
1763117634 let using: Using
1763217635 let utf8JSONReader: Utf8JSONReader
1763317636 let utf8JSONWriter: Utf8JSONWriter
@@ -17649,6 +17652,9 @@ struct Obj6: Codable, Equatable {
1764917652 case obj6Where = "where"
1765017653 case obj6While = "while"
1765117654 case obj6WillSet = "willSet"
17655+ case unsafe = "unsafe"
17656+ case unsigned = "unsigned"
17657+ case ushort = "ushort"
1765217658 case using = "using"
1765317659 case utf8JSONReader = "Utf8JsonReader"
1765417660 case utf8JSONWriter = "Utf8JsonWriter"
@@ -17690,6 +17696,9 @@ extension Obj6 {
1769017696 obj6Where: Where? = nil,
1769117697 obj6While: While? = nil,
1769217698 obj6WillSet: WillSet? = nil,
17699+ unsafe: Unsafe? = nil,
17700+ unsigned: Unsigned? = nil,
17701+ ushort: Ushort? = nil,
1769317702 using: Using? = nil,
1769417703 utf8JSONReader: Utf8JSONReader? = nil,
1769517704 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -17711,6 +17720,9 @@ extension Obj6 {
1771117720 obj6Where: obj6Where ?? self.obj6Where,
1771217721 obj6While: obj6While ?? self.obj6While,
1771317722 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17723+ unsafe: unsafe ?? self.unsafe,
17724+ unsigned: unsigned ?? self.unsigned,
17725+ ushort: ushort ?? self.ushort,
1771417726 using: using ?? self.using,
1771517727 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1771617728 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -17992,6 +18004,156 @@ extension WillSet {
1799218004 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1799318005 // synthesized for types that have collections (such as arrays or dictionaries).
1799418006
18007+// MARK: - Unsafe
18008+struct Unsafe: Codable, Equatable {
18009+ let unsafe: Int
18010+
18011+ enum CodingKeys: String, CodingKey {
18012+ case unsafe = "unsafe"
18013+ }
18014+}
18015+
18016+// MARK: Unsafe convenience initializers and mutators
18017+
18018+extension Unsafe {
18019+ init(data: Data) throws {
18020+ self = try newJSONDecoder().decode(Unsafe.self, from: data)
18021+ }
18022+
18023+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18024+ guard let data = json.data(using: encoding) else {
18025+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18026+ }
18027+ try self.init(data: data)
18028+ }
18029+
18030+ init(fromURL url: URL) throws {
18031+ try self.init(data: try Data(contentsOf: url))
18032+ }
18033+
18034+ func with(
18035+ unsafe: Int? = nil
18036+ ) -> Unsafe {
18037+ return Unsafe(
18038+ unsafe: unsafe ?? self.unsafe
18039+ )
18040+ }
18041+
18042+ func jsonData() throws -> Data {
18043+ return try newJSONEncoder().encode(self)
18044+ }
18045+
18046+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18047+ return String(data: try self.jsonData(), encoding: encoding)
18048+ }
18049+}
18050+
18051+//
18052+// Hashable or Equatable:
18053+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18054+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18055+// synthesized for types that have collections (such as arrays or dictionaries).
18056+
18057+// MARK: - Unsigned
18058+struct Unsigned: Codable, Equatable {
18059+ let unsigned: Int
18060+
18061+ enum CodingKeys: String, CodingKey {
18062+ case unsigned = "unsigned"
18063+ }
18064+}
18065+
18066+// MARK: Unsigned convenience initializers and mutators
18067+
18068+extension Unsigned {
18069+ init(data: Data) throws {
18070+ self = try newJSONDecoder().decode(Unsigned.self, from: data)
18071+ }
18072+
18073+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18074+ guard let data = json.data(using: encoding) else {
18075+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18076+ }
18077+ try self.init(data: data)
18078+ }
18079+
18080+ init(fromURL url: URL) throws {
18081+ try self.init(data: try Data(contentsOf: url))
18082+ }
18083+
18084+ func with(
18085+ unsigned: Int? = nil
18086+ ) -> Unsigned {
18087+ return Unsigned(
18088+ unsigned: unsigned ?? self.unsigned
18089+ )
18090+ }
18091+
18092+ func jsonData() throws -> Data {
18093+ return try newJSONEncoder().encode(self)
18094+ }
18095+
18096+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18097+ return String(data: try self.jsonData(), encoding: encoding)
18098+ }
18099+}
18100+
18101+//
18102+// Hashable or Equatable:
18103+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18104+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18105+// synthesized for types that have collections (such as arrays or dictionaries).
18106+
18107+// MARK: - Ushort
18108+struct Ushort: Codable, Equatable {
18109+ let ushort: Int
18110+
18111+ enum CodingKeys: String, CodingKey {
18112+ case ushort = "ushort"
18113+ }
18114+}
18115+
18116+// MARK: Ushort convenience initializers and mutators
18117+
18118+extension Ushort {
18119+ init(data: Data) throws {
18120+ self = try newJSONDecoder().decode(Ushort.self, from: data)
18121+ }
18122+
18123+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18124+ guard let data = json.data(using: encoding) else {
18125+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18126+ }
18127+ try self.init(data: data)
18128+ }
18129+
18130+ init(fromURL url: URL) throws {
18131+ try self.init(data: try Data(contentsOf: url))
18132+ }
18133+
18134+ func with(
18135+ ushort: Int? = nil
18136+ ) -> Ushort {
18137+ return Ushort(
18138+ ushort: ushort ?? self.ushort
18139+ )
18140+ }
18141+
18142+ func jsonData() throws -> Data {
18143+ return try newJSONEncoder().encode(self)
18144+ }
18145+
18146+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18147+ return String(data: try self.jsonData(), encoding: encoding)
18148+ }
18149+}
18150+
18151+//
18152+// Hashable or Equatable:
18153+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18154+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18155+// synthesized for types that have collections (such as arrays or dictionaries).
18156+
1799518157 // MARK: - Using
1799618158 struct Using: Codable, Equatable {
1799718159 let using: Int
Mswiftsendable-true--1c3982c78639 / quicktype.swift+484 −340
@@ -6347,6 +6347,7 @@ struct Obj3: Codable, Sendable {
63476347 let jsonWriter: JSONWriter
63486348 let lambda: Lambda
63496349 let list: List
6350+ let localDate: LocalDate
63506351 let locale: LocaleClass
63516352 let lock: Lock
63526353 let long: Long
@@ -6360,7 +6361,6 @@ struct Obj3: Codable, Sendable {
63606361 let new: New
63616362 let newtonsoft: Newtonsoft
63626363 let no: No
6363- let noexcept: Noexcept
63646364 let obj3Guard: Guard
63656365 let obj3If: If
63666366 let obj3Import: Import
@@ -6414,6 +6414,7 @@ struct Obj3: Codable, Sendable {
64146414 case jsonWriter = "json_writer"
64156415 case lambda = "lambda"
64166416 case list = "list"
6417+ case localDate = "LocalDate"
64176418 case locale = "Locale"
64186419 case lock = "lock"
64196420 case long = "long"
@@ -6427,7 +6428,6 @@ struct Obj3: Codable, Sendable {
64276428 case new = "new"
64286429 case newtonsoft = "newtonsoft"
64296430 case no = "NO"
6430- case noexcept = "noexcept"
64316431 case obj3Guard = "guard"
64326432 case obj3If = "if"
64336433 case obj3Import = "import"
@@ -6501,6 +6501,7 @@ extension Obj3 {
65016501 jsonWriter: JSONWriter? = nil,
65026502 lambda: Lambda? = nil,
65036503 list: List? = nil,
6504+ localDate: LocalDate? = nil,
65046505 locale: LocaleClass? = nil,
65056506 lock: Lock? = nil,
65066507 long: Long? = nil,
@@ -6514,7 +6515,6 @@ extension Obj3 {
65146515 new: New? = nil,
65156516 newtonsoft: Newtonsoft? = nil,
65166517 no: No? = nil,
6517- noexcept: Noexcept? = nil,
65186518 obj3Guard: Guard? = nil,
65196519 obj3If: If? = nil,
65206520 obj3Import: Import? = nil,
@@ -6568,6 +6568,7 @@ extension Obj3 {
65686568 jsonWriter: jsonWriter ?? self.jsonWriter,
65696569 lambda: lambda ?? self.lambda,
65706570 list: list ?? self.list,
6571+ localDate: localDate ?? self.localDate,
65716572 locale: locale ?? self.locale,
65726573 lock: lock ?? self.lock,
65736574 long: long ?? self.long,
@@ -6581,7 +6582,6 @@ extension Obj3 {
65816582 new: new ?? self.new,
65826583 newtonsoft: newtonsoft ?? self.newtonsoft,
65836584 no: no ?? self.no,
6584- noexcept: noexcept ?? self.noexcept,
65856585 obj3Guard: obj3Guard ?? self.obj3Guard,
65866586 obj3If: obj3If ?? self.obj3If,
65876587 obj3Import: obj3Import ?? self.obj3Import,
@@ -8106,6 +8106,50 @@ extension List {
81068106 }
81078107 }
81088108
8109+// MARK: - LocalDate
8110+struct LocalDate: Codable, Sendable {
8111+ let localDate: Int
8112+
8113+ enum CodingKeys: String, CodingKey {
8114+ case localDate = "LocalDate"
8115+ }
8116+}
8117+
8118+// MARK: LocalDate convenience initializers and mutators
8119+
8120+extension LocalDate {
8121+ init(data: Data) throws {
8122+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
8123+ }
8124+
8125+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8126+ guard let data = json.data(using: encoding) else {
8127+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8128+ }
8129+ try self.init(data: data)
8130+ }
8131+
8132+ init(fromURL url: URL) throws {
8133+ try self.init(data: try Data(contentsOf: url))
8134+ }
8135+
8136+ func with(
8137+ localDate: Int? = nil
8138+ ) -> LocalDate {
8139+ return LocalDate(
8140+ localDate: localDate ?? self.localDate
8141+ )
8142+ }
8143+
8144+ func jsonData() throws -> Data {
8145+ return try newJSONEncoder().encode(self)
8146+ }
8147+
8148+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8149+ return String(data: try self.jsonData(), encoding: encoding)
8150+ }
8151+}
8152+
81098153 // MARK: - LocaleClass
81108154 struct LocaleClass: Codable, Sendable {
81118155 let locale: Int
@@ -8678,50 +8722,6 @@ extension No {
86788722 }
86798723 }
86808724
8681-// MARK: - Noexcept
8682-struct Noexcept: Codable, Sendable {
8683- let noexcept: Int
8684-
8685- enum CodingKeys: String, CodingKey {
8686- case noexcept = "noexcept"
8687- }
8688-}
8689-
8690-// MARK: Noexcept convenience initializers and mutators
8691-
8692-extension Noexcept {
8693- init(data: Data) throws {
8694- self = try newJSONDecoder().decode(Noexcept.self, from: data)
8695- }
8696-
8697- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
8698- guard let data = json.data(using: encoding) else {
8699- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
8700- }
8701- try self.init(data: data)
8702- }
8703-
8704- init(fromURL url: URL) throws {
8705- try self.init(data: try Data(contentsOf: url))
8706- }
8707-
8708- func with(
8709- noexcept: Int? = nil
8710- ) -> Noexcept {
8711- return Noexcept(
8712- noexcept: noexcept ?? self.noexcept
8713- )
8714- }
8715-
8716- func jsonData() throws -> Data {
8717- return try newJSONEncoder().encode(self)
8718- }
8719-
8720- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
8721- return String(data: try self.jsonData(), encoding: encoding)
8722- }
8723-}
8724-
87258725 // MARK: - Guard
87268726 struct Guard: Codable, Sendable {
87278727 let guardGuard: Int
@@ -9430,6 +9430,7 @@ extension Nil {
94309430 struct Obj4: Codable, Sendable {
94319431 let dummy: Int
94329432 let noSuchMethod: NoSuchMethod
9433+ let noexcept: Noexcept
94339434 let nonatomic: Nonatomic
94349435 let none: None
94359436 let nonlocal: Nonlocal
@@ -9462,6 +9463,8 @@ struct Obj4: Codable, Sendable {
94629463 let object: Object
94639464 let objectMapper: ObjectMapper
94649465 let of: Of
9466+ let offsetDateTime: OffsetDateTime
9467+ let offsetTime: OffsetTime
94659468 let oneway: Oneway
94669469 let or: Or
94679470 let orEq: OrEq
@@ -9490,13 +9493,11 @@ struct Obj4: Codable, Sendable {
94909493 let runtimeType: RuntimeType
94919494 let s: S
94929495 let sbyte: Sbyte
9493- let sealed: Sealed
9494- let sel: Sel
9495- let select: Select
94969496
94979497 enum CodingKeys: String, CodingKey {
94989498 case dummy = "dummy"
94999499 case noSuchMethod = "noSuchMethod"
9500+ case noexcept = "noexcept"
95009501 case nonatomic = "nonatomic"
95019502 case none = "None"
95029503 case nonlocal = "nonlocal"
@@ -9529,6 +9530,8 @@ struct Obj4: Codable, Sendable {
95299530 case object = "object"
95309531 case objectMapper = "ObjectMapper"
95319532 case of = "of"
9533+ case offsetDateTime = "OffsetDateTime"
9534+ case offsetTime = "OffsetTime"
95329535 case oneway = "oneway"
95339536 case or = "or"
95349537 case orEq = "or_eq"
@@ -9557,9 +9560,6 @@ struct Obj4: Codable, Sendable {
95579560 case runtimeType = "runtimeType"
95589561 case s = "s"
95599562 case sbyte = "sbyte"
9560- case sealed = "sealed"
9561- case sel = "SEL"
9562- case select = "select"
95639563 }
95649564 }
95659565
@@ -9584,6 +9584,7 @@ extension Obj4 {
95849584 func with(
95859585 dummy: Int? = nil,
95869586 noSuchMethod: NoSuchMethod? = nil,
9587+ noexcept: Noexcept? = nil,
95879588 nonatomic: Nonatomic? = nil,
95889589 none: None? = nil,
95899590 nonlocal: Nonlocal? = nil,
@@ -9616,6 +9617,8 @@ extension Obj4 {
96169617 object: Object? = nil,
96179618 objectMapper: ObjectMapper? = nil,
96189619 of: Of? = nil,
9620+ offsetDateTime: OffsetDateTime? = nil,
9621+ offsetTime: OffsetTime? = nil,
96199622 oneway: Oneway? = nil,
96209623 or: Or? = nil,
96219624 orEq: OrEq? = nil,
@@ -9643,14 +9646,12 @@ extension Obj4 {
96439646 retain: Retain? = nil,
96449647 runtimeType: RuntimeType? = nil,
96459648 s: S? = nil,
9646- sbyte: Sbyte? = nil,
9647- sealed: Sealed? = nil,
9648- sel: Sel? = nil,
9649- select: Select? = nil
9649+ sbyte: Sbyte? = nil
96509650 ) -> Obj4 {
96519651 return Obj4(
96529652 dummy: dummy ?? self.dummy,
96539653 noSuchMethod: noSuchMethod ?? self.noSuchMethod,
9654+ noexcept: noexcept ?? self.noexcept,
96549655 nonatomic: nonatomic ?? self.nonatomic,
96559656 none: none ?? self.none,
96569657 nonlocal: nonlocal ?? self.nonlocal,
@@ -9683,6 +9684,8 @@ extension Obj4 {
96839684 object: object ?? self.object,
96849685 objectMapper: objectMapper ?? self.objectMapper,
96859686 of: of ?? self.of,
9687+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
9688+ offsetTime: offsetTime ?? self.offsetTime,
96869689 oneway: oneway ?? self.oneway,
96879690 or: or ?? self.or,
96889691 orEq: orEq ?? self.orEq,
@@ -9710,10 +9713,7 @@ extension Obj4 {
97109713 retain: retain ?? self.retain,
97119714 runtimeType: runtimeType ?? self.runtimeType,
97129715 s: s ?? self.s,
9713- sbyte: sbyte ?? self.sbyte,
9714- sealed: sealed ?? self.sealed,
9715- sel: sel ?? self.sel,
9716- select: select ?? self.select
9716+ sbyte: sbyte ?? self.sbyte
97179717 )
97189718 }
97199719
@@ -9770,6 +9770,50 @@ extension NoSuchMethod {
97709770 }
97719771 }
97729772
9773+// MARK: - Noexcept
9774+struct Noexcept: Codable, Sendable {
9775+ let noexcept: Int
9776+
9777+ enum CodingKeys: String, CodingKey {
9778+ case noexcept = "noexcept"
9779+ }
9780+}
9781+
9782+// MARK: Noexcept convenience initializers and mutators
9783+
9784+extension Noexcept {
9785+ init(data: Data) throws {
9786+ self = try newJSONDecoder().decode(Noexcept.self, from: data)
9787+ }
9788+
9789+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
9790+ guard let data = json.data(using: encoding) else {
9791+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
9792+ }
9793+ try self.init(data: data)
9794+ }
9795+
9796+ init(fromURL url: URL) throws {
9797+ try self.init(data: try Data(contentsOf: url))
9798+ }
9799+
9800+ func with(
9801+ noexcept: Int? = nil
9802+ ) -> Noexcept {
9803+ return Noexcept(
9804+ noexcept: noexcept ?? self.noexcept
9805+ )
9806+ }
9807+
9808+ func jsonData() throws -> Data {
9809+ return try newJSONEncoder().encode(self)
9810+ }
9811+
9812+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
9813+ return String(data: try self.jsonData(), encoding: encoding)
9814+ }
9815+}
9816+
97739817 // MARK: - Nonatomic
97749818 struct Nonatomic: Codable, Sendable {
97759819 let nonatomic: Int
@@ -11178,6 +11222,94 @@ extension Of {
1117811222 }
1117911223 }
1118011224
11225+// MARK: - OffsetDateTime
11226+struct OffsetDateTime: Codable, Sendable {
11227+ let offsetDateTime: Int
11228+
11229+ enum CodingKeys: String, CodingKey {
11230+ case offsetDateTime = "OffsetDateTime"
11231+ }
11232+}
11233+
11234+// MARK: OffsetDateTime convenience initializers and mutators
11235+
11236+extension OffsetDateTime {
11237+ init(data: Data) throws {
11238+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
11239+ }
11240+
11241+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11242+ guard let data = json.data(using: encoding) else {
11243+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11244+ }
11245+ try self.init(data: data)
11246+ }
11247+
11248+ init(fromURL url: URL) throws {
11249+ try self.init(data: try Data(contentsOf: url))
11250+ }
11251+
11252+ func with(
11253+ offsetDateTime: Int? = nil
11254+ ) -> OffsetDateTime {
11255+ return OffsetDateTime(
11256+ offsetDateTime: offsetDateTime ?? self.offsetDateTime
11257+ )
11258+ }
11259+
11260+ func jsonData() throws -> Data {
11261+ return try newJSONEncoder().encode(self)
11262+ }
11263+
11264+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11265+ return String(data: try self.jsonData(), encoding: encoding)
11266+ }
11267+}
11268+
11269+// MARK: - OffsetTime
11270+struct OffsetTime: Codable, Sendable {
11271+ let offsetTime: Int
11272+
11273+ enum CodingKeys: String, CodingKey {
11274+ case offsetTime = "OffsetTime"
11275+ }
11276+}
11277+
11278+// MARK: OffsetTime convenience initializers and mutators
11279+
11280+extension OffsetTime {
11281+ init(data: Data) throws {
11282+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
11283+ }
11284+
11285+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
11286+ guard let data = json.data(using: encoding) else {
11287+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
11288+ }
11289+ try self.init(data: data)
11290+ }
11291+
11292+ init(fromURL url: URL) throws {
11293+ try self.init(data: try Data(contentsOf: url))
11294+ }
11295+
11296+ func with(
11297+ offsetTime: Int? = nil
11298+ ) -> OffsetTime {
11299+ return OffsetTime(
11300+ offsetTime: offsetTime ?? self.offsetTime
11301+ )
11302+ }
11303+
11304+ func jsonData() throws -> Data {
11305+ return try newJSONEncoder().encode(self)
11306+ }
11307+
11308+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
11309+ return String(data: try self.jsonData(), encoding: encoding)
11310+ }
11311+}
11312+
1118111313 // MARK: - Oneway
1118211314 struct Oneway: Codable, Sendable {
1118311315 let oneway: Int
@@ -12410,138 +12542,6 @@ extension Sbyte {
1241012542 }
1241112543 }
1241212544
12413-// MARK: - Sealed
12414-struct Sealed: Codable, Sendable {
12415- let sealed: Int
12416-
12417- enum CodingKeys: String, CodingKey {
12418- case sealed = "sealed"
12419- }
12420-}
12421-
12422-// MARK: Sealed convenience initializers and mutators
12423-
12424-extension Sealed {
12425- init(data: Data) throws {
12426- self = try newJSONDecoder().decode(Sealed.self, from: data)
12427- }
12428-
12429- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12430- guard let data = json.data(using: encoding) else {
12431- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12432- }
12433- try self.init(data: data)
12434- }
12435-
12436- init(fromURL url: URL) throws {
12437- try self.init(data: try Data(contentsOf: url))
12438- }
12439-
12440- func with(
12441- sealed: Int? = nil
12442- ) -> Sealed {
12443- return Sealed(
12444- sealed: sealed ?? self.sealed
12445- )
12446- }
12447-
12448- func jsonData() throws -> Data {
12449- return try newJSONEncoder().encode(self)
12450- }
12451-
12452- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12453- return String(data: try self.jsonData(), encoding: encoding)
12454- }
12455-}
12456-
12457-// MARK: - Sel
12458-struct Sel: Codable, Sendable {
12459- let sel: Int
12460-
12461- enum CodingKeys: String, CodingKey {
12462- case sel = "SEL"
12463- }
12464-}
12465-
12466-// MARK: Sel convenience initializers and mutators
12467-
12468-extension Sel {
12469- init(data: Data) throws {
12470- self = try newJSONDecoder().decode(Sel.self, from: data)
12471- }
12472-
12473- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12474- guard let data = json.data(using: encoding) else {
12475- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12476- }
12477- try self.init(data: data)
12478- }
12479-
12480- init(fromURL url: URL) throws {
12481- try self.init(data: try Data(contentsOf: url))
12482- }
12483-
12484- func with(
12485- sel: Int? = nil
12486- ) -> Sel {
12487- return Sel(
12488- sel: sel ?? self.sel
12489- )
12490- }
12491-
12492- func jsonData() throws -> Data {
12493- return try newJSONEncoder().encode(self)
12494- }
12495-
12496- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12497- return String(data: try self.jsonData(), encoding: encoding)
12498- }
12499-}
12500-
12501-// MARK: - Select
12502-struct Select: Codable, Sendable {
12503- let select: Int
12504-
12505- enum CodingKeys: String, CodingKey {
12506- case select = "select"
12507- }
12508-}
12509-
12510-// MARK: Select convenience initializers and mutators
12511-
12512-extension Select {
12513- init(data: Data) throws {
12514- self = try newJSONDecoder().decode(Select.self, from: data)
12515- }
12516-
12517- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12518- guard let data = json.data(using: encoding) else {
12519- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12520- }
12521- try self.init(data: data)
12522- }
12523-
12524- init(fromURL url: URL) throws {
12525- try self.init(data: try Data(contentsOf: url))
12526- }
12527-
12528- func with(
12529- select: Int? = nil
12530- ) -> Select {
12531- return Select(
12532- select: select ?? self.select
12533- )
12534- }
12535-
12536- func jsonData() throws -> Data {
12537- return try newJSONEncoder().encode(self)
12538- }
12539-
12540- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12541- return String(data: try self.jsonData(), encoding: encoding)
12542- }
12543-}
12544-
1254512545 // MARK: - Obj5
1254612546 struct Obj5: Codable, Sendable {
1254712547 let dummy: Int
@@ -12563,6 +12563,9 @@ struct Obj5: Codable, Sendable {
1256312563 let primitiveKind: PrimitiveKind
1256412564 let purpleSelf: Obj5Self
1256512565 let purpleTrue: TrueClass
12566+ let sealed: Sealed
12567+ let sel: Sel
12568+ let select: Select
1256612569 let sendable: SendableClass
1256712570 let serialDescriptor: SerialDescriptor
1256812571 let serialName: SerialName
@@ -12605,10 +12608,7 @@ struct Obj5: Codable, Sendable {
1260512608 let unchecked: Unchecked
1260612609 let undefined: Undefined
1260712610 let union: Union
12608- let unsafe: Unsafe
12609- let unsigned: Unsigned
1261012611 let useSerializers: UseSerializers
12611- let ushort: Ushort
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12630,6 +12630,9 @@ struct Obj5: Codable, Sendable {
1263012630 case primitiveKind = "PrimitiveKind"
1263112631 case purpleSelf = "self"
1263212632 case purpleTrue = "true"
12633+ case sealed = "sealed"
12634+ case sel = "SEL"
12635+ case select = "select"
1263312636 case sendable = "Sendable"
1263412637 case serialDescriptor = "SerialDescriptor"
1263512638 case serialName = "SerialName"
@@ -12672,10 +12675,7 @@ struct Obj5: Codable, Sendable {
1267212675 case unchecked = "unchecked"
1267312676 case undefined = "undefined"
1267412677 case union = "union"
12675- case unsafe = "unsafe"
12676- case unsigned = "unsigned"
1267712678 case useSerializers = "UseSerializers"
12678- case ushort = "ushort"
1267912679 }
1268012680 }
1268112681
@@ -12717,6 +12717,9 @@ extension Obj5 {
1271712717 primitiveKind: PrimitiveKind? = nil,
1271812718 purpleSelf: Obj5Self? = nil,
1271912719 purpleTrue: TrueClass? = nil,
12720+ sealed: Sealed? = nil,
12721+ sel: Sel? = nil,
12722+ select: Select? = nil,
1272012723 sendable: SendableClass? = nil,
1272112724 serialDescriptor: SerialDescriptor? = nil,
1272212725 serialName: SerialName? = nil,
@@ -12759,10 +12762,7 @@ extension Obj5 {
1275912762 unchecked: Unchecked? = nil,
1276012763 undefined: Undefined? = nil,
1276112764 union: Union? = nil,
12762- unsafe: Unsafe? = nil,
12763- unsigned: Unsigned? = nil,
12764- useSerializers: UseSerializers? = nil,
12765- ushort: Ushort? = nil
12765+ useSerializers: UseSerializers? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12784,6 +12784,9 @@ extension Obj5 {
1278412784 primitiveKind: primitiveKind ?? self.primitiveKind,
1278512785 purpleSelf: purpleSelf ?? self.purpleSelf,
1278612786 purpleTrue: purpleTrue ?? self.purpleTrue,
12787+ sealed: sealed ?? self.sealed,
12788+ sel: sel ?? self.sel,
12789+ select: select ?? self.select,
1278712790 sendable: sendable ?? self.sendable,
1278812791 serialDescriptor: serialDescriptor ?? self.serialDescriptor,
1278912792 serialName: serialName ?? self.serialName,
@@ -12826,10 +12829,7 @@ extension Obj5 {
1282612829 unchecked: unchecked ?? self.unchecked,
1282712830 undefined: undefined ?? self.undefined,
1282812831 union: union ?? self.union,
12829- unsafe: unsafe ?? self.unsafe,
12830- unsigned: unsigned ?? self.unsigned,
12831- useSerializers: useSerializers ?? self.useSerializers,
12832- ushort: ushort ?? self.ushort
12832+ useSerializers: useSerializers ?? self.useSerializers
1283312833 )
1283412834 }
1283512835
@@ -13634,6 +13634,138 @@ extension TrueClass {
1363413634 }
1363513635 }
1363613636
13637+// MARK: - Sealed
13638+struct Sealed: Codable, Sendable {
13639+ let sealed: Int
13640+
13641+ enum CodingKeys: String, CodingKey {
13642+ case sealed = "sealed"
13643+ }
13644+}
13645+
13646+// MARK: Sealed convenience initializers and mutators
13647+
13648+extension Sealed {
13649+ init(data: Data) throws {
13650+ self = try newJSONDecoder().decode(Sealed.self, from: data)
13651+ }
13652+
13653+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13654+ guard let data = json.data(using: encoding) else {
13655+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13656+ }
13657+ try self.init(data: data)
13658+ }
13659+
13660+ init(fromURL url: URL) throws {
13661+ try self.init(data: try Data(contentsOf: url))
13662+ }
13663+
13664+ func with(
13665+ sealed: Int? = nil
13666+ ) -> Sealed {
13667+ return Sealed(
13668+ sealed: sealed ?? self.sealed
13669+ )
13670+ }
13671+
13672+ func jsonData() throws -> Data {
13673+ return try newJSONEncoder().encode(self)
13674+ }
13675+
13676+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13677+ return String(data: try self.jsonData(), encoding: encoding)
13678+ }
13679+}
13680+
13681+// MARK: - Sel
13682+struct Sel: Codable, Sendable {
13683+ let sel: Int
13684+
13685+ enum CodingKeys: String, CodingKey {
13686+ case sel = "SEL"
13687+ }
13688+}
13689+
13690+// MARK: Sel convenience initializers and mutators
13691+
13692+extension Sel {
13693+ init(data: Data) throws {
13694+ self = try newJSONDecoder().decode(Sel.self, from: data)
13695+ }
13696+
13697+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13698+ guard let data = json.data(using: encoding) else {
13699+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13700+ }
13701+ try self.init(data: data)
13702+ }
13703+
13704+ init(fromURL url: URL) throws {
13705+ try self.init(data: try Data(contentsOf: url))
13706+ }
13707+
13708+ func with(
13709+ sel: Int? = nil
13710+ ) -> Sel {
13711+ return Sel(
13712+ sel: sel ?? self.sel
13713+ )
13714+ }
13715+
13716+ func jsonData() throws -> Data {
13717+ return try newJSONEncoder().encode(self)
13718+ }
13719+
13720+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13721+ return String(data: try self.jsonData(), encoding: encoding)
13722+ }
13723+}
13724+
13725+// MARK: - Select
13726+struct Select: Codable, Sendable {
13727+ let select: Int
13728+
13729+ enum CodingKeys: String, CodingKey {
13730+ case select = "select"
13731+ }
13732+}
13733+
13734+// MARK: Select convenience initializers and mutators
13735+
13736+extension Select {
13737+ init(data: Data) throws {
13738+ self = try newJSONDecoder().decode(Select.self, from: data)
13739+ }
13740+
13741+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13742+ guard let data = json.data(using: encoding) else {
13743+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13744+ }
13745+ try self.init(data: data)
13746+ }
13747+
13748+ init(fromURL url: URL) throws {
13749+ try self.init(data: try Data(contentsOf: url))
13750+ }
13751+
13752+ func with(
13753+ select: Int? = nil
13754+ ) -> Select {
13755+ return Select(
13756+ select: select ?? self.select
13757+ )
13758+ }
13759+
13760+ func jsonData() throws -> Data {
13761+ return try newJSONEncoder().encode(self)
13762+ }
13763+
13764+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13765+ return String(data: try self.jsonData(), encoding: encoding)
13766+ }
13767+}
13768+
1363713769 // MARK: - SendableClass
1363813770 struct SendableClass: Codable, Sendable {
1363913771 let sendable: Int
@@ -15482,94 +15614,6 @@ extension Union {
1548215614 }
1548315615 }
1548415616
15485-// MARK: - Unsafe
15486-struct Unsafe: Codable, Sendable {
15487- let unsafe: Int
15488-
15489- enum CodingKeys: String, CodingKey {
15490- case unsafe = "unsafe"
15491- }
15492-}
15493-
15494-// MARK: Unsafe convenience initializers and mutators
15495-
15496-extension Unsafe {
15497- init(data: Data) throws {
15498- self = try newJSONDecoder().decode(Unsafe.self, from: data)
15499- }
15500-
15501- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15502- guard let data = json.data(using: encoding) else {
15503- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15504- }
15505- try self.init(data: data)
15506- }
15507-
15508- init(fromURL url: URL) throws {
15509- try self.init(data: try Data(contentsOf: url))
15510- }
15511-
15512- func with(
15513- unsafe: Int? = nil
15514- ) -> Unsafe {
15515- return Unsafe(
15516- unsafe: unsafe ?? self.unsafe
15517- )
15518- }
15519-
15520- func jsonData() throws -> Data {
15521- return try newJSONEncoder().encode(self)
15522- }
15523-
15524- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15525- return String(data: try self.jsonData(), encoding: encoding)
15526- }
15527-}
15528-
15529-// MARK: - Unsigned
15530-struct Unsigned: Codable, Sendable {
15531- let unsigned: Int
15532-
15533- enum CodingKeys: String, CodingKey {
15534- case unsigned = "unsigned"
15535- }
15536-}
15537-
15538-// MARK: Unsigned convenience initializers and mutators
15539-
15540-extension Unsigned {
15541- init(data: Data) throws {
15542- self = try newJSONDecoder().decode(Unsigned.self, from: data)
15543- }
15544-
15545- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15546- guard let data = json.data(using: encoding) else {
15547- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15548- }
15549- try self.init(data: data)
15550- }
15551-
15552- init(fromURL url: URL) throws {
15553- try self.init(data: try Data(contentsOf: url))
15554- }
15555-
15556- func with(
15557- unsigned: Int? = nil
15558- ) -> Unsigned {
15559- return Unsigned(
15560- unsigned: unsigned ?? self.unsigned
15561- )
15562- }
15563-
15564- func jsonData() throws -> Data {
15565- return try newJSONEncoder().encode(self)
15566- }
15567-
15568- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15569- return String(data: try self.jsonData(), encoding: encoding)
15570- }
15571-}
15572-
1557315617 // MARK: - UseSerializers
1557415618 struct UseSerializers: Codable, Sendable {
1557515619 let useSerializers: Int
@@ -15614,50 +15658,6 @@ extension UseSerializers {
1561415658 }
1561515659 }
1561615660
15617-// MARK: - Ushort
15618-struct Ushort: Codable, Sendable {
15619- let ushort: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case ushort = "ushort"
15623- }
15624-}
15625-
15626-// MARK: Ushort convenience initializers and mutators
15627-
15628-extension Ushort {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Ushort.self, from: data)
15631- }
15632-
15633- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15634- guard let data = json.data(using: encoding) else {
15635- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15636- }
15637- try self.init(data: data)
15638- }
15639-
15640- init(fromURL url: URL) throws {
15641- try self.init(data: try Data(contentsOf: url))
15642- }
15643-
15644- func with(
15645- ushort: Int? = nil
15646- ) -> Ushort {
15647- return Ushort(
15648- ushort: ushort ?? self.ushort
15649- )
15650- }
15651-
15652- func jsonData() throws -> Data {
15653- return try newJSONEncoder().encode(self)
15654- }
15655-
15656- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15657- return String(data: try self.jsonData(), encoding: encoding)
15658- }
15659-}
15660-
1566115661 // MARK: - Obj6
1566215662 struct Obj6: Codable, Sendable {
1566315663 let dummy: Int
@@ -15666,6 +15666,9 @@ struct Obj6: Codable, Sendable {
1566615666 let obj6Where: Where
1566715667 let obj6While: While
1566815668 let obj6WillSet: WillSet
15669+ let unsafe: Unsafe
15670+ let unsigned: Unsigned
15671+ let ushort: Ushort
1566915672 let using: Using
1567015673 let utf8JSONReader: Utf8JSONReader
1567115674 let utf8JSONWriter: Utf8JSONWriter
@@ -15687,6 +15690,9 @@ struct Obj6: Codable, Sendable {
1568715690 case obj6Where = "where"
1568815691 case obj6While = "while"
1568915692 case obj6WillSet = "willSet"
15693+ case unsafe = "unsafe"
15694+ case unsigned = "unsigned"
15695+ case ushort = "ushort"
1569015696 case using = "using"
1569115697 case utf8JSONReader = "Utf8JsonReader"
1569215698 case utf8JSONWriter = "Utf8JsonWriter"
@@ -15728,6 +15734,9 @@ extension Obj6 {
1572815734 obj6Where: Where? = nil,
1572915735 obj6While: While? = nil,
1573015736 obj6WillSet: WillSet? = nil,
15737+ unsafe: Unsafe? = nil,
15738+ unsigned: Unsigned? = nil,
15739+ ushort: Ushort? = nil,
1573115740 using: Using? = nil,
1573215741 utf8JSONReader: Utf8JSONReader? = nil,
1573315742 utf8JSONWriter: Utf8JSONWriter? = nil,
@@ -15749,6 +15758,9 @@ extension Obj6 {
1574915758 obj6Where: obj6Where ?? self.obj6Where,
1575015759 obj6While: obj6While ?? self.obj6While,
1575115760 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15761+ unsafe: unsafe ?? self.unsafe,
15762+ unsigned: unsigned ?? self.unsigned,
15763+ ushort: ushort ?? self.ushort,
1575215764 using: using ?? self.using,
1575315765 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
1575415766 utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
@@ -15994,6 +16006,138 @@ extension WillSet {
1599416006 }
1599516007 }
1599616008
16009+// MARK: - Unsafe
16010+struct Unsafe: Codable, Sendable {
16011+ let unsafe: Int
16012+
16013+ enum CodingKeys: String, CodingKey {
16014+ case unsafe = "unsafe"
16015+ }
16016+}
16017+
16018+// MARK: Unsafe convenience initializers and mutators
16019+
16020+extension Unsafe {
16021+ init(data: Data) throws {
16022+ self = try newJSONDecoder().decode(Unsafe.self, from: data)
16023+ }
16024+
16025+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16026+ guard let data = json.data(using: encoding) else {
16027+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16028+ }
16029+ try self.init(data: data)
16030+ }
16031+
16032+ init(fromURL url: URL) throws {
16033+ try self.init(data: try Data(contentsOf: url))
16034+ }
16035+
16036+ func with(
16037+ unsafe: Int? = nil
16038+ ) -> Unsafe {
16039+ return Unsafe(
16040+ unsafe: unsafe ?? self.unsafe
16041+ )
16042+ }
16043+
16044+ func jsonData() throws -> Data {
16045+ return try newJSONEncoder().encode(self)
16046+ }
16047+
16048+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16049+ return String(data: try self.jsonData(), encoding: encoding)
16050+ }
16051+}
16052+
16053+// MARK: - Unsigned
16054+struct Unsigned: Codable, Sendable {
16055+ let unsigned: Int
16056+
16057+ enum CodingKeys: String, CodingKey {
16058+ case unsigned = "unsigned"
16059+ }
16060+}
16061+
16062+// MARK: Unsigned convenience initializers and mutators
16063+
16064+extension Unsigned {
16065+ init(data: Data) throws {
16066+ self = try newJSONDecoder().decode(Unsigned.self, from: data)
16067+ }
16068+
16069+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16070+ guard let data = json.data(using: encoding) else {
16071+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16072+ }
16073+ try self.init(data: data)
16074+ }
16075+
16076+ init(fromURL url: URL) throws {
16077+ try self.init(data: try Data(contentsOf: url))
16078+ }
16079+
16080+ func with(
16081+ unsigned: Int? = nil
16082+ ) -> Unsigned {
16083+ return Unsigned(
16084+ unsigned: unsigned ?? self.unsigned
16085+ )
16086+ }
16087+
16088+ func jsonData() throws -> Data {
16089+ return try newJSONEncoder().encode(self)
16090+ }
16091+
16092+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16093+ return String(data: try self.jsonData(), encoding: encoding)
16094+ }
16095+}
16096+
16097+// MARK: - Ushort
16098+struct Ushort: Codable, Sendable {
16099+ let ushort: Int
16100+
16101+ enum CodingKeys: String, CodingKey {
16102+ case ushort = "ushort"
16103+ }
16104+}
16105+
16106+// MARK: Ushort convenience initializers and mutators
16107+
16108+extension Ushort {
16109+ init(data: Data) throws {
16110+ self = try newJSONDecoder().decode(Ushort.self, from: data)
16111+ }
16112+
16113+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16114+ guard let data = json.data(using: encoding) else {
16115+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16116+ }
16117+ try self.init(data: data)
16118+ }
16119+
16120+ init(fromURL url: URL) throws {
16121+ try self.init(data: try Data(contentsOf: url))
16122+ }
16123+
16124+ func with(
16125+ ushort: Int? = nil
16126+ ) -> Ushort {
16127+ return Ushort(
16128+ ushort: ushort ?? self.ushort
16129+ )
16130+ }
16131+
16132+ func jsonData() throws -> Data {
16133+ return try newJSONEncoder().encode(self)
16134+ }
16135+
16136+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16137+ return String(data: try self.jsonData(), encoding: encoding)
16138+ }
16139+}
16140+
1599716141 // MARK: - Using
1599816142 struct Using: Codable, Sendable {
1599916143 let using: Int
Mtypescript-effect-schemadefault / TopLevel.ts+50 −35
@@ -79,8 +79,23 @@ export class Using extends S.Class<Using>("Using")({
7979 "using": S.Int,
8080 }) {}
8181
82+export class Ushort extends S.Class<Ushort>("Ushort")({
83+ "ushort": S.Int,
84+}) {}
85+
86+export class Unsigned extends S.Class<Unsigned>("Unsigned")({
87+ "unsigned": S.Int,
88+}) {}
89+
90+export class Unsafe extends S.Class<Unsafe>("Unsafe")({
91+ "unsafe": S.Int,
92+}) {}
93+
8294 export class Obj6 extends S.Class<Obj6>("Obj6")({
8395 "dummy": S.Int,
96+ "unsafe": Unsafe,
97+ "unsigned": Unsigned,
98+ "ushort": Ushort,
8499 "using": Using,
85100 "Utf8JsonReader": Utf8JsonReader,
86101 "Utf8JsonWriter": Utf8JsonWriter,
@@ -101,22 +116,10 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({
101116 "yield": Yield,
102117 }) {}
103118
104-export class Ushort extends S.Class<Ushort>("Ushort")({
105- "ushort": S.Int,
106-}) {}
107-
108119 export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({
109120 "UseSerializers": S.Int,
110121 }) {}
111122
112-export class Unsigned extends S.Class<Unsigned>("Unsigned")({
113- "unsigned": S.Int,
114-}) {}
115-
116-export class Unsafe extends S.Class<Unsafe>("Unsafe")({
117- "unsafe": S.Int,
118-}) {}
119-
120123 export class Unowned extends S.Class<Unowned>("Unowned")({
121124 "unowned": S.Int,
122125 }) {}
@@ -338,6 +341,18 @@ export class Self extends S.Class<Self>("Self")({
338341 "Self": S.Int,
339342 }) {}
340343
344+export class Select extends S.Class<Select>("Select")({
345+ "select": S.Int,
346+}) {}
347+
348+export class Sel extends S.Class<Sel>("Sel")({
349+ "SEL": S.Int,
350+}) {}
351+
352+export class Sealed extends S.Class<Sealed>("Sealed")({
353+ "sealed": S.Int,
354+}) {}
355+
341356 export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({
342357 "PrimitiveKind": S.Int,
343358 }) {}
@@ -365,6 +380,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
365380 "true": TrueClass,
366381 "type": TypeClass,
367382 "PrimitiveKind": PrimitiveKind,
383+ "sealed": Sealed,
384+ "SEL": Sel,
385+ "select": Select,
368386 "Self": Self,
369387 "Sendable": Sendable,
370388 "SerialDescriptor": SerialDescriptor,
@@ -420,25 +438,10 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
420438 "undefined": Undefined,
421439 "union": Union,
422440 "unowned": Unowned,
423- "unsafe": Unsafe,
424- "unsigned": Unsigned,
425441 "UseSerializers": UseSerializers,
426- "ushort": Ushort,
427442 }) {}
428443 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
429444
430-export class Select extends S.Class<Select>("Select")({
431- "select": S.Int,
432-}) {}
433-
434-export class Sel extends S.Class<Sel>("Sel")({
435- "SEL": S.Int,
436-}) {}
437-
438-export class Sealed extends S.Class<Sealed>("Sealed")({
439- "sealed": S.Int,
440-}) {}
441-
442445 export class Sbyte extends S.Class<Sbyte>("Sbyte")({
443446 "sbyte": S.Int,
444447 }) {}
@@ -607,6 +610,14 @@ export class Oneway extends S.Class<Oneway>("Oneway")({
607610 "oneway": S.Int,
608611 }) {}
609612
613+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")({
614+ "OffsetTime": S.Int,
615+}) {}
616+
617+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")({
618+ "OffsetDateTime": S.Int,
619+}) {}
620+
610621 export class Of extends S.Class<Of>("Of")({
611622 "of": S.Int,
612623 }) {}
@@ -679,6 +690,10 @@ export class Nonatomic extends S.Class<Nonatomic>("Nonatomic")({
679690 "nonatomic": S.Int,
680691 }) {}
681692
693+export class Noexcept extends S.Class<Noexcept>("Noexcept")({
694+ "noexcept": S.Int,
695+}) {}
696+
682697 export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
683698 "noSuchMethod": S.Int,
684699 }) {}
@@ -686,6 +701,7 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
686701 export class Obj4 extends S.Class<Obj4>("Obj4")({
687702 "dummy": S.Int,
688703 "noSuchMethod": NoSuchMethod,
704+ "noexcept": Noexcept,
689705 "nonatomic": Nonatomic,
690706 "None": None,
691707 "nonlocal": Nonlocal,
@@ -704,6 +720,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
704720 "object": ObjectClass,
705721 "ObjectMapper": ObjectMapper,
706722 "of": Of,
723+ "OffsetDateTime": OffsetDateTime,
724+ "OffsetTime": OffsetTime,
707725 "oneway": Oneway,
708726 "open": Open,
709727 "operator": Operator,
@@ -746,13 +764,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
746764 "runtimeType": RuntimeType,
747765 "s": SClass,
748766 "sbyte": Sbyte,
749- "sealed": Sealed,
750- "SEL": Sel,
751- "select": Select,
752-}) {}
753-
754-export class Noexcept extends S.Class<Noexcept>("Noexcept")({
755- "noexcept": S.Int,
756767 }) {}
757768
758769 export class No extends S.Class<No>("No")({
@@ -815,6 +826,10 @@ export class Locale extends S.Class<Locale>("Locale")({
815826 "Locale": S.Int,
816827 }) {}
817828
829+export class LocalDate extends S.Class<LocalDate>("LocalDate")({
830+ "LocalDate": S.Int,
831+}) {}
832+
818833 export class List extends S.Class<List>("List")({
819834 "list": S.Int,
820835 }) {}
@@ -1057,6 +1072,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10571072 "left": Left,
10581073 "let": Let,
10591074 "list": List,
1075+ "LocalDate": LocalDate,
10601076 "Locale": Locale,
10611077 "lock": Lock,
10621078 "long": Long,
@@ -1072,7 +1088,6 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10721088 "newtonsoft": Newtonsoft,
10731089 "nil": Nil,
10741090 "NO": No,
1075- "noexcept": Noexcept,
10761091 }) {}
10771092
10781093 export class FalseClass extends S.Class<FalseClass>("FalseClass")({
Mtypescript-zoddefault / TopLevel.ts+50 −32
@@ -887,6 +887,11 @@ export const ListSchema = z.object({
887887 });
888888 export type List = z.infer<typeof ListSchema>;
889889
890+export const LocalDateSchema = z.object({
891+ "LocalDate": z.number().int(),
892+});
893+export type LocalDate = z.infer<typeof LocalDateSchema>;
894+
890895 export const LocaleSchema = z.object({
891896 "Locale": z.number().int(),
892897 });
@@ -962,16 +967,16 @@ export const NoSchema = z.object({
962967 });
963968 export type No = z.infer<typeof NoSchema>;
964969
965-export const NoexceptSchema = z.object({
966- "noexcept": z.number().int(),
967-});
968-export type Noexcept = z.infer<typeof NoexceptSchema>;
969-
970970 export const NoSuchMethodSchema = z.object({
971971 "noSuchMethod": z.number().int(),
972972 });
973973 export type NoSuchMethod = z.infer<typeof NoSuchMethodSchema>;
974974
975+export const NoexceptSchema = z.object({
976+ "noexcept": z.number().int(),
977+});
978+export type Noexcept = z.infer<typeof NoexceptSchema>;
979+
975980 export const NonatomicSchema = z.object({
976981 "nonatomic": z.number().int(),
977982 });
@@ -1062,6 +1067,16 @@ export const OfSchema = z.object({
10621067 });
10631068 export type Of = z.infer<typeof OfSchema>;
10641069
1070+export const OffsetDateTimeSchema = z.object({
1071+ "OffsetDateTime": z.number().int(),
1072+});
1073+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
1074+
1075+export const OffsetTimeSchema = z.object({
1076+ "OffsetTime": z.number().int(),
1077+});
1078+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
1079+
10651080 export const OnewaySchema = z.object({
10661081 "oneway": z.number().int(),
10671082 });
@@ -1272,21 +1287,6 @@ export const SbyteSchema = z.object({
12721287 });
12731288 export type Sbyte = z.infer<typeof SbyteSchema>;
12741289
1275-export const SealedSchema = z.object({
1276- "sealed": z.number().int(),
1277-});
1278-export type Sealed = z.infer<typeof SealedSchema>;
1279-
1280-export const SelSchema = z.object({
1281- "SEL": z.number().int(),
1282-});
1283-export type Sel = z.infer<typeof SelSchema>;
1284-
1285-export const SelectSchema = z.object({
1286- "select": z.number().int(),
1287-});
1288-export type Select = z.infer<typeof SelectSchema>;
1289-
12901290 export const KSerializerSchema = z.object({
12911291 "KSerializer": z.number().int(),
12921292 });
@@ -1312,6 +1312,21 @@ export const PrimitiveKindSchema = z.object({
13121312 });
13131313 export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>;
13141314
1315+export const SealedSchema = z.object({
1316+ "sealed": z.number().int(),
1317+});
1318+export type Sealed = z.infer<typeof SealedSchema>;
1319+
1320+export const SelSchema = z.object({
1321+ "SEL": z.number().int(),
1322+});
1323+export type Sel = z.infer<typeof SelSchema>;
1324+
1325+export const SelectSchema = z.object({
1326+ "select": z.number().int(),
1327+});
1328+export type Select = z.infer<typeof SelectSchema>;
1329+
13151330 export const SelfSchema = z.object({
13161331 "Self": z.number().int(),
13171332 });
@@ -1587,6 +1602,11 @@ export const UnownedSchema = z.object({
15871602 });
15881603 export type Unowned = z.infer<typeof UnownedSchema>;
15891604
1605+export const UseSerializersSchema = z.object({
1606+ "UseSerializers": z.number().int(),
1607+});
1608+export type UseSerializers = z.infer<typeof UseSerializersSchema>;
1609+
15901610 export const UnsafeSchema = z.object({
15911611 "unsafe": z.number().int(),
15921612 });
@@ -1597,11 +1617,6 @@ export const UnsignedSchema = z.object({
15971617 });
15981618 export type Unsigned = z.infer<typeof UnsignedSchema>;
15991619
1600-export const UseSerializersSchema = z.object({
1601- "UseSerializers": z.number().int(),
1602-});
1603-export type UseSerializers = z.infer<typeof UseSerializersSchema>;
1604-
16051620 export const UshortSchema = z.object({
16061621 "ushort": z.number().int(),
16071622 });
@@ -1885,6 +1900,7 @@ export const Obj3Schema = z.object({
18851900 "left": LeftSchema,
18861901 "let": LetSchema,
18871902 "list": ListSchema,
1903+ "LocalDate": LocalDateSchema,
18881904 "Locale": LocaleSchema,
18891905 "lock": LockSchema,
18901906 "long": LongSchema,
@@ -1900,13 +1916,13 @@ export const Obj3Schema = z.object({
19001916 "newtonsoft": NewtonsoftSchema,
19011917 "nil": NilSchema,
19021918 "NO": NoSchema,
1903- "noexcept": NoexceptSchema,
19041919 });
19051920 export type Obj3 = z.infer<typeof Obj3Schema>;
19061921
19071922 export const Obj4Schema = z.object({
19081923 "dummy": z.number().int(),
19091924 "noSuchMethod": NoSuchMethodSchema,
1925+ "noexcept": NoexceptSchema,
19101926 "nonatomic": NonatomicSchema,
19111927 "None": NoneSchema,
19121928 "nonlocal": NonlocalSchema,
@@ -1925,6 +1941,8 @@ export const Obj4Schema = z.object({
19251941 "object": ObjectClassSchema,
19261942 "ObjectMapper": ObjectMapperSchema,
19271943 "of": OfSchema,
1944+ "OffsetDateTime": OffsetDateTimeSchema,
1945+ "OffsetTime": OffsetTimeSchema,
19281946 "oneway": OnewaySchema,
19291947 "open": OpenSchema,
19301948 "operator": OperatorSchema,
@@ -1967,9 +1985,6 @@ export const Obj4Schema = z.object({
19671985 "runtimeType": RuntimeTypeSchema,
19681986 "s": SSchema,
19691987 "sbyte": SbyteSchema,
1970- "sealed": SealedSchema,
1971- "SEL": SelSchema,
1972- "select": SelectSchema,
19731988 });
19741989 export type Obj4 = z.infer<typeof Obj4Schema>;
19751990
@@ -1980,6 +1995,9 @@ export const Obj5Schema = z.object({
19801995 "true": TrueClassSchema,
19811996 "type": TypeClassSchema,
19821997 "PrimitiveKind": PrimitiveKindSchema,
1998+ "sealed": SealedSchema,
1999+ "SEL": SelSchema,
2000+ "select": SelectSchema,
19832001 "Self": SelfSchema,
19842002 "Sendable": SendableSchema,
19852003 "SerialDescriptor": SerialDescriptorSchema,
@@ -2035,15 +2053,15 @@ export const Obj5Schema = z.object({
20352053 "undefined": UndefinedSchema,
20362054 "union": UnionSchema,
20372055 "unowned": UnownedSchema,
2038- "unsafe": UnsafeSchema,
2039- "unsigned": UnsignedSchema,
20402056 "UseSerializers": UseSerializersSchema,
2041- "ushort": UshortSchema,
20422057 });
20432058 export type Obj5 = z.infer<typeof Obj5Schema>;
20442059
20452060 export const Obj6Schema = z.object({
20462061 "dummy": z.number().int(),
2062+ "unsafe": UnsafeSchema,
2063+ "unsigned": UnsignedSchema,
2064+ "ushort": UshortSchema,
20472065 "using": UsingSchema,
20482066 "Utf8JsonReader": Utf8JsonReaderSchema,
20492067 "Utf8JsonWriter": Utf8JsonWriterSchema,
Mtypescriptdefault / TopLevel.ts+90 −63
@@ -683,6 +683,7 @@ export interface Obj3 {
683683 JsonParser: JSONParser;
684684 JsonReader: JSONReader;
685685 JsonTokenType: JSONTokenType;
686+ LocalDate: LocalDate;
686687 Locale: Locale;
687688 MapEntry: MapEntry;
688689 NO: No;
@@ -732,7 +733,6 @@ export interface Obj3 {
732733 new: New;
733734 newtonsoft: Newtonsoft;
734735 nil: Nil;
735- noexcept: Noexcept;
736736 }
737737
738738 export interface Hashable {
@@ -795,6 +795,10 @@ export interface JSONTokenType {
795795 JsonTokenType: number;
796796 }
797797
798+export interface LocalDate {
799+ LocalDate: number;
800+}
801+
798802 export interface Locale {
799803 Locale: number;
800804 }
@@ -987,10 +991,6 @@ export interface Nil {
987991 nil: number;
988992 }
989993
990-export interface Noexcept {
991- noexcept: number;
992-}
993-
994994 export interface Obj4 {
995995 NSError: NSError;
996996 NSObject: NSObject;
@@ -998,11 +998,13 @@ export interface Obj4 {
998998 NULL: Null;
999999 None: None;
10001000 ObjectMapper: ObjectMapper;
1001+ OffsetDateTime: OffsetDateTime;
1002+ OffsetTime: OffsetTime;
10011003 Protocol: Protocol;
10021004 RegExp: RegExp;
1003- SEL: Sel;
10041005 dummy: number;
10051006 noSuchMethod: NoSuchMethod;
1007+ noexcept: Noexcept;
10061008 nonatomic: Nonatomic;
10071009 none: NoneClass;
10081010 nonlocal: Nonlocal;
@@ -1055,8 +1057,6 @@ export interface Obj4 {
10551057 runtimeType: RuntimeType;
10561058 s: S;
10571059 sbyte: Sbyte;
1058- sealed: Sealed;
1059- select: Select;
10601060 }
10611061
10621062 export interface NSError {
@@ -1083,6 +1083,14 @@ export interface ObjectMapper {
10831083 ObjectMapper: number;
10841084 }
10851085
1086+export interface OffsetDateTime {
1087+ OffsetDateTime: number;
1088+}
1089+
1090+export interface OffsetTime {
1091+ OffsetTime: number;
1092+}
1093+
10861094 export interface Protocol {
10871095 Protocol: number;
10881096 }
@@ -1091,14 +1099,14 @@ export interface RegExp {
10911099 RegExp: string;
10921100 }
10931101
1094-export interface Sel {
1095- SEL: number;
1096-}
1097-
10981102 export interface NoSuchMethod {
10991103 noSuchMethod: number;
11001104 }
11011105
1106+export interface Noexcept {
1107+ noexcept: number;
1108+}
1109+
11021110 export interface Nonatomic {
11031111 nonatomic: number;
11041112 }
@@ -1307,17 +1315,10 @@ export interface Sbyte {
13071315 sbyte: number;
13081316 }
13091317
1310-export interface Sealed {
1311- sealed: number;
1312-}
1313-
1314-export interface Select {
1315- select: number;
1316-}
1317-
13181318 export interface Obj5 {
13191319 KSerializer: KSerializer;
13201320 PrimitiveKind: PrimitiveKind;
1321+ SEL: Sel;
13211322 Self: Self;
13221323 Sendable: Sendable;
13231324 SerialDescriptor: SerialDescriptor;
@@ -1335,6 +1336,8 @@ export interface Obj5 {
13351336 Type: Type;
13361337 UseSerializers: UseSerializers;
13371338 dummy: number;
1339+ sealed: Sealed;
1340+ select: Select;
13381341 self: SelfClass;
13391342 serialize: Serialize;
13401343 set: Set;
@@ -1378,9 +1381,6 @@ export interface Obj5 {
13781381 undefined: Undefined;
13791382 union: Union;
13801383 unowned: Unowned;
1381- unsafe: Unsafe;
1382- unsigned: Unsigned;
1383- ushort: Ushort;
13841384 }
13851385
13861386 export interface KSerializer {
@@ -1391,6 +1391,10 @@ export interface PrimitiveKind {
13911391 PrimitiveKind: number;
13921392 }
13931393
1394+export interface Sel {
1395+ SEL: number;
1396+}
1397+
13941398 export interface Self {
13951399 Self: number;
13961400 }
@@ -1455,6 +1459,14 @@ export interface UseSerializers {
14551459 UseSerializers: number;
14561460 }
14571461
1462+export interface Sealed {
1463+ sealed: number;
1464+}
1465+
1466+export interface Select {
1467+ select: number;
1468+}
1469+
14581470 export interface SelfClass {
14591471 self: number;
14601472 }
@@ -1627,24 +1639,15 @@ export interface Unowned {
16271639 unowned: number;
16281640 }
16291641
1630-export interface Unsafe {
1631- unsafe: number;
1632-}
1633-
1634-export interface Unsigned {
1635- unsigned: number;
1636-}
1637-
1638-export interface Ushort {
1639- ushort: number;
1640-}
1641-
16421642 export interface Obj6 {
16431643 UUID: UUID;
16441644 Utf8JsonReader: Utf8JSONReader;
16451645 Utf8JsonWriter: Utf8JSONWriter;
16461646 YES: Yes;
16471647 dummy: number;
1648+ unsafe: Unsafe;
1649+ unsigned: Unsigned;
1650+ ushort: Ushort;
16481651 using: Using;
16491652 var: Var;
16501653 virtual: Virtual;
@@ -1677,6 +1680,18 @@ export interface Yes {
16771680 YES: number;
16781681 }
16791682
1683+export interface Unsafe {
1684+ unsafe: number;
1685+}
1686+
1687+export interface Unsigned {
1688+ unsigned: number;
1689+}
1690+
1691+export interface Ushort {
1692+ ushort: number;
1693+}
1694+
16801695 export interface Using {
16811696 using: number;
16821697 }
@@ -2464,6 +2479,7 @@ const typeMap: any = {
24642479 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24652480 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24662481 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2482+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24672483 { json: "Locale", js: "Locale", typ: r("Locale") },
24682484 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24692485 { json: "NO", js: "NO", typ: r("No") },
@@ -2513,7 +2529,6 @@ const typeMap: any = {
25132529 { json: "new", js: "new", typ: r("New") },
25142530 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
25152531 { json: "nil", js: "nil", typ: r("Nil") },
2516- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
25172532 ], false),
25182533 "Hashable": o([
25192534 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2560,6 +2575,9 @@ const typeMap: any = {
25602575 "JSONTokenType": o([
25612576 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25622577 ], false),
2578+ "LocalDate": o([
2579+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2580+ ], false),
25632581 "Locale": o([
25642582 { json: "Locale", js: "Locale", typ: i(0) },
25652583 ], false),
@@ -2704,9 +2722,6 @@ const typeMap: any = {
27042722 "Nil": o([
27052723 { json: "nil", js: "nil", typ: i(0) },
27062724 ], false),
2707- "Noexcept": o([
2708- { json: "noexcept", js: "noexcept", typ: i(0) },
2709- ], false),
27102725 "Obj4": o([
27112726 { json: "NSError", js: "NSError", typ: r("NSError") },
27122727 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2714,11 +2729,13 @@ const typeMap: any = {
27142729 { json: "NULL", js: "NULL", typ: r("Null") },
27152730 { json: "None", js: "None", typ: r("None") },
27162731 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2732+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2733+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
27172734 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
27182735 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
2719- { json: "SEL", js: "SEL", typ: r("Sel") },
27202736 { json: "dummy", js: "dummy", typ: i(0) },
27212737 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2738+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27222739 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
27232740 { json: "none", js: "none", typ: r("NoneClass") },
27242741 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2771,8 +2788,6 @@ const typeMap: any = {
27712788 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
27722789 { json: "s", js: "s", typ: r("S") },
27732790 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2774- { json: "sealed", js: "sealed", typ: r("Sealed") },
2775- { json: "select", js: "select", typ: r("Select") },
27762791 ], false),
27772792 "NSError": o([
27782793 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2792,18 +2807,24 @@ const typeMap: any = {
27922807 "ObjectMapper": o([
27932808 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
27942809 ], false),
2810+ "OffsetDateTime": o([
2811+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2812+ ], false),
2813+ "OffsetTime": o([
2814+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2815+ ], false),
27952816 "Protocol": o([
27962817 { json: "Protocol", js: "Protocol", typ: i(0) },
27972818 ], false),
27982819 "RegExp": o([
27992820 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28002821 ], false),
2801- "Sel": o([
2802- { json: "SEL", js: "SEL", typ: i(0) },
2803- ], false),
28042822 "NoSuchMethod": o([
28052823 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
28062824 ], false),
2825+ "Noexcept": o([
2826+ { json: "noexcept", js: "noexcept", typ: i(0) },
2827+ ], false),
28072828 "Nonatomic": o([
28082829 { json: "nonatomic", js: "nonatomic", typ: i(0) },
28092830 ], false),
@@ -2960,15 +2981,10 @@ const typeMap: any = {
29602981 "Sbyte": o([
29612982 { json: "sbyte", js: "sbyte", typ: i(0) },
29622983 ], false),
2963- "Sealed": o([
2964- { json: "sealed", js: "sealed", typ: i(0) },
2965- ], false),
2966- "Select": o([
2967- { json: "select", js: "select", typ: i(0) },
2968- ], false),
29692984 "Obj5": o([
29702985 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29712986 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
2987+ { json: "SEL", js: "SEL", typ: r("Sel") },
29722988 { json: "Self", js: "Self", typ: r("Self") },
29732989 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29742990 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -2986,6 +3002,8 @@ const typeMap: any = {
29863002 { json: "Type", js: "Type", typ: r("Type") },
29873003 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29883004 { json: "dummy", js: "dummy", typ: i(0) },
3005+ { json: "sealed", js: "sealed", typ: r("Sealed") },
3006+ { json: "select", js: "select", typ: r("Select") },
29893007 { json: "self", js: "self", typ: r("SelfClass") },
29903008 { json: "serialize", js: "serialize", typ: r("Serialize") },
29913009 { json: "set", js: "set", typ: r("Set") },
@@ -3029,9 +3047,6 @@ const typeMap: any = {
30293047 { json: "undefined", js: "undefined", typ: r("Undefined") },
30303048 { json: "union", js: "union", typ: r("Union") },
30313049 { json: "unowned", js: "unowned", typ: r("Unowned") },
3032- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3033- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3034- { json: "ushort", js: "ushort", typ: r("Ushort") },
30353050 ], false),
30363051 "KSerializer": o([
30373052 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3039,6 +3054,9 @@ const typeMap: any = {
30393054 "PrimitiveKind": o([
30403055 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30413056 ], false),
3057+ "Sel": o([
3058+ { json: "SEL", js: "SEL", typ: i(0) },
3059+ ], false),
30423060 "Self": o([
30433061 { json: "Self", js: "Self", typ: i(0) },
30443062 ], false),
@@ -3087,6 +3105,12 @@ const typeMap: any = {
30873105 "UseSerializers": o([
30883106 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30893107 ], false),
3108+ "Sealed": o([
3109+ { json: "sealed", js: "sealed", typ: i(0) },
3110+ ], false),
3111+ "Select": o([
3112+ { json: "select", js: "select", typ: i(0) },
3113+ ], false),
30903114 "SelfClass": o([
30913115 { json: "self", js: "self", typ: i(0) },
30923116 ], false),
@@ -3216,21 +3240,15 @@ const typeMap: any = {
32163240 "Unowned": o([
32173241 { json: "unowned", js: "unowned", typ: i(0) },
32183242 ], false),
3219- "Unsafe": o([
3220- { json: "unsafe", js: "unsafe", typ: i(0) },
3221- ], false),
3222- "Unsigned": o([
3223- { json: "unsigned", js: "unsigned", typ: i(0) },
3224- ], false),
3225- "Ushort": o([
3226- { json: "ushort", js: "ushort", typ: i(0) },
3227- ], false),
32283243 "Obj6": o([
32293244 { json: "UUID", js: "UUID", typ: r("UUID") },
32303245 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32313246 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32323247 { json: "YES", js: "YES", typ: r("Yes") },
32333248 { json: "dummy", js: "dummy", typ: i(0) },
3249+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3250+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3251+ { json: "ushort", js: "ushort", typ: r("Ushort") },
32343252 { json: "using", js: "using", typ: r("Using") },
32353253 { json: "var", js: "var", typ: r("Var") },
32363254 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -3258,6 +3276,15 @@ const typeMap: any = {
32583276 "Yes": o([
32593277 { json: "YES", js: "YES", typ: i(0) },
32603278 ], false),
3279+ "Unsafe": o([
3280+ { json: "unsafe", js: "unsafe", typ: i(0) },
3281+ ], false),
3282+ "Unsigned": o([
3283+ { json: "unsigned", js: "unsigned", typ: i(0) },
3284+ ], false),
3285+ "Ushort": o([
3286+ { json: "ushort", js: "ushort", typ: i(0) },
3287+ ], false),
32613288 "Using": o([
32623289 { json: "using", js: "using", typ: i(0) },
32633290 ], false),
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+90 −63
@@ -683,6 +683,7 @@ export type Obj3 = {
683683 JsonParser: JSONParser;
684684 JsonReader: JSONReader;
685685 JsonTokenType: JSONTokenType;
686+ LocalDate: LocalDate;
686687 Locale: Locale;
687688 MapEntry: MapEntry;
688689 NO: No;
@@ -732,7 +733,6 @@ export type Obj3 = {
732733 new: New;
733734 newtonsoft: Newtonsoft;
734735 nil: Nil;
735- noexcept: Noexcept;
736736 }
737737
738738 export type Hashable = {
@@ -795,6 +795,10 @@ export type JSONTokenType = {
795795 JsonTokenType: number;
796796 }
797797
798+export type LocalDate = {
799+ LocalDate: number;
800+}
801+
798802 export type Locale = {
799803 Locale: number;
800804 }
@@ -987,10 +991,6 @@ export type Nil = {
987991 nil: number;
988992 }
989993
990-export type Noexcept = {
991- noexcept: number;
992-}
993-
994994 export type Obj4 = {
995995 NSError: NSError;
996996 NSObject: NSObject;
@@ -998,11 +998,13 @@ export type Obj4 = {
998998 NULL: Null;
999999 None: None;
10001000 ObjectMapper: ObjectMapper;
1001+ OffsetDateTime: OffsetDateTime;
1002+ OffsetTime: OffsetTime;
10011003 Protocol: Protocol;
10021004 RegExp: RegExp;
1003- SEL: Sel;
10041005 dummy: number;
10051006 noSuchMethod: NoSuchMethod;
1007+ noexcept: Noexcept;
10061008 nonatomic: Nonatomic;
10071009 none: NoneClass;
10081010 nonlocal: Nonlocal;
@@ -1055,8 +1057,6 @@ export type Obj4 = {
10551057 runtimeType: RuntimeType;
10561058 s: S;
10571059 sbyte: Sbyte;
1058- sealed: Sealed;
1059- select: Select;
10601060 }
10611061
10621062 export type NSError = {
@@ -1083,6 +1083,14 @@ export type ObjectMapper = {
10831083 ObjectMapper: number;
10841084 }
10851085
1086+export type OffsetDateTime = {
1087+ OffsetDateTime: number;
1088+}
1089+
1090+export type OffsetTime = {
1091+ OffsetTime: number;
1092+}
1093+
10861094 export type Protocol = {
10871095 Protocol: number;
10881096 }
@@ -1091,14 +1099,14 @@ export type RegExp = {
10911099 RegExp: string;
10921100 }
10931101
1094-export type Sel = {
1095- SEL: number;
1096-}
1097-
10981102 export type NoSuchMethod = {
10991103 noSuchMethod: number;
11001104 }
11011105
1106+export type Noexcept = {
1107+ noexcept: number;
1108+}
1109+
11021110 export type Nonatomic = {
11031111 nonatomic: number;
11041112 }
@@ -1307,17 +1315,10 @@ export type Sbyte = {
13071315 sbyte: number;
13081316 }
13091317
1310-export type Sealed = {
1311- sealed: number;
1312-}
1313-
1314-export type Select = {
1315- select: number;
1316-}
1317-
13181318 export type Obj5 = {
13191319 KSerializer: KSerializer;
13201320 PrimitiveKind: PrimitiveKind;
1321+ SEL: Sel;
13211322 Self: Self;
13221323 Sendable: Sendable;
13231324 SerialDescriptor: SerialDescriptor;
@@ -1335,6 +1336,8 @@ export type Obj5 = {
13351336 Type: Type;
13361337 UseSerializers: UseSerializers;
13371338 dummy: number;
1339+ sealed: Sealed;
1340+ select: Select;
13381341 self: SelfClass;
13391342 serialize: Serialize;
13401343 set: Set;
@@ -1378,9 +1381,6 @@ export type Obj5 = {
13781381 undefined: Undefined;
13791382 union: Union;
13801383 unowned: Unowned;
1381- unsafe: Unsafe;
1382- unsigned: Unsigned;
1383- ushort: Ushort;
13841384 }
13851385
13861386 export type KSerializer = {
@@ -1391,6 +1391,10 @@ export type PrimitiveKind = {
13911391 PrimitiveKind: number;
13921392 }
13931393
1394+export type Sel = {
1395+ SEL: number;
1396+}
1397+
13941398 export type Self = {
13951399 Self: number;
13961400 }
@@ -1455,6 +1459,14 @@ export type UseSerializers = {
14551459 UseSerializers: number;
14561460 }
14571461
1462+export type Sealed = {
1463+ sealed: number;
1464+}
1465+
1466+export type Select = {
1467+ select: number;
1468+}
1469+
14581470 export type SelfClass = {
14591471 self: number;
14601472 }
@@ -1627,24 +1639,15 @@ export type Unowned = {
16271639 unowned: number;
16281640 }
16291641
1630-export type Unsafe = {
1631- unsafe: number;
1632-}
1633-
1634-export type Unsigned = {
1635- unsigned: number;
1636-}
1637-
1638-export type Ushort = {
1639- ushort: number;
1640-}
1641-
16421642 export type Obj6 = {
16431643 UUID: UUID;
16441644 Utf8JsonReader: Utf8JSONReader;
16451645 Utf8JsonWriter: Utf8JSONWriter;
16461646 YES: Yes;
16471647 dummy: number;
1648+ unsafe: Unsafe;
1649+ unsigned: Unsigned;
1650+ ushort: Ushort;
16481651 using: Using;
16491652 var: Var;
16501653 virtual: Virtual;
@@ -1677,6 +1680,18 @@ export type Yes = {
16771680 YES: number;
16781681 }
16791682
1683+export type Unsafe = {
1684+ unsafe: number;
1685+}
1686+
1687+export type Unsigned = {
1688+ unsigned: number;
1689+}
1690+
1691+export type Ushort = {
1692+ ushort: number;
1693+}
1694+
16801695 export type Using = {
16811696 using: number;
16821697 }
@@ -2464,6 +2479,7 @@ const typeMap: any = {
24642479 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24652480 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24662481 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2482+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24672483 { json: "Locale", js: "Locale", typ: r("Locale") },
24682484 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24692485 { json: "NO", js: "NO", typ: r("No") },
@@ -2513,7 +2529,6 @@ const typeMap: any = {
25132529 { json: "new", js: "new", typ: r("New") },
25142530 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
25152531 { json: "nil", js: "nil", typ: r("Nil") },
2516- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
25172532 ], false),
25182533 "Hashable": o([
25192534 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2560,6 +2575,9 @@ const typeMap: any = {
25602575 "JSONTokenType": o([
25612576 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25622577 ], false),
2578+ "LocalDate": o([
2579+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2580+ ], false),
25632581 "Locale": o([
25642582 { json: "Locale", js: "Locale", typ: i(0) },
25652583 ], false),
@@ -2704,9 +2722,6 @@ const typeMap: any = {
27042722 "Nil": o([
27052723 { json: "nil", js: "nil", typ: i(0) },
27062724 ], false),
2707- "Noexcept": o([
2708- { json: "noexcept", js: "noexcept", typ: i(0) },
2709- ], false),
27102725 "Obj4": o([
27112726 { json: "NSError", js: "NSError", typ: r("NSError") },
27122727 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2714,11 +2729,13 @@ const typeMap: any = {
27142729 { json: "NULL", js: "NULL", typ: r("Null") },
27152730 { json: "None", js: "None", typ: r("None") },
27162731 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2732+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2733+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
27172734 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
27182735 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
2719- { json: "SEL", js: "SEL", typ: r("Sel") },
27202736 { json: "dummy", js: "dummy", typ: i(0) },
27212737 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2738+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
27222739 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
27232740 { json: "none", js: "none", typ: r("NoneClass") },
27242741 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2771,8 +2788,6 @@ const typeMap: any = {
27712788 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
27722789 { json: "s", js: "s", typ: r("S") },
27732790 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2774- { json: "sealed", js: "sealed", typ: r("Sealed") },
2775- { json: "select", js: "select", typ: r("Select") },
27762791 ], false),
27772792 "NSError": o([
27782793 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2792,18 +2807,24 @@ const typeMap: any = {
27922807 "ObjectMapper": o([
27932808 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
27942809 ], false),
2810+ "OffsetDateTime": o([
2811+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2812+ ], false),
2813+ "OffsetTime": o([
2814+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2815+ ], false),
27952816 "Protocol": o([
27962817 { json: "Protocol", js: "Protocol", typ: i(0) },
27972818 ], false),
27982819 "RegExp": o([
27992820 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
28002821 ], false),
2801- "Sel": o([
2802- { json: "SEL", js: "SEL", typ: i(0) },
2803- ], false),
28042822 "NoSuchMethod": o([
28052823 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
28062824 ], false),
2825+ "Noexcept": o([
2826+ { json: "noexcept", js: "noexcept", typ: i(0) },
2827+ ], false),
28072828 "Nonatomic": o([
28082829 { json: "nonatomic", js: "nonatomic", typ: i(0) },
28092830 ], false),
@@ -2960,15 +2981,10 @@ const typeMap: any = {
29602981 "Sbyte": o([
29612982 { json: "sbyte", js: "sbyte", typ: i(0) },
29622983 ], false),
2963- "Sealed": o([
2964- { json: "sealed", js: "sealed", typ: i(0) },
2965- ], false),
2966- "Select": o([
2967- { json: "select", js: "select", typ: i(0) },
2968- ], false),
29692984 "Obj5": o([
29702985 { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") },
29712986 { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") },
2987+ { json: "SEL", js: "SEL", typ: r("Sel") },
29722988 { json: "Self", js: "Self", typ: r("Self") },
29732989 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29742990 { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") },
@@ -2986,6 +3002,8 @@ const typeMap: any = {
29863002 { json: "Type", js: "Type", typ: r("Type") },
29873003 { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") },
29883004 { json: "dummy", js: "dummy", typ: i(0) },
3005+ { json: "sealed", js: "sealed", typ: r("Sealed") },
3006+ { json: "select", js: "select", typ: r("Select") },
29893007 { json: "self", js: "self", typ: r("SelfClass") },
29903008 { json: "serialize", js: "serialize", typ: r("Serialize") },
29913009 { json: "set", js: "set", typ: r("Set") },
@@ -3029,9 +3047,6 @@ const typeMap: any = {
30293047 { json: "undefined", js: "undefined", typ: r("Undefined") },
30303048 { json: "union", js: "union", typ: r("Union") },
30313049 { json: "unowned", js: "unowned", typ: r("Unowned") },
3032- { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3033- { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3034- { json: "ushort", js: "ushort", typ: r("Ushort") },
30353050 ], false),
30363051 "KSerializer": o([
30373052 { json: "KSerializer", js: "KSerializer", typ: i(0) },
@@ -3039,6 +3054,9 @@ const typeMap: any = {
30393054 "PrimitiveKind": o([
30403055 { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) },
30413056 ], false),
3057+ "Sel": o([
3058+ { json: "SEL", js: "SEL", typ: i(0) },
3059+ ], false),
30423060 "Self": o([
30433061 { json: "Self", js: "Self", typ: i(0) },
30443062 ], false),
@@ -3087,6 +3105,12 @@ const typeMap: any = {
30873105 "UseSerializers": o([
30883106 { json: "UseSerializers", js: "UseSerializers", typ: i(0) },
30893107 ], false),
3108+ "Sealed": o([
3109+ { json: "sealed", js: "sealed", typ: i(0) },
3110+ ], false),
3111+ "Select": o([
3112+ { json: "select", js: "select", typ: i(0) },
3113+ ], false),
30903114 "SelfClass": o([
30913115 { json: "self", js: "self", typ: i(0) },
30923116 ], false),
@@ -3216,21 +3240,15 @@ const typeMap: any = {
32163240 "Unowned": o([
32173241 { json: "unowned", js: "unowned", typ: i(0) },
32183242 ], false),
3219- "Unsafe": o([
3220- { json: "unsafe", js: "unsafe", typ: i(0) },
3221- ], false),
3222- "Unsigned": o([
3223- { json: "unsigned", js: "unsigned", typ: i(0) },
3224- ], false),
3225- "Ushort": o([
3226- { json: "ushort", js: "ushort", typ: i(0) },
3227- ], false),
32283243 "Obj6": o([
32293244 { json: "UUID", js: "UUID", typ: r("UUID") },
32303245 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
32313246 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
32323247 { json: "YES", js: "YES", typ: r("Yes") },
32333248 { json: "dummy", js: "dummy", typ: i(0) },
3249+ { json: "unsafe", js: "unsafe", typ: r("Unsafe") },
3250+ { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
3251+ { json: "ushort", js: "ushort", typ: r("Ushort") },
32343252 { json: "using", js: "using", typ: r("Using") },
32353253 { json: "var", js: "var", typ: r("Var") },
32363254 { json: "virtual", js: "virtual", typ: r("Virtual") },
@@ -3258,6 +3276,15 @@ const typeMap: any = {
32583276 "Yes": o([
32593277 { json: "YES", js: "YES", typ: i(0) },
32603278 ], false),
3279+ "Unsafe": o([
3280+ { json: "unsafe", js: "unsafe", typ: i(0) },
3281+ ], false),
3282+ "Unsigned": o([
3283+ { json: "unsigned", js: "unsigned", typ: i(0) },
3284+ ], false),
3285+ "Ushort": o([
3286+ { json: "ushort", js: "ushort", typ: i(0) },
3287+ ], false),
32613288 "Using": o([
32623289 { json: "using", js: "using", typ: i(0) },
32633290 ], 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
@@ -184,6 +184,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
184184 else if (!strcmp(cJSON_GetStringValue(j), "left")) x = ENUM_LEFT;
185185 else if (!strcmp(cJSON_GetStringValue(j), "let")) x = ENUM_LET;
186186 else if (!strcmp(cJSON_GetStringValue(j), "list")) x = ENUM_LIST;
187+ else if (!strcmp(cJSON_GetStringValue(j), "LocalDate")) x = ENUM_LOCAL_DATE;
187188 else if (!strcmp(cJSON_GetStringValue(j), "Locale")) x = ENUM_LOCALE;
188189 else if (!strcmp(cJSON_GetStringValue(j), "lock")) x = ENUM_LOCK;
189190 else if (!strcmp(cJSON_GetStringValue(j), "long")) x = ENUM_LONG;
@@ -216,6 +217,8 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) {
216217 else if (!strcmp(cJSON_GetStringValue(j), "nullptr")) x = ENUM_NULLPTR;
217218 else if (!strcmp(cJSON_GetStringValue(j), "number")) x = ENUM_NUMBER;
218219 else if (!strcmp(cJSON_GetStringValue(j), "object")) x = ENUM_OBJECT;
220+ else if (!strcmp(cJSON_GetStringValue(j), "OffsetDateTime")) x = ENUM_OFFSET_DATE_TIME;
221+ else if (!strcmp(cJSON_GetStringValue(j), "OffsetTime")) x = ENUM_OFFSET_TIME;
219222 else if (!strcmp(cJSON_GetStringValue(j), "ObjectMapper")) x = ENUM_OBJECT_MAPPER;
220223 else if (!strcmp(cJSON_GetStringValue(j), "of")) x = ENUM_OF;
221224 else if (!strcmp(cJSON_GetStringValue(j), "oneway")) x = ENUM_ONEWAY;
@@ -530,6 +533,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
530533 case ENUM_LEFT: j = cJSON_CreateString("left"); break;
531534 case ENUM_LET: j = cJSON_CreateString("let"); break;
532535 case ENUM_LIST: j = cJSON_CreateString("list"); break;
536+ case ENUM_LOCAL_DATE: j = cJSON_CreateString("LocalDate"); break;
533537 case ENUM_LOCALE: j = cJSON_CreateString("Locale"); break;
534538 case ENUM_LOCK: j = cJSON_CreateString("lock"); break;
535539 case ENUM_LONG: j = cJSON_CreateString("long"); break;
@@ -562,6 +566,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
562566 case ENUM_NULLPTR: j = cJSON_CreateString("nullptr"); break;
563567 case ENUM_NUMBER: j = cJSON_CreateString("number"); break;
564568 case ENUM_OBJECT: j = cJSON_CreateString("object"); break;
569+ case ENUM_OFFSET_DATE_TIME: j = cJSON_CreateString("OffsetDateTime"); break;
570+ case ENUM_OFFSET_TIME: j = cJSON_CreateString("OffsetTime"); break;
565571 case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break;
566572 case ENUM_OF: j = cJSON_CreateString("of"); break;
567573 case ENUM_ONEWAY: j = cJSON_CreateString("oneway"); break;
Mschema-cjsondefault / TopLevel.h+3 −0
@@ -225,6 +225,7 @@ enum Enum {
225225 ENUM_LEFT,
226226 ENUM_LET,
227227 ENUM_LIST,
228+ ENUM_LOCAL_DATE,
228229 ENUM_LOCALE,
229230 ENUM_LOCK,
230231 ENUM_LONG,
@@ -257,6 +258,8 @@ enum Enum {
257258 ENUM_NULLPTR,
258259 ENUM_NUMBER,
259260 ENUM_OBJECT,
261+ ENUM_OFFSET_DATE_TIME,
262+ ENUM_OFFSET_TIME,
260263 ENUM_OBJECT_MAPPER,
261264 ENUM_OF,
262265 ENUM_ONEWAY,
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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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:
@@ -302,6 +302,7 @@ namespace quicktype {
302302 {"left", Enum::LEFT},
303303 {"let", Enum::LET},
304304 {"list", Enum::LIST},
305+ {"LocalDate", Enum::LOCAL_DATE},
305306 {"Locale", Enum::LOCALE},
306307 {"lock", Enum::LOCK},
307308 {"long", Enum::LONG},
@@ -334,6 +335,8 @@ namespace quicktype {
334335 {"nullptr", Enum::NULLPTR},
335336 {"number", Enum::NUMBER},
336337 {"object", Enum::OBJECT},
338+ {"OffsetDateTime", Enum::OFFSET_DATE_TIME},
339+ {"OffsetTime", Enum::OFFSET_TIME},
337340 {"ObjectMapper", Enum::OBJECT_MAPPER},
338341 {"of", Enum::OF},
339342 {"oneway", Enum::ONEWAY},
@@ -651,6 +654,7 @@ namespace quicktype {
651654 case Enum::LEFT: j = "left"; break;
652655 case Enum::LET: j = "let"; break;
653656 case Enum::LIST: j = "list"; break;
657+ case Enum::LOCAL_DATE: j = "LocalDate"; break;
654658 case Enum::LOCALE: j = "Locale"; break;
655659 case Enum::LOCK: j = "lock"; break;
656660 case Enum::LONG: j = "long"; break;
@@ -683,6 +687,8 @@ namespace quicktype {
683687 case Enum::NULLPTR: j = "nullptr"; break;
684688 case Enum::NUMBER: j = "number"; break;
685689 case Enum::OBJECT: j = "object"; break;
690+ case Enum::OFFSET_DATE_TIME: j = "OffsetDateTime"; break;
691+ case Enum::OFFSET_TIME: j = "OffsetTime"; break;
686692 case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break;
687693 case Enum::OF: j = "of"; break;
688694 case Enum::ONEWAY: j = "oneway"; 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, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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 {
@@ -417,6 +417,8 @@ namespace QuickType
417417 return Enum.Let;
418418 case "list":
419419 return Enum.List;
420+ case "LocalDate":
421+ return Enum.LocalDate;
420422 case "Locale":
421423 return Enum.Locale;
422424 case "lock":
@@ -481,6 +483,10 @@ namespace QuickType
481483 return Enum.Number;
482484 case "object":
483485 return Enum.Object;
486+ case "OffsetDateTime":
487+ return Enum.OffsetDateTime;
488+ case "OffsetTime":
489+ return Enum.OffsetTime;
484490 case "ObjectMapper":
485491 return Enum.ObjectMapper;
486492 case "of":
@@ -1285,6 +1291,9 @@ namespace QuickType
12851291 case Enum.List:
12861292 serializer.Serialize(writer, "list");
12871293 return;
1294+ case Enum.LocalDate:
1295+ serializer.Serialize(writer, "LocalDate");
1296+ return;
12881297 case Enum.Locale:
12891298 serializer.Serialize(writer, "Locale");
12901299 return;
@@ -1381,6 +1390,12 @@ namespace QuickType
13811390 case Enum.Object:
13821391 serializer.Serialize(writer, "object");
13831392 return;
1393+ case Enum.OffsetDateTime:
1394+ serializer.Serialize(writer, "OffsetDateTime");
1395+ return;
1396+ case Enum.OffsetTime:
1397+ serializer.Serialize(writer, "OffsetTime");
1398+ return;
13841399 case Enum.ObjectMapper:
13851400 serializer.Serialize(writer, "ObjectMapper");
13861401 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, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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 {
@@ -414,6 +414,8 @@ namespace QuickType
414414 return Enum.Let;
415415 case "list":
416416 return Enum.List;
417+ case "LocalDate":
418+ return Enum.LocalDate;
417419 case "Locale":
418420 return Enum.Locale;
419421 case "lock":
@@ -478,6 +480,10 @@ namespace QuickType
478480 return Enum.Number;
479481 case "object":
480482 return Enum.Object;
483+ case "OffsetDateTime":
484+ return Enum.OffsetDateTime;
485+ case "OffsetTime":
486+ return Enum.OffsetTime;
481487 case "ObjectMapper":
482488 return Enum.ObjectMapper;
483489 case "of":
@@ -1276,6 +1282,9 @@ namespace QuickType
12761282 case Enum.List:
12771283 JsonSerializer.Serialize(writer, "list", options);
12781284 return;
1285+ case Enum.LocalDate:
1286+ JsonSerializer.Serialize(writer, "LocalDate", options);
1287+ return;
12791288 case Enum.Locale:
12801289 JsonSerializer.Serialize(writer, "Locale", options);
12811290 return;
@@ -1372,6 +1381,12 @@ namespace QuickType
13721381 case Enum.Object:
13731382 JsonSerializer.Serialize(writer, "object", options);
13741383 return;
1384+ case Enum.OffsetDateTime:
1385+ JsonSerializer.Serialize(writer, "OffsetDateTime", options);
1386+ return;
1387+ case Enum.OffsetTime:
1388+ JsonSerializer.Serialize(writer, "OffsetTime", options);
1389+ return;
13751390 case Enum.ObjectMapper:
13761391 JsonSerializer.Serialize(writer, "ObjectMapper", options);
13771392 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, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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 {
@@ -417,6 +417,8 @@ namespace QuickType
417417 return Enum.Let;
418418 case "list":
419419 return Enum.List;
420+ case "LocalDate":
421+ return Enum.LocalDate;
420422 case "Locale":
421423 return Enum.Locale;
422424 case "lock":
@@ -481,6 +483,10 @@ namespace QuickType
481483 return Enum.Number;
482484 case "object":
483485 return Enum.Object;
486+ case "OffsetDateTime":
487+ return Enum.OffsetDateTime;
488+ case "OffsetTime":
489+ return Enum.OffsetTime;
484490 case "ObjectMapper":
485491 return Enum.ObjectMapper;
486492 case "of":
@@ -1285,6 +1291,9 @@ namespace QuickType
12851291 case Enum.List:
12861292 serializer.Serialize(writer, "list");
12871293 return;
1294+ case Enum.LocalDate:
1295+ serializer.Serialize(writer, "LocalDate");
1296+ return;
12881297 case Enum.Locale:
12891298 serializer.Serialize(writer, "Locale");
12901299 return;
@@ -1381,6 +1390,12 @@ namespace QuickType
13811390 case Enum.Object:
13821391 serializer.Serialize(writer, "object");
13831392 return;
1393+ case Enum.OffsetDateTime:
1394+ serializer.Serialize(writer, "OffsetDateTime");
1395+ return;
1396+ case Enum.OffsetTime:
1397+ serializer.Serialize(writer, "OffsetTime");
1398+ return;
13841399 case Enum.ObjectMapper:
13851400 serializer.Serialize(writer, "ObjectMapper");
13861401 return;
Mschema-dartdefault / TopLevel.dart+6 −0
@@ -201,6 +201,7 @@ enum Enum {
201201 LEFT,
202202 LET,
203203 LIST,
204+ LOCAL_DATE,
204205 LOCALE,
205206 LOCK,
206207 LONG,
@@ -233,6 +234,8 @@ enum Enum {
233234 NULLPTR,
234235 NUMBER,
235236 OBJECT,
237+ OFFSET_DATE_TIME,
238+ OFFSET_TIME,
236239 OBJECT_MAPPER,
237240 OF,
238241 ONEWAY,
@@ -543,6 +546,7 @@ final enumValues = EnumValues({
543546 "left": Enum.LEFT,
544547 "let": Enum.LET,
545548 "list": Enum.LIST,
549+ "LocalDate": Enum.LOCAL_DATE,
546550 "Locale": Enum.LOCALE,
547551 "lock": Enum.LOCK,
548552 "long": Enum.LONG,
@@ -575,6 +579,8 @@ final enumValues = EnumValues({
575579 "nullptr": Enum.NULLPTR,
576580 "number": Enum.NUMBER,
577581 "object": Enum.OBJECT,
582+ "OffsetDateTime": Enum.OFFSET_DATE_TIME,
583+ "OffsetTime": Enum.OFFSET_TIME,
578584 "ObjectMapper": Enum.OBJECT_MAPPER,
579585 "of": Enum.OF,
580586 "oneway": Enum.ONEWAY,
Mschema-elixirdefault / QuickType.ex+3 −0
@@ -183,6 +183,7 @@ defmodule EnumEnum do
183183 :left,
184184 :let,
185185 :list,
186+ :LocalDate,
186187 :Locale,
187188 :lock,
188189 :long,
@@ -215,6 +216,8 @@ defmodule EnumEnum do
215216 :nullptr,
216217 :number,
217218 :object,
219+ :OffsetDateTime,
220+ :OffsetTime,
218221 :ObjectMapper,
219222 :of,
220223 :oneway,
Mschema-elmdefault / QuickType.elm+9 −0
@@ -204,6 +204,7 @@ type EnumEnum
204204 | Left
205205 | Let
206206 | EnumList
207+ | LocalDate
207208 | Locale
208209 | Lock
209210 | Long
@@ -236,6 +237,8 @@ type EnumEnum
236237 | Nullptr
237238 | Number
238239 | Object
240+ | OffsetDateTime
241+ | OffsetTime
239242 | ObjectMapper
240243 | Of
241244 | Oneway
@@ -571,6 +574,7 @@ enumEnum =
571574 "left" -> Jdec.succeed Left
572575 "let" -> Jdec.succeed Let
573576 "list" -> Jdec.succeed EnumList
577+ "LocalDate" -> Jdec.succeed LocalDate
574578 "Locale" -> Jdec.succeed Locale
575579 "lock" -> Jdec.succeed Lock
576580 "long" -> Jdec.succeed Long
@@ -603,6 +607,8 @@ enumEnum =
603607 "nullptr" -> Jdec.succeed Nullptr
604608 "number" -> Jdec.succeed Number
605609 "object" -> Jdec.succeed Object
610+ "OffsetDateTime" -> Jdec.succeed OffsetDateTime
611+ "OffsetTime" -> Jdec.succeed OffsetTime
606612 "ObjectMapper" -> Jdec.succeed ObjectMapper
607613 "of" -> Jdec.succeed Of
608614 "oneway" -> Jdec.succeed Oneway
@@ -915,6 +921,7 @@ encodeEnumEnum x = case x of
915921 Left -> Jenc.string "left"
916922 Let -> Jenc.string "let"
917923 EnumList -> Jenc.string "list"
924+ LocalDate -> Jenc.string "LocalDate"
918925 Locale -> Jenc.string "Locale"
919926 Lock -> Jenc.string "lock"
920927 Long -> Jenc.string "long"
@@ -947,6 +954,8 @@ encodeEnumEnum x = case x of
947954 Nullptr -> Jenc.string "nullptr"
948955 Number -> Jenc.string "number"
949956 Object -> Jenc.string "object"
957+ OffsetDateTime -> Jenc.string "OffsetDateTime"
958+ OffsetTime -> Jenc.string "OffsetTime"
950959 ObjectMapper -> Jenc.string "ObjectMapper"
951960 Of -> Jenc.string "of"
952961 Oneway -> Jenc.string "oneway"
Mschema-flowdefault / TopLevel.js+6 −0
@@ -191,6 +191,7 @@ export type Enum =
191191 | "left"
192192 | "let"
193193 | "list"
194+ | "LocalDate"
194195 | "Locale"
195196 | "lock"
196197 | "long"
@@ -223,6 +224,8 @@ export type Enum =
223224 | "nullptr"
224225 | "number"
225226 | "object"
227+ | "OffsetDateTime"
228+ | "OffsetTime"
226229 | "ObjectMapper"
227230 | "of"
228231 | "oneway"
@@ -720,6 +723,7 @@ const typeMap: any = {
720723 "left",
721724 "let",
722725 "list",
726+ "LocalDate",
723727 "Locale",
724728 "lock",
725729 "long",
@@ -752,6 +756,8 @@ const typeMap: any = {
752756 "nullptr",
753757 "number",
754758 "object",
759+ "OffsetDateTime",
760+ "OffsetTime",
755761 "ObjectMapper",
756762 "of",
757763 "oneway",
Mschema-golangdefault / quicktype.go+4 −1
@@ -201,6 +201,7 @@ const (
201201 Left EnumEnum = "left"
202202 Let EnumEnum = "let"
203203 List EnumEnum = "list"
204+ LocalDate EnumEnum = "LocalDate"
204205 Locale EnumEnum = "Locale"
205206 Lock EnumEnum = "lock"
206207 Long EnumEnum = "long"
@@ -233,6 +234,8 @@ const (
233234 Nullptr EnumEnum = "nullptr"
234235 Number EnumEnum = "number"
235236 Object EnumEnum = "object"
237+ OffsetDateTime EnumEnum = "OffsetDateTime"
238+ OffsetTime EnumEnum = "OffsetTime"
236239 ObjectMapper EnumEnum = "ObjectMapper"
237240 Of EnumEnum = "of"
238241 Oneway EnumEnum = "oneway"
@@ -373,7 +376,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
373376 var value string
374377 if err := json.Unmarshal(data, &value); err != nil { return err }
375378 switch EnumEnum(value) {
376- case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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
379+ case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, 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, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, 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, 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, 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, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, 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, 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, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, 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
377380 }
378381 return invalidEnumEnum(value)
379382 }
Mschema-haskelldefault / QuickType.hs+9 −0
@@ -194,6 +194,7 @@ data EnumEnum
194194 | LeftEnumEnum
195195 | LetEnumEnum
196196 | ListEnumEnum
197+ | LocalDateEnumEnum
197198 | LocaleEnumEnum
198199 | LockEnumEnum
199200 | LongEnumEnum
@@ -226,6 +227,8 @@ data EnumEnum
226227 | NullptrEnumEnum
227228 | NumberEnumEnum
228229 | ObjectEnumEnum
230+ | OffsetDateTimeEnumEnum
231+ | OffsetTimeEnumEnum
229232 | ObjectMapperEnumEnum
230233 | OfEnumEnum
231234 | OnewayEnumEnum
@@ -549,6 +552,7 @@ instance ToJSON EnumEnum where
549552 toJSON LeftEnumEnum = "left"
550553 toJSON LetEnumEnum = "let"
551554 toJSON ListEnumEnum = "list"
555+ toJSON LocalDateEnumEnum = "LocalDate"
552556 toJSON LocaleEnumEnum = "Locale"
553557 toJSON LockEnumEnum = "lock"
554558 toJSON LongEnumEnum = "long"
@@ -581,6 +585,8 @@ instance ToJSON EnumEnum where
581585 toJSON NullptrEnumEnum = "nullptr"
582586 toJSON NumberEnumEnum = "number"
583587 toJSON ObjectEnumEnum = "object"
588+ toJSON OffsetDateTimeEnumEnum = "OffsetDateTime"
589+ toJSON OffsetTimeEnumEnum = "OffsetTime"
584590 toJSON ObjectMapperEnumEnum = "ObjectMapper"
585591 toJSON OfEnumEnum = "of"
586592 toJSON OnewayEnumEnum = "oneway"
@@ -892,6 +898,7 @@ instance FromJSON EnumEnum where
892898 parseText "left" = return LeftEnumEnum
893899 parseText "let" = return LetEnumEnum
894900 parseText "list" = return ListEnumEnum
901+ parseText "LocalDate" = return LocalDateEnumEnum
895902 parseText "Locale" = return LocaleEnumEnum
896903 parseText "lock" = return LockEnumEnum
897904 parseText "long" = return LongEnumEnum
@@ -924,6 +931,8 @@ instance FromJSON EnumEnum where
924931 parseText "nullptr" = return NullptrEnumEnum
925932 parseText "number" = return NumberEnumEnum
926933 parseText "object" = return ObjectEnumEnum
934+ parseText "OffsetDateTime" = return OffsetDateTimeEnumEnum
935+ parseText "OffsetTime" = return OffsetTimeEnumEnum
927936 parseText "ObjectMapper" = return ObjectMapperEnumEnum
928937 parseText "of" = return OfEnumEnum
929938 parseText "oneway" = return OnewayEnumEnum
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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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() {
@@ -185,6 +185,7 @@ public enum Enum {
185185 case LEFT: return "left";
186186 case LET: return "let";
187187 case LIST: return "list";
188+ case LOCAL_DATE: return "LocalDate";
188189 case LOCALE: return "Locale";
189190 case LOCK: return "lock";
190191 case LONG: return "long";
@@ -217,6 +218,8 @@ public enum Enum {
217218 case NULLPTR: return "nullptr";
218219 case NUMBER: return "number";
219220 case OBJECT: return "object";
221+ case OFFSET_DATE_TIME: return "OffsetDateTime";
222+ case OFFSET_TIME: return "OffsetTime";
220223 case OBJECT_MAPPER: return "ObjectMapper";
221224 case OF: return "of";
222225 case ONEWAY: return "oneway";
@@ -530,6 +533,7 @@ public enum Enum {
530533 if (value.equals("left")) return LEFT;
531534 if (value.equals("let")) return LET;
532535 if (value.equals("list")) return LIST;
536+ if (value.equals("LocalDate")) return LOCAL_DATE;
533537 if (value.equals("Locale")) return LOCALE;
534538 if (value.equals("lock")) return LOCK;
535539 if (value.equals("long")) return LONG;
@@ -562,6 +566,8 @@ public enum Enum {
562566 if (value.equals("nullptr")) return NULLPTR;
563567 if (value.equals("number")) return NUMBER;
564568 if (value.equals("object")) return OBJECT;
569+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
570+ if (value.equals("OffsetTime")) return OFFSET_TIME;
565571 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
566572 if (value.equals("of")) return OF;
567573 if (value.equals("oneway")) return ONEWAY;
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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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() {
@@ -185,6 +185,7 @@ public enum Enum {
185185 case LEFT: return "left";
186186 case LET: return "let";
187187 case LIST: return "list";
188+ case LOCAL_DATE: return "LocalDate";
188189 case LOCALE: return "Locale";
189190 case LOCK: return "lock";
190191 case LONG: return "long";
@@ -217,6 +218,8 @@ public enum Enum {
217218 case NULLPTR: return "nullptr";
218219 case NUMBER: return "number";
219220 case OBJECT: return "object";
221+ case OFFSET_DATE_TIME: return "OffsetDateTime";
222+ case OFFSET_TIME: return "OffsetTime";
220223 case OBJECT_MAPPER: return "ObjectMapper";
221224 case OF: return "of";
222225 case ONEWAY: return "oneway";
@@ -530,6 +533,7 @@ public enum Enum {
530533 if (value.equals("left")) return LEFT;
531534 if (value.equals("let")) return LET;
532535 if (value.equals("list")) return LIST;
536+ if (value.equals("LocalDate")) return LOCAL_DATE;
533537 if (value.equals("Locale")) return LOCALE;
534538 if (value.equals("lock")) return LOCK;
535539 if (value.equals("long")) return LONG;
@@ -562,6 +566,8 @@ public enum Enum {
562566 if (value.equals("nullptr")) return NULLPTR;
563567 if (value.equals("number")) return NUMBER;
564568 if (value.equals("object")) return OBJECT;
569+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
570+ if (value.equals("OffsetTime")) return OFFSET_TIME;
565571 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
566572 if (value.equals("of")) return OF;
567573 if (value.equals("oneway")) return ONEWAY;
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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, 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, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, 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_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, 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, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, 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_MAPPER, 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, 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, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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() {
@@ -185,6 +185,7 @@ public enum Enum {
185185 case LEFT: return "left";
186186 case LET: return "let";
187187 case LIST: return "list";
188+ case LOCAL_DATE: return "LocalDate";
188189 case LOCALE: return "Locale";
189190 case LOCK: return "lock";
190191 case LONG: return "long";
@@ -217,6 +218,8 @@ public enum Enum {
217218 case NULLPTR: return "nullptr";
218219 case NUMBER: return "number";
219220 case OBJECT: return "object";
221+ case OFFSET_DATE_TIME: return "OffsetDateTime";
222+ case OFFSET_TIME: return "OffsetTime";
220223 case OBJECT_MAPPER: return "ObjectMapper";
221224 case OF: return "of";
222225 case ONEWAY: return "oneway";
@@ -530,6 +533,7 @@ public enum Enum {
530533 if (value.equals("left")) return LEFT;
531534 if (value.equals("let")) return LET;
532535 if (value.equals("list")) return LIST;
536+ if (value.equals("LocalDate")) return LOCAL_DATE;
533537 if (value.equals("Locale")) return LOCALE;
534538 if (value.equals("lock")) return LOCK;
535539 if (value.equals("long")) return LONG;
@@ -562,6 +566,8 @@ public enum Enum {
562566 if (value.equals("nullptr")) return NULLPTR;
563567 if (value.equals("number")) return NUMBER;
564568 if (value.equals("object")) return OBJECT;
569+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
570+ if (value.equals("OffsetTime")) return OFFSET_TIME;
565571 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
566572 if (value.equals("of")) return OF;
567573 if (value.equals("oneway")) return ONEWAY;
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', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', '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', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', '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_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', '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', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', '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', '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', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', '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', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', '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', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', '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_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', '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', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'OffsetDateTime', 'OffsetTime', 'ObjectMapper', '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', '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', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', '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
@@ -372,6 +372,7 @@ const typeMap = {
372372 "left",
373373 "let",
374374 "list",
375+ "LocalDate",
375376 "Locale",
376377 "lock",
377378 "long",
@@ -404,6 +405,8 @@ const typeMap = {
404405 "nullptr",
405406 "number",
406407 "object",
408+ "OffsetDateTime",
409+ "OffsetTime",
407410 "ObjectMapper",
408411 "of",
409412 "oneway",
Mschema-kotlin-jacksondefault / TopLevel.kt+6 −0
@@ -217,6 +217,7 @@ enum class EnumEnum(val value: String) {
217217 Left("left"),
218218 Let("let"),
219219 EnumList("list"),
220+ LocalDate("LocalDate"),
220221 Locale("Locale"),
221222 Lock("lock"),
222223 EnumLong("long"),
@@ -249,6 +250,8 @@ enum class EnumEnum(val value: String) {
249250 Nullptr("nullptr"),
250251 Number("number"),
251252 Object("object"),
253+ OffsetDateTime("OffsetDateTime"),
254+ OffsetTime("OffsetTime"),
252255 EnumObjectMapper("ObjectMapper"),
253256 Of("of"),
254257 Oneway("oneway"),
@@ -559,6 +562,7 @@ enum class EnumEnum(val value: String) {
559562 "left" -> Left
560563 "let" -> Let
561564 "list" -> EnumList
565+ "LocalDate" -> LocalDate
562566 "Locale" -> Locale
563567 "lock" -> Lock
564568 "long" -> EnumLong
@@ -591,6 +595,8 @@ enum class EnumEnum(val value: String) {
591595 "nullptr" -> Nullptr
592596 "number" -> Number
593597 "object" -> Object
598+ "OffsetDateTime" -> OffsetDateTime
599+ "OffsetTime" -> OffsetTime
594600 "ObjectMapper" -> EnumObjectMapper
595601 "of" -> Of
596602 "oneway" -> Oneway
Mschema-kotlindefault / TopLevel.kt+6 −0
@@ -204,6 +204,7 @@ enum class EnumEnum(val value: String) {
204204 Left("left"),
205205 Let("let"),
206206 EnumList("list"),
207+ LocalDate("LocalDate"),
207208 Locale("Locale"),
208209 Lock("lock"),
209210 EnumLong("long"),
@@ -236,6 +237,8 @@ enum class EnumEnum(val value: String) {
236237 Nullptr("nullptr"),
237238 Number("number"),
238239 Object("object"),
240+ OffsetDateTime("OffsetDateTime"),
241+ OffsetTime("OffsetTime"),
239242 ObjectMapper("ObjectMapper"),
240243 Of("of"),
241244 Oneway("oneway"),
@@ -546,6 +549,7 @@ enum class EnumEnum(val value: String) {
546549 "left" -> Left
547550 "let" -> Let
548551 "list" -> EnumList
552+ "LocalDate" -> LocalDate
549553 "Locale" -> Locale
550554 "lock" -> Lock
551555 "long" -> EnumLong
@@ -578,6 +582,8 @@ enum class EnumEnum(val value: String) {
578582 "nullptr" -> Nullptr
579583 "number" -> Number
580584 "object" -> Object
585+ "OffsetDateTime" -> OffsetDateTime
586+ "OffsetTime" -> OffsetTime
581587 "ObjectMapper" -> ObjectMapper
582588 "of" -> Of
583589 "oneway" -> Oneway
Mschema-kotlinxdefault / TopLevel.kt+3 −0
@@ -193,6 +193,7 @@ enum class EnumEnum(val value: String) {
193193 @SerialName("left") Left("left"),
194194 @SerialName("let") Let("let"),
195195 @SerialName("list") EnumList("list"),
196+ @SerialName("LocalDate") LocalDate("LocalDate"),
196197 @SerialName("Locale") Locale("Locale"),
197198 @SerialName("lock") Lock("lock"),
198199 @SerialName("long") EnumLong("long"),
@@ -225,6 +226,8 @@ enum class EnumEnum(val value: String) {
225226 @SerialName("nullptr") Nullptr("nullptr"),
226227 @SerialName("number") Number("number"),
227228 @SerialName("object") Object("object"),
229+ @SerialName("OffsetDateTime") OffsetDateTime("OffsetDateTime"),
230+ @SerialName("OffsetTime") OffsetTime("OffsetTime"),
228231 @SerialName("ObjectMapper") ObjectMapper("ObjectMapper"),
229232 @SerialName("of") Of("of"),
230233 @SerialName("oneway") Oneway("oneway"),
Mschema-objective-cdefault / QTTopLevel.h+3 −0
@@ -191,6 +191,7 @@ NS_ASSUME_NONNULL_BEGIN
191191 + (QTEnum *)left;
192192 + (QTEnum *)let;
193193 + (QTEnum *)list;
194++ (QTEnum *)localDate;
194195 + (QTEnum *)locale;
195196 + (QTEnum *)lock;
196197 + (QTEnum *)enumLong;
@@ -223,6 +224,8 @@ NS_ASSUME_NONNULL_BEGIN
223224 + (QTEnum *)nullptr;
224225 + (QTEnum *)number;
225226 + (QTEnum *)object;
227++ (QTEnum *)offsetDateTime;
228++ (QTEnum *)offsetTime;
226229 + (QTEnum *)objectMapper;
227230 + (QTEnum *)of;
228231 + (QTEnum *)oneway;
Mschema-objective-cdefault / QTTopLevel.m+6 −0
@@ -194,6 +194,7 @@ NS_ASSUME_NONNULL_BEGIN
194194 @"left": [[QTEnum alloc] initWithValue:@"left"],
195195 @"let": [[QTEnum alloc] initWithValue:@"let"],
196196 @"list": [[QTEnum alloc] initWithValue:@"list"],
197+ @"LocalDate": [[QTEnum alloc] initWithValue:@"LocalDate"],
197198 @"Locale": [[QTEnum alloc] initWithValue:@"Locale"],
198199 @"lock": [[QTEnum alloc] initWithValue:@"lock"],
199200 @"long": [[QTEnum alloc] initWithValue:@"long"],
@@ -226,6 +227,8 @@ NS_ASSUME_NONNULL_BEGIN
226227 @"nullptr": [[QTEnum alloc] initWithValue:@"nullptr"],
227228 @"number": [[QTEnum alloc] initWithValue:@"number"],
228229 @"object": [[QTEnum alloc] initWithValue:@"object"],
230+ @"OffsetDateTime": [[QTEnum alloc] initWithValue:@"OffsetDateTime"],
231+ @"OffsetTime": [[QTEnum alloc] initWithValue:@"OffsetTime"],
229232 @"ObjectMapper": [[QTEnum alloc] initWithValue:@"ObjectMapper"],
230233 @"of": [[QTEnum alloc] initWithValue:@"of"],
231234 @"oneway": [[QTEnum alloc] initWithValue:@"oneway"],
@@ -536,6 +539,7 @@ NS_ASSUME_NONNULL_BEGIN
536539 + (QTEnum *)left { return QTEnum.values[@"left"]; }
537540 + (QTEnum *)let { return QTEnum.values[@"let"]; }
538541 + (QTEnum *)list { return QTEnum.values[@"list"]; }
542++ (QTEnum *)localDate { return QTEnum.values[@"LocalDate"]; }
539543 + (QTEnum *)locale { return QTEnum.values[@"Locale"]; }
540544 + (QTEnum *)lock { return QTEnum.values[@"lock"]; }
541545 + (QTEnum *)enumLong { return QTEnum.values[@"long"]; }
@@ -568,6 +572,8 @@ NS_ASSUME_NONNULL_BEGIN
568572 + (QTEnum *)nullptr { return QTEnum.values[@"nullptr"]; }
569573 + (QTEnum *)number { return QTEnum.values[@"number"]; }
570574 + (QTEnum *)object { return QTEnum.values[@"object"]; }
575++ (QTEnum *)offsetDateTime { return QTEnum.values[@"OffsetDateTime"]; }
576++ (QTEnum *)offsetTime { return QTEnum.values[@"OffsetTime"]; }
571577 + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; }
572578 + (QTEnum *)of { return QTEnum.values[@"of"]; }
573579 + (QTEnum *)oneway { return QTEnum.values[@"oneway"]; }
Mschema-phpdefault / TopLevel.php+12 −0
@@ -289,6 +289,7 @@ class EnumEnum {
289289 public static EnumEnum $LEFT;
290290 public static EnumEnum $LET;
291291 public static EnumEnum $LIST;
292+ public static EnumEnum $LOCAL_DATE;
292293 public static EnumEnum $LOCALE;
293294 public static EnumEnum $LOCK;
294295 public static EnumEnum $LONG;
@@ -321,6 +322,8 @@ class EnumEnum {
321322 public static EnumEnum $NULLPTR;
322323 public static EnumEnum $NUMBER;
323324 public static EnumEnum $OBJECT;
325+ public static EnumEnum $OFFSET_DATE_TIME;
326+ public static EnumEnum $OFFSET_TIME;
324327 public static EnumEnum $OBJECT_MAPPER;
325328 public static EnumEnum $OF;
326329 public static EnumEnum $ONEWAY;
@@ -629,6 +632,7 @@ class EnumEnum {
629632 EnumEnum::$LEFT = new EnumEnum('left');
630633 EnumEnum::$LET = new EnumEnum('let');
631634 EnumEnum::$LIST = new EnumEnum('list');
635+ EnumEnum::$LOCAL_DATE = new EnumEnum('LocalDate');
632636 EnumEnum::$LOCALE = new EnumEnum('Locale');
633637 EnumEnum::$LOCK = new EnumEnum('lock');
634638 EnumEnum::$LONG = new EnumEnum('long');
@@ -661,6 +665,8 @@ class EnumEnum {
661665 EnumEnum::$NULLPTR = new EnumEnum('nullptr');
662666 EnumEnum::$NUMBER = new EnumEnum('number');
663667 EnumEnum::$OBJECT = new EnumEnum('object');
668+ EnumEnum::$OFFSET_DATE_TIME = new EnumEnum('OffsetDateTime');
669+ EnumEnum::$OFFSET_TIME = new EnumEnum('OffsetTime');
664670 EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper');
665671 EnumEnum::$OF = new EnumEnum('of');
666672 EnumEnum::$ONEWAY = new EnumEnum('oneway');
@@ -981,6 +987,7 @@ class EnumEnum {
981987 case EnumEnum::$LEFT->enum: return 'left';
982988 case EnumEnum::$LET->enum: return 'let';
983989 case EnumEnum::$LIST->enum: return 'list';
990+ case EnumEnum::$LOCAL_DATE->enum: return 'LocalDate';
984991 case EnumEnum::$LOCALE->enum: return 'Locale';
985992 case EnumEnum::$LOCK->enum: return 'lock';
986993 case EnumEnum::$LONG->enum: return 'long';
@@ -1013,6 +1020,8 @@ class EnumEnum {
10131020 case EnumEnum::$NULLPTR->enum: return 'nullptr';
10141021 case EnumEnum::$NUMBER->enum: return 'number';
10151022 case EnumEnum::$OBJECT->enum: return 'object';
1023+ case EnumEnum::$OFFSET_DATE_TIME->enum: return 'OffsetDateTime';
1024+ case EnumEnum::$OFFSET_TIME->enum: return 'OffsetTime';
10161025 case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper';
10171026 case EnumEnum::$OF->enum: return 'of';
10181027 case EnumEnum::$ONEWAY->enum: return 'oneway';
@@ -1331,6 +1340,7 @@ class EnumEnum {
13311340 case 'left': return EnumEnum::$LEFT;
13321341 case 'let': return EnumEnum::$LET;
13331342 case 'list': return EnumEnum::$LIST;
1343+ case 'LocalDate': return EnumEnum::$LOCAL_DATE;
13341344 case 'Locale': return EnumEnum::$LOCALE;
13351345 case 'lock': return EnumEnum::$LOCK;
13361346 case 'long': return EnumEnum::$LONG;
@@ -1363,6 +1373,8 @@ class EnumEnum {
13631373 case 'nullptr': return EnumEnum::$NULLPTR;
13641374 case 'number': return EnumEnum::$NUMBER;
13651375 case 'object': return EnumEnum::$OBJECT;
1376+ case 'OffsetDateTime': return EnumEnum::$OFFSET_DATE_TIME;
1377+ case 'OffsetTime': return EnumEnum::$OFFSET_TIME;
13661378 case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER;
13671379 case 'of': return EnumEnum::$OF;
13681380 case 'oneway': return EnumEnum::$ONEWAY;
Mschema-pikedefault / TopLevel.pmod+4 −1
@@ -209,6 +209,7 @@ enum Enum {
209209 LEFT = "left", // json: "left"
210210 LET = "let", // json: "let"
211211 LIST = "list", // json: "list"
212+ LOCAL_DATE = "LocalDate", // json: "LocalDate"
212213 LOCALE = "Locale", // json: "Locale"
213214 LOCK = "lock", // json: "lock"
214215 LONG = "long", // json: "long"
@@ -241,6 +242,8 @@ enum Enum {
241242 NULLPTR = "nullptr", // json: "nullptr"
242243 NUMBER = "number", // json: "number"
243244 OBJECT = "object", // json: "object"
245+ OFFSET_DATE_TIME = "OffsetDateTime", // json: "OffsetDateTime"
246+ OFFSET_TIME = "OffsetTime", // json: "OffsetTime"
244247 OBJECT_MAPPER = "ObjectMapper", // json: "ObjectMapper"
245248 OF = "of", // json: "of"
246249 ONEWAY = "oneway", // json: "oneway"
@@ -375,5 +378,5 @@ enum Enum {
375378 }
376379
377380 Enum Enum_from_JSON(mixed json) {
378- 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 != "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 != "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 != "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 != "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_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 != "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 != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&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 != "ObjectMapper"&&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 != "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 != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&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 != "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;
381+ 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 != "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 != "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 != "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 != "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_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 != "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 != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&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 != "ObjectMapper"&&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 != "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 != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&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 != "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;
379382 }
Mschema-pythondefault / quicktype.py+3 −0
@@ -208,6 +208,7 @@ class EnumEnum(Enum):
208208 LEFT = "left"
209209 LET = "let"
210210 LIST = "list"
211+ LOCAL_DATE = "LocalDate"
211212 LOCALE = "Locale"
212213 LOCK = "lock"
213214 LONG = "long"
@@ -240,6 +241,8 @@ class EnumEnum(Enum):
240241 NULLPTR = "nullptr"
241242 NUMBER = "number"
242243 OBJECT = "object"
244+ OFFSET_DATE_TIME = "OffsetDateTime"
245+ OFFSET_TIME = "OffsetTime"
243246 OBJECT_MAPPER = "ObjectMapper"
244247 OF = "of"
245248 ONEWAY = "oneway"
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", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "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", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "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_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", "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", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "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", "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", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "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", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "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", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "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_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", "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", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "OffsetDateTime", "OffsetTime", "ObjectMapper", "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", "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", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "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
@@ -197,6 +197,7 @@ module Enum
197197 Left = "left"
198198 Let = "let"
199199 List = "list"
200+ LocalDate = "LocalDate"
200201 Locale = "Locale"
201202 Lock = "lock"
202203 Long = "long"
@@ -229,6 +230,8 @@ module Enum
229230 Nullptr = "nullptr"
230231 Number = "number"
231232 Object = "object"
233+ OffsetDateTime = "OffsetDateTime"
234+ OffsetTime = "OffsetTime"
232235 ObjectMapper = "ObjectMapper"
233236 Of = "of"
234237 Oneway = "oneway"
Mschema-rustdefault / module_under_test.rs+9 −0
@@ -437,6 +437,9 @@ pub enum Enum {
437437
438438 List,
439439
440+ #[serde(rename = "LocalDate")]
441+ LocalDate,
442+
440443 #[serde(rename = "Locale")]
441444 Locale,
442445
@@ -514,6 +517,12 @@ pub enum Enum {
514517
515518 Object,
516519
520+ #[serde(rename = "OffsetDateTime")]
521+ OffsetDateTime,
522+
523+ #[serde(rename = "OffsetTime")]
524+ OffsetTime,
525+
517526 #[serde(rename = "ObjectMapper")]
518527 ObjectMapper,
Mschema-scala3-upickledefault / TopLevel.scala+9 −0
@@ -259,6 +259,7 @@ enum EnumEnum :
259259 case Left
260260 case Let
261261 case EnumList
262+ case LocalDate
262263 case Locale
263264 case Lock
264265 case EnumLong
@@ -291,6 +292,8 @@ enum EnumEnum :
291292 case Nullptr
292293 case Number
293294 case Object
295+ case OffsetDateTime
296+ case OffsetTime
294297 case ObjectMapper
295298 case Of
296299 case Oneway
@@ -601,6 +604,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
601604 case EnumEnum.Left => "left"
602605 case EnumEnum.Let => "let"
603606 case EnumEnum.EnumList => "list"
607+ case EnumEnum.LocalDate => "LocalDate"
604608 case EnumEnum.Locale => "Locale"
605609 case EnumEnum.Lock => "lock"
606610 case EnumEnum.EnumLong => "long"
@@ -633,6 +637,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
633637 case EnumEnum.Nullptr => "nullptr"
634638 case EnumEnum.Number => "number"
635639 case EnumEnum.Object => "object"
640+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
641+ case EnumEnum.OffsetTime => "OffsetTime"
636642 case EnumEnum.ObjectMapper => "ObjectMapper"
637643 case EnumEnum.Of => "of"
638644 case EnumEnum.Oneway => "oneway"
@@ -942,6 +948,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
942948 case "left" => EnumEnum.Left
943949 case "let" => EnumEnum.Let
944950 case "list" => EnumEnum.EnumList
951+ case "LocalDate" => EnumEnum.LocalDate
945952 case "Locale" => EnumEnum.Locale
946953 case "lock" => EnumEnum.Lock
947954 case "long" => EnumEnum.EnumLong
@@ -974,6 +981,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
974981 case "nullptr" => EnumEnum.Nullptr
975982 case "number" => EnumEnum.Number
976983 case "object" => EnumEnum.Object
984+ case "OffsetDateTime" => EnumEnum.OffsetDateTime
985+ case "OffsetTime" => EnumEnum.OffsetTime
977986 case "ObjectMapper" => EnumEnum.ObjectMapper
978987 case "of" => EnumEnum.Of
979988 case "oneway" => EnumEnum.Oneway
Mschema-scala3default / TopLevel.scala+9 −0
@@ -188,6 +188,7 @@ enum EnumEnum :
188188 case Left
189189 case Let
190190 case EnumList
191+ case LocalDate
191192 case Locale
192193 case Lock
193194 case EnumLong
@@ -220,6 +221,8 @@ enum EnumEnum :
220221 case Nullptr
221222 case Number
222223 case Object
224+ case OffsetDateTime
225+ case OffsetTime
223226 case ObjectMapper
224227 case Of
225228 case Oneway
@@ -529,6 +532,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
529532 case "left" => scala.Right(EnumEnum.Left)
530533 case "let" => scala.Right(EnumEnum.Let)
531534 case "list" => scala.Right(EnumEnum.EnumList)
535+ case "LocalDate" => scala.Right(EnumEnum.LocalDate)
532536 case "Locale" => scala.Right(EnumEnum.Locale)
533537 case "lock" => scala.Right(EnumEnum.Lock)
534538 case "long" => scala.Right(EnumEnum.EnumLong)
@@ -561,6 +565,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
561565 case "nullptr" => scala.Right(EnumEnum.Nullptr)
562566 case "number" => scala.Right(EnumEnum.Number)
563567 case "object" => scala.Right(EnumEnum.Object)
568+ case "OffsetDateTime" => scala.Right(EnumEnum.OffsetDateTime)
569+ case "OffsetTime" => scala.Right(EnumEnum.OffsetTime)
564570 case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper)
565571 case "of" => scala.Right(EnumEnum.Of)
566572 case "oneway" => scala.Right(EnumEnum.Oneway)
@@ -871,6 +877,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
871877 case EnumEnum.Left => "left"
872878 case EnumEnum.Let => "let"
873879 case EnumEnum.EnumList => "list"
880+ case EnumEnum.LocalDate => "LocalDate"
874881 case EnumEnum.Locale => "Locale"
875882 case EnumEnum.Lock => "lock"
876883 case EnumEnum.EnumLong => "long"
@@ -903,6 +910,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
903910 case EnumEnum.Nullptr => "nullptr"
904911 case EnumEnum.Number => "number"
905912 case EnumEnum.Object => "object"
913+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
914+ case EnumEnum.OffsetTime => "OffsetTime"
906915 case EnumEnum.ObjectMapper => "ObjectMapper"
907916 case EnumEnum.Of => "of"
908917 case EnumEnum.Oneway => "oneway"
Mschema-schemadefault / TopLevel.schema+3 −0
@@ -192,6 +192,7 @@
192192 "left",
193193 "let",
194194 "list",
195+ "LocalDate",
195196 "Locale",
196197 "lock",
197198 "long",
@@ -224,6 +225,8 @@
224225 "nullptr",
225226 "number",
226227 "object",
228+ "OffsetDateTime",
229+ "OffsetTime",
227230 "ObjectMapper",
228231 "of",
229232 "oneway",
Mschema-swiftdefault / quicktype.swift+3 −0
@@ -226,6 +226,7 @@ enum Enum: String, Codable {
226226 case enumLeft = "left"
227227 case enumLet = "let"
228228 case list = "list"
229+ case localDate = "LocalDate"
229230 case locale = "Locale"
230231 case lock = "lock"
231232 case long = "long"
@@ -258,6 +259,8 @@ enum Enum: String, Codable {
258259 case nullptr = "nullptr"
259260 case number = "number"
260261 case object = "object"
262+ case offsetDateTime = "OffsetDateTime"
263+ case offsetTime = "OffsetTime"
261264 case objectMapper = "ObjectMapper"
262265 case of = "of"
263266 case oneway = "oneway"
Mschema-typescript-effect-schemadefault / TopLevel.ts+3 −0
@@ -178,6 +178,7 @@ export const Enum = S.Literal(
178178 "left",
179179 "let",
180180 "list",
181+ "LocalDate",
181182 "Locale",
182183 "lock",
183184 "long",
@@ -210,6 +211,8 @@ export const Enum = S.Literal(
210211 "nullptr",
211212 "number",
212213 "object",
214+ "OffsetDateTime",
215+ "OffsetTime",
213216 "ObjectMapper",
214217 "of",
215218 "oneway",
Mschema-typescript-zoddefault / TopLevel.ts+3 −0
@@ -178,6 +178,7 @@ export const EnumSchema = z.enum([
178178 "left",
179179 "let",
180180 "list",
181+ "LocalDate",
181182 "Locale",
182183 "lock",
183184 "long",
@@ -210,6 +211,8 @@ export const EnumSchema = z.enum([
210211 "nullptr",
211212 "number",
212213 "object",
214+ "OffsetDateTime",
215+ "OffsetTime",
213216 "ObjectMapper",
214217 "of",
215218 "oneway",
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" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "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" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "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_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" | "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" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "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" | "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" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "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" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "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" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "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_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" | "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" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "OffsetDateTime" | "OffsetTime" | "ObjectMapper" | "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" | "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" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "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
@@ -381,6 +381,7 @@ const typeMap: any = {
381381 "left",
382382 "let",
383383 "list",
384+ "LocalDate",
384385 "Locale",
385386 "lock",
386387 "long",
@@ -413,6 +414,8 @@ const typeMap: any = {
413414 "nullptr",
414415 "number",
415416 "object",
417+ "OffsetDateTime",
418+ "OffsetTime",
416419 "ObjectMapper",
417420 "of",
418421 "oneway",
Test case

test/inputs/schema/keyword-unions.schema

49 generated files · +3,702 −165
Mschema-cjsondefault / TopLevel.c+312 −0
@@ -5461,6 +5461,50 @@ void cJSON_DeleteUnionList(struct UnionList * x) {
54615461 }
54625462 }
54635463
5464+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j) {
5465+ struct UnionLocalDate * x = cJSON_malloc(sizeof(struct UnionLocalDate));
5466+ if (NULL != x) {
5467+ memset(x, 0, sizeof(struct UnionLocalDate));
5468+ if (cJSON_IsNumber(j)) {
5469+ x->type = cJSON_Number;
5470+ x->value.number = cJSON_GetNumberValue(j);
5471+ }
5472+ else if (cJSON_IsObject(j)) {
5473+ x->type = cJSON_Object;
5474+ x->value.local_date = cJSON_GetLocalDateValue(j);
5475+ if (NULL == x->value.local_date) x->type = 0;
5476+ }
5477+ if (0 == x->type) { cJSON_free(x); return NULL; }
5478+ }
5479+ return x;
5480+}
5481+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; }
5482+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x) { cJSON * j = cJSON_CreateUnionLocalDate(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
5483+
5484+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x) {
5485+ cJSON * j = NULL;
5486+ if (NULL != x) {
5487+ if (cJSON_Number == x->type) {
5488+ j = cJSON_CreateNumber(x->value.number);
5489+ }
5490+ else if (cJSON_Object == x->type) {
5491+ j = cJSON_CreateLocalDate(x->value.local_date);
5492+ }
5493+ }
5494+ return j;
5495+}
5496+
5497+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x) {
5498+ if (NULL != x) {
5499+ if (cJSON_Number == x->type) {
5500+ }
5501+ else if (cJSON_Object == x->type) {
5502+ cJSON_DeleteLocalDate(x->value.local_date);
5503+ }
5504+ cJSON_free(x);
5505+ }
5506+}
5507+
54645508 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j) {
54655509 struct UnionLocale * x = cJSON_malloc(sizeof(struct UnionLocale));
54665510 if (NULL != x) {
@@ -6473,6 +6517,94 @@ void cJSON_DeleteUnionOf(struct UnionOf * x) {
64736517 }
64746518 }
64756519
6520+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j) {
6521+ struct UnionOffsetDateTime * x = cJSON_malloc(sizeof(struct UnionOffsetDateTime));
6522+ if (NULL != x) {
6523+ memset(x, 0, sizeof(struct UnionOffsetDateTime));
6524+ if (cJSON_IsNumber(j)) {
6525+ x->type = cJSON_Number;
6526+ x->value.number = cJSON_GetNumberValue(j);
6527+ }
6528+ else if (cJSON_IsObject(j)) {
6529+ x->type = cJSON_Object;
6530+ x->value.offset_date_time = cJSON_GetOffsetDateTimeValue(j);
6531+ if (NULL == x->value.offset_date_time) x->type = 0;
6532+ }
6533+ if (0 == x->type) { cJSON_free(x); return NULL; }
6534+ }
6535+ return x;
6536+}
6537+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; }
6538+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { cJSON * j = cJSON_CreateUnionOffsetDateTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6539+
6540+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x) {
6541+ cJSON * j = NULL;
6542+ if (NULL != x) {
6543+ if (cJSON_Number == x->type) {
6544+ j = cJSON_CreateNumber(x->value.number);
6545+ }
6546+ else if (cJSON_Object == x->type) {
6547+ j = cJSON_CreateOffsetDateTime(x->value.offset_date_time);
6548+ }
6549+ }
6550+ return j;
6551+}
6552+
6553+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x) {
6554+ if (NULL != x) {
6555+ if (cJSON_Number == x->type) {
6556+ }
6557+ else if (cJSON_Object == x->type) {
6558+ cJSON_DeleteOffsetDateTime(x->value.offset_date_time);
6559+ }
6560+ cJSON_free(x);
6561+ }
6562+}
6563+
6564+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j) {
6565+ struct UnionOffsetTime * x = cJSON_malloc(sizeof(struct UnionOffsetTime));
6566+ if (NULL != x) {
6567+ memset(x, 0, sizeof(struct UnionOffsetTime));
6568+ if (cJSON_IsNumber(j)) {
6569+ x->type = cJSON_Number;
6570+ x->value.number = cJSON_GetNumberValue(j);
6571+ }
6572+ else if (cJSON_IsObject(j)) {
6573+ x->type = cJSON_Object;
6574+ x->value.offset_time = cJSON_GetOffsetTimeValue(j);
6575+ if (NULL == x->value.offset_time) x->type = 0;
6576+ }
6577+ if (0 == x->type) { cJSON_free(x); return NULL; }
6578+ }
6579+ return x;
6580+}
6581+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; }
6582+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x) { cJSON * j = cJSON_CreateUnionOffsetTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6583+
6584+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x) {
6585+ cJSON * j = NULL;
6586+ if (NULL != x) {
6587+ if (cJSON_Number == x->type) {
6588+ j = cJSON_CreateNumber(x->value.number);
6589+ }
6590+ else if (cJSON_Object == x->type) {
6591+ j = cJSON_CreateOffsetTime(x->value.offset_time);
6592+ }
6593+ }
6594+ return j;
6595+}
6596+
6597+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x) {
6598+ if (NULL != x) {
6599+ if (cJSON_Number == x->type) {
6600+ }
6601+ else if (cJSON_Object == x->type) {
6602+ cJSON_DeleteOffsetTime(x->value.offset_time);
6603+ }
6604+ cJSON_free(x);
6605+ }
6606+}
6607+
64766608 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j) {
64776609 struct UnionOneway * x = cJSON_malloc(sizeof(struct UnionOneway));
64786610 if (NULL != x) {
@@ -20953,6 +21085,55 @@ void cJSON_DeleteList(struct List * x) {
2095321085 }
2095421086 }
2095521087
21088+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
21089+ struct LocalDate * x = NULL;
21090+ if (NULL != s) {
21091+ cJSON * j = cJSON_Parse(s);
21092+ if (NULL != j) {
21093+ x = cJSON_GetLocalDateValue(j);
21094+ cJSON_Delete(j);
21095+ }
21096+ }
21097+ return x;
21098+}
21099+
21100+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
21101+ struct LocalDate * x = NULL;
21102+ if (NULL != j) {
21103+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
21104+ memset(x, 0, sizeof(struct LocalDate));
21105+ }
21106+ }
21107+ return x;
21108+}
21109+
21110+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
21111+ cJSON * j = NULL;
21112+ if (NULL != x) {
21113+ if (NULL != (j = cJSON_CreateObject())) {
21114+ }
21115+ }
21116+ return j;
21117+}
21118+
21119+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
21120+ char * s = NULL;
21121+ if (NULL != x) {
21122+ cJSON * j = cJSON_CreateLocalDate(x);
21123+ if (NULL != j) {
21124+ s = cJSON_Print(j);
21125+ cJSON_Delete(j);
21126+ }
21127+ }
21128+ return s;
21129+}
21130+
21131+void cJSON_DeleteLocalDate(struct LocalDate * x) {
21132+ if (NULL != x) {
21133+ cJSON_free(x);
21134+ }
21135+}
21136+
2095621137 struct Locale * cJSON_ParseLocale(const char * s) {
2095721138 struct Locale * x = NULL;
2095821139 if (NULL != s) {
@@ -22080,6 +22261,104 @@ void cJSON_DeleteOf(struct Of * x) {
2208022261 }
2208122262 }
2208222263
22264+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
22265+ struct OffsetDateTime * x = NULL;
22266+ if (NULL != s) {
22267+ cJSON * j = cJSON_Parse(s);
22268+ if (NULL != j) {
22269+ x = cJSON_GetOffsetDateTimeValue(j);
22270+ cJSON_Delete(j);
22271+ }
22272+ }
22273+ return x;
22274+}
22275+
22276+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
22277+ struct OffsetDateTime * x = NULL;
22278+ if (NULL != j) {
22279+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
22280+ memset(x, 0, sizeof(struct OffsetDateTime));
22281+ }
22282+ }
22283+ return x;
22284+}
22285+
22286+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
22287+ cJSON * j = NULL;
22288+ if (NULL != x) {
22289+ if (NULL != (j = cJSON_CreateObject())) {
22290+ }
22291+ }
22292+ return j;
22293+}
22294+
22295+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
22296+ char * s = NULL;
22297+ if (NULL != x) {
22298+ cJSON * j = cJSON_CreateOffsetDateTime(x);
22299+ if (NULL != j) {
22300+ s = cJSON_Print(j);
22301+ cJSON_Delete(j);
22302+ }
22303+ }
22304+ return s;
22305+}
22306+
22307+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
22308+ if (NULL != x) {
22309+ cJSON_free(x);
22310+ }
22311+}
22312+
22313+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
22314+ struct OffsetTime * x = NULL;
22315+ if (NULL != s) {
22316+ cJSON * j = cJSON_Parse(s);
22317+ if (NULL != j) {
22318+ x = cJSON_GetOffsetTimeValue(j);
22319+ cJSON_Delete(j);
22320+ }
22321+ }
22322+ return x;
22323+}
22324+
22325+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
22326+ struct OffsetTime * x = NULL;
22327+ if (NULL != j) {
22328+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
22329+ memset(x, 0, sizeof(struct OffsetTime));
22330+ }
22331+ }
22332+ return x;
22333+}
22334+
22335+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
22336+ cJSON * j = NULL;
22337+ if (NULL != x) {
22338+ if (NULL != (j = cJSON_CreateObject())) {
22339+ }
22340+ }
22341+ return j;
22342+}
22343+
22344+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
22345+ char * s = NULL;
22346+ if (NULL != x) {
22347+ cJSON * j = cJSON_CreateOffsetTime(x);
22348+ if (NULL != j) {
22349+ s = cJSON_Print(j);
22350+ cJSON_Delete(j);
22351+ }
22352+ }
22353+ return s;
22354+}
22355+
22356+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
22357+ if (NULL != x) {
22358+ cJSON_free(x);
22359+ }
22360+}
22361+
2208322362 struct Oneway * cJSON_ParseOneway(const char * s) {
2208422363 struct Oneway * x = NULL;
2208522364 if (NULL != s) {
@@ -32347,6 +32626,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3234732626 x->list = cJSON_GetUnionListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
3234832627 if (NULL == x->list) { cJSON_DeleteTopLevel(x); return NULL; }
3234932628 }
32629+ if (cJSON_HasObjectItem(j, "LocalDate")) {
32630+ if (!cJSON_IsUnionLocalDate(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteTopLevel(x); return NULL; }
32631+ x->local_date = cJSON_GetUnionLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
32632+ if (NULL == x->local_date) { cJSON_DeleteTopLevel(x); return NULL; }
32633+ }
3235032634 if (cJSON_HasObjectItem(j, "Locale")) {
3235132635 if (!cJSON_IsUnionLocale(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteTopLevel(x); return NULL; }
3235232636 x->locale = cJSON_GetUnionLocaleValue(cJSON_GetObjectItemCaseSensitive(j, "Locale"));
@@ -32517,6 +32801,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3251732801 x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
3251832802 if (NULL == x->of) { cJSON_DeleteTopLevel(x); return NULL; }
3251932803 }
32804+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
32805+ if (!cJSON_IsUnionOffsetDateTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
32806+ x->offset_date_time = cJSON_GetUnionOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
32807+ if (NULL == x->offset_date_time) { cJSON_DeleteTopLevel(x); return NULL; }
32808+ }
32809+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
32810+ if (!cJSON_IsUnionOffsetTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
32811+ x->offset_time = cJSON_GetUnionOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
32812+ if (NULL == x->offset_time) { cJSON_DeleteTopLevel(x); return NULL; }
32813+ }
3252032814 if (cJSON_HasObjectItem(j, "oneway")) {
3252132815 if (!cJSON_IsUnionOneway(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteTopLevel(x); return NULL; }
3252232816 x->oneway = cJSON_GetUnionOnewayValue(cJSON_GetObjectItemCaseSensitive(j, "oneway"));
@@ -33695,6 +33989,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3369533989 if (NULL != x->list) {
3369633990 cJSON_AddItemToObject(j, "list", cJSON_CreateUnionList(x->list));
3369733991 }
33992+ if (NULL != x->local_date) {
33993+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateUnionLocalDate(x->local_date));
33994+ }
3369833995 if (NULL != x->locale) {
3369933996 cJSON_AddItemToObject(j, "Locale", cJSON_CreateUnionLocale(x->locale));
3370033997 }
@@ -33797,6 +34094,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3379734094 if (NULL != x->of) {
3379834095 cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of));
3379934096 }
34097+ if (NULL != x->offset_date_time) {
34098+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateUnionOffsetDateTime(x->offset_date_time));
34099+ }
34100+ if (NULL != x->offset_time) {
34101+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateUnionOffsetTime(x->offset_time));
34102+ }
3380034103 if (NULL != x->oneway) {
3380134104 cJSON_AddItemToObject(j, "oneway", cJSON_CreateUnionOneway(x->oneway));
3380234105 }
@@ -34731,6 +35034,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3473135034 if (NULL != x->list) {
3473235035 cJSON_DeleteUnionList(x->list);
3473335036 }
35037+ if (NULL != x->local_date) {
35038+ cJSON_DeleteUnionLocalDate(x->local_date);
35039+ }
3473435040 if (NULL != x->locale) {
3473535041 cJSON_DeleteUnionLocale(x->locale);
3473635042 }
@@ -34833,6 +35139,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3483335139 if (NULL != x->of) {
3483435140 cJSON_DeleteUnionOf(x->of);
3483535141 }
35142+ if (NULL != x->offset_date_time) {
35143+ cJSON_DeleteUnionOffsetDateTime(x->offset_date_time);
35144+ }
35145+ if (NULL != x->offset_time) {
35146+ cJSON_DeleteUnionOffsetTime(x->offset_time);
35147+ }
3483635148 if (NULL != x->oneway) {
3483735149 cJSON_DeleteUnionOneway(x->oneway);
3483835150 }
Mschema-cjsondefault / TopLevel.h+75 −0
@@ -1412,6 +1412,17 @@ struct UnionList {
14121412 } value;
14131413 };
14141414
1415+struct LocalDate {
1416+};
1417+
1418+struct UnionLocalDate {
1419+ int type;
1420+ union {
1421+ double number;
1422+ struct LocalDate * local_date;
1423+ } value;
1424+};
1425+
14151426 struct Locale {
14161427 };
14171428
@@ -1665,6 +1676,28 @@ struct UnionOf {
16651676 } value;
16661677 };
16671678
1679+struct OffsetDateTime {
1680+};
1681+
1682+struct UnionOffsetDateTime {
1683+ int type;
1684+ union {
1685+ double number;
1686+ struct OffsetDateTime * offset_date_time;
1687+ } value;
1688+};
1689+
1690+struct OffsetTime {
1691+};
1692+
1693+struct UnionOffsetTime {
1694+ int type;
1695+ union {
1696+ double number;
1697+ struct OffsetTime * offset_time;
1698+ } value;
1699+};
1700+
16681701 struct Oneway {
16691702 };
16701703
@@ -3945,6 +3978,7 @@ struct TopLevel {
39453978 struct UnionLeft * left;
39463979 struct UnionLet * let;
39473980 struct UnionList * list;
3981+ struct UnionLocalDate * local_date;
39483982 struct UnionLocale * locale;
39493983 struct UnionLock * lock;
39503984 struct UnionLong * top_level_long;
@@ -3979,6 +4013,8 @@ struct TopLevel {
39794013 struct UnionObject * object;
39804014 struct UnionObjectMapper * object_mapper;
39814015 struct UnionOf * of;
4016+ struct UnionOffsetDateTime * offset_date_time;
4017+ struct UnionOffsetTime * offset_time;
39824018 struct UnionOneway * oneway;
39834019 struct UnionOpen * open;
39844020 struct UnionOperator * top_level_operator;
@@ -4976,6 +5012,13 @@ void cJSON_DeleteUnionList(struct UnionList * x);
49765012 struct UnionList * cJSON_ParseUnionList(const char * s);
49775013 char * cJSON_PrintUnionList(const struct UnionList * x);
49785014
5015+#define cJSON_IsUnionLocalDate(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5016+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j);
5017+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x);
5018+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x);
5019+struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s);
5020+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x);
5021+
49795022 #define cJSON_IsUnionLocale(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
49805023 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j);
49815024 cJSON * cJSON_CreateUnionLocale(const struct UnionLocale * x);
@@ -5137,6 +5180,20 @@ void cJSON_DeleteUnionOf(struct UnionOf * x);
51375180 struct UnionOf * cJSON_ParseUnionOf(const char * s);
51385181 char * cJSON_PrintUnionOf(const struct UnionOf * x);
51395182
5183+#define cJSON_IsUnionOffsetDateTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5184+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j);
5185+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5186+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x);
5187+struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s);
5188+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5189+
5190+#define cJSON_IsUnionOffsetTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5191+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j);
5192+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x);
5193+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x);
5194+struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s);
5195+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x);
5196+
51405197 #define cJSON_IsUnionOneway(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
51415198 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j);
51425199 cJSON * cJSON_CreateUnionOneway(const struct UnionOneway * x);
@@ -7218,6 +7275,12 @@ cJSON * cJSON_CreateList(const struct List * x);
72187275 char * cJSON_PrintList(const struct List * x);
72197276 void cJSON_DeleteList(struct List * x);
72207277
7278+struct LocalDate * cJSON_ParseLocalDate(const char * s);
7279+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
7280+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
7281+char * cJSON_PrintLocalDate(const struct LocalDate * x);
7282+void cJSON_DeleteLocalDate(struct LocalDate * x);
7283+
72217284 struct Locale * cJSON_ParseLocale(const char * s);
72227285 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
72237286 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -7356,6 +7419,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
73567419 char * cJSON_PrintOf(const struct Of * x);
73577420 void cJSON_DeleteOf(struct Of * x);
73587421
7422+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
7423+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
7424+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
7425+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
7426+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
7427+
7428+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
7429+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
7430+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
7431+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
7432+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
7433+
73597434 struct Oneway * cJSON_ParseOneway(const char * s);
73607435 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
73617436 cJSON * cJSON_CreateOneway(const struct Oneway * x);
Mschema-cplusplusdefault / quicktype.hpp+180 −0
@@ -1577,6 +1577,18 @@ namespace quicktype {
15771577
15781578 using UnionList = std::variant<List, double>;
15791579
1580+ class LocalDate {
1581+ public:
1582+ LocalDate() = default;
1583+ virtual ~LocalDate() = default;
1584+
1585+ private:
1586+
1587+ public:
1588+ };
1589+
1590+ using UnionLocalDate = std::variant<LocalDate, double>;
1591+
15801592 class Locale {
15811593 public:
15821594 Locale() = default;
@@ -1853,6 +1865,30 @@ namespace quicktype {
18531865
18541866 using UnionOf = std::variant<Of, double>;
18551867
1868+ class OffsetDateTime {
1869+ public:
1870+ OffsetDateTime() = default;
1871+ virtual ~OffsetDateTime() = default;
1872+
1873+ private:
1874+
1875+ public:
1876+ };
1877+
1878+ using UnionOffsetDateTime = std::variant<OffsetDateTime, double>;
1879+
1880+ class OffsetTime {
1881+ public:
1882+ OffsetTime() = default;
1883+ virtual ~OffsetTime() = default;
1884+
1885+ private:
1886+
1887+ public:
1888+ };
1889+
1890+ using UnionOffsetTime = std::variant<OffsetTime, double>;
1891+
18561892 class Oneway {
18571893 public:
18581894 Oneway() = default;
@@ -4329,6 +4365,7 @@ namespace quicktype {
43294365 std::optional<UnionLeft> left;
43304366 std::optional<UnionLet> let;
43314367 std::optional<UnionList> list;
4368+ std::optional<UnionLocalDate> local_date;
43324369 std::optional<UnionLocale> locale;
43334370 std::optional<UnionLock> lock;
43344371 std::optional<UnionLong> top_level_long;
@@ -4363,6 +4400,8 @@ namespace quicktype {
43634400 std::optional<UnionObject> object;
43644401 std::optional<UnionObjectMapper> object_mapper;
43654402 std::optional<UnionOf> of;
4403+ std::optional<UnionOffsetDateTime> offset_date_time;
4404+ std::optional<UnionOffsetTime> offset_time;
43664405 std::optional<UnionOneway> oneway;
43674406 std::optional<UnionOpen> open;
43684407 std::optional<UnionOperator> top_level_operator;
@@ -5204,6 +5243,10 @@ namespace quicktype {
52045243 std::optional<UnionList> & get_mutable_list() { return list; }
52055244 void set_list(const std::optional<UnionList> & value) { this->list = value; }
52065245
5246+ const std::optional<UnionLocalDate> & get_local_date() const { return local_date; }
5247+ std::optional<UnionLocalDate> & get_mutable_local_date() { return local_date; }
5248+ void set_local_date(const std::optional<UnionLocalDate> & value) { this->local_date = value; }
5249+
52075250 const std::optional<UnionLocale> & get_locale() const { return locale; }
52085251 std::optional<UnionLocale> & get_mutable_locale() { return locale; }
52095252 void set_locale(const std::optional<UnionLocale> & value) { this->locale = value; }
@@ -5340,6 +5383,14 @@ namespace quicktype {
53405383 std::optional<UnionOf> & get_mutable_of() { return of; }
53415384 void set_of(const std::optional<UnionOf> & value) { this->of = value; }
53425385
5386+ const std::optional<UnionOffsetDateTime> & get_offset_date_time() const { return offset_date_time; }
5387+ std::optional<UnionOffsetDateTime> & get_mutable_offset_date_time() { return offset_date_time; }
5388+ void set_offset_date_time(const std::optional<UnionOffsetDateTime> & value) { this->offset_date_time = value; }
5389+
5390+ const std::optional<UnionOffsetTime> & get_offset_time() const { return offset_time; }
5391+ std::optional<UnionOffsetTime> & get_mutable_offset_time() { return offset_time; }
5392+ void set_offset_time(const std::optional<UnionOffsetTime> & value) { this->offset_time = value; }
5393+
53435394 const std::optional<UnionOneway> & get_oneway() const { return oneway; }
53445395 std::optional<UnionOneway> & get_mutable_oneway() { return oneway; }
53455396 void set_oneway(const std::optional<UnionOneway> & value) { this->oneway = value; }
@@ -6223,6 +6274,9 @@ void to_json(json & j, const Let & x);
62236274 void from_json(const json & j, List & x);
62246275 void to_json(json & j, const List & x);
62256276
6277+void from_json(const json & j, LocalDate & x);
6278+void to_json(json & j, const LocalDate & x);
6279+
62266280 void from_json(const json & j, Locale & x);
62276281 void to_json(json & j, const Locale & x);
62286282
@@ -6292,6 +6346,12 @@ void to_json(json & j, const ObjectMapper & x);
62926346 void from_json(const json & j, Of & x);
62936347 void to_json(json & j, const Of & x);
62946348
6349+void from_json(const json & j, OffsetDateTime & x);
6350+void to_json(json & j, const OffsetDateTime & x);
6351+
6352+void from_json(const json & j, OffsetTime & x);
6353+void to_json(json & j, const OffsetTime & x);
6354+
62956355 void from_json(const json & j, Oneway & x);
62966356 void to_json(json & j, const Oneway & x);
62976357
@@ -7613,6 +7673,12 @@ struct adl_serializer<std::variant<quicktype::List, double>> {
76137673 static void to_json(json & j, const std::variant<quicktype::List, double> & x);
76147674 };
76157675
7676+template <>
7677+struct adl_serializer<std::variant<quicktype::LocalDate, double>> {
7678+ static void from_json(const json & j, std::variant<quicktype::LocalDate, double> & x);
7679+ static void to_json(json & j, const std::variant<quicktype::LocalDate, double> & x);
7680+};
7681+
76167682 template <>
76177683 struct adl_serializer<std::variant<quicktype::Locale, double>> {
76187684 static void from_json(const json & j, std::variant<quicktype::Locale, double> & x);
@@ -7751,6 +7817,18 @@ struct adl_serializer<std::variant<quicktype::Of, double>> {
77517817 static void to_json(json & j, const std::variant<quicktype::Of, double> & x);
77527818 };
77537819
7820+template <>
7821+struct adl_serializer<std::variant<quicktype::OffsetDateTime, double>> {
7822+ static void from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x);
7823+ static void to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x);
7824+};
7825+
7826+template <>
7827+struct adl_serializer<std::variant<quicktype::OffsetTime, double>> {
7828+ static void from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x);
7829+ static void to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x);
7830+};
7831+
77547832 template <>
77557833 struct adl_serializer<std::variant<quicktype::Oneway, double>> {
77567834 static void from_json(const json & j, std::variant<quicktype::Oneway, double> & x);
@@ -10262,6 +10340,17 @@ namespace quicktype {
1026210340 (void)x;
1026310341 }
1026410342
10343+ inline void from_json(const json & j, LocalDate& x) {
10344+ if (!j.is_object()) throw std::runtime_error("Expected object");
10345+ (void)j;
10346+ (void)x;
10347+ }
10348+
10349+ inline void to_json(json & j, const LocalDate & x) {
10350+ j = json::object();
10351+ (void)x;
10352+ }
10353+
1026510354 inline void from_json(const json & j, Locale& x) {
1026610355 if (!j.is_object()) throw std::runtime_error("Expected object");
1026710356 (void)j;
@@ -10515,6 +10604,28 @@ namespace quicktype {
1051510604 (void)x;
1051610605 }
1051710606
10607+ inline void from_json(const json & j, OffsetDateTime& x) {
10608+ if (!j.is_object()) throw std::runtime_error("Expected object");
10609+ (void)j;
10610+ (void)x;
10611+ }
10612+
10613+ inline void to_json(json & j, const OffsetDateTime & x) {
10614+ j = json::object();
10615+ (void)x;
10616+ }
10617+
10618+ inline void from_json(const json & j, OffsetTime& x) {
10619+ if (!j.is_object()) throw std::runtime_error("Expected object");
10620+ (void)j;
10621+ (void)x;
10622+ }
10623+
10624+ inline void to_json(json & j, const OffsetTime & x) {
10625+ j = json::object();
10626+ (void)x;
10627+ }
10628+
1051810629 inline void from_json(const json & j, Oneway& x) {
1051910630 if (!j.is_object()) throw std::runtime_error("Expected object");
1052010631 (void)j;
@@ -12974,6 +13085,8 @@ namespace quicktype {
1297413085 x.set_let(get_stack_optional<std::variant<Let, double>>(j, "let"));
1297513086 if (j.find("list") != j.end() && j.at("list").is_null()) throw std::runtime_error("Unexpected null");
1297613087 x.set_list(get_stack_optional<std::variant<List, double>>(j, "list"));
13088+ if (j.find("LocalDate") != j.end() && j.at("LocalDate").is_null()) throw std::runtime_error("Unexpected null");
13089+ x.set_local_date(get_stack_optional<std::variant<LocalDate, double>>(j, "LocalDate"));
1297713090 if (j.find("Locale") != j.end() && j.at("Locale").is_null()) throw std::runtime_error("Unexpected null");
1297813091 x.set_locale(get_stack_optional<std::variant<Locale, double>>(j, "Locale"));
1297913092 if (j.find("lock") != j.end() && j.at("lock").is_null()) throw std::runtime_error("Unexpected null");
@@ -13042,6 +13155,10 @@ namespace quicktype {
1304213155 x.set_object_mapper(get_stack_optional<std::variant<ObjectMapper, double>>(j, "ObjectMapper"));
1304313156 if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null");
1304413157 x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of"));
13158+ if (j.find("OffsetDateTime") != j.end() && j.at("OffsetDateTime").is_null()) throw std::runtime_error("Unexpected null");
13159+ x.set_offset_date_time(get_stack_optional<std::variant<OffsetDateTime, double>>(j, "OffsetDateTime"));
13160+ if (j.find("OffsetTime") != j.end() && j.at("OffsetTime").is_null()) throw std::runtime_error("Unexpected null");
13161+ x.set_offset_time(get_stack_optional<std::variant<OffsetTime, double>>(j, "OffsetTime"));
1304513162 if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null");
1304613163 x.set_oneway(get_stack_optional<std::variant<Oneway, double>>(j, "oneway"));
1304713164 if (j.find("open") != j.end() && j.at("open").is_null()) throw std::runtime_error("Unexpected null");
@@ -13478,6 +13595,7 @@ namespace quicktype {
1347813595 j["left"] = x.get_left();
1347913596 j["let"] = x.get_let();
1348013597 j["list"] = x.get_list();
13598+ j["LocalDate"] = x.get_local_date();
1348113599 j["Locale"] = x.get_locale();
1348213600 j["lock"] = x.get_lock();
1348313601 j["long"] = x.get_top_level_long();
@@ -13512,6 +13630,8 @@ namespace quicktype {
1351213630 j["object"] = x.get_object();
1351313631 j["ObjectMapper"] = x.get_object_mapper();
1351413632 j["of"] = x.get_of();
13633+ j["OffsetDateTime"] = x.get_offset_date_time();
13634+ j["OffsetTime"] = x.get_offset_time();
1351513635 j["oneway"] = x.get_oneway();
1351613636 j["open"] = x.get_open();
1351713637 j["operator"] = x.get_top_level_operator();
@@ -16122,6 +16242,26 @@ namespace nlohmann {
1612216242 }
1612316243 }
1612416244
16245+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::from_json(const json & j, std::variant<quicktype::LocalDate, double> & x) {
16246+ if (j.is_number())
16247+ x = j.get<double>();
16248+ else if (j.is_object())
16249+ x = j.get<quicktype::LocalDate>();
16250+ else throw std::runtime_error("Could not deserialise!");
16251+ }
16252+
16253+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::to_json(json & j, const std::variant<quicktype::LocalDate, double> & x) {
16254+ switch (x.index()) {
16255+ case 0:
16256+ j = std::get<quicktype::LocalDate>(x);
16257+ break;
16258+ case 1:
16259+ j = std::get<double>(x);
16260+ break;
16261+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16262+ }
16263+ }
16264+
1612516265 inline void adl_serializer<std::variant<quicktype::Locale, double>>::from_json(const json & j, std::variant<quicktype::Locale, double> & x) {
1612616266 if (j.is_number())
1612716267 x = j.get<double>();
@@ -16582,6 +16722,46 @@ namespace nlohmann {
1658216722 }
1658316723 }
1658416724
16725+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x) {
16726+ if (j.is_number())
16727+ x = j.get<double>();
16728+ else if (j.is_object())
16729+ x = j.get<quicktype::OffsetDateTime>();
16730+ else throw std::runtime_error("Could not deserialise!");
16731+ }
16732+
16733+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x) {
16734+ switch (x.index()) {
16735+ case 0:
16736+ j = std::get<quicktype::OffsetDateTime>(x);
16737+ break;
16738+ case 1:
16739+ j = std::get<double>(x);
16740+ break;
16741+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16742+ }
16743+ }
16744+
16745+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x) {
16746+ if (j.is_number())
16747+ x = j.get<double>();
16748+ else if (j.is_object())
16749+ x = j.get<quicktype::OffsetTime>();
16750+ else throw std::runtime_error("Could not deserialise!");
16751+ }
16752+
16753+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x) {
16754+ switch (x.index()) {
16755+ case 0:
16756+ j = std::get<quicktype::OffsetTime>(x);
16757+ break;
16758+ case 1:
16759+ j = std::get<double>(x);
16760+ break;
16761+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16762+ }
16763+ }
16764+
1658516765 inline void adl_serializer<std::variant<quicktype::Oneway, double>>::from_json(const json & j, std::variant<quicktype::Oneway, double> & x) {
1658616766 if (j.is_number())
1658716767 x = j.get<double>();
Mschema-crystaldefault / TopLevel.cr+30 −0
@@ -419,6 +419,9 @@ class TopLevel
419419
420420 property list : UnionList?
421421
422+ @[JSON::Field(key: "LocalDate")]
423+ property local_date : UnionLocalDate?
424+
422425 @[JSON::Field(key: "Locale")]
423426 property locale : UnionLocale?
424427
@@ -502,6 +505,12 @@ class TopLevel
502505 @[JSON::Field(key: "of")]
503506 property top_level_of : UnionOf?
504507
508+ @[JSON::Field(key: "OffsetDateTime")]
509+ property offset_date_time : UnionOffsetDateTime?
510+
511+ @[JSON::Field(key: "OffsetTime")]
512+ property offset_time : UnionOffsetTime?
513+
505514 property oneway : UnionOneway?
506515
507516 property open : UnionOpen?
@@ -1595,6 +1604,11 @@ class List
15951604
15961605 end
15971606
1607+class LocalDate
1608+ include JSON::Serializable
1609+
1610+end
1611+
15981612 class Locale
15991613 include JSON::Serializable
16001614
@@ -1740,6 +1754,16 @@ class ObjectMapper
17401754
17411755 end
17421756
1757+class OffsetDateTime
1758+ include JSON::Serializable
1759+
1760+end
1761+
1762+class OffsetTime
1763+ include JSON::Serializable
1764+
1765+end
1766+
17431767 class Oneway
17441768 include JSON::Serializable
17451769
@@ -2811,6 +2835,8 @@ alias UnionLet = Float64 | Let
28112835
28122836 alias UnionList = Float64 | List
28132837
2838+alias UnionLocalDate = Float64 | LocalDate
2839+
28142840 alias UnionLocale = Float64 | Locale
28152841
28162842 alias UnionLock = Float64 | Lock
@@ -2869,6 +2895,10 @@ alias UnionObject = Float64 | ObjectClass
28692895
28702896 alias UnionObjectMapper = Float64 | ObjectMapper
28712897
2898+alias UnionOffsetDateTime = Float64 | OffsetDateTime
2899+
2900+alias UnionOffsetTime = Float64 | OffsetTime
2901+
28722902 alias UnionOneway = Float64 | Oneway
28732903
28742904 alias UnionOpen = Float64 | Open
Mschema-csharp-recordsdefault / QuickType.cs+165 −0
@@ -559,6 +559,9 @@ namespace QuickType
559559 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
560560 public UnionList? List { get; set; }
561561
562+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
563+ public UnionLocalDate? LocalDate { get; set; }
564+
562565 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
563566 public UnionLocale? Locale { get; set; }
564567
@@ -661,6 +664,12 @@ namespace QuickType
661664 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
662665 public UnionOf? Of { get; set; }
663666
667+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
668+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
669+
670+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
671+ public UnionOffsetTime? OffsetTime { get; set; }
672+
664673 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
665674 public UnionOneway? Oneway { get; set; }
666675
@@ -1719,6 +1728,10 @@ namespace QuickType
17191728 {
17201729 }
17211730
1731+ public partial record LocalDate
1732+ {
1733+ }
1734+
17221735 public partial record Locale
17231736 {
17241737 }
@@ -1847,6 +1860,14 @@ namespace QuickType
18471860 {
18481861 }
18491862
1863+ public partial record OffsetDateTime
1864+ {
1865+ }
1866+
1867+ public partial record OffsetTime
1868+ {
1869+ }
1870+
18501871 public partial record Oneway
18511872 {
18521873 }
@@ -3916,6 +3937,15 @@ namespace QuickType
39163937 public static implicit operator UnionList(List List) => new UnionList { List = List };
39173938 }
39183939
3940+ public partial struct UnionLocalDate
3941+ {
3942+ public double? Double;
3943+ public LocalDate? LocalDate;
3944+
3945+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
3946+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
3947+ }
3948+
39193949 public partial struct UnionLocale
39203950 {
39213951 public double? Double;
@@ -4204,6 +4234,24 @@ namespace QuickType
42044234 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
42054235 }
42064236
4237+ public partial struct UnionOffsetDateTime
4238+ {
4239+ public double? Double;
4240+ public OffsetDateTime? OffsetDateTime;
4241+
4242+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4243+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4244+ }
4245+
4246+ public partial struct UnionOffsetTime
4247+ {
4248+ public double? Double;
4249+ public OffsetTime? OffsetTime;
4250+
4251+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4252+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4253+ }
4254+
42074255 public partial struct UnionOneway
42084256 {
42094257 public double? Double;
@@ -5491,6 +5539,7 @@ namespace QuickType
54915539 UnionJsonReaderConverter.Singleton,
54925540 UnionJsonTokenTypeConverter.Singleton,
54935541 UnionKSerializerConverter.Singleton,
5542+ UnionLocalDateConverter.Singleton,
54945543 UnionLocaleConverter.Singleton,
54955544 UnionMapEntryConverter.Singleton,
54965545 UnionNoConverter.Singleton,
@@ -5500,6 +5549,8 @@ namespace QuickType
55005549 UnionNullConverter.Singleton,
55015550 UnionNoneConverter.Singleton,
55025551 UnionObjectMapperConverter.Singleton,
5552+ UnionOffsetDateTimeConverter.Singleton,
5553+ UnionOffsetTimeConverter.Singleton,
55035554 UnionPrimitiveKindConverter.Singleton,
55045555 UnionProtocolConverter.Singleton,
55055556 UnionRegExpConverter.Singleton,
@@ -7166,6 +7217,44 @@ namespace QuickType
71667217 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
71677218 }
71687219
7220+ internal class UnionLocalDateConverter : JsonConverter
7221+ {
7222+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7223+
7224+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7225+ {
7226+ switch (reader.TokenType)
7227+ {
7228+ case JsonToken.Integer:
7229+ case JsonToken.Float:
7230+ var doubleValue = serializer.Deserialize<double>(reader);
7231+ return new UnionLocalDate { Double = doubleValue };
7232+ case JsonToken.StartObject:
7233+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7234+ return new UnionLocalDate { LocalDate = objectValue };
7235+ }
7236+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7237+ }
7238+
7239+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7240+ {
7241+ var value = (UnionLocalDate)untypedValue;
7242+ if (value.Double != null)
7243+ {
7244+ serializer.Serialize(writer, value.Double.Value);
7245+ return;
7246+ }
7247+ if (value.LocalDate != null)
7248+ {
7249+ serializer.Serialize(writer, value.LocalDate);
7250+ return;
7251+ }
7252+ throw new Exception("Cannot marshal type UnionLocalDate");
7253+ }
7254+
7255+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7256+ }
7257+
71697258 internal class UnionLocaleConverter : JsonConverter
71707259 {
71717260 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7508,6 +7597,82 @@ namespace QuickType
75087597 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
75097598 }
75107599
7600+ internal class UnionOffsetDateTimeConverter : JsonConverter
7601+ {
7602+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
7603+
7604+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7605+ {
7606+ switch (reader.TokenType)
7607+ {
7608+ case JsonToken.Integer:
7609+ case JsonToken.Float:
7610+ var doubleValue = serializer.Deserialize<double>(reader);
7611+ return new UnionOffsetDateTime { Double = doubleValue };
7612+ case JsonToken.StartObject:
7613+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
7614+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7615+ }
7616+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
7617+ }
7618+
7619+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7620+ {
7621+ var value = (UnionOffsetDateTime)untypedValue;
7622+ if (value.Double != null)
7623+ {
7624+ serializer.Serialize(writer, value.Double.Value);
7625+ return;
7626+ }
7627+ if (value.OffsetDateTime != null)
7628+ {
7629+ serializer.Serialize(writer, value.OffsetDateTime);
7630+ return;
7631+ }
7632+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
7633+ }
7634+
7635+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7636+ }
7637+
7638+ internal class UnionOffsetTimeConverter : JsonConverter
7639+ {
7640+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
7641+
7642+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7643+ {
7644+ switch (reader.TokenType)
7645+ {
7646+ case JsonToken.Integer:
7647+ case JsonToken.Float:
7648+ var doubleValue = serializer.Deserialize<double>(reader);
7649+ return new UnionOffsetTime { Double = doubleValue };
7650+ case JsonToken.StartObject:
7651+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
7652+ return new UnionOffsetTime { OffsetTime = objectValue };
7653+ }
7654+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
7655+ }
7656+
7657+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7658+ {
7659+ var value = (UnionOffsetTime)untypedValue;
7660+ if (value.Double != null)
7661+ {
7662+ serializer.Serialize(writer, value.Double.Value);
7663+ return;
7664+ }
7665+ if (value.OffsetTime != null)
7666+ {
7667+ serializer.Serialize(writer, value.OffsetTime);
7668+ return;
7669+ }
7670+ throw new Exception("Cannot marshal type UnionOffsetTime");
7671+ }
7672+
7673+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7674+ }
7675+
75117676 internal class UnionPrimitiveKindConverter : JsonConverter
75127677 {
75137678 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
Mschema-csharp-SystemTextJsondefault / QuickType.cs+162 −0
@@ -734,6 +734,10 @@ namespace QuickType
734734 [JsonPropertyName("list")]
735735 public UnionList? List { get; set; }
736736
737+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
738+ [JsonPropertyName("LocalDate")]
739+ public UnionLocalDate? LocalDate { get; set; }
740+
737741 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
738742 [JsonPropertyName("Locale")]
739743 public UnionLocale? Locale { get; set; }
@@ -870,6 +874,14 @@ namespace QuickType
870874 [JsonPropertyName("of")]
871875 public UnionOf? Of { get; set; }
872876
877+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
878+ [JsonPropertyName("OffsetDateTime")]
879+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
880+
881+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
882+ [JsonPropertyName("OffsetTime")]
883+ public UnionOffsetTime? OffsetTime { get; set; }
884+
873885 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
874886 [JsonPropertyName("oneway")]
875887 public UnionOneway? Oneway { get; set; }
@@ -2063,6 +2075,10 @@ namespace QuickType
20632075 {
20642076 }
20652077
2078+ public partial class LocalDate
2079+ {
2080+ }
2081+
20662082 public partial class Locale
20672083 {
20682084 }
@@ -2191,6 +2207,14 @@ namespace QuickType
21912207 {
21922208 }
21932209
2210+ public partial class OffsetDateTime
2211+ {
2212+ }
2213+
2214+ public partial class OffsetTime
2215+ {
2216+ }
2217+
21942218 public partial class Oneway
21952219 {
21962220 }
@@ -4270,6 +4294,15 @@ namespace QuickType
42704294 public static implicit operator UnionList(List List) => new UnionList { List = List };
42714295 }
42724296
4297+ public partial struct UnionLocalDate
4298+ {
4299+ public double? Double;
4300+ public LocalDate? LocalDate;
4301+
4302+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4303+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4304+ }
4305+
42734306 public partial struct UnionLocale
42744307 {
42754308 public double? Double;
@@ -4558,6 +4591,24 @@ namespace QuickType
45584591 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
45594592 }
45604593
4594+ public partial struct UnionOffsetDateTime
4595+ {
4596+ public double? Double;
4597+ public OffsetDateTime? OffsetDateTime;
4598+
4599+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4600+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4601+ }
4602+
4603+ public partial struct UnionOffsetTime
4604+ {
4605+ public double? Double;
4606+ public OffsetTime? OffsetTime;
4607+
4608+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4609+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4610+ }
4611+
45614612 public partial struct UnionOneway
45624613 {
45634614 public double? Double;
@@ -5825,6 +5876,7 @@ namespace QuickType
58255876 UnionJsonReaderConverter.Singleton,
58265877 UnionJsonTokenTypeConverter.Singleton,
58275878 UnionKSerializerConverter.Singleton,
5879+ UnionLocalDateConverter.Singleton,
58285880 UnionLocaleConverter.Singleton,
58295881 UnionMapEntryConverter.Singleton,
58305882 UnionNoConverter.Singleton,
@@ -5834,6 +5886,8 @@ namespace QuickType
58345886 UnionNullConverter.Singleton,
58355887 UnionNoneConverter.Singleton,
58365888 UnionObjectMapperConverter.Singleton,
5889+ UnionOffsetDateTimeConverter.Singleton,
5890+ UnionOffsetTimeConverter.Singleton,
58375891 UnionPrimitiveKindConverter.Singleton,
58385892 UnionProtocolConverter.Singleton,
58395893 UnionRegExpConverter.Singleton,
@@ -7430,6 +7484,42 @@ namespace QuickType
74307484 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
74317485 }
74327486
7487+ internal class UnionLocalDateConverter : JsonConverter<UnionLocalDate>
7488+ {
7489+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate);
7490+
7491+ public override UnionLocalDate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7492+ {
7493+ switch (reader.TokenType)
7494+ {
7495+ case JsonTokenType.Number:
7496+ var doubleValue1 = reader.GetDouble();
7497+ return new UnionLocalDate { Double = doubleValue1 };
7498+ case JsonTokenType.StartObject:
7499+ var objectValue = JsonSerializer.Deserialize<LocalDate>(ref reader, options);
7500+ return new UnionLocalDate { LocalDate = objectValue };
7501+ }
7502+ throw new JsonException("Cannot unmarshal type UnionLocalDate");
7503+ }
7504+
7505+ public override void Write(Utf8JsonWriter writer, UnionLocalDate value, JsonSerializerOptions options)
7506+ {
7507+ if (value.Double != null)
7508+ {
7509+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7510+ return;
7511+ }
7512+ if (value.LocalDate != null)
7513+ {
7514+ JsonSerializer.Serialize(writer, value.LocalDate, options);
7515+ return;
7516+ }
7517+ throw new NotSupportedException("Cannot marshal type UnionLocalDate");
7518+ }
7519+
7520+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7521+ }
7522+
74337523 internal class UnionLocaleConverter : JsonConverter<UnionLocale>
74347524 {
74357525 public override bool CanConvert(Type t) => t == typeof(UnionLocale);
@@ -7754,6 +7844,78 @@ namespace QuickType
77547844 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
77557845 }
77567846
7847+ internal class UnionOffsetDateTimeConverter : JsonConverter<UnionOffsetDateTime>
7848+ {
7849+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime);
7850+
7851+ public override UnionOffsetDateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7852+ {
7853+ switch (reader.TokenType)
7854+ {
7855+ case JsonTokenType.Number:
7856+ var doubleValue1 = reader.GetDouble();
7857+ return new UnionOffsetDateTime { Double = doubleValue1 };
7858+ case JsonTokenType.StartObject:
7859+ var objectValue = JsonSerializer.Deserialize<OffsetDateTime>(ref reader, options);
7860+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7861+ }
7862+ throw new JsonException("Cannot unmarshal type UnionOffsetDateTime");
7863+ }
7864+
7865+ public override void Write(Utf8JsonWriter writer, UnionOffsetDateTime value, JsonSerializerOptions options)
7866+ {
7867+ if (value.Double != null)
7868+ {
7869+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7870+ return;
7871+ }
7872+ if (value.OffsetDateTime != null)
7873+ {
7874+ JsonSerializer.Serialize(writer, value.OffsetDateTime, options);
7875+ return;
7876+ }
7877+ throw new NotSupportedException("Cannot marshal type UnionOffsetDateTime");
7878+ }
7879+
7880+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7881+ }
7882+
7883+ internal class UnionOffsetTimeConverter : JsonConverter<UnionOffsetTime>
7884+ {
7885+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime);
7886+
7887+ public override UnionOffsetTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7888+ {
7889+ switch (reader.TokenType)
7890+ {
7891+ case JsonTokenType.Number:
7892+ var doubleValue1 = reader.GetDouble();
7893+ return new UnionOffsetTime { Double = doubleValue1 };
7894+ case JsonTokenType.StartObject:
7895+ var objectValue = JsonSerializer.Deserialize<OffsetTime>(ref reader, options);
7896+ return new UnionOffsetTime { OffsetTime = objectValue };
7897+ }
7898+ throw new JsonException("Cannot unmarshal type UnionOffsetTime");
7899+ }
7900+
7901+ public override void Write(Utf8JsonWriter writer, UnionOffsetTime value, JsonSerializerOptions options)
7902+ {
7903+ if (value.Double != null)
7904+ {
7905+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7906+ return;
7907+ }
7908+ if (value.OffsetTime != null)
7909+ {
7910+ JsonSerializer.Serialize(writer, value.OffsetTime, options);
7911+ return;
7912+ }
7913+ throw new NotSupportedException("Cannot marshal type UnionOffsetTime");
7914+ }
7915+
7916+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7917+ }
7918+
77577919 internal class UnionPrimitiveKindConverter : JsonConverter<UnionPrimitiveKind>
77587920 {
77597921 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind);
Mschema-csharpdefault / QuickType.cs+165 −0
@@ -559,6 +559,9 @@ namespace QuickType
559559 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
560560 public UnionList? List { get; set; }
561561
562+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
563+ public UnionLocalDate? LocalDate { get; set; }
564+
562565 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
563566 public UnionLocale? Locale { get; set; }
564567
@@ -661,6 +664,12 @@ namespace QuickType
661664 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
662665 public UnionOf? Of { get; set; }
663666
667+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
668+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
669+
670+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
671+ public UnionOffsetTime? OffsetTime { get; set; }
672+
664673 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
665674 public UnionOneway? Oneway { get; set; }
666675
@@ -1727,6 +1736,10 @@ namespace QuickType
17271736 {
17281737 }
17291738
1739+ public partial class LocalDate
1740+ {
1741+ }
1742+
17301743 public partial class Locale
17311744 {
17321745 }
@@ -1855,6 +1868,14 @@ namespace QuickType
18551868 {
18561869 }
18571870
1871+ public partial class OffsetDateTime
1872+ {
1873+ }
1874+
1875+ public partial class OffsetTime
1876+ {
1877+ }
1878+
18581879 public partial class Oneway
18591880 {
18601881 }
@@ -3934,6 +3955,15 @@ namespace QuickType
39343955 public static implicit operator UnionList(List List) => new UnionList { List = List };
39353956 }
39363957
3958+ public partial struct UnionLocalDate
3959+ {
3960+ public double? Double;
3961+ public LocalDate? LocalDate;
3962+
3963+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
3964+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
3965+ }
3966+
39373967 public partial struct UnionLocale
39383968 {
39393969 public double? Double;
@@ -4222,6 +4252,24 @@ namespace QuickType
42224252 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
42234253 }
42244254
4255+ public partial struct UnionOffsetDateTime
4256+ {
4257+ public double? Double;
4258+ public OffsetDateTime? OffsetDateTime;
4259+
4260+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4261+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4262+ }
4263+
4264+ public partial struct UnionOffsetTime
4265+ {
4266+ public double? Double;
4267+ public OffsetTime? OffsetTime;
4268+
4269+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4270+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4271+ }
4272+
42254273 public partial struct UnionOneway
42264274 {
42274275 public double? Double;
@@ -5491,6 +5539,7 @@ namespace QuickType
54915539 UnionJsonReaderConverter.Singleton,
54925540 UnionJsonTokenTypeConverter.Singleton,
54935541 UnionKSerializerConverter.Singleton,
5542+ UnionLocalDateConverter.Singleton,
54945543 UnionLocaleConverter.Singleton,
54955544 UnionMapEntryConverter.Singleton,
54965545 UnionNoConverter.Singleton,
@@ -5500,6 +5549,8 @@ namespace QuickType
55005549 UnionNullConverter.Singleton,
55015550 UnionNoneConverter.Singleton,
55025551 UnionObjectMapperConverter.Singleton,
5552+ UnionOffsetDateTimeConverter.Singleton,
5553+ UnionOffsetTimeConverter.Singleton,
55035554 UnionPrimitiveKindConverter.Singleton,
55045555 UnionProtocolConverter.Singleton,
55055556 UnionRegExpConverter.Singleton,
@@ -7166,6 +7217,44 @@ namespace QuickType
71667217 public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter();
71677218 }
71687219
7220+ internal class UnionLocalDateConverter : JsonConverter
7221+ {
7222+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7223+
7224+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7225+ {
7226+ switch (reader.TokenType)
7227+ {
7228+ case JsonToken.Integer:
7229+ case JsonToken.Float:
7230+ var doubleValue = serializer.Deserialize<double>(reader);
7231+ return new UnionLocalDate { Double = doubleValue };
7232+ case JsonToken.StartObject:
7233+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7234+ return new UnionLocalDate { LocalDate = objectValue };
7235+ }
7236+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7237+ }
7238+
7239+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7240+ {
7241+ var value = (UnionLocalDate)untypedValue;
7242+ if (value.Double != null)
7243+ {
7244+ serializer.Serialize(writer, value.Double.Value);
7245+ return;
7246+ }
7247+ if (value.LocalDate != null)
7248+ {
7249+ serializer.Serialize(writer, value.LocalDate);
7250+ return;
7251+ }
7252+ throw new Exception("Cannot marshal type UnionLocalDate");
7253+ }
7254+
7255+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7256+ }
7257+
71697258 internal class UnionLocaleConverter : JsonConverter
71707259 {
71717260 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7508,6 +7597,82 @@ namespace QuickType
75087597 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
75097598 }
75107599
7600+ internal class UnionOffsetDateTimeConverter : JsonConverter
7601+ {
7602+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
7603+
7604+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7605+ {
7606+ switch (reader.TokenType)
7607+ {
7608+ case JsonToken.Integer:
7609+ case JsonToken.Float:
7610+ var doubleValue = serializer.Deserialize<double>(reader);
7611+ return new UnionOffsetDateTime { Double = doubleValue };
7612+ case JsonToken.StartObject:
7613+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
7614+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7615+ }
7616+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
7617+ }
7618+
7619+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7620+ {
7621+ var value = (UnionOffsetDateTime)untypedValue;
7622+ if (value.Double != null)
7623+ {
7624+ serializer.Serialize(writer, value.Double.Value);
7625+ return;
7626+ }
7627+ if (value.OffsetDateTime != null)
7628+ {
7629+ serializer.Serialize(writer, value.OffsetDateTime);
7630+ return;
7631+ }
7632+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
7633+ }
7634+
7635+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7636+ }
7637+
7638+ internal class UnionOffsetTimeConverter : JsonConverter
7639+ {
7640+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
7641+
7642+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7643+ {
7644+ switch (reader.TokenType)
7645+ {
7646+ case JsonToken.Integer:
7647+ case JsonToken.Float:
7648+ var doubleValue = serializer.Deserialize<double>(reader);
7649+ return new UnionOffsetTime { Double = doubleValue };
7650+ case JsonToken.StartObject:
7651+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
7652+ return new UnionOffsetTime { OffsetTime = objectValue };
7653+ }
7654+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
7655+ }
7656+
7657+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7658+ {
7659+ var value = (UnionOffsetTime)untypedValue;
7660+ if (value.Double != null)
7661+ {
7662+ serializer.Serialize(writer, value.Double.Value);
7663+ return;
7664+ }
7665+ if (value.OffsetTime != null)
7666+ {
7667+ serializer.Serialize(writer, value.OffsetTime);
7668+ return;
7669+ }
7670+ throw new Exception("Cannot marshal type UnionOffsetTime");
7671+ }
7672+
7673+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7674+ }
7675+
75117676 internal class UnionPrimitiveKindConverter : JsonConverter
75127677 {
75137678 public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?);
Mschema-dartdefault / TopLevel.dart+42 −0
@@ -187,6 +187,7 @@ class TopLevel {
187187 final dynamic left;
188188 final dynamic let;
189189 final dynamic list;
190+ final dynamic localDate;
190191 final dynamic locale;
191192 final dynamic lock;
192193 final dynamic long;
@@ -221,6 +222,8 @@ class TopLevel {
221222 final dynamic object;
222223 final dynamic objectMapper;
223224 final dynamic of;
225+ final dynamic offsetDateTime;
226+ final dynamic offsetTime;
224227 final dynamic oneway;
225228 final dynamic open;
226229 final dynamic topLevelOperator;
@@ -528,6 +531,7 @@ class TopLevel {
528531 this.left,
529532 this.let,
530533 this.list,
534+ this.localDate,
531535 this.locale,
532536 this.lock,
533537 this.long,
@@ -562,6 +566,8 @@ class TopLevel {
562566 this.object,
563567 this.objectMapper,
564568 this.of,
569+ this.offsetDateTime,
570+ this.offsetTime,
565571 this.oneway,
566572 this.open,
567573 this.topLevelOperator,
@@ -870,6 +876,7 @@ class TopLevel {
870876 left: json["left"],
871877 let: json["let"],
872878 list: json["list"],
879+ localDate: json["LocalDate"],
873880 locale: json["Locale"],
874881 lock: json["lock"],
875882 long: json["long"],
@@ -904,6 +911,8 @@ class TopLevel {
904911 object: json["object"],
905912 objectMapper: json["ObjectMapper"],
906913 of: json["of"],
914+ offsetDateTime: json["OffsetDateTime"],
915+ offsetTime: json["OffsetTime"],
907916 oneway: json["oneway"],
908917 open: json["open"],
909918 topLevelOperator: json["operator"],
@@ -1212,6 +1221,7 @@ class TopLevel {
12121221 "left": left,
12131222 "let": let,
12141223 "list": list,
1224+ "LocalDate": localDate,
12151225 "Locale": locale,
12161226 "lock": lock,
12171227 "long": long,
@@ -1246,6 +1256,8 @@ class TopLevel {
12461256 "object": object,
12471257 "ObjectMapper": objectMapper,
12481258 "of": of,
1259+ "OffsetDateTime": offsetDateTime,
1260+ "OffsetTime": offsetTime,
12491261 "oneway": oneway,
12501262 "open": open,
12511263 "operator": topLevelOperator,
@@ -2766,6 +2778,16 @@ class ListClass {
27662778 };
27672779 }
27682780
2781+class LocalDate {
2782+ LocalDate();
2783+
2784+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
2785+ );
2786+
2787+ Map<String, dynamic> toJson() => {
2788+ };
2789+}
2790+
27692791 class Locale {
27702792 Locale();
27712793
@@ -3056,6 +3078,26 @@ class Of {
30563078 };
30573079 }
30583080
3081+class OffsetDateTime {
3082+ OffsetDateTime();
3083+
3084+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
3085+ );
3086+
3087+ Map<String, dynamic> toJson() => {
3088+ };
3089+}
3090+
3091+class OffsetTime {
3092+ OffsetTime();
3093+
3094+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
3095+ );
3096+
3097+ Map<String, dynamic> toJson() => {
3098+ };
3099+}
3100+
30593101 class Oneway {
30603102 Oneway();
Mschema-elixirdefault / QuickType.ex+133 −1
@@ -4819,6 +4819,35 @@ defmodule ListClass do
48194819 end
48204820 end
48214821
4822+defmodule LocalDate do
4823+ defstruct []
4824+
4825+ @type t :: %__MODULE__{
4826+ }
4827+
4828+ def from_map(m) when is_map(m) do
4829+ %LocalDate{
4830+ }
4831+ end
4832+
4833+ def from_json(json) do
4834+ json
4835+ |> Jason.decode!()
4836+ |> from_map()
4837+ end
4838+
4839+ def to_map(_struct) do
4840+ %{
4841+ }
4842+ end
4843+
4844+ def to_json(struct) do
4845+ struct
4846+ |> to_map()
4847+ |> Jason.encode!()
4848+ end
4849+end
4850+
48224851 defmodule Locale do
48234852 defstruct []
48244853
@@ -5689,6 +5718,64 @@ defmodule Of do
56895718 end
56905719 end
56915720
5721+defmodule OffsetDateTime do
5722+ defstruct []
5723+
5724+ @type t :: %__MODULE__{
5725+ }
5726+
5727+ def from_map(m) when is_map(m) do
5728+ %OffsetDateTime{
5729+ }
5730+ end
5731+
5732+ def from_json(json) do
5733+ json
5734+ |> Jason.decode!()
5735+ |> from_map()
5736+ end
5737+
5738+ def to_map(_struct) do
5739+ %{
5740+ }
5741+ end
5742+
5743+ def to_json(struct) do
5744+ struct
5745+ |> to_map()
5746+ |> Jason.encode!()
5747+ end
5748+end
5749+
5750+defmodule OffsetTime do
5751+ defstruct []
5752+
5753+ @type t :: %__MODULE__{
5754+ }
5755+
5756+ def from_map(m) when is_map(m) do
5757+ %OffsetTime{
5758+ }
5759+ end
5760+
5761+ def from_json(json) do
5762+ json
5763+ |> Jason.decode!()
5764+ |> from_map()
5765+ end
5766+
5767+ def to_map(_struct) do
5768+ %{
5769+ }
5770+ end
5771+
5772+ def to_json(struct) do
5773+ struct
5774+ |> to_map()
5775+ |> Jason.encode!()
5776+ end
5777+end
5778+
56925779 defmodule Oneway do
56935780 defstruct []
56945781
@@ -9808,7 +9895,7 @@ defmodule Yield do
98089895 end
98099896
98109897 defmodule TopLevel do
9811- defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :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, :dict, :dictionary, :did_set, :top_level_do, :double, :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_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, :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, :map, :map_entry, :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, :nullptr, :number, :object, :object_mapper, :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, :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, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :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, :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]
9898+ defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :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, :dict, :dictionary, :did_set, :top_level_do, :double, :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_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, :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, :map, :map_entry, :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, :nullptr, :number, :object, :object_mapper, :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, :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, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :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, :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]
98129899
98139900 @type t :: %__MODULE__{
98149901 empty: Empty.t() | float() | nil,
@@ -9989,6 +10076,7 @@ defmodule TopLevel do
998910076 left: Left.t() | float() | nil,
999010077 let: Let.t() | float() | nil,
999110078 list: ListClass.t() | float() | nil,
10079+ local_date: LocalDate.t() | float() | nil,
999210080 locale: Locale.t() | float() | nil,
999310081 lock: Lock.t() | float() | nil,
999410082 long: Long.t() | float() | nil,
@@ -10023,6 +10111,8 @@ defmodule TopLevel do
1002310111 object: Object.t() | float() | nil,
1002410112 object_mapper: ObjectMapper.t() | float() | nil,
1002510113 of: Of.t() | float() | nil,
10114+ offset_date_time: OffsetDateTime.t() | float() | nil,
10115+ offset_time: OffsetTime.t() | float() | nil,
1002610116 oneway: Oneway.t() | float() | nil,
1002710117 open: Open.t() | float() | nil,
1002810118 operator: Operator.t() | float() | nil,
@@ -12284,6 +12374,18 @@ defmodule TopLevel do
1228412374 def encode_list(value) when is_nil(value), do: value
1228512375 def encode_list(_), do: {:error, "Unexpected type when encoding TopLevel.list"}
1228612376
12377+ def decode_local_date(%{} = value), do: LocalDate.from_map(value)
12378+ def decode_local_date(value) when is_float(value), do: value
12379+ def decode_local_date(value) when is_integer(value), do: value
12380+ def decode_local_date(value) when is_nil(value), do: value
12381+ def decode_local_date(_), do: {:error, "Unexpected type when decoding TopLevel.local_date"}
12382+
12383+ def encode_local_date(%LocalDate{} = value), do: LocalDate.to_map(value)
12384+ def encode_local_date(value) when is_float(value), do: value
12385+ def encode_local_date(value) when is_integer(value), do: value
12386+ def encode_local_date(value) when is_nil(value), do: value
12387+ def encode_local_date(_), do: {:error, "Unexpected type when encoding TopLevel.local_date"}
12388+
1228712389 def decode_locale(%{} = value), do: Locale.from_map(value)
1228812390 def decode_locale(value) when is_float(value), do: value
1228912391 def decode_locale(value) when is_integer(value), do: value
@@ -12692,6 +12794,30 @@ defmodule TopLevel do
1269212794 def encode_of(value) when is_nil(value), do: value
1269312795 def encode_of(_), do: {:error, "Unexpected type when encoding TopLevel.of"}
1269412796
12797+ def decode_offset_date_time(%{} = value), do: OffsetDateTime.from_map(value)
12798+ def decode_offset_date_time(value) when is_float(value), do: value
12799+ def decode_offset_date_time(value) when is_integer(value), do: value
12800+ def decode_offset_date_time(value) when is_nil(value), do: value
12801+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_date_time"}
12802+
12803+ def encode_offset_date_time(%OffsetDateTime{} = value), do: OffsetDateTime.to_map(value)
12804+ def encode_offset_date_time(value) when is_float(value), do: value
12805+ def encode_offset_date_time(value) when is_integer(value), do: value
12806+ def encode_offset_date_time(value) when is_nil(value), do: value
12807+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_date_time"}
12808+
12809+ def decode_offset_time(%{} = value), do: OffsetTime.from_map(value)
12810+ def decode_offset_time(value) when is_float(value), do: value
12811+ def decode_offset_time(value) when is_integer(value), do: value
12812+ def decode_offset_time(value) when is_nil(value), do: value
12813+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_time"}
12814+
12815+ def encode_offset_time(%OffsetTime{} = value), do: OffsetTime.to_map(value)
12816+ def encode_offset_time(value) when is_float(value), do: value
12817+ def encode_offset_time(value) when is_integer(value), do: value
12818+ def encode_offset_time(value) when is_nil(value), do: value
12819+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_time"}
12820+
1269512821 def decode_oneway(%{} = value), do: Oneway.from_map(value)
1269612822 def decode_oneway(value) when is_float(value), do: value
1269712823 def decode_oneway(value) when is_integer(value), do: value
@@ -14396,6 +14522,7 @@ defmodule TopLevel do
1439614522 left: decode_left(m["left"]),
1439714523 let: decode_let(m["let"]),
1439814524 list: decode_list(m["list"]),
14525+ local_date: decode_local_date(m["LocalDate"]),
1439914526 locale: decode_locale(m["Locale"]),
1440014527 lock: decode_lock(m["lock"]),
1440114528 long: decode_long(m["long"]),
@@ -14430,6 +14557,8 @@ defmodule TopLevel do
1443014557 object: decode_object(m["object"]),
1443114558 object_mapper: decode_object_mapper(m["ObjectMapper"]),
1443214559 of: decode_of(m["of"]),
14560+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
14561+ offset_time: decode_offset_time(m["OffsetTime"]),
1443314562 oneway: decode_oneway(m["oneway"]),
1443414563 open: decode_open(m["open"]),
1443514564 operator: decode_operator(m["operator"]),
@@ -14746,6 +14875,7 @@ defmodule TopLevel do
1474614875 "left" => encode_left(struct.left),
1474714876 "let" => encode_let(struct.let),
1474814877 "list" => encode_list(struct.list),
14878+ "LocalDate" => encode_local_date(struct.local_date),
1474914879 "Locale" => encode_locale(struct.locale),
1475014880 "lock" => encode_lock(struct.lock),
1475114881 "long" => encode_long(struct.long),
@@ -14780,6 +14910,8 @@ defmodule TopLevel do
1478014910 "object" => encode_object(struct.object),
1478114911 "ObjectMapper" => encode_object_mapper(struct.object_mapper),
1478214912 "of" => encode_of(struct.of),
14913+ "OffsetDateTime" => encode_offset_date_time(struct.offset_date_time),
14914+ "OffsetTime" => encode_offset_time(struct.offset_time),
1478314915 "oneway" => encode_oneway(struct.oneway),
1478414916 "open" => encode_open(struct.open),
1478514917 "operator" => encode_operator(struct.operator),
Mschema-elmdefault / QuickType.elm+105 −0
@@ -174,6 +174,7 @@ module QuickType exposing
174174 , Lazy
175175 , Left
176176 , ListClass
177+ , LocalDate
177178 , Locale
178179 , Lock
179180 , Long
@@ -204,6 +205,8 @@ module QuickType exposing
204205 , Number
205206 , Object
206207 , ObjectMapper
208+ , OffsetDateTime
209+ , OffsetTime
207210 , Oneway
208211 , Open
209212 , Operator
@@ -512,6 +515,7 @@ module QuickType exposing
512515 , UnionLazy(..)
513516 , UnionLeft(..)
514517 , UnionList(..)
518+ , UnionLocalDate(..)
515519 , UnionLocale(..)
516520 , UnionLock(..)
517521 , UnionLong(..)
@@ -542,6 +546,8 @@ module QuickType exposing
542546 , UnionNumber(..)
543547 , UnionObject(..)
544548 , UnionObjectMapper(..)
549+ , UnionOffsetDateTime(..)
550+ , UnionOffsetTime(..)
545551 , UnionOneway(..)
546552 , UnionOpen(..)
547553 , UnionOperator(..)
@@ -877,6 +883,7 @@ type alias QuickType =
877883 , left : Maybe UnionLeft
878884 , quickTypeLet : Maybe UnionLet
879885 , list : Maybe UnionList
886+ , localDate : Maybe UnionLocalDate
880887 , locale : Maybe UnionLocale
881888 , lock : Maybe UnionLock
882889 , long : Maybe UnionLong
@@ -911,6 +918,8 @@ type alias QuickType =
911918 , object : Maybe UnionObject
912919 , objectMapper : Maybe UnionObjectMapper
913920 , quickTypeOf : Maybe UnionOf
921+ , offsetDateTime : Maybe UnionOffsetDateTime
922+ , offsetTime : Maybe UnionOffsetTime
914923 , oneway : Maybe UnionOneway
915924 , open : Maybe UnionOpen
916925 , operator : Maybe UnionOperator
@@ -2312,6 +2321,14 @@ type alias ListClass =
23122321 {
23132322 }
23142323
2324+type UnionLocalDate
2325+ = DoubleInUnionLocalDate Float
2326+ | LocalDateInUnionLocalDate LocalDate
2327+
2328+type alias LocalDate =
2329+ {
2330+ }
2331+
23152332 type UnionLocale
23162333 = DoubleInUnionLocale Float
23172334 | LocaleInUnionLocale Locale
@@ -2552,6 +2569,22 @@ type alias ObjectMapper =
25522569 {
25532570 }
25542571
2572+type UnionOffsetDateTime
2573+ = DoubleInUnionOffsetDateTime Float
2574+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2575+
2576+type alias OffsetDateTime =
2577+ {
2578+ }
2579+
2580+type UnionOffsetTime
2581+ = DoubleInUnionOffsetTime Float
2582+ | OffsetTimeInUnionOffsetTime OffsetTime
2583+
2584+type alias OffsetTime =
2585+ {
2586+ }
2587+
25552588 type UnionOneway
25562589 = DoubleInUnionOneway Float
25572590 | OnewayInUnionOneway Oneway
@@ -3936,6 +3969,7 @@ quickType =
39363969 |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing)
39373970 |> Jpipe.custom (optionalField "let" (Jdec.map Just unionLet) Nothing)
39383971 |> Jpipe.custom (optionalField "list" (Jdec.map Just unionList) Nothing)
3972+ |> Jpipe.custom (optionalField "LocalDate" (Jdec.map Just unionLocalDate) Nothing)
39393973 |> Jpipe.custom (optionalField "Locale" (Jdec.map Just unionLocale) Nothing)
39403974 |> Jpipe.custom (optionalField "lock" (Jdec.map Just unionLock) Nothing)
39413975 |> Jpipe.custom (optionalField "long" (Jdec.map Just unionLong) Nothing)
@@ -3970,6 +4004,8 @@ quickType =
39704004 |> Jpipe.custom (optionalField "object" (Jdec.map Just unionObject) Nothing)
39714005 |> Jpipe.custom (optionalField "ObjectMapper" (Jdec.map Just unionObjectMapper) Nothing)
39724006 |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing)
4007+ |> Jpipe.custom (optionalField "OffsetDateTime" (Jdec.map Just unionOffsetDateTime) Nothing)
4008+ |> Jpipe.custom (optionalField "OffsetTime" (Jdec.map Just unionOffsetTime) Nothing)
39734009 |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing)
39744010 |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing)
39754011 |> Jpipe.custom (optionalField "operator" (Jdec.map Just unionOperator) Nothing)
@@ -4279,6 +4315,7 @@ encodeQuickType x =
42794315 , ("left", makeNullableEncoder encodeUnionLeft x.left)
42804316 , ("let", makeNullableEncoder encodeUnionLet x.quickTypeLet)
42814317 , ("list", makeNullableEncoder encodeUnionList x.list)
4318+ , ("LocalDate", makeNullableEncoder encodeUnionLocalDate x.localDate)
42824319 , ("Locale", makeNullableEncoder encodeUnionLocale x.locale)
42834320 , ("lock", makeNullableEncoder encodeUnionLock x.lock)
42844321 , ("long", makeNullableEncoder encodeUnionLong x.long)
@@ -4313,6 +4350,8 @@ encodeQuickType x =
43134350 , ("object", makeNullableEncoder encodeUnionObject x.object)
43144351 , ("ObjectMapper", makeNullableEncoder encodeUnionObjectMapper x.objectMapper)
43154352 , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf)
4353+ , ("OffsetDateTime", makeNullableEncoder encodeUnionOffsetDateTime x.offsetDateTime)
4354+ , ("OffsetTime", makeNullableEncoder encodeUnionOffsetTime x.offsetTime)
43164355 , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway)
43174356 , ("open", makeNullableEncoder encodeUnionOpen x.open)
43184357 , ("operator", makeNullableEncoder encodeUnionOperator x.operator)
@@ -7940,6 +7979,28 @@ encodeListClass x =
79407979 [
79417980 ]
79427981
7982+unionLocalDate : Jdec.Decoder UnionLocalDate
7983+unionLocalDate =
7984+ Jdec.oneOf
7985+ [ Jdec.map DoubleInUnionLocalDate Jdec.float
7986+ , Jdec.map LocalDateInUnionLocalDate localDate
7987+ ]
7988+
7989+encodeUnionLocalDate : UnionLocalDate -> Jenc.Value
7990+encodeUnionLocalDate x = case x of
7991+ DoubleInUnionLocalDate y -> Jenc.float y
7992+ LocalDateInUnionLocalDate y -> encodeLocalDate y
7993+
7994+localDate : Jdec.Decoder LocalDate
7995+localDate =
7996+ Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate)
7997+
7998+encodeLocalDate : LocalDate -> Jenc.Value
7999+encodeLocalDate x =
8000+ Jenc.object
8001+ [
8002+ ]
8003+
79438004 unionLocale : Jdec.Decoder UnionLocale
79448005 unionLocale =
79458006 Jdec.oneOf
@@ -8600,6 +8661,50 @@ encodeObjectMapper x =
86008661 [
86018662 ]
86028663
8664+unionOffsetDateTime : Jdec.Decoder UnionOffsetDateTime
8665+unionOffsetDateTime =
8666+ Jdec.oneOf
8667+ [ Jdec.map DoubleInUnionOffsetDateTime Jdec.float
8668+ , Jdec.map OffsetDateTimeInUnionOffsetDateTime offsetDateTime
8669+ ]
8670+
8671+encodeUnionOffsetDateTime : UnionOffsetDateTime -> Jenc.Value
8672+encodeUnionOffsetDateTime x = case x of
8673+ DoubleInUnionOffsetDateTime y -> Jenc.float y
8674+ OffsetDateTimeInUnionOffsetDateTime y -> encodeOffsetDateTime y
8675+
8676+offsetDateTime : Jdec.Decoder OffsetDateTime
8677+offsetDateTime =
8678+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime)
8679+
8680+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
8681+encodeOffsetDateTime x =
8682+ Jenc.object
8683+ [
8684+ ]
8685+
8686+unionOffsetTime : Jdec.Decoder UnionOffsetTime
8687+unionOffsetTime =
8688+ Jdec.oneOf
8689+ [ Jdec.map DoubleInUnionOffsetTime Jdec.float
8690+ , Jdec.map OffsetTimeInUnionOffsetTime offsetTime
8691+ ]
8692+
8693+encodeUnionOffsetTime : UnionOffsetTime -> Jenc.Value
8694+encodeUnionOffsetTime x = case x of
8695+ DoubleInUnionOffsetTime y -> Jenc.float y
8696+ OffsetTimeInUnionOffsetTime y -> encodeOffsetTime y
8697+
8698+offsetTime : Jdec.Decoder OffsetTime
8699+offsetTime =
8700+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime)
8701+
8702+encodeOffsetTime : OffsetTime -> Jenc.Value
8703+encodeOffsetTime x =
8704+ Jenc.object
8705+ [
8706+ ]
8707+
86038708 unionOneway : Jdec.Decoder UnionOneway
86048709 unionOneway =
86058710 Jdec.oneOf
Mschema-flowdefault / TopLevel.js+27 −0
@@ -188,6 +188,7 @@ export type TopLevel = {
188188 left?: UnionLeft;
189189 let?: UnionLet;
190190 list?: UnionList;
191+ LocalDate?: UnionLocalDate;
191192 Locale?: UnionLocale;
192193 lock?: UnionLock;
193194 long?: UnionLong;
@@ -222,6 +223,8 @@ export type TopLevel = {
222223 object?: UnionObject;
223224 ObjectMapper?: UnionObjectMapper;
224225 of?: UnionOf;
226+ OffsetDateTime?: UnionOffsetDateTime;
227+ OffsetTime?: UnionOffsetTime;
225228 oneway?: UnionOneway;
226229 open?: UnionOpen;
227230 operator?: UnionOperator;
@@ -532,6 +535,11 @@ export type UnionKSerializer = KSerializer | number;
532535 export type KSerializer = {
533536 };
534537
538+export type UnionLocalDate = LocalDate | number;
539+
540+export type LocalDate = {
541+};
542+
535543 export type UnionLocale = Locale | number;
536544
537545 export type Locale = {
@@ -577,6 +585,16 @@ export type UnionObjectMapper = ObjectMapper | number;
577585 export type ObjectMapper = {
578586 };
579587
588+export type UnionOffsetDateTime = OffsetDateTime | number;
589+
590+export type OffsetDateTime = {
591+};
592+
593+export type UnionOffsetTime = OffsetTime | number;
594+
595+export type OffsetTime = {
596+};
597+
580598 export type UnionPrimitiveKind = PrimitiveKind | number;
581599
582600 export type PrimitiveKind = {
@@ -2406,6 +2424,7 @@ const typeMap: any = {
24062424 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
24072425 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
24082426 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
2427+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
24092428 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
24102429 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
24112430 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -2440,6 +2459,8 @@ const typeMap: any = {
24402459 { json: "object", js: "object", typ: u(undefined, u(r("ObjectClass"), 3.14)) },
24412460 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) },
24422461 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
2462+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
2463+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
24432464 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
24442465 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
24452466 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -2640,6 +2661,8 @@ const typeMap: any = {
26402661 ], false),
26412662 "KSerializer": o([
26422663 ], false),
2664+ "LocalDate": o([
2665+ ], false),
26432666 "Locale": o([
26442667 ], false),
26452668 "MapEntry": o([
@@ -2658,6 +2681,10 @@ const typeMap: any = {
26582681 ], false),
26592682 "ObjectMapper": o([
26602683 ], false),
2684+ "OffsetDateTime": o([
2685+ ], false),
2686+ "OffsetTime": o([
2687+ ], false),
26612688 "PrimitiveKind": o([
26622689 ], false),
26632690 "Protocol": o([
Mschema-golangdefault / quicktype.go+78 −0
@@ -200,6 +200,7 @@ type TopLevel struct {
200200 Left *UnionLeft `json:"left"`
201201 Let *UnionLet `json:"let"`
202202 List *UnionList `json:"list"`
203+ LocalDate *UnionLocalDate `json:"LocalDate"`
203204 Locale *UnionLocale `json:"Locale"`
204205 Lock *UnionLock `json:"lock"`
205206 Long *UnionLong `json:"long"`
@@ -234,6 +235,8 @@ type TopLevel struct {
234235 Object *UnionObject `json:"object"`
235236 ObjectMapper *UnionObjectMapper `json:"ObjectMapper"`
236237 Of *UnionOf `json:"of"`
238+ OffsetDateTime *UnionOffsetDateTime `json:"OffsetDateTime"`
239+ OffsetTime *UnionOffsetTime `json:"OffsetTime"`
237240 Oneway *UnionOneway `json:"oneway"`
238241 Open *UnionOpen `json:"open"`
239242 Operator *UnionOperator `json:"operator"`
@@ -879,6 +882,9 @@ type Let struct {
879882 type List struct {
880883 }
881884
885+type LocalDate struct {
886+}
887+
882888 type Locale struct {
883889 }
884890
@@ -975,6 +981,12 @@ type ObjectMapper struct {
975981 type Of struct {
976982 }
977983
984+type OffsetDateTime struct {
985+}
986+
987+type OffsetTime struct {
988+}
989+
978990 type Oneway struct {
979991 }
980992
@@ -5161,6 +5173,28 @@ func (x *UnionList) MarshalJSON() ([]byte, error) {
51615173 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.List != nil, x.List, false, nil, false, nil, false)
51625174 }
51635175
5176+type UnionLocalDate struct {
5177+ Double *float64
5178+ LocalDate *LocalDate
5179+}
5180+
5181+func (x *UnionLocalDate) UnmarshalJSON(data []byte) error {
5182+ x.LocalDate = nil
5183+ var c LocalDate
5184+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5185+ if err != nil {
5186+ return err
5187+ }
5188+ if object {
5189+ x.LocalDate = &c
5190+ }
5191+ return nil
5192+}
5193+
5194+func (x *UnionLocalDate) MarshalJSON() ([]byte, error) {
5195+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.LocalDate != nil, x.LocalDate, false, nil, false, nil, false)
5196+}
5197+
51645198 type UnionLocale struct {
51655199 Double *float64
51665200 Locale *Locale
@@ -5865,6 +5899,50 @@ func (x *UnionOf) MarshalJSON() ([]byte, error) {
58655899 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Of != nil, x.Of, false, nil, false, nil, false)
58665900 }
58675901
5902+type UnionOffsetDateTime struct {
5903+ Double *float64
5904+ OffsetDateTime *OffsetDateTime
5905+}
5906+
5907+func (x *UnionOffsetDateTime) UnmarshalJSON(data []byte) error {
5908+ x.OffsetDateTime = nil
5909+ var c OffsetDateTime
5910+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5911+ if err != nil {
5912+ return err
5913+ }
5914+ if object {
5915+ x.OffsetDateTime = &c
5916+ }
5917+ return nil
5918+}
5919+
5920+func (x *UnionOffsetDateTime) MarshalJSON() ([]byte, error) {
5921+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetDateTime != nil, x.OffsetDateTime, false, nil, false, nil, false)
5922+}
5923+
5924+type UnionOffsetTime struct {
5925+ Double *float64
5926+ OffsetTime *OffsetTime
5927+}
5928+
5929+func (x *UnionOffsetTime) UnmarshalJSON(data []byte) error {
5930+ x.OffsetTime = nil
5931+ var c OffsetTime
5932+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5933+ if err != nil {
5934+ return err
5935+ }
5936+ if object {
5937+ x.OffsetTime = &c
5938+ }
5939+ return nil
5940+}
5941+
5942+func (x *UnionOffsetTime) MarshalJSON() ([]byte, error) {
5943+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetTime != nil, x.OffsetTime, false, nil, false, nil, false)
5944+}
5945+
58685946 type UnionOneway struct {
58695947 Double *float64
58705948 Oneway *Oneway
Mschema-haskelldefault / QuickType.hs+85 −1
@@ -163,6 +163,7 @@ module QuickType
163163 , Lazy (..)
164164 , LeftClass (..)
165165 , List (..)
166+ , LocalDate (..)
166167 , Locale (..)
167168 , Lock (..)
168169 , Long (..)
@@ -193,6 +194,8 @@ module QuickType
193194 , NumberClass (..)
194195 , ObjectClass (..)
195196 , ObjectMapper (..)
197+ , OffsetDateTime (..)
198+ , OffsetTime (..)
196199 , Oneway (..)
197200 , Open (..)
198201 , Operator (..)
@@ -501,6 +504,7 @@ module QuickType
501504 , UnionLazy (..)
502505 , UnionLeft (..)
503506 , UnionList (..)
507+ , UnionLocalDate (..)
504508 , UnionLocale (..)
505509 , UnionLock (..)
506510 , UnionLong (..)
@@ -531,6 +535,8 @@ module QuickType
531535 , UnionNumber (..)
532536 , UnionObject (..)
533537 , UnionObjectMapper (..)
538+ , UnionOffsetDateTime (..)
539+ , UnionOffsetTime (..)
534540 , UnionOneway (..)
535541 , UnionOpen (..)
536542 , UnionOperator (..)
@@ -867,6 +873,7 @@ data QuickType = QuickType
867873 , leftQuickType :: Maybe UnionLeft
868874 , quickTypeLetQuickType :: Maybe UnionLet
869875 , listQuickType :: Maybe UnionList
876+ , localDateQuickType :: Maybe UnionLocalDate
870877 , localeQuickType :: Maybe UnionLocale
871878 , lockQuickType :: Maybe UnionLock
872879 , longQuickType :: Maybe UnionLong
@@ -901,6 +908,8 @@ data QuickType = QuickType
901908 , objectQuickType :: Maybe UnionObject
902909 , objectMapperQuickType :: Maybe UnionObjectMapper
903910 , quickTypeOfQuickType :: Maybe UnionOf
911+ , offsetDateTimeQuickType :: Maybe UnionOffsetDateTime
912+ , offsetTimeQuickType :: Maybe UnionOffsetTime
904913 , onewayQuickType :: Maybe UnionOneway
905914 , openQuickType :: Maybe UnionOpen
906915 , operatorQuickType :: Maybe UnionOperator
@@ -2470,6 +2479,15 @@ data List = List
24702479 {
24712480 } deriving (Show)
24722481
2482+data UnionLocalDate
2483+ = DoubleInUnionLocalDate Double
2484+ | LocalDateInUnionLocalDate LocalDate
2485+ deriving (Show)
2486+
2487+data LocalDate = LocalDate
2488+ {
2489+ } deriving (Show)
2490+
24732491 data UnionLocale
24742492 = DoubleInUnionLocale Double
24752493 | LocaleInUnionLocale Locale
@@ -2740,6 +2758,24 @@ data ObjectMapper = ObjectMapper
27402758 {
27412759 } deriving (Show)
27422760
2761+data UnionOffsetDateTime
2762+ = DoubleInUnionOffsetDateTime Double
2763+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2764+ deriving (Show)
2765+
2766+data OffsetDateTime = OffsetDateTime
2767+ {
2768+ } deriving (Show)
2769+
2770+data UnionOffsetTime
2771+ = DoubleInUnionOffsetTime Double
2772+ | OffsetTimeInUnionOffsetTime OffsetTime
2773+ deriving (Show)
2774+
2775+data OffsetTime = OffsetTime
2776+ {
2777+ } deriving (Show)
2778+
27432779 data UnionOneway
27442780 = DoubleInUnionOneway Double
27452781 | OnewayInUnionOneway Oneway
@@ -4076,7 +4112,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
40764112 decodeTopLevel = decode
40774113
40784114 instance ToJSON QuickType where
4079- toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType 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 dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType 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 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 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 mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType 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 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 quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4115+ toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType 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 dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType 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 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 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 mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType 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 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 quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
40804116 object $ foldMap (maybe [] pure)
40814117 [ ("_" .=) <$> emptyQuickType
40824118 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4256,6 +4292,7 @@ instance ToJSON QuickType where
42564292 , ("left" .=) <$> leftQuickType
42574293 , ("let" .=) <$> quickTypeLetQuickType
42584294 , ("list" .=) <$> listQuickType
4295+ , ("LocalDate" .=) <$> localDateQuickType
42594296 , ("Locale" .=) <$> localeQuickType
42604297 , ("lock" .=) <$> lockQuickType
42614298 , ("long" .=) <$> longQuickType
@@ -4290,6 +4327,8 @@ instance ToJSON QuickType where
42904327 , ("object" .=) <$> objectQuickType
42914328 , ("ObjectMapper" .=) <$> objectMapperQuickType
42924329 , ("of" .=) <$> quickTypeOfQuickType
4330+ , ("OffsetDateTime" .=) <$> offsetDateTimeQuickType
4331+ , ("OffsetTime" .=) <$> offsetTimeQuickType
42934332 , ("oneway" .=) <$> onewayQuickType
42944333 , ("open" .=) <$> openQuickType
42954334 , ("operator" .=) <$> operatorQuickType
@@ -4599,6 +4638,7 @@ instance FromJSON QuickType where
45994638 <*> v .:! "left"
46004639 <*> v .:! "let"
46014640 <*> v .:! "list"
4641+ <*> v .:! "LocalDate"
46024642 <*> v .:! "Locale"
46034643 <*> v .:! "lock"
46044644 <*> v .:! "long"
@@ -4633,6 +4673,8 @@ instance FromJSON QuickType where
46334673 <*> v .:! "object"
46344674 <*> v .:! "ObjectMapper"
46354675 <*> v .:! "of"
4676+ <*> v .:! "OffsetDateTime"
4677+ <*> v .:! "OffsetTime"
46364678 <*> v .:! "oneway"
46374679 <*> v .:! "open"
46384680 <*> v .:! "operator"
@@ -7001,6 +7043,20 @@ instance ToJSON List where
70017043 instance FromJSON List where
70027044 parseJSON (Object _) = return List
70037045
7046+instance ToJSON UnionLocalDate where
7047+ toJSON (DoubleInUnionLocalDate x) = toJSON x
7048+ toJSON (LocalDateInUnionLocalDate x) = toJSON x
7049+
7050+instance FromJSON UnionLocalDate where
7051+ parseJSON xs@(Number _) = (fmap DoubleInUnionLocalDate . parseJSON) xs
7052+ parseJSON xs@(Object _) = (fmap LocalDateInUnionLocalDate . parseJSON) xs
7053+
7054+instance ToJSON LocalDate where
7055+ toJSON = \_ -> emptyObject
7056+
7057+instance FromJSON LocalDate where
7058+ parseJSON (Object _) = return LocalDate
7059+
70047060 instance ToJSON UnionLocale where
70057061 toJSON (DoubleInUnionLocale x) = toJSON x
70067062 toJSON (LocaleInUnionLocale x) = toJSON x
@@ -7421,6 +7477,34 @@ instance ToJSON ObjectMapper where
74217477 instance FromJSON ObjectMapper where
74227478 parseJSON (Object _) = return ObjectMapper
74237479
7480+instance ToJSON UnionOffsetDateTime where
7481+ toJSON (DoubleInUnionOffsetDateTime x) = toJSON x
7482+ toJSON (OffsetDateTimeInUnionOffsetDateTime x) = toJSON x
7483+
7484+instance FromJSON UnionOffsetDateTime where
7485+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetDateTime . parseJSON) xs
7486+ parseJSON xs@(Object _) = (fmap OffsetDateTimeInUnionOffsetDateTime . parseJSON) xs
7487+
7488+instance ToJSON OffsetDateTime where
7489+ toJSON = \_ -> emptyObject
7490+
7491+instance FromJSON OffsetDateTime where
7492+ parseJSON (Object _) = return OffsetDateTime
7493+
7494+instance ToJSON UnionOffsetTime where
7495+ toJSON (DoubleInUnionOffsetTime x) = toJSON x
7496+ toJSON (OffsetTimeInUnionOffsetTime x) = toJSON x
7497+
7498+instance FromJSON UnionOffsetTime where
7499+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetTime . parseJSON) xs
7500+ parseJSON xs@(Object _) = (fmap OffsetTimeInUnionOffsetTime . parseJSON) xs
7501+
7502+instance ToJSON OffsetTime where
7503+ toJSON = \_ -> emptyObject
7504+
7505+instance FromJSON OffsetTime where
7506+ parseJSON (Object _) = return OffsetTime
7507+
74247508 instance ToJSON UnionOneway where
74257509 toJSON (DoubleInUnionOneway x) = toJSON x
74267510 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
@@ -181,6 +181,7 @@ public class TopLevel {
181181 private UnionLeft left;
182182 private UnionLet let;
183183 private UnionList list;
184+ private UnionLocalDate localDate;
184185 private UnionLocale locale;
185186 private UnionLock lock;
186187 private UnionLong topLevelLong;
@@ -215,6 +216,8 @@ public class TopLevel {
215216 private UnionObject object;
216217 private UnionObjectMapper objectMapper;
217218 private UnionOf of;
219+ private UnionOffsetDateTime offsetDateTime;
220+ private UnionOffsetTime offsetTime;
218221 private UnionOneway oneway;
219222 private UnionOpen open;
220223 private UnionOperator operator;
@@ -1233,6 +1236,11 @@ public class TopLevel {
12331236 @JsonProperty("list")
12341237 public void setList(UnionList value) { this.list = value; }
12351238
1239+ @JsonProperty("LocalDate")
1240+ public UnionLocalDate getLocalDate() { return localDate; }
1241+ @JsonProperty("LocalDate")
1242+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1243+
12361244 @JsonProperty("Locale")
12371245 public UnionLocale getLocale() { return locale; }
12381246 @JsonProperty("Locale")
@@ -1403,6 +1411,16 @@ public class TopLevel {
14031411 @JsonProperty("of")
14041412 public void setOf(UnionOf value) { this.of = value; }
14051413
1414+ @JsonProperty("OffsetDateTime")
1415+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1416+ @JsonProperty("OffsetDateTime")
1417+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1418+
1419+ @JsonProperty("OffsetTime")
1420+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1421+ @JsonProperty("OffsetTime")
1422+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1423+
14061424 @JsonProperty("oneway")
14071425 public UnionOneway getOneway() { return oneway; }
14081426 @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
@@ -181,6 +181,7 @@ public class TopLevel {
181181 private UnionLeft left;
182182 private UnionLet let;
183183 private UnionList list;
184+ private UnionLocalDate localDate;
184185 private UnionLocale locale;
185186 private UnionLock lock;
186187 private UnionLong topLevelLong;
@@ -215,6 +216,8 @@ public class TopLevel {
215216 private UnionObject object;
216217 private UnionObjectMapper objectMapper;
217218 private UnionOf of;
219+ private UnionOffsetDateTime offsetDateTime;
220+ private UnionOffsetTime offsetTime;
218221 private UnionOneway oneway;
219222 private UnionOpen open;
220223 private UnionOperator operator;
@@ -1233,6 +1236,11 @@ public class TopLevel {
12331236 @JsonProperty("list")
12341237 public void setList(UnionList value) { this.list = value; }
12351238
1239+ @JsonProperty("LocalDate")
1240+ public UnionLocalDate getLocalDate() { return localDate; }
1241+ @JsonProperty("LocalDate")
1242+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1243+
12361244 @JsonProperty("Locale")
12371245 public UnionLocale getLocale() { return locale; }
12381246 @JsonProperty("Locale")
@@ -1403,6 +1411,16 @@ public class TopLevel {
14031411 @JsonProperty("of")
14041412 public void setOf(UnionOf value) { this.of = value; }
14051413
1414+ @JsonProperty("OffsetDateTime")
1415+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1416+ @JsonProperty("OffsetDateTime")
1417+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1418+
1419+ @JsonProperty("OffsetTime")
1420+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1421+ @JsonProperty("OffsetTime")
1422+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1423+
14061424 @JsonProperty("oneway")
14071425 public UnionOneway getOneway() { return oneway; }
14081426 @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
@@ -181,6 +181,7 @@ public class TopLevel {
181181 private UnionLeft left;
182182 private UnionLet let;
183183 private UnionList list;
184+ private UnionLocalDate localDate;
184185 private UnionLocale locale;
185186 private UnionLock lock;
186187 private UnionLong topLevelLong;
@@ -215,6 +216,8 @@ public class TopLevel {
215216 private UnionObject object;
216217 private UnionObjectMapper objectMapper;
217218 private UnionOf of;
219+ private UnionOffsetDateTime offsetDateTime;
220+ private UnionOffsetTime offsetTime;
218221 private UnionOneway oneway;
219222 private UnionOpen open;
220223 private UnionOperator operator;
@@ -1233,6 +1236,11 @@ public class TopLevel {
12331236 @JsonProperty("list")
12341237 public void setList(UnionList value) { this.list = value; }
12351238
1239+ @JsonProperty("LocalDate")
1240+ public UnionLocalDate getLocalDate() { return localDate; }
1241+ @JsonProperty("LocalDate")
1242+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1243+
12361244 @JsonProperty("Locale")
12371245 public UnionLocale getLocale() { return locale; }
12381246 @JsonProperty("Locale")
@@ -1403,6 +1411,16 @@ public class TopLevel {
14031411 @JsonProperty("of")
14041412 public void setOf(UnionOf value) { this.of = value; }
14051413
1414+ @JsonProperty("OffsetDateTime")
1415+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1416+ @JsonProperty("OffsetDateTime")
1417+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1418+
1419+ @JsonProperty("OffsetTime")
1420+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1421+ @JsonProperty("OffsetTime")
1422+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1423+
14061424 @JsonProperty("oneway")
14071425 public UnionOneway getOneway() { return oneway; }
14081426 @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
@@ -49,6 +49,7 @@ let _JSONParser;
4949 let _JSONReader;
5050 let _JSONTokenType;
5151 let _KSerializer;
52+let _LocalDate;
5253 let _Locale;
5354 let _MapEntry;
5455 let _No;
@@ -58,6 +59,8 @@ let _NSString;
5859 let _Null;
5960 let _None;
6061 let _ObjectMapper;
62+let _OffsetDateTime;
63+let _OffsetTime;
6164 let _PrimitiveKind;
6265 let _Protocol;
6366 let _RegExp;
@@ -423,6 +426,8 @@ _JSONTokenType = PropTypes.shape({
423426 });
424427 _KSerializer = PropTypes.shape({
425428 });
429+_LocalDate = PropTypes.shape({
430+});
426431 _Locale = PropTypes.shape({
427432 });
428433 _MapEntry = PropTypes.shape({
@@ -441,6 +446,10 @@ _None = PropTypes.shape({
441446 });
442447 _ObjectMapper = PropTypes.shape({
443448 });
449+_OffsetDateTime = PropTypes.shape({
450+});
451+_OffsetTime = PropTypes.shape({
452+});
444453 _PrimitiveKind = PropTypes.shape({
445454 });
446455 _Protocol = PropTypes.shape({
@@ -1206,6 +1215,7 @@ _TopLevel = PropTypes.shape({
12061215 "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]),
12071216 "let": PropTypes.oneOfType([_Let, PropTypes.number, PropTypes.oneOf([null])]),
12081217 "list": PropTypes.oneOfType([_List, PropTypes.number, PropTypes.oneOf([null])]),
1218+ "LocalDate": PropTypes.oneOfType([_LocalDate, PropTypes.number, PropTypes.oneOf([null])]),
12091219 "Locale": PropTypes.oneOfType([_Locale, PropTypes.number, PropTypes.oneOf([null])]),
12101220 "lock": PropTypes.oneOfType([_Lock, PropTypes.number, PropTypes.oneOf([null])]),
12111221 "long": PropTypes.oneOfType([_Long, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1240,6 +1250,8 @@ _TopLevel = PropTypes.shape({
12401250 "object": PropTypes.oneOfType([_Object, PropTypes.number, PropTypes.oneOf([null])]),
12411251 "ObjectMapper": PropTypes.oneOfType([_ObjectMapper, PropTypes.number, PropTypes.oneOf([null])]),
12421252 "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]),
1253+ "OffsetDateTime": PropTypes.oneOfType([_OffsetDateTime, PropTypes.number, PropTypes.oneOf([null])]),
1254+ "OffsetTime": PropTypes.oneOfType([_OffsetTime, PropTypes.number, PropTypes.oneOf([null])]),
12431255 "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]),
12441256 "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]),
12451257 "operator": PropTypes.oneOfType([_Operator, PropTypes.number, PropTypes.oneOf([null])]),
Mschema-javascriptdefault / TopLevel.js+9 −0
@@ -371,6 +371,7 @@ const typeMap = {
371371 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
372372 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
373373 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
374+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
374375 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
375376 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
376377 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -405,6 +406,8 @@ const typeMap = {
405406 { json: "object", js: "object", typ: u(undefined, u(r("Object"), 3.14)) },
406407 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) },
407408 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
409+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
410+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
408411 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
409412 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
410413 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -605,6 +608,8 @@ const typeMap = {
605608 ], false),
606609 "KSerializer": o([
607610 ], false),
611+ "LocalDate": o([
612+ ], false),
608613 "Locale": o([
609614 ], false),
610615 "MapEntry": o([
@@ -623,6 +628,10 @@ const typeMap = {
623628 ], false),
624629 "ObjectMapper": o([
625630 ], false),
631+ "OffsetDateTime": o([
632+ ], false),
633+ "OffsetTime": o([
634+ ], false),
626635 "PrimitiveKind": o([
627636 ], false),
628637 "Protocol": o([
Mschema-objective-cdefault / QTTopLevel.h+15 −0
@@ -154,6 +154,7 @@
154154 @class QTLeft;
155155 @class QTLet;
156156 @class QTList;
157+@class QTLocalDate;
157158 @class QTLocale;
158159 @class QTLock;
159160 @class QTMap;
@@ -182,6 +183,8 @@
182183 @class QTObject;
183184 @class QTObjectMapper;
184185 @class QTOf;
186+@class QTOffsetDateTime;
187+@class QTOffsetTime;
185188 @class QTOneway;
186189 @class QTOpen;
187190 @class QTOperator;
@@ -535,6 +538,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
535538 @property (nonatomic, nullable, copy) id left;
536539 @property (nonatomic, nullable, copy) id let;
537540 @property (nonatomic, nullable, copy) id list;
541+@property (nonatomic, nullable, copy) id localDate;
538542 @property (nonatomic, nullable, copy) id locale;
539543 @property (nonatomic, nullable, copy) id lock;
540544 @property (nonatomic, nullable, copy) id qtTopLevelLong;
@@ -569,6 +573,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
569573 @property (nonatomic, nullable, copy) id object;
570574 @property (nonatomic, nullable, copy) id objectMapper;
571575 @property (nonatomic, nullable, copy) id of;
576+@property (nonatomic, nullable, copy) id offsetDateTime;
577+@property (nonatomic, nullable, copy) id offsetTime;
572578 @property (nonatomic, nullable, copy) id oneway;
573579 @property (nonatomic, nullable, copy) id open;
574580 @property (nonatomic, nullable, copy) id operator;
@@ -1147,6 +1153,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11471153 @interface QTList : NSObject
11481154 @end
11491155
1156+@interface QTLocalDate : NSObject
1157+@end
1158+
11501159 @interface QTLocale : NSObject
11511160 @end
11521161
@@ -1231,6 +1240,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12311240 @interface QTOf : NSObject
12321241 @end
12331242
1243+@interface QTOffsetDateTime : NSObject
1244+@end
1245+
1246+@interface QTOffsetTime : NSObject
1247+@end
1248+
12341249 @interface QTOneway : NSObject
12351250 @end
Mschema-objective-cdefault / QTTopLevel.m+135 −0
@@ -753,6 +753,11 @@ NS_ASSUME_NONNULL_BEGIN
753753 - (NSDictionary *)JSONDictionary;
754754 @end
755755
756+@interface QTLocalDate (JSONConversion)
757++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
758+- (NSDictionary *)JSONDictionary;
759+@end
760+
756761 @interface QTLocale (JSONConversion)
757762 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
758763 - (NSDictionary *)JSONDictionary;
@@ -893,6 +898,16 @@ NS_ASSUME_NONNULL_BEGIN
893898 - (NSDictionary *)JSONDictionary;
894899 @end
895900
901+@interface QTOffsetDateTime (JSONConversion)
902++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
903+- (NSDictionary *)JSONDictionary;
904+@end
905+
906+@interface QTOffsetTime (JSONConversion)
907++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
908+- (NSDictionary *)JSONDictionary;
909+@end
910+
896911 @interface QTOneway (JSONConversion)
897912 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
898913 - (NSDictionary *)JSONDictionary;
@@ -1922,6 +1937,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19221937 @"left": @"left",
19231938 @"let": @"let",
19241939 @"list": @"list",
1940+ @"LocalDate": @"localDate",
19251941 @"Locale": @"locale",
19261942 @"lock": @"lock",
19271943 @"long": @"qtTopLevelLong",
@@ -1956,6 +1972,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19561972 @"object": @"object",
19571973 @"ObjectMapper": @"objectMapper",
19581974 @"of": @"of",
1975+ @"OffsetDateTime": @"offsetDateTime",
1976+ @"OffsetTime": @"offsetTime",
19591977 @"oneway": @"oneway",
19601978 @"open": @"open",
19611979 @"operator": @"operator",
@@ -7919,6 +7937,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
79197937 }
79207938 @end
79217939
7940+@implementation QTLocalDate
7941++ (NSDictionary<NSString *, NSString *> *)properties
7942+{
7943+ static NSDictionary<NSString *, NSString *> *properties;
7944+ return properties = properties ? properties : @{
7945+ };
7946+}
7947+
7948++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
7949+{
7950+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
7951+}
7952+
7953+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
7954+{
7955+ if (self = [super init]) {
7956+ [self setValuesForKeysWithDictionary:dict];
7957+ }
7958+ return self;
7959+}
7960+
7961+- (void)setValue:(nullable id)value forKey:(NSString *)key
7962+{
7963+ id resolved = QTLocalDate.properties[key];
7964+ if (resolved) [super setValue:value forKey:resolved];
7965+}
7966+
7967+- (void)setNilValueForKey:(NSString *)key
7968+{
7969+ id resolved = QTLocalDate.properties[key];
7970+ if (resolved) [super setValue:@(0) forKey:resolved];
7971+}
7972+
7973+- (NSDictionary *)JSONDictionary
7974+{
7975+ return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues];
7976+}
7977+@end
7978+
79227979 @implementation QTLocale
79237980 + (NSDictionary<NSString *, NSString *> *)properties
79247981 {
@@ -9011,6 +9068,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
90119068 }
90129069 @end
90139070
9071+@implementation QTOffsetDateTime
9072++ (NSDictionary<NSString *, NSString *> *)properties
9073+{
9074+ static NSDictionary<NSString *, NSString *> *properties;
9075+ return properties = properties ? properties : @{
9076+ };
9077+}
9078+
9079++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9080+{
9081+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
9082+}
9083+
9084+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9085+{
9086+ if (self = [super init]) {
9087+ [self setValuesForKeysWithDictionary:dict];
9088+ }
9089+ return self;
9090+}
9091+
9092+- (void)setValue:(nullable id)value forKey:(NSString *)key
9093+{
9094+ id resolved = QTOffsetDateTime.properties[key];
9095+ if (resolved) [super setValue:value forKey:resolved];
9096+}
9097+
9098+- (void)setNilValueForKey:(NSString *)key
9099+{
9100+ id resolved = QTOffsetDateTime.properties[key];
9101+ if (resolved) [super setValue:@(0) forKey:resolved];
9102+}
9103+
9104+- (NSDictionary *)JSONDictionary
9105+{
9106+ return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues];
9107+}
9108+@end
9109+
9110+@implementation QTOffsetTime
9111++ (NSDictionary<NSString *, NSString *> *)properties
9112+{
9113+ static NSDictionary<NSString *, NSString *> *properties;
9114+ return properties = properties ? properties : @{
9115+ };
9116+}
9117+
9118++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9119+{
9120+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
9121+}
9122+
9123+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9124+{
9125+ if (self = [super init]) {
9126+ [self setValuesForKeysWithDictionary:dict];
9127+ }
9128+ return self;
9129+}
9130+
9131+- (void)setValue:(nullable id)value forKey:(NSString *)key
9132+{
9133+ id resolved = QTOffsetTime.properties[key];
9134+ if (resolved) [super setValue:value forKey:resolved];
9135+}
9136+
9137+- (void)setNilValueForKey:(NSString *)key
9138+{
9139+ id resolved = QTOffsetTime.properties[key];
9140+ if (resolved) [super setValue:@(0) forKey:resolved];
9141+}
9142+
9143+- (NSDictionary *)JSONDictionary
9144+{
9145+ return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues];
9146+}
9147+@end
9148+
90149149 @implementation QTOneway
90159150 + (NSDictionary<NSString *, NSString *> *)properties
90169151 {
Mschema-phpdefault / TopLevel.php+546 −162
@@ -182,6 +182,7 @@ class TopLevel {
182182 private Left|float|null $left; // json:left Optional
183183 private Let|float|null $let; // json:let Optional
184184 private ListClass|float|null $list; // json:list Optional
185+ private LocalDate|float|null $localDate; // json:LocalDate Optional
185186 private LocaleClass|float|null $locale; // json:Locale Optional
186187 private Lock|float|null $lock; // json:lock Optional
187188 private Long|float|null $long; // json:long Optional
@@ -216,6 +217,8 @@ class TopLevel {
216217 private ObjectClass|float|null $object; // json:object Optional
217218 private ObjectMapper|float|null $objectMapper; // json:ObjectMapper Optional
218219 private Of|float|null $of; // json:of Optional
220+ private OffsetDateTime|float|null $offsetDateTime; // json:OffsetDateTime Optional
221+ private OffsetTime|float|null $offsetTime; // json:OffsetTime Optional
219222 private Oneway|float|null $oneway; // json:oneway Optional
220223 private Open|float|null $open; // json:open Optional
221224 private Operator|float|null $operator; // json:operator Optional
@@ -523,6 +526,7 @@ class TopLevel {
523526 * @param Left|float|null $left
524527 * @param Let|float|null $let
525528 * @param ListClass|float|null $list
529+ * @param LocalDate|float|null $localDate
526530 * @param LocaleClass|float|null $locale
527531 * @param Lock|float|null $lock
528532 * @param Long|float|null $long
@@ -557,6 +561,8 @@ class TopLevel {
557561 * @param ObjectClass|float|null $object
558562 * @param ObjectMapper|float|null $objectMapper
559563 * @param Of|float|null $of
564+ * @param OffsetDateTime|float|null $offsetDateTime
565+ * @param OffsetTime|float|null $offsetTime
560566 * @param Oneway|float|null $oneway
561567 * @param Open|float|null $open
562568 * @param Operator|float|null $operator
@@ -685,7 +691,7 @@ class TopLevel {
685691 * @param Yes|float|null $yes
686692 * @param YieldClass|float|null $yield
687693 */
688- 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, 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, 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, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?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, 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, 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, Map|float|null $map, MapEntry|float|null $mapEntry, 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, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, 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, 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, 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, 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, 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) {
694+ 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, 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, 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, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?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, 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, 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, Map|float|null $map, MapEntry|float|null $mapEntry, 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, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, 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, 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, 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, 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, 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) {
689695 $this->empty = $empty;
690696 $this->topLevelBool = $topLevelBool;
691697 $this->complex = $complex;
@@ -864,6 +870,7 @@ class TopLevel {
864870 $this->left = $left;
865871 $this->let = $let;
866872 $this->list = $list;
873+ $this->localDate = $localDate;
867874 $this->locale = $locale;
868875 $this->lock = $lock;
869876 $this->long = $long;
@@ -898,6 +905,8 @@ class TopLevel {
898905 $this->object = $object;
899906 $this->objectMapper = $objectMapper;
900907 $this->of = $of;
908+ $this->offsetDateTime = $offsetDateTime;
909+ $this->offsetTime = $offsetTime;
901910 $this->oneway = $oneway;
902911 $this->open = $open;
903912 $this->operator = $operator;
@@ -14536,6 +14545,82 @@ class TopLevel {
1453614545 return ListClass::sample(); /*208:list*/
1453714546 }
1453814547
14548+ /**
14549+ * @param stdClass|float|null $value
14550+ * @throws Exception
14551+ * @return LocalDate|float|null
14552+ */
14553+ public static function fromLocalDate(stdClass|float|null $value): LocalDate|float|null {
14554+ if (is_null($value)) {
14555+ return $value; /*null*/
14556+ } elseif (is_object($value)) {
14557+ return LocalDate::from($value); /*class*/
14558+ } elseif (is_float($value) || is_int($value)) {
14559+ return $value; /*float*/
14560+ } else {
14561+ throw new Exception('Cannot deserialize union value in TopLevel');
14562+ }
14563+ }
14564+
14565+ /**
14566+ * @throws Exception
14567+ * @return stdClass|float|null
14568+ */
14569+ public function toLocalDate(): stdClass|float|null {
14570+ if (TopLevel::validateLocalDate($this->localDate)) {
14571+ if (is_null($this->localDate)) {
14572+ return $this->localDate; /*null*/
14573+ } elseif ($this->localDate instanceof LocalDate) {
14574+ return $this->localDate->to(); /*class*/
14575+ } elseif (is_float($this->localDate) || is_int($this->localDate)) {
14576+ return $this->localDate; /*float*/
14577+ } else {
14578+ throw new Exception('Union value has no matching member in TopLevel');
14579+ }
14580+ }
14581+ throw new Exception('never get to this TopLevel::localDate');
14582+ }
14583+
14584+ /**
14585+ * @param LocalDate|float|null
14586+ * @return bool
14587+ * @throws Exception
14588+ */
14589+ public static function validateLocalDate(LocalDate|float|null $value): bool {
14590+ if (is_null($value)) {
14591+ if (!is_null($value)) {
14592+ throw new Exception("Attribute Error:TopLevel::localDate");
14593+ }
14594+ } elseif ($value instanceof LocalDate) {
14595+ $value->validate();
14596+ } elseif (is_float($value) || is_int($value)) {
14597+ if (!is_float($value) && !is_int($value)) {
14598+ throw new Exception("Attribute Error:TopLevel::localDate");
14599+ }
14600+ } else {
14601+ throw new Exception("Attribute Error:TopLevel::localDate");
14602+ }
14603+ return true;
14604+ }
14605+
14606+ /**
14607+ * @throws Exception
14608+ * @return LocalDate|float|null
14609+ */
14610+ public function getLocalDate(): LocalDate|float|null {
14611+ if (TopLevel::validateLocalDate($this->localDate)) {
14612+ return $this->localDate;
14613+ }
14614+ throw new Exception('never get to getLocalDate TopLevel::localDate');
14615+ }
14616+
14617+ /**
14618+ * @return LocalDate|float|null
14619+ */
14620+ public static function sampleLocalDate(): LocalDate|float|null {
14621+ return LocalDate::sample(); /*209:localDate*/
14622+ }
14623+
1453914624 /**
1454014625 * @param stdClass|float|null $value
1454114626 * @throws Exception
@@ -14609,7 +14694,7 @@ class TopLevel {
1460914694 * @return LocaleClass|float|null
1461014695 */
1461114696 public static function sampleLocale(): LocaleClass|float|null {
14612- return LocaleClass::sample(); /*209:locale*/
14697+ return LocaleClass::sample(); /*210:locale*/
1461314698 }
1461414699
1461514700 /**
@@ -14685,7 +14770,7 @@ class TopLevel {
1468514770 * @return Lock|float|null
1468614771 */
1468714772 public static function sampleLock(): Lock|float|null {
14688- return Lock::sample(); /*210:lock*/
14773+ return Lock::sample(); /*211:lock*/
1468914774 }
1469014775
1469114776 /**
@@ -14761,7 +14846,7 @@ class TopLevel {
1476114846 * @return Long|float|null
1476214847 */
1476314848 public static function sampleLong(): Long|float|null {
14764- return Long::sample(); /*211:long*/
14849+ return Long::sample(); /*212:long*/
1476514850 }
1476614851
1476714852 /**
@@ -14837,7 +14922,7 @@ class TopLevel {
1483714922 * @return Map|float|null
1483814923 */
1483914924 public static function sampleMap(): Map|float|null {
14840- return Map::sample(); /*212:map*/
14925+ return Map::sample(); /*213:map*/
1484114926 }
1484214927
1484314928 /**
@@ -14913,7 +14998,7 @@ class TopLevel {
1491314998 * @return MapEntry|float|null
1491414999 */
1491515000 public static function sampleMapEntry(): MapEntry|float|null {
14916- return MapEntry::sample(); /*213:mapEntry*/
15001+ return MapEntry::sample(); /*214:mapEntry*/
1491715002 }
1491815003
1491915004 /**
@@ -14989,7 +15074,7 @@ class TopLevel {
1498915074 * @return MetadataPropertyHandling|float|null
1499015075 */
1499115076 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
14992- return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/
15077+ return MetadataPropertyHandling::sample(); /*215:metadataPropertyHandling*/
1499315078 }
1499415079
1499515080 /**
@@ -15065,7 +15150,7 @@ class TopLevel {
1506515150 * @return Module|float|null
1506615151 */
1506715152 public static function sampleModule(): Module|float|null {
15068- return Module::sample(); /*215:module*/
15153+ return Module::sample(); /*216:module*/
1506915154 }
1507015155
1507115156 /**
@@ -15141,7 +15226,7 @@ class TopLevel {
1514115226 * @return Mutable|float|null
1514215227 */
1514315228 public static function sampleMutable(): Mutable|float|null {
15144- return Mutable::sample(); /*216:mutable*/
15229+ return Mutable::sample(); /*217:mutable*/
1514515230 }
1514615231
1514715232 /**
@@ -15217,7 +15302,7 @@ class TopLevel {
1521715302 * @return Mutating|float|null
1521815303 */
1521915304 public static function sampleMutating(): Mutating|float|null {
15220- return Mutating::sample(); /*217:mutating*/
15305+ return Mutating::sample(); /*218:mutating*/
1522115306 }
1522215307
1522315308 /**
@@ -15293,7 +15378,7 @@ class TopLevel {
1529315378 * @return NamespaceClass|float|null
1529415379 */
1529515380 public static function sampleNamespace(): NamespaceClass|float|null {
15296- return NamespaceClass::sample(); /*218:namespace*/
15381+ return NamespaceClass::sample(); /*219:namespace*/
1529715382 }
1529815383
1529915384 /**
@@ -15369,7 +15454,7 @@ class TopLevel {
1536915454 * @return Native|float|null
1537015455 */
1537115456 public static function sampleNative(): Native|float|null {
15372- return Native::sample(); /*219:native*/
15457+ return Native::sample(); /*220:native*/
1537315458 }
1537415459
1537515460 /**
@@ -15445,7 +15530,7 @@ class TopLevel {
1544515530 * @return NewClass|float|null
1544615531 */
1544715532 public static function sampleNew(): NewClass|float|null {
15448- return NewClass::sample(); /*220:new*/
15533+ return NewClass::sample(); /*221:new*/
1544915534 }
1545015535
1545115536 /**
@@ -15521,7 +15606,7 @@ class TopLevel {
1552115606 * @return Newtonsoft|float|null
1552215607 */
1552315608 public static function sampleNewtonsoft(): Newtonsoft|float|null {
15524- return Newtonsoft::sample(); /*221:newtonsoft*/
15609+ return Newtonsoft::sample(); /*222:newtonsoft*/
1552515610 }
1552615611
1552715612 /**
@@ -15597,7 +15682,7 @@ class TopLevel {
1559715682 * @return Nil|float|null
1559815683 */
1559915684 public static function sampleNil(): Nil|float|null {
15600- return Nil::sample(); /*222:nil*/
15685+ return Nil::sample(); /*223:nil*/
1560115686 }
1560215687
1560315688 /**
@@ -15673,7 +15758,7 @@ class TopLevel {
1567315758 * @return No|float|null
1567415759 */
1567515760 public static function sampleNo(): No|float|null {
15676- return No::sample(); /*223:no*/
15761+ return No::sample(); /*224:no*/
1567715762 }
1567815763
1567915764 /**
@@ -15749,7 +15834,7 @@ class TopLevel {
1574915834 * @return Noexcept|float|null
1575015835 */
1575115836 public static function sampleNoexcept(): Noexcept|float|null {
15752- return Noexcept::sample(); /*224:noexcept*/
15837+ return Noexcept::sample(); /*225:noexcept*/
1575315838 }
1575415839
1575515840 /**
@@ -15825,7 +15910,7 @@ class TopLevel {
1582515910 * @return Nonatomic|float|null
1582615911 */
1582715912 public static function sampleNonatomic(): Nonatomic|float|null {
15828- return Nonatomic::sample(); /*225:nonatomic*/
15913+ return Nonatomic::sample(); /*226:nonatomic*/
1582915914 }
1583015915
1583115916 /**
@@ -15901,7 +15986,7 @@ class TopLevel {
1590115986 * @return NoneClass|float|null
1590215987 */
1590315988 public static function sampleTopLevelNone(): NoneClass|float|null {
15904- return NoneClass::sample(); /*226:topLevelNone*/
15989+ return NoneClass::sample(); /*227:topLevelNone*/
1590515990 }
1590615991
1590715992 /**
@@ -15977,7 +16062,7 @@ class TopLevel {
1597716062 * @return None|float|null
1597816063 */
1597916064 public static function sampleNone(): None|float|null {
15980- return None::sample(); /*227:none*/
16065+ return None::sample(); /*228:none*/
1598116066 }
1598216067
1598316068 /**
@@ -16053,7 +16138,7 @@ class TopLevel {
1605316138 * @return Nonlocal|float|null
1605416139 */
1605516140 public static function sampleNonlocal(): Nonlocal|float|null {
16056- return Nonlocal::sample(); /*228:nonlocal*/
16141+ return Nonlocal::sample(); /*229:nonlocal*/
1605716142 }
1605816143
1605916144 /**
@@ -16129,7 +16214,7 @@ class TopLevel {
1612916214 * @return Nonmutating|float|null
1613016215 */
1613116216 public static function sampleNonmutating(): Nonmutating|float|null {
16132- return Nonmutating::sample(); /*229:nonmutating*/
16217+ return Nonmutating::sample(); /*230:nonmutating*/
1613316218 }
1613416219
1613516220 /**
@@ -16205,7 +16290,7 @@ class TopLevel {
1620516290 * @return NoSuchMethod|float|null
1620616291 */
1620716292 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16208- return NoSuchMethod::sample(); /*230:noSuchMethod*/
16293+ return NoSuchMethod::sample(); /*231:noSuchMethod*/
1620916294 }
1621016295
1621116296 /**
@@ -16281,7 +16366,7 @@ class TopLevel {
1628116366 * @return Not|float|null
1628216367 */
1628316368 public static function sampleNot(): Not|float|null {
16284- return Not::sample(); /*231:not*/
16369+ return Not::sample(); /*232:not*/
1628516370 }
1628616371
1628716372 /**
@@ -16357,7 +16442,7 @@ class TopLevel {
1635716442 * @return NotEq|float|null
1635816443 */
1635916444 public static function sampleNotEq(): NotEq|float|null {
16360- return NotEq::sample(); /*232:notEq*/
16445+ return NotEq::sample(); /*233:notEq*/
1636116446 }
1636216447
1636316448 /**
@@ -16433,7 +16518,7 @@ class TopLevel {
1643316518 * @return NSError|float|null
1643416519 */
1643516520 public static function sampleNSError(): NSError|float|null {
16436- return NSError::sample(); /*233:nsError*/
16521+ return NSError::sample(); /*234:nsError*/
1643716522 }
1643816523
1643916524 /**
@@ -16509,7 +16594,7 @@ class TopLevel {
1650916594 * @return NSObject|float|null
1651016595 */
1651116596 public static function sampleNSObject(): NSObject|float|null {
16512- return NSObject::sample(); /*234:nsObject*/
16597+ return NSObject::sample(); /*235:nsObject*/
1651316598 }
1651416599
1651516600 /**
@@ -16585,7 +16670,7 @@ class TopLevel {
1658516670 * @return NSString|float|null
1658616671 */
1658716672 public static function sampleNSString(): NSString|float|null {
16588- return NSString::sample(); /*235:nsString*/
16673+ return NSString::sample(); /*236:nsString*/
1658916674 }
1659016675
1659116676 /**
@@ -16661,7 +16746,7 @@ class TopLevel {
1666116746 * @return NULLClass|float|null
1666216747 */
1666316748 public static function sampleNull(): NULLClass|float|null {
16664- return NULLClass::sample(); /*236:null*/
16749+ return NULLClass::sample(); /*237:null*/
1666516750 }
1666616751
1666716752 /**
@@ -16737,7 +16822,7 @@ class TopLevel {
1673716822 * @return UnionNullNull|float|null
1673816823 */
1673916824 public static function sampleTopLevelNull(): UnionNullNull|float|null {
16740- return UnionNullNull::sample(); /*237:topLevelNull*/
16825+ return UnionNullNull::sample(); /*238:topLevelNull*/
1674116826 }
1674216827
1674316828 /**
@@ -16813,7 +16898,7 @@ class TopLevel {
1681316898 * @return Nullptr|float|null
1681416899 */
1681516900 public static function sampleNullptr(): Nullptr|float|null {
16816- return Nullptr::sample(); /*238:nullptr*/
16901+ return Nullptr::sample(); /*239:nullptr*/
1681716902 }
1681816903
1681916904 /**
@@ -16889,7 +16974,7 @@ class TopLevel {
1688916974 * @return Number|float|null
1689016975 */
1689116976 public static function sampleNumber(): Number|float|null {
16892- return Number::sample(); /*239:number*/
16977+ return Number::sample(); /*240:number*/
1689316978 }
1689416979
1689516980 /**
@@ -16965,7 +17050,7 @@ class TopLevel {
1696517050 * @return ObjectClass|float|null
1696617051 */
1696717052 public static function sampleObject(): ObjectClass|float|null {
16968- return ObjectClass::sample(); /*240:object*/
17053+ return ObjectClass::sample(); /*241:object*/
1696917054 }
1697017055
1697117056 /**
@@ -17041,7 +17126,7 @@ class TopLevel {
1704117126 * @return ObjectMapper|float|null
1704217127 */
1704317128 public static function sampleObjectMapper(): ObjectMapper|float|null {
17044- return ObjectMapper::sample(); /*241:objectMapper*/
17129+ return ObjectMapper::sample(); /*242:objectMapper*/
1704517130 }
1704617131
1704717132 /**
@@ -17117,7 +17202,159 @@ class TopLevel {
1711717202 * @return Of|float|null
1711817203 */
1711917204 public static function sampleOf(): Of|float|null {
17120- return Of::sample(); /*242:of*/
17205+ return Of::sample(); /*243:of*/
17206+ }
17207+
17208+ /**
17209+ * @param stdClass|float|null $value
17210+ * @throws Exception
17211+ * @return OffsetDateTime|float|null
17212+ */
17213+ public static function fromOffsetDateTime(stdClass|float|null $value): OffsetDateTime|float|null {
17214+ if (is_null($value)) {
17215+ return $value; /*null*/
17216+ } elseif (is_object($value)) {
17217+ return OffsetDateTime::from($value); /*class*/
17218+ } elseif (is_float($value) || is_int($value)) {
17219+ return $value; /*float*/
17220+ } else {
17221+ throw new Exception('Cannot deserialize union value in TopLevel');
17222+ }
17223+ }
17224+
17225+ /**
17226+ * @throws Exception
17227+ * @return stdClass|float|null
17228+ */
17229+ public function toOffsetDateTime(): stdClass|float|null {
17230+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
17231+ if (is_null($this->offsetDateTime)) {
17232+ return $this->offsetDateTime; /*null*/
17233+ } elseif ($this->offsetDateTime instanceof OffsetDateTime) {
17234+ return $this->offsetDateTime->to(); /*class*/
17235+ } elseif (is_float($this->offsetDateTime) || is_int($this->offsetDateTime)) {
17236+ return $this->offsetDateTime; /*float*/
17237+ } else {
17238+ throw new Exception('Union value has no matching member in TopLevel');
17239+ }
17240+ }
17241+ throw new Exception('never get to this TopLevel::offsetDateTime');
17242+ }
17243+
17244+ /**
17245+ * @param OffsetDateTime|float|null
17246+ * @return bool
17247+ * @throws Exception
17248+ */
17249+ public static function validateOffsetDateTime(OffsetDateTime|float|null $value): bool {
17250+ if (is_null($value)) {
17251+ if (!is_null($value)) {
17252+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17253+ }
17254+ } elseif ($value instanceof OffsetDateTime) {
17255+ $value->validate();
17256+ } elseif (is_float($value) || is_int($value)) {
17257+ if (!is_float($value) && !is_int($value)) {
17258+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17259+ }
17260+ } else {
17261+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17262+ }
17263+ return true;
17264+ }
17265+
17266+ /**
17267+ * @throws Exception
17268+ * @return OffsetDateTime|float|null
17269+ */
17270+ public function getOffsetDateTime(): OffsetDateTime|float|null {
17271+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
17272+ return $this->offsetDateTime;
17273+ }
17274+ throw new Exception('never get to getOffsetDateTime TopLevel::offsetDateTime');
17275+ }
17276+
17277+ /**
17278+ * @return OffsetDateTime|float|null
17279+ */
17280+ public static function sampleOffsetDateTime(): OffsetDateTime|float|null {
17281+ return OffsetDateTime::sample(); /*244:offsetDateTime*/
17282+ }
17283+
17284+ /**
17285+ * @param stdClass|float|null $value
17286+ * @throws Exception
17287+ * @return OffsetTime|float|null
17288+ */
17289+ public static function fromOffsetTime(stdClass|float|null $value): OffsetTime|float|null {
17290+ if (is_null($value)) {
17291+ return $value; /*null*/
17292+ } elseif (is_object($value)) {
17293+ return OffsetTime::from($value); /*class*/
17294+ } elseif (is_float($value) || is_int($value)) {
17295+ return $value; /*float*/
17296+ } else {
17297+ throw new Exception('Cannot deserialize union value in TopLevel');
17298+ }
17299+ }
17300+
17301+ /**
17302+ * @throws Exception
17303+ * @return stdClass|float|null
17304+ */
17305+ public function toOffsetTime(): stdClass|float|null {
17306+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
17307+ if (is_null($this->offsetTime)) {
17308+ return $this->offsetTime; /*null*/
17309+ } elseif ($this->offsetTime instanceof OffsetTime) {
17310+ return $this->offsetTime->to(); /*class*/
17311+ } elseif (is_float($this->offsetTime) || is_int($this->offsetTime)) {
17312+ return $this->offsetTime; /*float*/
17313+ } else {
17314+ throw new Exception('Union value has no matching member in TopLevel');
17315+ }
17316+ }
17317+ throw new Exception('never get to this TopLevel::offsetTime');
17318+ }
17319+
17320+ /**
17321+ * @param OffsetTime|float|null
17322+ * @return bool
17323+ * @throws Exception
17324+ */
17325+ public static function validateOffsetTime(OffsetTime|float|null $value): bool {
17326+ if (is_null($value)) {
17327+ if (!is_null($value)) {
17328+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17329+ }
17330+ } elseif ($value instanceof OffsetTime) {
17331+ $value->validate();
17332+ } elseif (is_float($value) || is_int($value)) {
17333+ if (!is_float($value) && !is_int($value)) {
17334+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17335+ }
17336+ } else {
17337+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17338+ }
17339+ return true;
17340+ }
17341+
17342+ /**
17343+ * @throws Exception
17344+ * @return OffsetTime|float|null
17345+ */
17346+ public function getOffsetTime(): OffsetTime|float|null {
17347+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
17348+ return $this->offsetTime;
17349+ }
17350+ throw new Exception('never get to getOffsetTime TopLevel::offsetTime');
17351+ }
17352+
17353+ /**
17354+ * @return OffsetTime|float|null
17355+ */
17356+ public static function sampleOffsetTime(): OffsetTime|float|null {
17357+ return OffsetTime::sample(); /*245:offsetTime*/
1712117358 }
1712217359
1712317360 /**
@@ -17193,7 +17430,7 @@ class TopLevel {
1719317430 * @return Oneway|float|null
1719417431 */
1719517432 public static function sampleOneway(): Oneway|float|null {
17196- return Oneway::sample(); /*243:oneway*/
17433+ return Oneway::sample(); /*246:oneway*/
1719717434 }
1719817435
1719917436 /**
@@ -17269,7 +17506,7 @@ class TopLevel {
1726917506 * @return Open|float|null
1727017507 */
1727117508 public static function sampleOpen(): Open|float|null {
17272- return Open::sample(); /*244:open*/
17509+ return Open::sample(); /*247:open*/
1727317510 }
1727417511
1727517512 /**
@@ -17345,7 +17582,7 @@ class TopLevel {
1734517582 * @return Operator|float|null
1734617583 */
1734717584 public static function sampleOperator(): Operator|float|null {
17348- return Operator::sample(); /*245:operator*/
17585+ return Operator::sample(); /*248:operator*/
1734917586 }
1735017587
1735117588 /**
@@ -17421,7 +17658,7 @@ class TopLevel {
1742117658 * @return Optional|float|null
1742217659 */
1742317660 public static function sampleOptional(): Optional|float|null {
17424- return Optional::sample(); /*246:optional*/
17661+ return Optional::sample(); /*249:optional*/
1742517662 }
1742617663
1742717664 /**
@@ -17497,7 +17734,7 @@ class TopLevel {
1749717734 * @return OrClass|float|null
1749817735 */
1749917736 public static function sampleOr(): OrClass|float|null {
17500- return OrClass::sample(); /*247:or*/
17737+ return OrClass::sample(); /*250:or*/
1750117738 }
1750217739
1750317740 /**
@@ -17573,7 +17810,7 @@ class TopLevel {
1757317810 * @return OrEq|float|null
1757417811 */
1757517812 public static function sampleOrEq(): OrEq|float|null {
17576- return OrEq::sample(); /*248:orEq*/
17813+ return OrEq::sample(); /*251:orEq*/
1757717814 }
1757817815
1757917816 /**
@@ -17649,7 +17886,7 @@ class TopLevel {
1764917886 * @return Out|float|null
1765017887 */
1765117888 public static function sampleOut(): Out|float|null {
17652- return Out::sample(); /*249:out*/
17889+ return Out::sample(); /*252:out*/
1765317890 }
1765417891
1765517892 /**
@@ -17725,7 +17962,7 @@ class TopLevel {
1772517962 * @return OverrideClass|float|null
1772617963 */
1772717964 public static function sampleOverride(): OverrideClass|float|null {
17728- return OverrideClass::sample(); /*250:override*/
17965+ return OverrideClass::sample(); /*253:override*/
1772917966 }
1773017967
1773117968 /**
@@ -17801,7 +18038,7 @@ class TopLevel {
1780118038 * @return Package|float|null
1780218039 */
1780318040 public static function samplePackage(): Package|float|null {
17804- return Package::sample(); /*251:package*/
18041+ return Package::sample(); /*254:package*/
1780518042 }
1780618043
1780718044 /**
@@ -17877,7 +18114,7 @@ class TopLevel {
1787718114 * @return Params|float|null
1787818115 */
1787918116 public static function sampleParams(): Params|float|null {
17880- return Params::sample(); /*252:params*/
18117+ return Params::sample(); /*255:params*/
1788118118 }
1788218119
1788318120 /**
@@ -17953,7 +18190,7 @@ class TopLevel {
1795318190 * @return Pass|float|null
1795418191 */
1795518192 public static function samplePass(): Pass|float|null {
17956- return Pass::sample(); /*253:pass*/
18193+ return Pass::sample(); /*256:pass*/
1795718194 }
1795818195
1795918196 /**
@@ -18029,7 +18266,7 @@ class TopLevel {
1802918266 * @return Port|float|null
1803018267 */
1803118268 public static function samplePort(): Port|float|null {
18032- return Port::sample(); /*254:port*/
18269+ return Port::sample(); /*257:port*/
1803318270 }
1803418271
1803518272 /**
@@ -18105,7 +18342,7 @@ class TopLevel {
1810518342 * @return Postfix|float|null
1810618343 */
1810718344 public static function samplePostfix(): Postfix|float|null {
18108- return Postfix::sample(); /*255:postfix*/
18345+ return Postfix::sample(); /*258:postfix*/
1810918346 }
1811018347
1811118348 /**
@@ -18181,7 +18418,7 @@ class TopLevel {
1818118418 * @return Precedence|float|null
1818218419 */
1818318420 public static function samplePrecedence(): Precedence|float|null {
18184- return Precedence::sample(); /*256:precedence*/
18421+ return Precedence::sample(); /*259:precedence*/
1818518422 }
1818618423
1818718424 /**
@@ -18257,7 +18494,7 @@ class TopLevel {
1825718494 * @return Prefix|float|null
1825818495 */
1825918496 public static function samplePrefix(): Prefix|float|null {
18260- return Prefix::sample(); /*257:prefix*/
18497+ return Prefix::sample(); /*260:prefix*/
1826118498 }
1826218499
1826318500 /**
@@ -18333,7 +18570,7 @@ class TopLevel {
1833318570 * @return PrimitiveKind|float|null
1833418571 */
1833518572 public static function samplePrimitiveKind(): PrimitiveKind|float|null {
18336- return PrimitiveKind::sample(); /*258:primitiveKind*/
18573+ return PrimitiveKind::sample(); /*261:primitiveKind*/
1833718574 }
1833818575
1833918576 /**
@@ -18409,7 +18646,7 @@ class TopLevel {
1840918646 * @return PrintClass|float|null
1841018647 */
1841118648 public static function samplePrint(): PrintClass|float|null {
18412- return PrintClass::sample(); /*259:print*/
18649+ return PrintClass::sample(); /*262:print*/
1841318650 }
1841418651
1841518652 /**
@@ -18485,7 +18722,7 @@ class TopLevel {
1848518722 * @return Printf|float|null
1848618723 */
1848718724 public static function samplePrintf(): Printf|float|null {
18488- return Printf::sample(); /*260:printf*/
18725+ return Printf::sample(); /*263:printf*/
1848918726 }
1849018727
1849118728 /**
@@ -18561,7 +18798,7 @@ class TopLevel {
1856118798 * @return PrintMembers|float|null
1856218799 */
1856318800 public static function samplePrintMembers(): PrintMembers|float|null {
18564- return PrintMembers::sample(); /*261:printMembers*/
18801+ return PrintMembers::sample(); /*264:printMembers*/
1856518802 }
1856618803
1856718804 /**
@@ -18637,7 +18874,7 @@ class TopLevel {
1863718874 * @return PrivateClass|float|null
1863818875 */
1863918876 public static function samplePrivate(): PrivateClass|float|null {
18640- return PrivateClass::sample(); /*262:private*/
18877+ return PrivateClass::sample(); /*265:private*/
1864118878 }
1864218879
1864318880 /**
@@ -18713,7 +18950,7 @@ class TopLevel {
1871318950 * @return ProtectedClass|float|null
1871418951 */
1871518952 public static function sampleProtected(): ProtectedClass|float|null {
18716- return ProtectedClass::sample(); /*263:protected*/
18953+ return ProtectedClass::sample(); /*266:protected*/
1871718954 }
1871818955
1871918956 /**
@@ -18789,7 +19026,7 @@ class TopLevel {
1878919026 * @return Protocol|float|null
1879019027 */
1879119028 public static function sampleProtocol(): Protocol|float|null {
18792- return Protocol::sample(); /*264:protocol*/
19029+ return Protocol::sample(); /*267:protocol*/
1879319030 }
1879419031
1879519032 /**
@@ -18865,7 +19102,7 @@ class TopLevel {
1886519102 * @return ProtocolClass|float|null
1886619103 */
1886719104 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
18868- return ProtocolClass::sample(); /*265:topLevelProtocol*/
19105+ return ProtocolClass::sample(); /*268:topLevelProtocol*/
1886919106 }
1887019107
1887119108 /**
@@ -18941,7 +19178,7 @@ class TopLevel {
1894119178 * @return PublicClass|float|null
1894219179 */
1894319180 public static function samplePublic(): PublicClass|float|null {
18944- return PublicClass::sample(); /*266:public*/
19181+ return PublicClass::sample(); /*269:public*/
1894519182 }
1894619183
1894719184 /**
@@ -19017,7 +19254,7 @@ class TopLevel {
1901719254 * @return Quicktype|float|null
1901819255 */
1901919256 public static function sampleQuicktype(): Quicktype|float|null {
19020- return Quicktype::sample(); /*267:quicktype*/
19257+ return Quicktype::sample(); /*270:quicktype*/
1902119258 }
1902219259
1902319260 /**
@@ -19093,7 +19330,7 @@ class TopLevel {
1909319330 * @return Raise|float|null
1909419331 */
1909519332 public static function sampleRaise(): Raise|float|null {
19096- return Raise::sample(); /*268:raise*/
19333+ return Raise::sample(); /*271:raise*/
1909719334 }
1909819335
1909919336 /**
@@ -19169,7 +19406,7 @@ class TopLevel {
1916919406 * @return Range|float|null
1917019407 */
1917119408 public static function sampleRange(): Range|float|null {
19172- return Range::sample(); /*269:range*/
19409+ return Range::sample(); /*272:range*/
1917319410 }
1917419411
1917519412 /**
@@ -19245,7 +19482,7 @@ class TopLevel {
1924519482 * @return ReadonlyClass|float|null
1924619483 */
1924719484 public static function sampleReadonly(): ReadonlyClass|float|null {
19248- return ReadonlyClass::sample(); /*270:readonly*/
19485+ return ReadonlyClass::sample(); /*273:readonly*/
1924919486 }
1925019487
1925119488 /**
@@ -19321,7 +19558,7 @@ class TopLevel {
1932119558 * @return Ref|float|null
1932219559 */
1932319560 public static function sampleRef(): Ref|float|null {
19324- return Ref::sample(); /*271:ref*/
19561+ return Ref::sample(); /*274:ref*/
1932519562 }
1932619563
1932719564 /**
@@ -19397,7 +19634,7 @@ class TopLevel {
1939719634 * @return RegExp|float|null
1939819635 */
1939919636 public static function sampleRegExp(): RegExp|float|null {
19400- return RegExp::sample(); /*272:regExp*/
19637+ return RegExp::sample(); /*275:regExp*/
1940119638 }
1940219639
1940319640 /**
@@ -19473,7 +19710,7 @@ class TopLevel {
1947319710 * @return Register|float|null
1947419711 */
1947519712 public static function sampleRegister(): Register|float|null {
19476- return Register::sample(); /*273:register*/
19713+ return Register::sample(); /*276:register*/
1947719714 }
1947819715
1947919716 /**
@@ -19549,7 +19786,7 @@ class TopLevel {
1954919786 * @return ReinterpretCast|float|null
1955019787 */
1955119788 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
19552- return ReinterpretCast::sample(); /*274:reinterpretCast*/
19789+ return ReinterpretCast::sample(); /*277:reinterpretCast*/
1955319790 }
1955419791
1955519792 /**
@@ -19625,7 +19862,7 @@ class TopLevel {
1962519862 * @return Repeat|float|null
1962619863 */
1962719864 public static function sampleRepeat(): Repeat|float|null {
19628- return Repeat::sample(); /*275:repeat*/
19865+ return Repeat::sample(); /*278:repeat*/
1962919866 }
1963019867
1963119868 /**
@@ -19701,7 +19938,7 @@ class TopLevel {
1970119938 * @return RequireClass|float|null
1970219939 */
1970319940 public static function sampleRequire(): RequireClass|float|null {
19704- return RequireClass::sample(); /*276:require*/
19941+ return RequireClass::sample(); /*279:require*/
1970519942 }
1970619943
1970719944 /**
@@ -19777,7 +20014,7 @@ class TopLevel {
1977720014 * @return Required|float|null
1977820015 */
1977920016 public static function sampleRequired(): Required|float|null {
19780- return Required::sample(); /*277:required*/
20017+ return Required::sample(); /*280:required*/
1978120018 }
1978220019
1978320020 /**
@@ -19853,7 +20090,7 @@ class TopLevel {
1985320090 * @return Requires|float|null
1985420091 */
1985520092 public static function sampleRequires(): Requires|float|null {
19856- return Requires::sample(); /*278:requires*/
20093+ return Requires::sample(); /*281:requires*/
1985720094 }
1985820095
1985920096 /**
@@ -19929,7 +20166,7 @@ class TopLevel {
1992920166 * @return Restrict|float|null
1993020167 */
1993120168 public static function sampleRestrict(): Restrict|float|null {
19932- return Restrict::sample(); /*279:restrict*/
20169+ return Restrict::sample(); /*282:restrict*/
1993320170 }
1993420171
1993520172 /**
@@ -20005,7 +20242,7 @@ class TopLevel {
2000520242 * @return Retain|float|null
2000620243 */
2000720244 public static function sampleRetain(): Retain|float|null {
20008- return Retain::sample(); /*280:retain*/
20245+ return Retain::sample(); /*283:retain*/
2000920246 }
2001020247
2001120248 /**
@@ -20081,7 +20318,7 @@ class TopLevel {
2008120318 * @return Rethrows|float|null
2008220319 */
2008320320 public static function sampleRethrows(): Rethrows|float|null {
20084- return Rethrows::sample(); /*281:rethrows*/
20321+ return Rethrows::sample(); /*284:rethrows*/
2008520322 }
2008620323
2008720324 /**
@@ -20157,7 +20394,7 @@ class TopLevel {
2015720394 * @return ReturnClass|float|null
2015820395 */
2015920396 public static function sampleReturn(): ReturnClass|float|null {
20160- return ReturnClass::sample(); /*282:return*/
20397+ return ReturnClass::sample(); /*285:return*/
2016120398 }
2016220399
2016320400 /**
@@ -20233,7 +20470,7 @@ class TopLevel {
2023320470 * @return Right|float|null
2023420471 */
2023520472 public static function sampleRight(): Right|float|null {
20236- return Right::sample(); /*283:right*/
20473+ return Right::sample(); /*286:right*/
2023720474 }
2023820475
2023920476 /**
@@ -20309,7 +20546,7 @@ class TopLevel {
2030920546 * @return RuntimeType|float|null
2031020547 */
2031120548 public static function sampleRuntimeType(): RuntimeType|float|null {
20312- return RuntimeType::sample(); /*284:runtimeType*/
20549+ return RuntimeType::sample(); /*287:runtimeType*/
2031320550 }
2031420551
2031520552 /**
@@ -20385,7 +20622,7 @@ class TopLevel {
2038520622 * @return S|float|null
2038620623 */
2038720624 public static function sampleS(): S|float|null {
20388- return S::sample(); /*285:s*/
20625+ return S::sample(); /*288:s*/
2038920626 }
2039020627
2039120628 /**
@@ -20461,7 +20698,7 @@ class TopLevel {
2046120698 * @return Sbyte|float|null
2046220699 */
2046320700 public static function sampleSbyte(): Sbyte|float|null {
20464- return Sbyte::sample(); /*286:sbyte*/
20701+ return Sbyte::sample(); /*289:sbyte*/
2046520702 }
2046620703
2046720704 /**
@@ -20537,7 +20774,7 @@ class TopLevel {
2053720774 * @return Sealed|float|null
2053820775 */
2053920776 public static function sampleSealed(): Sealed|float|null {
20540- return Sealed::sample(); /*287:sealed*/
20777+ return Sealed::sample(); /*290:sealed*/
2054120778 }
2054220779
2054320780 /**
@@ -20613,7 +20850,7 @@ class TopLevel {
2061320850 * @return Sel|float|null
2061420851 */
2061520852 public static function sampleSel(): Sel|float|null {
20616- return Sel::sample(); /*288:sel*/
20853+ return Sel::sample(); /*291:sel*/
2061720854 }
2061820855
2061920856 /**
@@ -20689,7 +20926,7 @@ class TopLevel {
2068920926 * @return Select|float|null
2069020927 */
2069120928 public static function sampleSelect(): Select|float|null {
20692- return Select::sample(); /*289:select*/
20929+ return Select::sample(); /*292:select*/
2069320930 }
2069420931
2069520932 /**
@@ -20765,7 +21002,7 @@ class TopLevel {
2076521002 * @return SelfClass|float|null
2076621003 */
2076721004 public static function sampleSelf(): SelfClass|float|null {
20768- return SelfClass::sample(); /*290:self*/
21005+ return SelfClass::sample(); /*293:self*/
2076921006 }
2077021007
2077121008 /**
@@ -20841,7 +21078,7 @@ class TopLevel {
2084121078 * @return UnionSelfSelf|float|null
2084221079 */
2084321080 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
20844- return UnionSelfSelf::sample(); /*291:topLevelSelf*/
21081+ return UnionSelfSelf::sample(); /*294:topLevelSelf*/
2084521082 }
2084621083
2084721084 /**
@@ -20917,7 +21154,7 @@ class TopLevel {
2091721154 * @return Sendable|float|null
2091821155 */
2091921156 public static function sampleSendable(): Sendable|float|null {
20920- return Sendable::sample(); /*292:sendable*/
21157+ return Sendable::sample(); /*295:sendable*/
2092121158 }
2092221159
2092321160 /**
@@ -20993,7 +21230,7 @@ class TopLevel {
2099321230 * @return SerialDescriptor|float|null
2099421231 */
2099521232 public static function sampleSerialDescriptor(): SerialDescriptor|float|null {
20996- return SerialDescriptor::sample(); /*293:serialDescriptor*/
21233+ return SerialDescriptor::sample(); /*296:serialDescriptor*/
2099721234 }
2099821235
2099921236 /**
@@ -21069,7 +21306,7 @@ class TopLevel {
2106921306 * @return SerializableClass|float|null
2107021307 */
2107121308 public static function sampleSerializable(): SerializableClass|float|null {
21072- return SerializableClass::sample(); /*294:serializable*/
21309+ return SerializableClass::sample(); /*297:serializable*/
2107321310 }
2107421311
2107521312 /**
@@ -21145,7 +21382,7 @@ class TopLevel {
2114521382 * @return Serialize|float|null
2114621383 */
2114721384 public static function sampleSerialize(): Serialize|float|null {
21148- return Serialize::sample(); /*295:serialize*/
21385+ return Serialize::sample(); /*298:serialize*/
2114921386 }
2115021387
2115121388 /**
@@ -21221,7 +21458,7 @@ class TopLevel {
2122121458 * @return SerializerProvider|float|null
2122221459 */
2122321460 public static function sampleSerializerProvider(): SerializerProvider|float|null {
21224- return SerializerProvider::sample(); /*296:serializerProvider*/
21461+ return SerializerProvider::sample(); /*299:serializerProvider*/
2122521462 }
2122621463
2122721464 /**
@@ -21297,7 +21534,7 @@ class TopLevel {
2129721534 * @return SerialName|float|null
2129821535 */
2129921536 public static function sampleSerialName(): SerialName|float|null {
21300- return SerialName::sample(); /*297:serialName*/
21537+ return SerialName::sample(); /*300:serialName*/
2130121538 }
2130221539
2130321540 /**
@@ -21373,7 +21610,7 @@ class TopLevel {
2137321610 * @return Set|float|null
2137421611 */
2137521612 public static function sampleSet(): Set|float|null {
21376- return Set::sample(); /*298:set*/
21613+ return Set::sample(); /*301:set*/
2137721614 }
2137821615
2137921616 /**
@@ -21449,7 +21686,7 @@ class TopLevel {
2144921686 * @return Short|float|null
2145021687 */
2145121688 public static function sampleShort(): Short|float|null {
21452- return Short::sample(); /*299:short*/
21689+ return Short::sample(); /*302:short*/
2145321690 }
2145421691
2145521692 /**
@@ -21525,7 +21762,7 @@ class TopLevel {
2152521762 * @return Signed|float|null
2152621763 */
2152721764 public static function sampleSigned(): Signed|float|null {
21528- return Signed::sample(); /*300:signed*/
21765+ return Signed::sample(); /*303:signed*/
2152921766 }
2153021767
2153121768 /**
@@ -21601,7 +21838,7 @@ class TopLevel {
2160121838 * @return SimpleModule|float|null
2160221839 */
2160321840 public static function sampleSimpleModule(): SimpleModule|float|null {
21604- return SimpleModule::sample(); /*301:simpleModule*/
21841+ return SimpleModule::sample(); /*304:simpleModule*/
2160521842 }
2160621843
2160721844 /**
@@ -21677,7 +21914,7 @@ class TopLevel {
2167721914 * @return Sizeof|float|null
2167821915 */
2167921916 public static function sampleSizeof(): Sizeof|float|null {
21680- return Sizeof::sample(); /*302:sizeof*/
21917+ return Sizeof::sample(); /*305:sizeof*/
2168121918 }
2168221919
2168321920 /**
@@ -21753,7 +21990,7 @@ class TopLevel {
2175321990 * @return Stackalloc|float|null
2175421991 */
2175521992 public static function sampleStackalloc(): Stackalloc|float|null {
21756- return Stackalloc::sample(); /*303:stackalloc*/
21993+ return Stackalloc::sample(); /*306:stackalloc*/
2175721994 }
2175821995
2175921996 /**
@@ -21829,7 +22066,7 @@ class TopLevel {
2182922066 * @return Standards|float|null
2183022067 */
2183122068 public static function sampleStandards(): Standards|float|null {
21832- return Standards::sample(); /*304:standards*/
22069+ return Standards::sample(); /*307:standards*/
2183322070 }
2183422071
2183522072 /**
@@ -21905,7 +22142,7 @@ class TopLevel {
2190522142 * @return StaticClass|float|null
2190622143 */
2190722144 public static function sampleStatic(): StaticClass|float|null {
21908- return StaticClass::sample(); /*305:static*/
22145+ return StaticClass::sample(); /*308:static*/
2190922146 }
2191022147
2191122148 /**
@@ -21981,7 +22218,7 @@ class TopLevel {
2198122218 * @return StaticAssert|float|null
2198222219 */
2198322220 public static function sampleStaticAssert(): StaticAssert|float|null {
21984- return StaticAssert::sample(); /*306:staticAssert*/
22221+ return StaticAssert::sample(); /*309:staticAssert*/
2198522222 }
2198622223
2198722224 /**
@@ -22057,7 +22294,7 @@ class TopLevel {
2205722294 * @return StaticCast|float|null
2205822295 */
2205922296 public static function sampleStaticCast(): StaticCast|float|null {
22060- return StaticCast::sample(); /*307:staticCast*/
22297+ return StaticCast::sample(); /*310:staticCast*/
2206122298 }
2206222299
2206322300 /**
@@ -22133,7 +22370,7 @@ class TopLevel {
2213322370 * @return StdDeserializer|float|null
2213422371 */
2213522372 public static function sampleStdDeserializer(): StdDeserializer|float|null {
22136- return StdDeserializer::sample(); /*308:stdDeserializer*/
22373+ return StdDeserializer::sample(); /*311:stdDeserializer*/
2213722374 }
2213822375
2213922376 /**
@@ -22209,7 +22446,7 @@ class TopLevel {
2220922446 * @return StdSerializer|float|null
2221022447 */
2221122448 public static function sampleStdSerializer(): StdSerializer|float|null {
22212- return StdSerializer::sample(); /*309:stdSerializer*/
22449+ return StdSerializer::sample(); /*312:stdSerializer*/
2221322450 }
2221422451
2221522452 /**
@@ -22285,7 +22522,7 @@ class TopLevel {
2228522522 * @return Strictfp|float|null
2228622523 */
2228722524 public static function sampleStrictfp(): Strictfp|float|null {
22288- return Strictfp::sample(); /*310:strictfp*/
22525+ return Strictfp::sample(); /*313:strictfp*/
2228922526 }
2229022527
2229122528 /**
@@ -22361,7 +22598,7 @@ class TopLevel {
2236122598 * @return StringClass|float|null
2236222599 */
2236322600 public static function sampleString(): StringClass|float|null {
22364- return StringClass::sample(); /*311:string*/
22601+ return StringClass::sample(); /*314:string*/
2236522602 }
2236622603
2236722604 /**
@@ -22437,7 +22674,7 @@ class TopLevel {
2243722674 * @return Struct|float|null
2243822675 */
2243922676 public static function sampleStruct(): Struct|float|null {
22440- return Struct::sample(); /*312:struct*/
22677+ return Struct::sample(); /*315:struct*/
2244122678 }
2244222679
2244322680 /**
@@ -22513,7 +22750,7 @@ class TopLevel {
2251322750 * @return Subscript|float|null
2251422751 */
2251522752 public static function sampleSubscript(): Subscript|float|null {
22516- return Subscript::sample(); /*313:subscript*/
22753+ return Subscript::sample(); /*316:subscript*/
2251722754 }
2251822755
2251922756 /**
@@ -22589,7 +22826,7 @@ class TopLevel {
2258922826 * @return Super|float|null
2259022827 */
2259122828 public static function sampleSuper(): Super|float|null {
22592- return Super::sample(); /*314:super*/
22829+ return Super::sample(); /*317:super*/
2259322830 }
2259422831
2259522832 /**
@@ -22665,7 +22902,7 @@ class TopLevel {
2266522902 * @return SwitchClass|float|null
2266622903 */
2266722904 public static function sampleSwitch(): SwitchClass|float|null {
22668- return SwitchClass::sample(); /*315:switch*/
22905+ return SwitchClass::sample(); /*318:switch*/
2266922906 }
2267022907
2267122908 /**
@@ -22741,7 +22978,7 @@ class TopLevel {
2274122978 * @return Symbol|float|null
2274222979 */
2274322980 public static function sampleSymbol(): Symbol|float|null {
22744- return Symbol::sample(); /*316:symbol*/
22981+ return Symbol::sample(); /*319:symbol*/
2274522982 }
2274622983
2274722984 /**
@@ -22817,7 +23054,7 @@ class TopLevel {
2281723054 * @return Synchronized|float|null
2281823055 */
2281923056 public static function sampleSynchronized(): Synchronized|float|null {
22820- return Synchronized::sample(); /*317:synchronized*/
23057+ return Synchronized::sample(); /*320:synchronized*/
2282123058 }
2282223059
2282323060 /**
@@ -22893,7 +23130,7 @@ class TopLevel {
2289323130 * @return System|float|null
2289423131 */
2289523132 public static function sampleSystem(): System|float|null {
22896- return System::sample(); /*318:system*/
23133+ return System::sample(); /*321:system*/
2289723134 }
2289823135
2289923136 /**
@@ -22969,7 +23206,7 @@ class TopLevel {
2296923206 * @return Template|float|null
2297023207 */
2297123208 public static function sampleTemplate(): Template|float|null {
22972- return Template::sample(); /*319:template*/
23209+ return Template::sample(); /*322:template*/
2297323210 }
2297423211
2297523212 /**
@@ -23045,7 +23282,7 @@ class TopLevel {
2304523282 * @return Then|float|null
2304623283 */
2304723284 public static function sampleThen(): Then|float|null {
23048- return Then::sample(); /*320:then*/
23285+ return Then::sample(); /*323:then*/
2304923286 }
2305023287
2305123288 /**
@@ -23121,7 +23358,7 @@ class TopLevel {
2312123358 * @return This|float|null
2312223359 */
2312323360 public static function sampleTopLevelThis(): This|float|null {
23124- return This::sample(); /*321:topLevelThis*/
23361+ return This::sample(); /*324:topLevelThis*/
2312523362 }
2312623363
2312723364 /**
@@ -23197,7 +23434,7 @@ class TopLevel {
2319723434 * @return ThreadLocal|float|null
2319823435 */
2319923436 public static function sampleThreadLocal(): ThreadLocal|float|null {
23200- return ThreadLocal::sample(); /*322:threadLocal*/
23437+ return ThreadLocal::sample(); /*325:threadLocal*/
2320123438 }
2320223439
2320323440 /**
@@ -23273,7 +23510,7 @@ class TopLevel {
2327323510 * @return ThrowClass|float|null
2327423511 */
2327523512 public static function sampleThrow(): ThrowClass|float|null {
23276- return ThrowClass::sample(); /*323:throw*/
23513+ return ThrowClass::sample(); /*326:throw*/
2327723514 }
2327823515
2327923516 /**
@@ -23349,7 +23586,7 @@ class TopLevel {
2334923586 * @return Throws|float|null
2335023587 */
2335123588 public static function sampleThrows(): Throws|float|null {
23352- return Throws::sample(); /*324:throws*/
23589+ return Throws::sample(); /*327:throws*/
2335323590 }
2335423591
2335523592 /**
@@ -23425,7 +23662,7 @@ class TopLevel {
2342523662 * @return TimeOnly|float|null
2342623663 */
2342723664 public static function sampleTimeOnly(): TimeOnly|float|null {
23428- return TimeOnly::sample(); /*325:timeOnly*/
23665+ return TimeOnly::sample(); /*328:timeOnly*/
2342923666 }
2343023667
2343123668 /**
@@ -23501,7 +23738,7 @@ class TopLevel {
2350123738 * @return TimeOnlyConverter|float|null
2350223739 */
2350323740 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
23504- return TimeOnlyConverter::sample(); /*326:timeOnlyConverter*/
23741+ return TimeOnlyConverter::sample(); /*329:timeOnlyConverter*/
2350523742 }
2350623743
2350723744 /**
@@ -23577,7 +23814,7 @@ class TopLevel {
2357723814 * @return TimeZone|float|null
2357823815 */
2357923816 public static function sampleTimeZone(): TimeZone|float|null {
23580- return TimeZone::sample(); /*327:timeZone*/
23817+ return TimeZone::sample(); /*330:timeZone*/
2358123818 }
2358223819
2358323820 /**
@@ -23653,7 +23890,7 @@ class TopLevel {
2365323890 * @return ToJSON|float|null
2365423891 */
2365523892 public static function sampleToJSON(): ToJSON|float|null {
23656- return ToJSON::sample(); /*328:toJSON*/
23893+ return ToJSON::sample(); /*331:toJSON*/
2365723894 }
2365823895
2365923896 /**
@@ -23729,7 +23966,7 @@ class TopLevel {
2372923966 * @return TopLevelClass|float|null
2373023967 */
2373123968 public static function sampleTopLevel(): TopLevelClass|float|null {
23732- return TopLevelClass::sample(); /*329:topLevel*/
23969+ return TopLevelClass::sample(); /*332:topLevel*/
2373323970 }
2373423971
2373523972 /**
@@ -23805,7 +24042,7 @@ class TopLevel {
2380524042 * @return ToString|float|null
2380624043 */
2380724044 public static function sampleToString(): ToString|float|null {
23808- return ToString::sample(); /*330:toString*/
24045+ return ToString::sample(); /*333:toString*/
2380924046 }
2381024047
2381124048 /**
@@ -23881,7 +24118,7 @@ class TopLevel {
2388124118 * @return Transient|float|null
2388224119 */
2388324120 public static function sampleTransient(): Transient|float|null {
23884- return Transient::sample(); /*331:transient*/
24121+ return Transient::sample(); /*334:transient*/
2388524122 }
2388624123
2388724124 /**
@@ -23957,7 +24194,7 @@ class TopLevel {
2395724194 * @return TrueClass|float|null
2395824195 */
2395924196 public static function sampleTrue(): TrueClass|float|null {
23960- return TrueClass::sample(); /*332:true*/
24197+ return TrueClass::sample(); /*335:true*/
2396124198 }
2396224199
2396324200 /**
@@ -24033,7 +24270,7 @@ class TopLevel {
2403324270 * @return UnionTrueTrue|float|null
2403424271 */
2403524272 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
24036- return UnionTrueTrue::sample(); /*333:topLevelTrue*/
24273+ return UnionTrueTrue::sample(); /*336:topLevelTrue*/
2403724274 }
2403824275
2403924276 /**
@@ -24109,7 +24346,7 @@ class TopLevel {
2410924346 * @return TryClass|float|null
2411024347 */
2411124348 public static function sampleTry(): TryClass|float|null {
24112- return TryClass::sample(); /*334:try*/
24349+ return TryClass::sample(); /*337:try*/
2411324350 }
2411424351
2411524352 /**
@@ -24185,7 +24422,7 @@ class TopLevel {
2418524422 * @return Type|float|null
2418624423 */
2418724424 public static function sampleType(): Type|float|null {
24188- return Type::sample(); /*335:type*/
24425+ return Type::sample(); /*338:type*/
2418924426 }
2419024427
2419124428 /**
@@ -24261,7 +24498,7 @@ class TopLevel {
2426124498 * @return TypeClass|float|null
2426224499 */
2426324500 public static function sampleTopLevelType(): TypeClass|float|null {
24264- return TypeClass::sample(); /*336:topLevelType*/
24501+ return TypeClass::sample(); /*339:topLevelType*/
2426524502 }
2426624503
2426724504 /**
@@ -24337,7 +24574,7 @@ class TopLevel {
2433724574 * @return Typealias|float|null
2433824575 */
2433924576 public static function sampleTypealias(): Typealias|float|null {
24340- return Typealias::sample(); /*337:typealias*/
24577+ return Typealias::sample(); /*340:typealias*/
2434124578 }
2434224579
2434324580 /**
@@ -24413,7 +24650,7 @@ class TopLevel {
2441324650 * @return Typedef|float|null
2441424651 */
2441524652 public static function sampleTypedef(): Typedef|float|null {
24416- return Typedef::sample(); /*338:typedef*/
24653+ return Typedef::sample(); /*341:typedef*/
2441724654 }
2441824655
2441924656 /**
@@ -24489,7 +24726,7 @@ class TopLevel {
2448924726 * @return Typeid|float|null
2449024727 */
2449124728 public static function sampleTypeid(): Typeid|float|null {
24492- return Typeid::sample(); /*339:typeid*/
24729+ return Typeid::sample(); /*342:typeid*/
2449324730 }
2449424731
2449524732 /**
@@ -24565,7 +24802,7 @@ class TopLevel {
2456524802 * @return Typename|float|null
2456624803 */
2456724804 public static function sampleTypename(): Typename|float|null {
24568- return Typename::sample(); /*340:typename*/
24805+ return Typename::sample(); /*343:typename*/
2456924806 }
2457024807
2457124808 /**
@@ -24641,7 +24878,7 @@ class TopLevel {
2464124878 * @return Typeof|float|null
2464224879 */
2464324880 public static function sampleTypeof(): Typeof|float|null {
24644- return Typeof::sample(); /*341:typeof*/
24881+ return Typeof::sample(); /*344:typeof*/
2464524882 }
2464624883
2464724884 /**
@@ -24717,7 +24954,7 @@ class TopLevel {
2471724954 * @return Uint|float|null
2471824955 */
2471924956 public static function sampleUint(): Uint|float|null {
24720- return Uint::sample(); /*342:uint*/
24957+ return Uint::sample(); /*345:uint*/
2472124958 }
2472224959
2472324960 /**
@@ -24793,7 +25030,7 @@ class TopLevel {
2479325030 * @return Ulong|float|null
2479425031 */
2479525032 public static function sampleUlong(): Ulong|float|null {
24796- return Ulong::sample(); /*343:ulong*/
25033+ return Ulong::sample(); /*346:ulong*/
2479725034 }
2479825035
2479925036 /**
@@ -24869,7 +25106,7 @@ class TopLevel {
2486925106 * @return Unchecked|float|null
2487025107 */
2487125108 public static function sampleUnchecked(): Unchecked|float|null {
24872- return Unchecked::sample(); /*344:unchecked*/
25109+ return Unchecked::sample(); /*347:unchecked*/
2487325110 }
2487425111
2487525112 /**
@@ -24945,7 +25182,7 @@ class TopLevel {
2494525182 * @return Undefined|float|null
2494625183 */
2494725184 public static function sampleUndefined(): Undefined|float|null {
24948- return Undefined::sample(); /*345:undefined*/
25185+ return Undefined::sample(); /*348:undefined*/
2494925186 }
2495025187
2495125188 /**
@@ -25021,7 +25258,7 @@ class TopLevel {
2502125258 * @return UnionClass|float|null
2502225259 */
2502325260 public static function sampleUnion(): UnionClass|float|null {
25024- return UnionClass::sample(); /*346:union*/
25261+ return UnionClass::sample(); /*349:union*/
2502525262 }
2502625263
2502725264 /**
@@ -25097,7 +25334,7 @@ class TopLevel {
2509725334 * @return Unowned|float|null
2509825335 */
2509925336 public static function sampleUnowned(): Unowned|float|null {
25100- return Unowned::sample(); /*347:unowned*/
25337+ return Unowned::sample(); /*350:unowned*/
2510125338 }
2510225339
2510325340 /**
@@ -25173,7 +25410,7 @@ class TopLevel {
2517325410 * @return Unsafe|float|null
2517425411 */
2517525412 public static function sampleUnsafe(): Unsafe|float|null {
25176- return Unsafe::sample(); /*348:unsafe*/
25413+ return Unsafe::sample(); /*351:unsafe*/
2517725414 }
2517825415
2517925416 /**
@@ -25249,7 +25486,7 @@ class TopLevel {
2524925486 * @return Unsigned|float|null
2525025487 */
2525125488 public static function sampleUnsigned(): Unsigned|float|null {
25252- return Unsigned::sample(); /*349:unsigned*/
25489+ return Unsigned::sample(); /*352:unsigned*/
2525325490 }
2525425491
2525525492 /**
@@ -25325,7 +25562,7 @@ class TopLevel {
2532525562 * @return UseSerializers|float|null
2532625563 */
2532725564 public static function sampleUseSerializers(): UseSerializers|float|null {
25328- return UseSerializers::sample(); /*350:useSerializers*/
25565+ return UseSerializers::sample(); /*353:useSerializers*/
2532925566 }
2533025567
2533125568 /**
@@ -25401,7 +25638,7 @@ class TopLevel {
2540125638 * @return Ushort|float|null
2540225639 */
2540325640 public static function sampleUshort(): Ushort|float|null {
25404- return Ushort::sample(); /*351:ushort*/
25641+ return Ushort::sample(); /*354:ushort*/
2540525642 }
2540625643
2540725644 /**
@@ -25477,7 +25714,7 @@ class TopLevel {
2547725714 * @return Using|float|null
2547825715 */
2547925716 public static function sampleUsing(): Using|float|null {
25480- return Using::sample(); /*352:using*/
25717+ return Using::sample(); /*355:using*/
2548125718 }
2548225719
2548325720 /**
@@ -25553,7 +25790,7 @@ class TopLevel {
2555325790 * @return Utf8JSONReader|float|null
2555425791 */
2555525792 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
25556- return Utf8JSONReader::sample(); /*353:utf8JSONReader*/
25793+ return Utf8JSONReader::sample(); /*356:utf8JSONReader*/
2555725794 }
2555825795
2555925796 /**
@@ -25629,7 +25866,7 @@ class TopLevel {
2562925866 * @return Utf8JSONWriter|float|null
2563025867 */
2563125868 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
25632- return Utf8JSONWriter::sample(); /*354:utf8JSONWriter*/
25869+ return Utf8JSONWriter::sample(); /*357:utf8JSONWriter*/
2563325870 }
2563425871
2563525872 /**
@@ -25705,7 +25942,7 @@ class TopLevel {
2570525942 * @return UUID|float|null
2570625943 */
2570725944 public static function sampleUUID(): UUID|float|null {
25708- return UUID::sample(); /*355:uuid*/
25945+ return UUID::sample(); /*358:uuid*/
2570925946 }
2571025947
2571125948 /**
@@ -25781,7 +26018,7 @@ class TopLevel {
2578126018 * @return VarClass|float|null
2578226019 */
2578326020 public static function sampleVar(): VarClass|float|null {
25784- return VarClass::sample(); /*356:var*/
26021+ return VarClass::sample(); /*359:var*/
2578526022 }
2578626023
2578726024 /**
@@ -25857,7 +26094,7 @@ class TopLevel {
2585726094 * @return Virtual|float|null
2585826095 */
2585926096 public static function sampleVirtual(): Virtual|float|null {
25860- return Virtual::sample(); /*357:virtual*/
26097+ return Virtual::sample(); /*360:virtual*/
2586126098 }
2586226099
2586326100 /**
@@ -25933,7 +26170,7 @@ class TopLevel {
2593326170 * @return VoidClass|float|null
2593426171 */
2593526172 public static function sampleVoid(): VoidClass|float|null {
25936- return VoidClass::sample(); /*358:void*/
26173+ return VoidClass::sample(); /*361:void*/
2593726174 }
2593826175
2593926176 /**
@@ -26009,7 +26246,7 @@ class TopLevel {
2600926246 * @return Volatile|float|null
2601026247 */
2601126248 public static function sampleVolatile(): Volatile|float|null {
26012- return Volatile::sample(); /*359:volatile*/
26249+ return Volatile::sample(); /*362:volatile*/
2601326250 }
2601426251
2601526252 /**
@@ -26085,7 +26322,7 @@ class TopLevel {
2608526322 * @return WcharT|float|null
2608626323 */
2608726324 public static function sampleWcharT(): WcharT|float|null {
26088- return WcharT::sample(); /*360:wcharT*/
26325+ return WcharT::sample(); /*363:wcharT*/
2608926326 }
2609026327
2609126328 /**
@@ -26161,7 +26398,7 @@ class TopLevel {
2616126398 * @return Weak|float|null
2616226399 */
2616326400 public static function sampleWeak(): Weak|float|null {
26164- return Weak::sample(); /*361:weak*/
26401+ return Weak::sample(); /*364:weak*/
2616526402 }
2616626403
2616726404 /**
@@ -26237,7 +26474,7 @@ class TopLevel {
2623726474 * @return Where|float|null
2623826475 */
2623926476 public static function sampleWhere(): Where|float|null {
26240- return Where::sample(); /*362:where*/
26477+ return Where::sample(); /*365:where*/
2624126478 }
2624226479
2624326480 /**
@@ -26313,7 +26550,7 @@ class TopLevel {
2631326550 * @return WhileClass|float|null
2631426551 */
2631526552 public static function sampleWhile(): WhileClass|float|null {
26316- return WhileClass::sample(); /*363:while*/
26553+ return WhileClass::sample(); /*366:while*/
2631726554 }
2631826555
2631926556 /**
@@ -26389,7 +26626,7 @@ class TopLevel {
2638926626 * @return WillSet|float|null
2639026627 */
2639126628 public static function sampleWillSet(): WillSet|float|null {
26392- return WillSet::sample(); /*364:willSet*/
26629+ return WillSet::sample(); /*367:willSet*/
2639326630 }
2639426631
2639526632 /**
@@ -26465,7 +26702,7 @@ class TopLevel {
2646526702 * @return With|float|null
2646626703 */
2646726704 public static function sampleWith(): With|float|null {
26468- return With::sample(); /*365:with*/
26705+ return With::sample(); /*368:with*/
2646926706 }
2647026707
2647126708 /**
@@ -26541,7 +26778,7 @@ class TopLevel {
2654126778 * @return XorClass|float|null
2654226779 */
2654326780 public static function sampleXor(): XorClass|float|null {
26544- return XorClass::sample(); /*366:xor*/
26781+ return XorClass::sample(); /*369:xor*/
2654526782 }
2654626783
2654726784 /**
@@ -26617,7 +26854,7 @@ class TopLevel {
2661726854 * @return XorEq|float|null
2661826855 */
2661926856 public static function sampleXorEq(): XorEq|float|null {
26620- return XorEq::sample(); /*367:xorEq*/
26857+ return XorEq::sample(); /*370:xorEq*/
2662126858 }
2662226859
2662326860 /**
@@ -26693,7 +26930,7 @@ class TopLevel {
2669326930 * @return Yes|float|null
2669426931 */
2669526932 public static function sampleYes(): Yes|float|null {
26696- return Yes::sample(); /*368:yes*/
26933+ return Yes::sample(); /*371:yes*/
2669726934 }
2669826935
2669926936 /**
@@ -26769,7 +27006,7 @@ class TopLevel {
2676927006 * @return YieldClass|float|null
2677027007 */
2677127008 public static function sampleYield(): YieldClass|float|null {
26772- return YieldClass::sample(); /*369:yield*/
27009+ return YieldClass::sample(); /*372:yield*/
2677327010 }
2677427011
2677527012 /**
@@ -26955,6 +27192,7 @@ class TopLevel {
2695527192 || TopLevel::validateLeft($this->left)
2695627193 || TopLevel::validateLet($this->let)
2695727194 || TopLevel::validateList($this->list)
27195+ || TopLevel::validateLocalDate($this->localDate)
2695827196 || TopLevel::validateLocale($this->locale)
2695927197 || TopLevel::validateLock($this->lock)
2696027198 || TopLevel::validateLong($this->long)
@@ -26989,6 +27227,8 @@ class TopLevel {
2698927227 || TopLevel::validateObject($this->object)
2699027228 || TopLevel::validateObjectMapper($this->objectMapper)
2699127229 || TopLevel::validateOf($this->of)
27230+ || TopLevel::validateOffsetDateTime($this->offsetDateTime)
27231+ || TopLevel::validateOffsetTime($this->offsetTime)
2699227232 || TopLevel::validateOneway($this->oneway)
2699327233 || TopLevel::validateOpen($this->open)
2699427234 || TopLevel::validateOperator($this->operator)
@@ -27302,6 +27542,7 @@ class TopLevel {
2730227542 $out->{'left'} = $this->toLeft();
2730327543 $out->{'let'} = $this->toLet();
2730427544 $out->{'list'} = $this->toList();
27545+ $out->{'LocalDate'} = $this->toLocalDate();
2730527546 $out->{'Locale'} = $this->toLocale();
2730627547 $out->{'lock'} = $this->toLock();
2730727548 $out->{'long'} = $this->toLong();
@@ -27336,6 +27577,8 @@ class TopLevel {
2733627577 $out->{'object'} = $this->toObject();
2733727578 $out->{'ObjectMapper'} = $this->toObjectMapper();
2733827579 $out->{'of'} = $this->toOf();
27580+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
27581+ $out->{'OffsetTime'} = $this->toOffsetTime();
2733927582 $out->{'oneway'} = $this->toOneway();
2734027583 $out->{'open'} = $this->toOpen();
2734127584 $out->{'operator'} = $this->toOperator();
@@ -27651,6 +27894,7 @@ class TopLevel {
2765127894 ,TopLevel::fromLeft($obj->{'left'})
2765227895 ,TopLevel::fromLet($obj->{'let'})
2765327896 ,TopLevel::fromList($obj->{'list'})
27897+ ,TopLevel::fromLocalDate($obj->{'LocalDate'})
2765427898 ,TopLevel::fromLocale($obj->{'Locale'})
2765527899 ,TopLevel::fromLock($obj->{'lock'})
2765627900 ,TopLevel::fromLong($obj->{'long'})
@@ -27685,6 +27929,8 @@ class TopLevel {
2768527929 ,TopLevel::fromObject($obj->{'object'})
2768627930 ,TopLevel::fromObjectMapper($obj->{'ObjectMapper'})
2768727931 ,TopLevel::fromOf($obj->{'of'})
27932+ ,TopLevel::fromOffsetDateTime($obj->{'OffsetDateTime'})
27933+ ,TopLevel::fromOffsetTime($obj->{'OffsetTime'})
2768827934 ,TopLevel::fromOneway($obj->{'oneway'})
2768927935 ,TopLevel::fromOpen($obj->{'open'})
2769027936 ,TopLevel::fromOperator($obj->{'operator'})
@@ -27998,6 +28244,7 @@ class TopLevel {
2799828244 ,TopLevel::sampleLeft()
2799928245 ,TopLevel::sampleLet()
2800028246 ,TopLevel::sampleList()
28247+ ,TopLevel::sampleLocalDate()
2800128248 ,TopLevel::sampleLocale()
2800228249 ,TopLevel::sampleLock()
2800328250 ,TopLevel::sampleLong()
@@ -28032,6 +28279,8 @@ class TopLevel {
2803228279 ,TopLevel::sampleObject()
2803328280 ,TopLevel::sampleObjectMapper()
2803428281 ,TopLevel::sampleOf()
28282+ ,TopLevel::sampleOffsetDateTime()
28283+ ,TopLevel::sampleOffsetTime()
2803528284 ,TopLevel::sampleOneway()
2803628285 ,TopLevel::sampleOpen()
2803728286 ,TopLevel::sampleOperator()
@@ -35903,6 +36152,51 @@ class ListClass {
3590336152 }
3590436153 }
3590536154
36155+// This is an autogenerated file:LocalDate
36156+
36157+class LocalDate {
36158+
36159+ /**
36160+ */
36161+ public function __construct() {
36162+ }
36163+
36164+ /**
36165+ * @throws Exception
36166+ * @return bool
36167+ */
36168+ public function validate(): bool {
36169+ return true;
36170+ }
36171+
36172+ /**
36173+ * @return stdClass
36174+ * @throws Exception
36175+ */
36176+ public function to(): stdClass {
36177+ $out = new stdClass();
36178+ return $out;
36179+ }
36180+
36181+ /**
36182+ * @param stdClass $obj
36183+ * @return LocalDate
36184+ * @throws Exception
36185+ */
36186+ public static function from(stdClass $obj): LocalDate {
36187+ return new LocalDate(
36188+ );
36189+ }
36190+
36191+ /**
36192+ * @return LocalDate
36193+ */
36194+ public static function sample(): LocalDate {
36195+ return new LocalDate(
36196+ );
36197+ }
36198+}
36199+
3590636200 // This is an autogenerated file:LocaleClass
3590736201
3590836202 class LocaleClass {
@@ -37343,6 +37637,96 @@ class Of {
3734337637 }
3734437638 }
3734537639
37640+// This is an autogenerated file:OffsetDateTime
37641+
37642+class OffsetDateTime {
37643+
37644+ /**
37645+ */
37646+ public function __construct() {
37647+ }
37648+
37649+ /**
37650+ * @throws Exception
37651+ * @return bool
37652+ */
37653+ public function validate(): bool {
37654+ return true;
37655+ }
37656+
37657+ /**
37658+ * @return stdClass
37659+ * @throws Exception
37660+ */
37661+ public function to(): stdClass {
37662+ $out = new stdClass();
37663+ return $out;
37664+ }
37665+
37666+ /**
37667+ * @param stdClass $obj
37668+ * @return OffsetDateTime
37669+ * @throws Exception
37670+ */
37671+ public static function from(stdClass $obj): OffsetDateTime {
37672+ return new OffsetDateTime(
37673+ );
37674+ }
37675+
37676+ /**
37677+ * @return OffsetDateTime
37678+ */
37679+ public static function sample(): OffsetDateTime {
37680+ return new OffsetDateTime(
37681+ );
37682+ }
37683+}
37684+
37685+// This is an autogenerated file:OffsetTime
37686+
37687+class OffsetTime {
37688+
37689+ /**
37690+ */
37691+ public function __construct() {
37692+ }
37693+
37694+ /**
37695+ * @throws Exception
37696+ * @return bool
37697+ */
37698+ public function validate(): bool {
37699+ return true;
37700+ }
37701+
37702+ /**
37703+ * @return stdClass
37704+ * @throws Exception
37705+ */
37706+ public function to(): stdClass {
37707+ $out = new stdClass();
37708+ return $out;
37709+ }
37710+
37711+ /**
37712+ * @param stdClass $obj
37713+ * @return OffsetTime
37714+ * @throws Exception
37715+ */
37716+ public static function from(stdClass $obj): OffsetTime {
37717+ return new OffsetTime(
37718+ );
37719+ }
37720+
37721+ /**
37722+ * @return OffsetTime
37723+ */
37724+ public static function sample(): OffsetTime {
37725+ return new OffsetTime(
37726+ );
37727+ }
37728+}
37729+
3734637730 // This is an autogenerated file:Oneway
3734737731
3734837732 class Oneway {
Mschema-pikedefault / TopLevel.pmod+78 −0
@@ -191,6 +191,7 @@ class TopLevel {
191191 UnionLeft left; // json: "left"
192192 UnionLet let; // json: "let"
193193 UnionList list; // json: "list"
194+ UnionLocalDate local_date; // json: "LocalDate"
194195 UnionLocale locale; // json: "Locale"
195196 UnionLock lock; // json: "lock"
196197 UnionLong long; // json: "long"
@@ -225,6 +226,8 @@ class TopLevel {
225226 UnionObject top_level_object; // json: "object"
226227 UnionObjectMapper object_mapper; // json: "ObjectMapper"
227228 UnionOf of; // json: "of"
229+ UnionOffsetDateTime offset_date_time; // json: "OffsetDateTime"
230+ UnionOffsetTime offset_time; // json: "OffsetTime"
228231 UnionOneway oneway; // json: "oneway"
229232 UnionOpen open; // json: "open"
230233 UnionOperator operator; // json: "operator"
@@ -533,6 +536,7 @@ class TopLevel {
533536 "left" : left,
534537 "let" : let,
535538 "list" : list,
539+ "LocalDate" : local_date,
536540 "Locale" : locale,
537541 "lock" : lock,
538542 "long" : long,
@@ -567,6 +571,8 @@ class TopLevel {
567571 "object" : top_level_object,
568572 "ObjectMapper" : object_mapper,
569573 "of" : of,
574+ "OffsetDateTime" : offset_date_time,
575+ "OffsetTime" : offset_time,
570576 "oneway" : oneway,
571577 "open" : open,
572578 "operator" : operator,
@@ -1058,6 +1064,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
10581064 retval.let = json["let"];
10591065 if (arrayp(json["list"])) error("Unexpected array");
10601066 retval.list = json["list"];
1067+ if (arrayp(json["LocalDate"])) error("Unexpected array");
1068+ retval.local_date = json["LocalDate"];
10611069 if (arrayp(json["Locale"])) error("Unexpected array");
10621070 retval.locale = json["Locale"];
10631071 if (arrayp(json["lock"])) error("Unexpected array");
@@ -1126,6 +1134,10 @@ TopLevel TopLevel_from_JSON(mixed json) {
11261134 retval.object_mapper = json["ObjectMapper"];
11271135 if (arrayp(json["of"])) error("Unexpected array");
11281136 retval.of = json["of"];
1137+ if (arrayp(json["OffsetDateTime"])) error("Unexpected array");
1138+ retval.offset_date_time = json["OffsetDateTime"];
1139+ if (arrayp(json["OffsetTime"])) error("Unexpected array");
1140+ retval.offset_time = json["OffsetTime"];
11291141 if (arrayp(json["oneway"])) error("Unexpected array");
11301142 retval.oneway = json["oneway"];
11311143 if (arrayp(json["open"])) error("Unexpected array");
@@ -4640,6 +4652,28 @@ List List_from_JSON(mixed json) {
46404652 return retval;
46414653 }
46424654
4655+typedef float|LocalDate UnionLocalDate;
4656+
4657+UnionLocalDate UnionLocalDate_from_JSON(mixed json) {
4658+ return json;
4659+}
4660+
4661+class LocalDate {
4662+
4663+ string encode_json() {
4664+ mapping(string:mixed) json = ([
4665+ ]);
4666+
4667+ return Standards.JSON.encode(json);
4668+ }
4669+}
4670+
4671+LocalDate LocalDate_from_JSON(mixed json) {
4672+ LocalDate retval = LocalDate();
4673+
4674+ return retval;
4675+}
4676+
46434677 typedef float|Locale UnionLocale;
46444678
46454679 UnionLocale UnionLocale_from_JSON(mixed json) {
@@ -5322,6 +5356,50 @@ Of Of_from_JSON(mixed json) {
53225356 return retval;
53235357 }
53245358
5359+typedef float|OffsetDateTime UnionOffsetDateTime;
5360+
5361+UnionOffsetDateTime UnionOffsetDateTime_from_JSON(mixed json) {
5362+ return json;
5363+}
5364+
5365+class OffsetDateTime {
5366+
5367+ string encode_json() {
5368+ mapping(string:mixed) json = ([
5369+ ]);
5370+
5371+ return Standards.JSON.encode(json);
5372+ }
5373+}
5374+
5375+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5376+ OffsetDateTime retval = OffsetDateTime();
5377+
5378+ return retval;
5379+}
5380+
5381+typedef float|OffsetTime UnionOffsetTime;
5382+
5383+UnionOffsetTime UnionOffsetTime_from_JSON(mixed json) {
5384+ return json;
5385+}
5386+
5387+class OffsetTime {
5388+
5389+ string encode_json() {
5390+ mapping(string:mixed) json = ([
5391+ ]);
5392+
5393+ return Standards.JSON.encode(json);
5394+ }
5395+}
5396+
5397+OffsetTime OffsetTime_from_JSON(mixed json) {
5398+ OffsetTime retval = OffsetTime();
5399+
5400+ return retval;
5401+}
5402+
53255403 typedef float|Oneway UnionOneway;
53265404
53275405 UnionOneway UnionOneway_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+55 −1
@@ -2092,6 +2092,20 @@ class ListClass:
20922092 return result
20932093
20942094
2095+@dataclass
2096+class LocalDate:
2097+ pass
2098+
2099+ @staticmethod
2100+ def from_dict(obj: Any) -> 'LocalDate':
2101+ assert isinstance(obj, dict)
2102+ return LocalDate()
2103+
2104+ def to_dict(self) -> dict:
2105+ result: dict = {}
2106+ return result
2107+
2108+
20952109 @dataclass
20962110 class Locale:
20972111 pass
@@ -2512,6 +2526,34 @@ class Of:
25122526 return result
25132527
25142528
2529+@dataclass
2530+class OffsetDateTime:
2531+ pass
2532+
2533+ @staticmethod
2534+ def from_dict(obj: Any) -> 'OffsetDateTime':
2535+ assert isinstance(obj, dict)
2536+ return OffsetDateTime()
2537+
2538+ def to_dict(self) -> dict:
2539+ result: dict = {}
2540+ return result
2541+
2542+
2543+@dataclass
2544+class OffsetTime:
2545+ pass
2546+
2547+ @staticmethod
2548+ def from_dict(obj: Any) -> 'OffsetTime':
2549+ assert isinstance(obj, dict)
2550+ return OffsetTime()
2551+
2552+ def to_dict(self) -> dict:
2553+ result: dict = {}
2554+ return result
2555+
2556+
25152557 @dataclass
25162558 class Oneway:
25172559 pass
@@ -4946,6 +4988,7 @@ class TopLevel:
49464988 left: float | Left | None = None
49474989 let: float | Let | None = None
49484990 list: float | ListClass | None = None
4991+ local_date: float | LocalDate | None = None
49494992 locale: float | Locale | None = None
49504993 lock: float | Lock | None = None
49514994 long: float | Long | None = None
@@ -4980,6 +5023,8 @@ class TopLevel:
49805023 object: float | Object | None = None
49815024 object_mapper: float | ObjectMapper | None = None
49825025 of: float | Of | None = None
5026+ offset_date_time: float | OffsetDateTime | None = None
5027+ offset_time: float | OffsetTime | None = None
49835028 oneway: float | Oneway | None = None
49845029 open: float | Open | None = None
49855030 operator: float | Operator | None = None
@@ -5289,6 +5334,7 @@ class TopLevel:
52895334 left = from_union([from_float, Left.from_dict, from_none], obj.get("left"))
52905335 let = from_union([from_float, Let.from_dict, from_none], obj.get("let"))
52915336 list = from_union([from_float, ListClass.from_dict, from_none], obj.get("list"))
5337+ local_date = from_union([from_float, LocalDate.from_dict, from_none], obj.get("LocalDate"))
52925338 locale = from_union([from_float, Locale.from_dict, from_none], obj.get("Locale"))
52935339 lock = from_union([from_float, Lock.from_dict, from_none], obj.get("lock"))
52945340 long = from_union([from_float, Long.from_dict, from_none], obj.get("long"))
@@ -5323,6 +5369,8 @@ class TopLevel:
53235369 object = from_union([from_float, Object.from_dict, from_none], obj.get("object"))
53245370 object_mapper = from_union([from_float, ObjectMapper.from_dict, from_none], obj.get("ObjectMapper"))
53255371 of = from_union([from_float, Of.from_dict, from_none], obj.get("of"))
5372+ offset_date_time = from_union([from_float, OffsetDateTime.from_dict, from_none], obj.get("OffsetDateTime"))
5373+ offset_time = from_union([from_float, OffsetTime.from_dict, from_none], obj.get("OffsetTime"))
53265374 oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway"))
53275375 open = from_union([from_float, Open.from_dict, from_none], obj.get("open"))
53285376 operator = from_union([from_float, Operator.from_dict, from_none], obj.get("operator"))
@@ -5450,7 +5498,7 @@ class TopLevel:
54505498 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
54515499 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
54525500 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5453- return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, 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, 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, top_level_dict, dictionary, did_set, do, double, 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, 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, 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, map, map_entry, 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, nullptr, number, object, object_mapper, 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, 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, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, 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, 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)
5501+ return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, 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, 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, top_level_dict, dictionary, did_set, do, double, 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, 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, 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, map, map_entry, 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, nullptr, number, object, object_mapper, 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, 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, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, 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, 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)
54545502
54555503 def to_dict(self) -> dict:
54565504 result: dict = {}
@@ -5810,6 +5858,8 @@ class TopLevel:
58105858 result["let"] = from_union([to_float, lambda x: to_class(Let, x), from_none], self.let)
58115859 if self.list is not None:
58125860 result["list"] = from_union([to_float, lambda x: to_class(ListClass, x), from_none], self.list)
5861+ if self.local_date is not None:
5862+ result["LocalDate"] = from_union([to_float, lambda x: to_class(LocalDate, x), from_none], self.local_date)
58135863 if self.locale is not None:
58145864 result["Locale"] = from_union([to_float, lambda x: to_class(Locale, x), from_none], self.locale)
58155865 if self.lock is not None:
@@ -5878,6 +5928,10 @@ class TopLevel:
58785928 result["ObjectMapper"] = from_union([to_float, lambda x: to_class(ObjectMapper, x), from_none], self.object_mapper)
58795929 if self.of is not None:
58805930 result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of)
5931+ if self.offset_date_time is not None:
5932+ result["OffsetDateTime"] = from_union([to_float, lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time)
5933+ if self.offset_time is not None:
5934+ result["OffsetTime"] = from_union([to_float, lambda x: to_class(OffsetTime, x), from_none], self.offset_time)
58815935 if self.oneway is not None:
58825936 result["oneway"] = from_union([to_float, lambda x: to_class(Oneway, x), from_none], self.oneway)
58835937 if self.open is not None:
Mschema-ruby-syntaxdefault / TopLevel.rb+180 −0
@@ -9025,6 +9025,63 @@ class UnionList < Dry::Struct
90259025 end
90269026 end
90279027
9028+class LocalDate < Dry::Struct
9029+
9030+ def self.from_dynamic!(d)
9031+ d = Types::Hash[d]
9032+ new(
9033+ )
9034+ end
9035+
9036+ def self.from_json!(json)
9037+ from_dynamic!(JSON.parse(json))
9038+ end
9039+
9040+ def to_dynamic
9041+ {
9042+ }
9043+ end
9044+
9045+ def to_json(options = nil)
9046+ JSON.generate(to_dynamic, options)
9047+ end
9048+end
9049+
9050+class UnionLocalDate < Dry::Struct
9051+ attribute :double, Types::Double.optional
9052+ attribute :local_date, LocalDate.optional
9053+
9054+ def self.from_dynamic!(d)
9055+ if schema.key(:double).type.right.valid? d
9056+ return new(double: d, local_date: nil)
9057+ end
9058+ begin
9059+ value = LocalDate.from_dynamic!(d)
9060+ if schema.key(:local_date).type.right.valid? value
9061+ return new(local_date: value, double: nil)
9062+ end
9063+ rescue
9064+ end
9065+ raise "Invalid union"
9066+ end
9067+
9068+ def self.from_json!(json)
9069+ from_dynamic!(JSON.parse(json))
9070+ end
9071+
9072+ def to_dynamic
9073+ if double != nil
9074+ double
9075+ elsif local_date != nil
9076+ local_date.to_dynamic
9077+ end
9078+ end
9079+
9080+ def to_json(options = nil)
9081+ JSON.generate(to_dynamic, options)
9082+ end
9083+end
9084+
90289085 class Locale < Dry::Struct
90299086
90309087 def self.from_dynamic!(d)
@@ -10621,6 +10678,120 @@ class UnionOf < Dry::Struct
1062110678 end
1062210679 end
1062310680
10681+class OffsetDateTime < Dry::Struct
10682+
10683+ def self.from_dynamic!(d)
10684+ d = Types::Hash[d]
10685+ new(
10686+ )
10687+ end
10688+
10689+ def self.from_json!(json)
10690+ from_dynamic!(JSON.parse(json))
10691+ end
10692+
10693+ def to_dynamic
10694+ {
10695+ }
10696+ end
10697+
10698+ def to_json(options = nil)
10699+ JSON.generate(to_dynamic, options)
10700+ end
10701+end
10702+
10703+class UnionOffsetDateTime < Dry::Struct
10704+ attribute :double, Types::Double.optional
10705+ attribute :offset_date_time, OffsetDateTime.optional
10706+
10707+ def self.from_dynamic!(d)
10708+ if schema.key(:double).type.right.valid? d
10709+ return new(double: d, offset_date_time: nil)
10710+ end
10711+ begin
10712+ value = OffsetDateTime.from_dynamic!(d)
10713+ if schema.key(:offset_date_time).type.right.valid? value
10714+ return new(offset_date_time: value, double: nil)
10715+ end
10716+ rescue
10717+ end
10718+ raise "Invalid union"
10719+ end
10720+
10721+ def self.from_json!(json)
10722+ from_dynamic!(JSON.parse(json))
10723+ end
10724+
10725+ def to_dynamic
10726+ if double != nil
10727+ double
10728+ elsif offset_date_time != nil
10729+ offset_date_time.to_dynamic
10730+ end
10731+ end
10732+
10733+ def to_json(options = nil)
10734+ JSON.generate(to_dynamic, options)
10735+ end
10736+end
10737+
10738+class OffsetTime < Dry::Struct
10739+
10740+ def self.from_dynamic!(d)
10741+ d = Types::Hash[d]
10742+ new(
10743+ )
10744+ end
10745+
10746+ def self.from_json!(json)
10747+ from_dynamic!(JSON.parse(json))
10748+ end
10749+
10750+ def to_dynamic
10751+ {
10752+ }
10753+ end
10754+
10755+ def to_json(options = nil)
10756+ JSON.generate(to_dynamic, options)
10757+ end
10758+end
10759+
10760+class UnionOffsetTime < Dry::Struct
10761+ attribute :double, Types::Double.optional
10762+ attribute :offset_time, OffsetTime.optional
10763+
10764+ def self.from_dynamic!(d)
10765+ if schema.key(:double).type.right.valid? d
10766+ return new(double: d, offset_time: nil)
10767+ end
10768+ begin
10769+ value = OffsetTime.from_dynamic!(d)
10770+ if schema.key(:offset_time).type.right.valid? value
10771+ return new(offset_time: value, double: nil)
10772+ end
10773+ rescue
10774+ end
10775+ raise "Invalid union"
10776+ end
10777+
10778+ def self.from_json!(json)
10779+ from_dynamic!(JSON.parse(json))
10780+ end
10781+
10782+ def to_dynamic
10783+ if double != nil
10784+ double
10785+ elsif offset_time != nil
10786+ offset_time.to_dynamic
10787+ end
10788+ end
10789+
10790+ def to_json(options = nil)
10791+ JSON.generate(to_dynamic, options)
10792+ end
10793+end
10794+
1062410795 class Oneway < Dry::Struct
1062510796
1062610797 def self.from_dynamic!(d)
@@ -19464,6 +19635,7 @@ class TopLevel < Dry::Struct
1946419635 attribute :left, Types.Instance(UnionLeft).optional
1946519636 attribute :let, Types.Instance(UnionLet).optional
1946619637 attribute :list, Types.Instance(UnionList).optional
19638+ attribute :local_date, Types.Instance(UnionLocalDate).optional
1946719639 attribute :locale, Types.Instance(UnionLocale).optional
1946819640 attribute :lock, Types.Instance(UnionLock).optional
1946919641 attribute :long, Types.Instance(UnionLong).optional
@@ -19498,6 +19670,8 @@ class TopLevel < Dry::Struct
1949819670 attribute :object, Types.Instance(UnionObject).optional
1949919671 attribute :object_mapper, Types.Instance(UnionObjectMapper).optional
1950019672 attribute :of, Types.Instance(UnionOf).optional
19673+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
19674+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
1950119675 attribute :oneway, Types.Instance(UnionOneway).optional
1950219676 attribute :top_level_open, Types.Instance(UnionOpen).optional
1950319677 attribute :operator, Types.Instance(UnionOperator).optional
@@ -19807,6 +19981,7 @@ class TopLevel < Dry::Struct
1980719981 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
1980819982 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
1980919983 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
19984+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
1981019985 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
1981119986 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
1981219987 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -19841,6 +20016,8 @@ class TopLevel < Dry::Struct
1984120016 object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil,
1984220017 object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil,
1984320018 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
20019+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
20020+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
1984420021 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
1984520022 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
1984620023 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -20155,6 +20332,7 @@ class TopLevel < Dry::Struct
2015520332 "left" => left&.to_dynamic,
2015620333 "let" => let&.to_dynamic,
2015720334 "list" => list&.to_dynamic,
20335+ "LocalDate" => local_date&.to_dynamic,
2015820336 "Locale" => locale&.to_dynamic,
2015920337 "lock" => lock&.to_dynamic,
2016020338 "long" => long&.to_dynamic,
@@ -20189,6 +20367,8 @@ class TopLevel < Dry::Struct
2018920367 "object" => object&.to_dynamic,
2019020368 "ObjectMapper" => object_mapper&.to_dynamic,
2019120369 "of" => of&.to_dynamic,
20370+ "OffsetDateTime" => offset_date_time&.to_dynamic,
20371+ "OffsetTime" => offset_time&.to_dynamic,
2019220372 "oneway" => oneway&.to_dynamic,
2019320373 "open" => top_level_open&.to_dynamic,
2019420374 "operator" => operator&.to_dynamic,
Mschema-rubydefault / TopLevel.rb+180 −0
@@ -9025,6 +9025,63 @@ class UnionList < Dry::Struct
90259025 end
90269026 end
90279027
9028+class LocalDate < Dry::Struct
9029+
9030+ def self.from_dynamic!(d)
9031+ d = Types::Hash[d]
9032+ new(
9033+ )
9034+ end
9035+
9036+ def self.from_json!(json)
9037+ from_dynamic!(JSON.parse(json))
9038+ end
9039+
9040+ def to_dynamic
9041+ {
9042+ }
9043+ end
9044+
9045+ def to_json(options = nil)
9046+ JSON.generate(to_dynamic, options)
9047+ end
9048+end
9049+
9050+class UnionLocalDate < Dry::Struct
9051+ attribute :double, Types::Double.optional
9052+ attribute :local_date, LocalDate.optional
9053+
9054+ def self.from_dynamic!(d)
9055+ if schema.key(:double).type.right.valid? d
9056+ return new(double: d, local_date: nil)
9057+ end
9058+ begin
9059+ value = LocalDate.from_dynamic!(d)
9060+ if schema.key(:local_date).type.right.valid? value
9061+ return new(local_date: value, double: nil)
9062+ end
9063+ rescue
9064+ end
9065+ raise "Invalid union"
9066+ end
9067+
9068+ def self.from_json!(json)
9069+ from_dynamic!(JSON.parse(json))
9070+ end
9071+
9072+ def to_dynamic
9073+ if double != nil
9074+ double
9075+ elsif local_date != nil
9076+ local_date.to_dynamic
9077+ end
9078+ end
9079+
9080+ def to_json(options = nil)
9081+ JSON.generate(to_dynamic, options)
9082+ end
9083+end
9084+
90289085 class Locale < Dry::Struct
90299086
90309087 def self.from_dynamic!(d)
@@ -10621,6 +10678,120 @@ class UnionOf < Dry::Struct
1062110678 end
1062210679 end
1062310680
10681+class OffsetDateTime < Dry::Struct
10682+
10683+ def self.from_dynamic!(d)
10684+ d = Types::Hash[d]
10685+ new(
10686+ )
10687+ end
10688+
10689+ def self.from_json!(json)
10690+ from_dynamic!(JSON.parse(json))
10691+ end
10692+
10693+ def to_dynamic
10694+ {
10695+ }
10696+ end
10697+
10698+ def to_json(options = nil)
10699+ JSON.generate(to_dynamic, options)
10700+ end
10701+end
10702+
10703+class UnionOffsetDateTime < Dry::Struct
10704+ attribute :double, Types::Double.optional
10705+ attribute :offset_date_time, OffsetDateTime.optional
10706+
10707+ def self.from_dynamic!(d)
10708+ if schema.key(:double).type.right.valid? d
10709+ return new(double: d, offset_date_time: nil)
10710+ end
10711+ begin
10712+ value = OffsetDateTime.from_dynamic!(d)
10713+ if schema.key(:offset_date_time).type.right.valid? value
10714+ return new(offset_date_time: value, double: nil)
10715+ end
10716+ rescue
10717+ end
10718+ raise "Invalid union"
10719+ end
10720+
10721+ def self.from_json!(json)
10722+ from_dynamic!(JSON.parse(json))
10723+ end
10724+
10725+ def to_dynamic
10726+ if double != nil
10727+ double
10728+ elsif offset_date_time != nil
10729+ offset_date_time.to_dynamic
10730+ end
10731+ end
10732+
10733+ def to_json(options = nil)
10734+ JSON.generate(to_dynamic, options)
10735+ end
10736+end
10737+
10738+class OffsetTime < Dry::Struct
10739+
10740+ def self.from_dynamic!(d)
10741+ d = Types::Hash[d]
10742+ new(
10743+ )
10744+ end
10745+
10746+ def self.from_json!(json)
10747+ from_dynamic!(JSON.parse(json))
10748+ end
10749+
10750+ def to_dynamic
10751+ {
10752+ }
10753+ end
10754+
10755+ def to_json(options = nil)
10756+ JSON.generate(to_dynamic, options)
10757+ end
10758+end
10759+
10760+class UnionOffsetTime < Dry::Struct
10761+ attribute :double, Types::Double.optional
10762+ attribute :offset_time, OffsetTime.optional
10763+
10764+ def self.from_dynamic!(d)
10765+ if schema.key(:double).type.right.valid? d
10766+ return new(double: d, offset_time: nil)
10767+ end
10768+ begin
10769+ value = OffsetTime.from_dynamic!(d)
10770+ if schema.key(:offset_time).type.right.valid? value
10771+ return new(offset_time: value, double: nil)
10772+ end
10773+ rescue
10774+ end
10775+ raise "Invalid union"
10776+ end
10777+
10778+ def self.from_json!(json)
10779+ from_dynamic!(JSON.parse(json))
10780+ end
10781+
10782+ def to_dynamic
10783+ if double != nil
10784+ double
10785+ elsif offset_time != nil
10786+ offset_time.to_dynamic
10787+ end
10788+ end
10789+
10790+ def to_json(options = nil)
10791+ JSON.generate(to_dynamic, options)
10792+ end
10793+end
10794+
1062410795 class Oneway < Dry::Struct
1062510796
1062610797 def self.from_dynamic!(d)
@@ -19464,6 +19635,7 @@ class TopLevel < Dry::Struct
1946419635 attribute :left, Types.Instance(UnionLeft).optional
1946519636 attribute :let, Types.Instance(UnionLet).optional
1946619637 attribute :list, Types.Instance(UnionList).optional
19638+ attribute :local_date, Types.Instance(UnionLocalDate).optional
1946719639 attribute :locale, Types.Instance(UnionLocale).optional
1946819640 attribute :lock, Types.Instance(UnionLock).optional
1946919641 attribute :long, Types.Instance(UnionLong).optional
@@ -19498,6 +19670,8 @@ class TopLevel < Dry::Struct
1949819670 attribute :object, Types.Instance(UnionObject).optional
1949919671 attribute :object_mapper, Types.Instance(UnionObjectMapper).optional
1950019672 attribute :of, Types.Instance(UnionOf).optional
19673+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
19674+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
1950119675 attribute :oneway, Types.Instance(UnionOneway).optional
1950219676 attribute :top_level_open, Types.Instance(UnionOpen).optional
1950319677 attribute :operator, Types.Instance(UnionOperator).optional
@@ -19807,6 +19981,7 @@ class TopLevel < Dry::Struct
1980719981 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
1980819982 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
1980919983 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
19984+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
1981019985 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
1981119986 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
1981219987 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -19841,6 +20016,8 @@ class TopLevel < Dry::Struct
1984120016 object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil,
1984220017 object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil,
1984320018 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
20019+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
20020+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
1984420021 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
1984520022 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
1984620023 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -20155,6 +20332,7 @@ class TopLevel < Dry::Struct
2015520332 "left" => left&.to_dynamic,
2015620333 "let" => let&.to_dynamic,
2015720334 "list" => list&.to_dynamic,
20335+ "LocalDate" => local_date&.to_dynamic,
2015820336 "Locale" => locale&.to_dynamic,
2015920337 "lock" => lock&.to_dynamic,
2016020338 "long" => long&.to_dynamic,
@@ -20189,6 +20367,8 @@ class TopLevel < Dry::Struct
2018920367 "object" => object&.to_dynamic,
2019020368 "ObjectMapper" => object_mapper&.to_dynamic,
2019120369 "of" => of&.to_dynamic,
20370+ "OffsetDateTime" => offset_date_time&.to_dynamic,
20371+ "OffsetTime" => offset_time&.to_dynamic,
2019220372 "oneway" => oneway&.to_dynamic,
2019320373 "open" => top_level_open&.to_dynamic,
2019420374 "operator" => operator&.to_dynamic,
Mschema-rustdefault / module_under_test.rs+45 −0
@@ -437,6 +437,9 @@ pub struct TopLevel {
437437
438438 pub list: Option<UnionList>,
439439
440+ #[serde(rename = "LocalDate")]
441+ pub local_date: Option<UnionLocalDate>,
442+
440443 #[serde(rename = "Locale")]
441444 pub locale: Option<UnionLocale>,
442445
@@ -517,6 +520,12 @@ pub struct TopLevel {
517520
518521 pub of: Option<UnionOf>,
519522
523+ #[serde(rename = "OffsetDateTime")]
524+ pub offset_date_time: Option<UnionOffsetDateTime>,
525+
526+ #[serde(rename = "OffsetTime")]
527+ pub offset_time: Option<UnionOffsetTime>,
528+
520529 pub oneway: Option<UnionOneway>,
521530
522531 pub open: Option<UnionOpen>,
@@ -2654,6 +2663,18 @@ pub enum UnionList {
26542663 pub struct List {
26552664 }
26562665
2666+#[derive(Debug, Clone, Serialize, Deserialize)]
2667+#[serde(untagged)]
2668+pub enum UnionLocalDate {
2669+ Double(f64),
2670+
2671+ LocalDate(LocalDate),
2672+}
2673+
2674+#[derive(Debug, Clone, Serialize, Deserialize)]
2675+pub struct LocalDate {
2676+}
2677+
26572678 #[derive(Debug, Clone, Serialize, Deserialize)]
26582679 #[serde(untagged)]
26592680 pub enum UnionLocale {
@@ -3038,6 +3059,30 @@ pub enum UnionOf {
30383059 pub struct Of {
30393060 }
30403061
3062+#[derive(Debug, Clone, Serialize, Deserialize)]
3063+#[serde(untagged)]
3064+pub enum UnionOffsetDateTime {
3065+ Double(f64),
3066+
3067+ OffsetDateTime(OffsetDateTime),
3068+}
3069+
3070+#[derive(Debug, Clone, Serialize, Deserialize)]
3071+pub struct OffsetDateTime {
3072+}
3073+
3074+#[derive(Debug, Clone, Serialize, Deserialize)]
3075+#[serde(untagged)]
3076+pub enum UnionOffsetTime {
3077+ Double(f64),
3078+
3079+ OffsetTime(OffsetTime),
3080+}
3081+
3082+#[derive(Debug, Clone, Serialize, Deserialize)]
3083+pub struct OffsetTime {
3084+}
3085+
30413086 #[derive(Debug, Clone, Serialize, Deserialize)]
30423087 #[serde(untagged)]
30433088 pub enum UnionOneway {
Mschema-schemadefault / TopLevel.schema+57 −0
@@ -540,6 +540,9 @@
540540 "list": {
541541 "$ref": "#/definitions/UnionList"
542542 },
543+ "LocalDate": {
544+ "$ref": "#/definitions/UnionLocalDate"
545+ },
543546 "Locale": {
544547 "$ref": "#/definitions/UnionLocale"
545548 },
@@ -642,6 +645,12 @@
642645 "of": {
643646 "$ref": "#/definitions/UnionOf"
644647 },
648+ "OffsetDateTime": {
649+ "$ref": "#/definitions/UnionOffsetDateTime"
650+ },
651+ "OffsetTime": {
652+ "$ref": "#/definitions/UnionOffsetTime"
653+ },
645654 "oneway": {
646655 "$ref": "#/definitions/UnionOneway"
647656 },
@@ -1207,6 +1216,11 @@
12071216 "additionalProperties": false,
12081217 "title": "KSerializer"
12091218 },
1219+ "LocalDate": {
1220+ "type": "object",
1221+ "additionalProperties": false,
1222+ "title": "LocalDate"
1223+ },
12101224 "Locale": {
12111225 "type": "object",
12121226 "additionalProperties": false,
@@ -1252,6 +1266,16 @@
12521266 "additionalProperties": false,
12531267 "title": "ObjectMapper"
12541268 },
1269+ "OffsetDateTime": {
1270+ "type": "object",
1271+ "additionalProperties": false,
1272+ "title": "OffsetDateTime"
1273+ },
1274+ "OffsetTime": {
1275+ "type": "object",
1276+ "additionalProperties": false,
1277+ "title": "OffsetTime"
1278+ },
12551279 "PrimitiveKind": {
12561280 "type": "object",
12571281 "additionalProperties": false,
@@ -3113,6 +3137,17 @@
31133137 ],
31143138 "title": "UnionKSerializer"
31153139 },
3140+ "UnionLocalDate": {
3141+ "anyOf": [
3142+ {
3143+ "$ref": "#/definitions/LocalDate"
3144+ },
3145+ {
3146+ "type": "number"
3147+ }
3148+ ],
3149+ "title": "UnionLocalDate"
3150+ },
31163151 "UnionLocale": {
31173152 "anyOf": [
31183153 {
@@ -3212,6 +3247,28 @@
32123247 ],
32133248 "title": "UnionObjectMapper"
32143249 },
3250+ "UnionOffsetDateTime": {
3251+ "anyOf": [
3252+ {
3253+ "$ref": "#/definitions/OffsetDateTime"
3254+ },
3255+ {
3256+ "type": "number"
3257+ }
3258+ ],
3259+ "title": "UnionOffsetDateTime"
3260+ },
3261+ "UnionOffsetTime": {
3262+ "anyOf": [
3263+ {
3264+ "$ref": "#/definitions/OffsetTime"
3265+ },
3266+ {
3267+ "type": "number"
3268+ }
3269+ ],
3270+ "title": "UnionOffsetTime"
3271+ },
32153272 "UnionPrimitiveKind": {
32163273 "anyOf": [
32173274 {
Mschema-swiftdefault / quicktype.swift+225 −0
@@ -185,6 +185,7 @@ struct TopLevel: Codable {
185185 let topLevelLeft: UnionLeft?
186186 let topLevelLet: UnionLet?
187187 let list: UnionList?
188+ let localDate: UnionLocalDate?
188189 let locale: UnionLocale?
189190 let lock: UnionLock?
190191 let long: UnionLong?
@@ -219,6 +220,8 @@ struct TopLevel: Codable {
219220 let object: UnionObject?
220221 let objectMapper: UnionObjectMapper?
221222 let of: UnionOf?
223+ let offsetDateTime: UnionOffsetDateTime?
224+ let offsetTime: UnionOffsetTime?
222225 let oneway: UnionOneway?
223226 let topLevelOpen: UnionOpen?
224227 let topLevelOperator: UnionOperator?
@@ -526,6 +529,7 @@ struct TopLevel: Codable {
526529 case topLevelLeft = "left"
527530 case topLevelLet = "let"
528531 case list = "list"
532+ case localDate = "LocalDate"
529533 case locale = "Locale"
530534 case lock = "lock"
531535 case long = "long"
@@ -560,6 +564,8 @@ struct TopLevel: Codable {
560564 case object = "object"
561565 case objectMapper = "ObjectMapper"
562566 case of = "of"
567+ case offsetDateTime = "OffsetDateTime"
568+ case offsetTime = "OffsetTime"
563569 case oneway = "oneway"
564570 case topLevelOpen = "open"
565571 case topLevelOperator = "operator"
@@ -887,6 +893,7 @@ extension TopLevel {
887893 topLevelLeft: UnionLeft?? = nil,
888894 topLevelLet: UnionLet?? = nil,
889895 list: UnionList?? = nil,
896+ localDate: UnionLocalDate?? = nil,
890897 locale: UnionLocale?? = nil,
891898 lock: UnionLock?? = nil,
892899 long: UnionLong?? = nil,
@@ -921,6 +928,8 @@ extension TopLevel {
921928 object: UnionObject?? = nil,
922929 objectMapper: UnionObjectMapper?? = nil,
923930 of: UnionOf?? = nil,
931+ offsetDateTime: UnionOffsetDateTime?? = nil,
932+ offsetTime: UnionOffsetTime?? = nil,
924933 oneway: UnionOneway?? = nil,
925934 topLevelOpen: UnionOpen?? = nil,
926935 topLevelOperator: UnionOperator?? = nil,
@@ -1228,6 +1237,7 @@ extension TopLevel {
12281237 topLevelLeft: topLevelLeft ?? self.topLevelLeft,
12291238 topLevelLet: topLevelLet ?? self.topLevelLet,
12301239 list: list ?? self.list,
1240+ localDate: localDate ?? self.localDate,
12311241 locale: locale ?? self.locale,
12321242 lock: lock ?? self.lock,
12331243 long: long ?? self.long,
@@ -1262,6 +1272,8 @@ extension TopLevel {
12621272 object: object ?? self.object,
12631273 objectMapper: objectMapper ?? self.objectMapper,
12641274 of: of ?? self.of,
1275+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
1276+ offsetTime: offsetTime ?? self.offsetTime,
12651277 oneway: oneway ?? self.oneway,
12661278 topLevelOpen: topLevelOpen ?? self.topLevelOpen,
12671279 topLevelOperator: topLevelOperator ?? self.topLevelOperator,
@@ -10773,6 +10785,77 @@ extension List {
1077310785 }
1077410786 }
1077510787
10788+enum UnionLocalDate: Codable {
10789+ case double(Double)
10790+ case localDate(LocalDate)
10791+
10792+ init(from decoder: Decoder) throws {
10793+ let container = try decoder.singleValueContainer()
10794+ if let x = try? container.decode(Double.self) {
10795+ self = .double(x)
10796+ return
10797+ }
10798+ if let x = try? container.decode(LocalDate.self) {
10799+ self = .localDate(x)
10800+ return
10801+ }
10802+ throw DecodingError.typeMismatch(UnionLocalDate.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionLocalDate"))
10803+ }
10804+
10805+ func encode(to encoder: Encoder) throws {
10806+ var container = encoder.singleValueContainer()
10807+ switch self {
10808+ case .double(let x):
10809+ try container.encode(x)
10810+ case .localDate(let x):
10811+ try container.encode(x)
10812+ }
10813+ }
10814+}
10815+
10816+// MARK: - LocalDate
10817+struct LocalDate: Codable {
10818+ private enum K: String, CodingKey { case unused }
10819+ init(from decoder: Decoder) throws {
10820+ _ = try decoder.container(keyedBy: K.self)
10821+ }
10822+ init() {
10823+ }
10824+}
10825+
10826+// MARK: LocalDate convenience initializers and mutators
10827+
10828+extension LocalDate {
10829+ init(data: Data) throws {
10830+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
10831+ }
10832+
10833+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10834+ guard let data = json.data(using: encoding) else {
10835+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10836+ }
10837+ try self.init(data: data)
10838+ }
10839+
10840+ init(fromURL url: URL) throws {
10841+ try self.init(data: try Data(contentsOf: url))
10842+ }
10843+
10844+ func with(
10845+ ) -> LocalDate {
10846+ return LocalDate(
10847+ )
10848+ }
10849+
10850+ func jsonData() throws -> Data {
10851+ return try newJSONEncoder().encode(self)
10852+ }
10853+
10854+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10855+ return String(data: try self.jsonData(), encoding: encoding)
10856+ }
10857+}
10858+
1077610859 enum UnionLocale: Codable {
1077710860 case double(Double)
1077810861 case localeClass(LocaleClass)
@@ -12832,6 +12915,148 @@ extension Of {
1283212915 }
1283312916 }
1283412917
12918+enum UnionOffsetDateTime: Codable {
12919+ case double(Double)
12920+ case offsetDateTime(OffsetDateTime)
12921+
12922+ init(from decoder: Decoder) throws {
12923+ let container = try decoder.singleValueContainer()
12924+ if let x = try? container.decode(Double.self) {
12925+ self = .double(x)
12926+ return
12927+ }
12928+ if let x = try? container.decode(OffsetDateTime.self) {
12929+ self = .offsetDateTime(x)
12930+ return
12931+ }
12932+ throw DecodingError.typeMismatch(UnionOffsetDateTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetDateTime"))
12933+ }
12934+
12935+ func encode(to encoder: Encoder) throws {
12936+ var container = encoder.singleValueContainer()
12937+ switch self {
12938+ case .double(let x):
12939+ try container.encode(x)
12940+ case .offsetDateTime(let x):
12941+ try container.encode(x)
12942+ }
12943+ }
12944+}
12945+
12946+// MARK: - OffsetDateTime
12947+struct OffsetDateTime: Codable {
12948+ private enum K: String, CodingKey { case unused }
12949+ init(from decoder: Decoder) throws {
12950+ _ = try decoder.container(keyedBy: K.self)
12951+ }
12952+ init() {
12953+ }
12954+}
12955+
12956+// MARK: OffsetDateTime convenience initializers and mutators
12957+
12958+extension OffsetDateTime {
12959+ init(data: Data) throws {
12960+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
12961+ }
12962+
12963+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12964+ guard let data = json.data(using: encoding) else {
12965+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12966+ }
12967+ try self.init(data: data)
12968+ }
12969+
12970+ init(fromURL url: URL) throws {
12971+ try self.init(data: try Data(contentsOf: url))
12972+ }
12973+
12974+ func with(
12975+ ) -> OffsetDateTime {
12976+ return OffsetDateTime(
12977+ )
12978+ }
12979+
12980+ func jsonData() throws -> Data {
12981+ return try newJSONEncoder().encode(self)
12982+ }
12983+
12984+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12985+ return String(data: try self.jsonData(), encoding: encoding)
12986+ }
12987+}
12988+
12989+enum UnionOffsetTime: Codable {
12990+ case double(Double)
12991+ case offsetTime(OffsetTime)
12992+
12993+ init(from decoder: Decoder) throws {
12994+ let container = try decoder.singleValueContainer()
12995+ if let x = try? container.decode(Double.self) {
12996+ self = .double(x)
12997+ return
12998+ }
12999+ if let x = try? container.decode(OffsetTime.self) {
13000+ self = .offsetTime(x)
13001+ return
13002+ }
13003+ throw DecodingError.typeMismatch(UnionOffsetTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetTime"))
13004+ }
13005+
13006+ func encode(to encoder: Encoder) throws {
13007+ var container = encoder.singleValueContainer()
13008+ switch self {
13009+ case .double(let x):
13010+ try container.encode(x)
13011+ case .offsetTime(let x):
13012+ try container.encode(x)
13013+ }
13014+ }
13015+}
13016+
13017+// MARK: - OffsetTime
13018+struct OffsetTime: Codable {
13019+ private enum K: String, CodingKey { case unused }
13020+ init(from decoder: Decoder) throws {
13021+ _ = try decoder.container(keyedBy: K.self)
13022+ }
13023+ init() {
13024+ }
13025+}
13026+
13027+// MARK: OffsetTime convenience initializers and mutators
13028+
13029+extension OffsetTime {
13030+ init(data: Data) throws {
13031+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
13032+ }
13033+
13034+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13035+ guard let data = json.data(using: encoding) else {
13036+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13037+ }
13038+ try self.init(data: data)
13039+ }
13040+
13041+ init(fromURL url: URL) throws {
13042+ try self.init(data: try Data(contentsOf: url))
13043+ }
13044+
13045+ func with(
13046+ ) -> OffsetTime {
13047+ return OffsetTime(
13048+ )
13049+ }
13050+
13051+ func jsonData() throws -> Data {
13052+ return try newJSONEncoder().encode(self)
13053+ }
13054+
13055+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13056+ return String(data: try self.jsonData(), encoding: encoding)
13057+ }
13058+}
13059+
1283513060 enum UnionOneway: Codable {
1283613061 case double(Double)
1283713062 case oneway(Oneway)
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
@@ -403,6 +403,12 @@ export class Open extends S.Class<Open>("Open")(S.Struct({}).pipe(S.filter(value
403403 export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
404404 ) {}
405405
406+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
407+) {}
408+
409+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
410+) {}
411+
406412 export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
407413 ) {}
408414
@@ -499,6 +505,9 @@ export class Lock extends S.Class<Lock>("Lock")(S.Struct({}).pipe(S.filter(value
499505 export class Locale extends S.Class<Locale>("Locale")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
500506 ) {}
501507
508+export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
509+) {}
510+
502511 export class List extends S.Class<List>("List")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
503512 ) {}
504513
@@ -1194,6 +1203,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
11941203 "left": S.optional(S.Union(S.Number, Left)),
11951204 "let": S.optional(S.Union(S.Number, Let)),
11961205 "list": S.optional(S.Union(S.Number, List)),
1206+ "LocalDate": S.optional(S.Union(S.Number, LocalDate)),
11971207 "Locale": S.optional(S.Union(S.Number, Locale)),
11981208 "lock": S.optional(S.Union(S.Number, Lock)),
11991209 "long": S.optional(S.Union(S.Number, Long)),
@@ -1228,6 +1238,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12281238 "object": S.optional(S.Union(S.Number, ObjectClass)),
12291239 "ObjectMapper": S.optional(S.Union(S.Number, ObjectMapper)),
12301240 "of": S.optional(S.Union(S.Number, Of)),
1241+ "OffsetDateTime": S.optional(S.Union(S.Number, OffsetDateTime)),
1242+ "OffsetTime": S.optional(S.Union(S.Number, OffsetTime)),
12311243 "oneway": S.optional(S.Union(S.Number, Oneway)),
12321244 "open": S.optional(S.Union(S.Number, Open)),
12331245 "operator": S.optional(S.Union(S.Number, Operator)),
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
@@ -689,6 +689,10 @@ export const ListSchema = z.object({
689689 });
690690 export type List = z.infer<typeof ListSchema>;
691691
692+export const LocalDateSchema = z.object({
693+});
694+export type LocalDate = z.infer<typeof LocalDateSchema>;
695+
692696 export const LocaleSchema = z.object({
693697 });
694698 export type Locale = z.infer<typeof LocaleSchema>;
@@ -817,6 +821,14 @@ export const OfSchema = z.object({
817821 });
818822 export type Of = z.infer<typeof OfSchema>;
819823
824+export const OffsetDateTimeSchema = z.object({
825+});
826+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
827+
828+export const OffsetTimeSchema = z.object({
829+});
830+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
831+
820832 export const OnewaySchema = z.object({
821833 });
822834 export type Oneway = z.infer<typeof OnewaySchema>;
@@ -1532,6 +1544,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15321544 "left": z.union([LeftSchema, z.number()]).optional(),
15331545 "let": z.union([LetSchema, z.number()]).optional(),
15341546 "list": z.union([ListSchema, z.number()]).optional(),
1547+ "LocalDate": z.union([LocalDateSchema, z.number()]).optional(),
15351548 "Locale": z.union([LocaleSchema, z.number()]).optional(),
15361549 "lock": z.union([LockSchema, z.number()]).optional(),
15371550 "long": z.union([LongSchema, z.number()]).optional(),
@@ -1566,6 +1579,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15661579 "object": z.union([ObjectClassSchema, z.number()]).optional(),
15671580 "ObjectMapper": z.union([ObjectMapperSchema, z.number()]).optional(),
15681581 "of": z.union([OfSchema, z.number()]).optional(),
1582+ "OffsetDateTime": z.union([OffsetDateTimeSchema, z.number()]).optional(),
1583+ "OffsetTime": z.union([OffsetTimeSchema, z.number()]).optional(),
15691584 "oneway": z.union([OnewaySchema, z.number()]).optional(),
15701585 "open": z.union([OpenSchema, z.number()]).optional(),
15711586 "operator": z.union([OperatorSchema, z.number()]).optional(),
Mschema-typescriptdefault / TopLevel.ts+12 −0
@@ -186,6 +186,7 @@ export interface TopLevel {
186186 left?: UnionLeft;
187187 let?: UnionLet;
188188 list?: UnionList;
189+ LocalDate?: UnionLocalDate;
189190 Locale?: UnionLocale;
190191 lock?: UnionLock;
191192 long?: UnionLong;
@@ -220,6 +221,8 @@ export interface TopLevel {
220221 object?: UnionObject;
221222 ObjectMapper?: UnionObjectMapper;
222223 of?: UnionOf;
224+ OffsetDateTime?: UnionOffsetDateTime;
225+ OffsetTime?: UnionOffsetTime;
223226 oneway?: UnionOneway;
224227 open?: UnionOpen;
225228 operator?: UnionOperator;
@@ -422,6 +425,8 @@ export type UnionJSONTokenType = object | number;
422425
423426 export type UnionKSerializer = object | number;
424427
428+export type UnionLocalDate = object | number;
429+
425430 export type UnionLocale = object | number;
426431
427432 export type UnionMapEntry = object | number;
@@ -440,6 +445,10 @@ export type UnionNone = object | number;
440445
441446 export type UnionObjectMapper = object | number;
442447
448+export type UnionOffsetDateTime = object | number;
449+
450+export type UnionOffsetTime = object | number;
451+
443452 export type UnionPrimitiveKind = object | number;
444453
445454 export type UnionProtocol = object | number;
@@ -1392,6 +1401,7 @@ const typeMap: any = {
13921401 { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) },
13931402 { json: "let", js: "let", typ: u(undefined, u(m("any"), 3.14)) },
13941403 { json: "list", js: "list", typ: u(undefined, u(m("any"), 3.14)) },
1404+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(m("any"), 3.14)) },
13951405 { json: "Locale", js: "Locale", typ: u(undefined, u(m("any"), 3.14)) },
13961406 { json: "lock", js: "lock", typ: u(undefined, u(m("any"), 3.14)) },
13971407 { json: "long", js: "long", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1426,6 +1436,8 @@ const typeMap: any = {
14261436 { json: "object", js: "object", typ: u(undefined, u(m("any"), 3.14)) },
14271437 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(m("any"), 3.14)) },
14281438 { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) },
1439+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(m("any"), 3.14)) },
1440+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(m("any"), 3.14)) },
14291441 { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) },
14301442 { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) },
14311443 { json: "operator", js: "operator", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.