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
22,254changed lines
+15,229 −7,025insertions / deletions
Base 4fae346ba5a108350e23f153a6e0d2edc996fc3f · PR merge 8c011f0ca442cf6033f88f7fc4ce8e7a2df0509e · Head dd2047fda765719a163ae9e559a9084533978e26 · raw patch
Test case

test/inputs/json/priority/keywords.json

56 generated files · +9,502 −6,796
Mcjsondefault / TopLevel.c+637 −442
@@ -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 }
@@ -18264,47 +18264,47 @@ void cJSON_DeleteUsing(struct Using * x) {
1826418264 }
1826518265 }
1826618266
18267-struct Virtual * cJSON_ParseVirtual(const char * s) {
18268- struct Virtual * x = NULL;
18267+struct Obj5True * cJSON_ParseObj5True(const char * s) {
18268+ struct Obj5True * x = NULL;
1826918269 if (NULL != s) {
1827018270 cJSON * j = cJSON_Parse(s);
1827118271 if (NULL != j) {
18272- x = cJSON_GetVirtualValue(j);
18272+ x = cJSON_GetObj5TrueValue(j);
1827318273 cJSON_Delete(j);
1827418274 }
1827518275 }
1827618276 return x;
1827718277 }
1827818278
18279-struct Virtual * cJSON_GetVirtualValue(const cJSON * j) {
18280- struct Virtual * x = NULL;
18279+struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18280+ struct Obj5True * x = NULL;
1828118281 if (NULL != j) {
18282- if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) {
18283- memset(x, 0, sizeof(struct Virtual));
18284- if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; }
18285- if (cJSON_HasObjectItem(j, "virtual")) {
18286- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; }
18287- x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
18282+ if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18283+ memset(x, 0, sizeof(struct Obj5True));
18284+ if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18285+ if (cJSON_HasObjectItem(j, "true")) {
18286+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18287+ x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
1828818288 }
1828918289 }
1829018290 }
1829118291 return x;
1829218292 }
1829318293
18294-cJSON * cJSON_CreateVirtual(const struct Virtual * x) {
18294+cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
1829518295 cJSON * j = NULL;
1829618296 if (NULL != x) {
1829718297 if (NULL != (j = cJSON_CreateObject())) {
18298- cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual);
18298+ cJSON_AddNumberToObject(j, "true", x->true_true);
1829918299 }
1830018300 }
1830118301 return j;
1830218302 }
1830318303
18304-char * cJSON_PrintVirtual(const struct Virtual * x) {
18304+char * cJSON_PrintObj5True(const struct Obj5True * x) {
1830518305 char * s = NULL;
1830618306 if (NULL != x) {
18307- cJSON * j = cJSON_CreateVirtual(x);
18307+ cJSON * j = cJSON_CreateObj5True(x);
1830818308 if (NULL != j) {
1830918309 s = cJSON_Print(j);
1831018310 cJSON_Delete(j);
@@ -18313,53 +18313,53 @@ char * cJSON_PrintVirtual(const struct Virtual * x) {
1831318313 return s;
1831418314 }
1831518315
18316-void cJSON_DeleteVirtual(struct Virtual * x) {
18316+void cJSON_DeleteObj5True(struct Obj5True * x) {
1831718317 if (NULL != x) {
1831818318 cJSON_free(x);
1831918319 }
1832018320 }
1832118321
18322-struct Obj5True * cJSON_ParseObj5True(const char * s) {
18323- struct Obj5True * x = NULL;
18322+struct Sealed * cJSON_ParseSealed(const char * s) {
18323+ struct Sealed * x = NULL;
1832418324 if (NULL != s) {
1832518325 cJSON * j = cJSON_Parse(s);
1832618326 if (NULL != j) {
18327- x = cJSON_GetObj5TrueValue(j);
18327+ x = cJSON_GetSealedValue(j);
1832818328 cJSON_Delete(j);
1832918329 }
1833018330 }
1833118331 return x;
1833218332 }
1833318333
18334-struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) {
18335- struct Obj5True * x = NULL;
18334+struct Sealed * cJSON_GetSealedValue(const cJSON * j) {
18335+ struct Sealed * x = NULL;
1833618336 if (NULL != j) {
18337- if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) {
18338- memset(x, 0, sizeof(struct Obj5True));
18339- if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; }
18340- if (cJSON_HasObjectItem(j, "true")) {
18341- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; }
18342- x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true"));
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"));
1834318343 }
1834418344 }
1834518345 }
1834618346 return x;
1834718347 }
1834818348
18349-cJSON * cJSON_CreateObj5True(const struct Obj5True * x) {
18349+cJSON * cJSON_CreateSealed(const struct Sealed * x) {
1835018350 cJSON * j = NULL;
1835118351 if (NULL != x) {
1835218352 if (NULL != (j = cJSON_CreateObject())) {
18353- cJSON_AddNumberToObject(j, "true", x->true_true);
18353+ cJSON_AddNumberToObject(j, "sealed", x->sealed);
1835418354 }
1835518355 }
1835618356 return j;
1835718357 }
1835818358
18359-char * cJSON_PrintObj5True(const struct Obj5True * x) {
18359+char * cJSON_PrintSealed(const struct Sealed * x) {
1836018360 char * s = NULL;
1836118361 if (NULL != x) {
18362- cJSON * j = cJSON_CreateObj5True(x);
18362+ cJSON * j = cJSON_CreateSealed(x);
1836318363 if (NULL != j) {
1836418364 s = cJSON_Print(j);
1836518365 cJSON_Delete(j);
@@ -18368,13 +18368,123 @@ char * cJSON_PrintObj5True(const struct Obj5True * x) {
1836818368 return s;
1836918369 }
1837018370
18371-void cJSON_DeleteObj5True(struct Obj5True * x) {
18371+void cJSON_DeleteSealed(struct Sealed * x) {
1837218372 if (NULL != x) {
1837318373 cJSON_free(x);
1837418374 }
1837518375 }
1837618376
18377-struct Self * cJSON_ParseSelf(const char * s) {
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) {
1837818488 struct Self * x = NULL;
1837918489 if (NULL != s) {
1838018490 cJSON * j = cJSON_Parse(s);
@@ -20354,116 +20464,6 @@ void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x) {
2035420464 }
2035520465 }
2035620466
20357-struct Uuid * cJSON_ParseUuid(const char * s) {
20358- struct Uuid * x = NULL;
20359- if (NULL != s) {
20360- cJSON * j = cJSON_Parse(s);
20361- if (NULL != j) {
20362- x = cJSON_GetUuidValue(j);
20363- cJSON_Delete(j);
20364- }
20365- }
20366- return x;
20367-}
20368-
20369-struct Uuid * cJSON_GetUuidValue(const cJSON * j) {
20370- struct Uuid * x = NULL;
20371- if (NULL != j) {
20372- if (NULL != (x = cJSON_malloc(sizeof(struct Uuid)))) {
20373- memset(x, 0, sizeof(struct Uuid));
20374- if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteUuid(x); return NULL; }
20375- if (cJSON_HasObjectItem(j, "UUID")) {
20376- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteUuid(x); return NULL; }
20377- x->uuid = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
20378- }
20379- }
20380- }
20381- return x;
20382-}
20383-
20384-cJSON * cJSON_CreateUuid(const struct Uuid * x) {
20385- cJSON * j = NULL;
20386- if (NULL != x) {
20387- if (NULL != (j = cJSON_CreateObject())) {
20388- cJSON_AddNumberToObject(j, "UUID", x->uuid);
20389- }
20390- }
20391- return j;
20392-}
20393-
20394-char * cJSON_PrintUuid(const struct Uuid * x) {
20395- char * s = NULL;
20396- if (NULL != x) {
20397- cJSON * j = cJSON_CreateUuid(x);
20398- if (NULL != j) {
20399- s = cJSON_Print(j);
20400- cJSON_Delete(j);
20401- }
20402- }
20403- return s;
20404-}
20405-
20406-void cJSON_DeleteUuid(struct Uuid * x) {
20407- if (NULL != x) {
20408- cJSON_free(x);
20409- }
20410-}
20411-
20412-struct Var * cJSON_ParseVar(const char * s) {
20413- struct Var * x = NULL;
20414- if (NULL != s) {
20415- cJSON * j = cJSON_Parse(s);
20416- if (NULL != j) {
20417- x = cJSON_GetVarValue(j);
20418- cJSON_Delete(j);
20419- }
20420- }
20421- return x;
20422-}
20423-
20424-struct Var * cJSON_GetVarValue(const cJSON * j) {
20425- struct Var * x = NULL;
20426- if (NULL != j) {
20427- if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) {
20428- memset(x, 0, sizeof(struct Var));
20429- if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; }
20430- if (cJSON_HasObjectItem(j, "var")) {
20431- if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; }
20432- x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
20433- }
20434- }
20435- }
20436- return x;
20437-}
20438-
20439-cJSON * cJSON_CreateVar(const struct Var * x) {
20440- cJSON * j = NULL;
20441- if (NULL != x) {
20442- if (NULL != (j = cJSON_CreateObject())) {
20443- cJSON_AddNumberToObject(j, "var", x->var);
20444- }
20445- }
20446- return j;
20447-}
20448-
20449-char * cJSON_PrintVar(const struct Var * x) {
20450- char * s = NULL;
20451- if (NULL != x) {
20452- cJSON * j = cJSON_CreateVar(x);
20453- if (NULL != j) {
20454- s = cJSON_Print(j);
20455- cJSON_Delete(j);
20456- }
20457- }
20458- return s;
20459-}
20460-
20461-void cJSON_DeleteVar(struct Var * 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) {
@@ -20630,18 +20630,30 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2063020630 x->obj5_using = cJSON_GetUsingValue(cJSON_GetObjectItemCaseSensitive(j, "using"));
2063120631 if (NULL == x->obj5_using) { cJSON_DeleteObj5(x); return NULL; }
2063220632 }
20633- if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj5(x); return NULL; }
20634- if (cJSON_HasObjectItem(j, "virtual")) {
20635- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj5(x); return NULL; }
20636- x->obj5_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
20637- if (NULL == x->obj5_virtual) { cJSON_DeleteObj5(x); return NULL; }
20638- }
2063920633 if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5(x); return NULL; }
2064020634 if (cJSON_HasObjectItem(j, "true")) {
2064120635 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5(x); return NULL; }
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; }
@@ -20858,18 +20870,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) {
2085820870 x->utf8_json_writer = cJSON_GetUtf8JsonWriterValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"));
2085920871 if (NULL == x->utf8_json_writer) { cJSON_DeleteObj5(x); return NULL; }
2086020872 }
20861- if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteObj5(x); return NULL; }
20862- if (cJSON_HasObjectItem(j, "UUID")) {
20863- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteObj5(x); return NULL; }
20864- x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
20865- if (NULL == x->uuid) { cJSON_DeleteObj5(x); return NULL; }
20866- }
20867- if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj5(x); return NULL; }
20868- if (cJSON_HasObjectItem(j, "var")) {
20869- if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj5(x); return NULL; }
20870- x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
20871- if (NULL == x->var) { cJSON_DeleteObj5(x); return NULL; }
20872- }
2087320873 }
2087420874 }
2087520875 return x;
@@ -20904,8 +20904,10 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2090420904 cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union));
2090520905 cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned));
2090620906 cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj5_using));
20907- cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj5_virtual));
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, "serialize", cJSON_CreateSerialize(x->serialize));
@@ -20942,8 +20944,6 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) {
2094220944 cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort));
2094320945 cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader));
2094420946 cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer));
20945- cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
20946- cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var));
2094720947 }
2094820948 }
2094920949 return j;
@@ -21035,12 +21035,18 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2103521035 if (NULL != x->obj5_using) {
2103621036 cJSON_DeleteUsing(x->obj5_using);
2103721037 }
21038- if (NULL != x->obj5_virtual) {
21039- cJSON_DeleteVirtual(x->obj5_virtual);
21040- }
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 }
@@ -21149,12 +21155,61 @@ void cJSON_DeleteObj5(struct Obj5 * x) {
2114921155 if (NULL != x->utf8_json_writer) {
2115021156 cJSON_DeleteUtf8JsonWriter(x->utf8_json_writer);
2115121157 }
21152- if (NULL != x->uuid) {
21153- cJSON_DeleteUuid(x->uuid);
21158+ cJSON_free(x);
21159+ }
21160+}
21161+
21162+struct Virtual * cJSON_ParseVirtual(const char * s) {
21163+ struct Virtual * x = NULL;
21164+ if (NULL != s) {
21165+ cJSON * j = cJSON_Parse(s);
21166+ if (NULL != j) {
21167+ x = cJSON_GetVirtualValue(j);
21168+ cJSON_Delete(j);
2115421169 }
21155- if (NULL != x->var) {
21156- cJSON_DeleteVar(x->var);
21170+ }
21171+ return x;
21172+}
21173+
21174+struct Virtual * cJSON_GetVirtualValue(const cJSON * j) {
21175+ struct Virtual * x = NULL;
21176+ if (NULL != j) {
21177+ if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) {
21178+ memset(x, 0, sizeof(struct Virtual));
21179+ if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; }
21180+ if (cJSON_HasObjectItem(j, "virtual")) {
21181+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; }
21182+ x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
21183+ }
21184+ }
21185+ }
21186+ return x;
21187+}
21188+
21189+cJSON * cJSON_CreateVirtual(const struct Virtual * x) {
21190+ cJSON * j = NULL;
21191+ if (NULL != x) {
21192+ if (NULL != (j = cJSON_CreateObject())) {
21193+ cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual);
21194+ }
21195+ }
21196+ return j;
21197+}
21198+
21199+char * cJSON_PrintVirtual(const struct Virtual * x) {
21200+ char * s = NULL;
21201+ if (NULL != x) {
21202+ cJSON * j = cJSON_CreateVirtual(x);
21203+ if (NULL != j) {
21204+ s = cJSON_Print(j);
21205+ cJSON_Delete(j);
2115721206 }
21207+ }
21208+ return s;
21209+}
21210+
21211+void cJSON_DeleteVirtual(struct Virtual * x) {
21212+ if (NULL != x) {
2115821213 cJSON_free(x);
2115921214 }
2116021215 }
@@ -21489,6 +21544,116 @@ void cJSON_DeleteXorEq(struct XorEq * x) {
2148921544 }
2149021545 }
2149121546
21547+struct Uuid * cJSON_ParseUuid(const char * s) {
21548+ struct Uuid * x = NULL;
21549+ if (NULL != s) {
21550+ cJSON * j = cJSON_Parse(s);
21551+ if (NULL != j) {
21552+ x = cJSON_GetUuidValue(j);
21553+ cJSON_Delete(j);
21554+ }
21555+ }
21556+ return x;
21557+}
21558+
21559+struct Uuid * cJSON_GetUuidValue(const cJSON * j) {
21560+ struct Uuid * x = NULL;
21561+ if (NULL != j) {
21562+ if (NULL != (x = cJSON_malloc(sizeof(struct Uuid)))) {
21563+ memset(x, 0, sizeof(struct Uuid));
21564+ if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteUuid(x); return NULL; }
21565+ if (cJSON_HasObjectItem(j, "UUID")) {
21566+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteUuid(x); return NULL; }
21567+ x->uuid = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
21568+ }
21569+ }
21570+ }
21571+ return x;
21572+}
21573+
21574+cJSON * cJSON_CreateUuid(const struct Uuid * x) {
21575+ cJSON * j = NULL;
21576+ if (NULL != x) {
21577+ if (NULL != (j = cJSON_CreateObject())) {
21578+ cJSON_AddNumberToObject(j, "UUID", x->uuid);
21579+ }
21580+ }
21581+ return j;
21582+}
21583+
21584+char * cJSON_PrintUuid(const struct Uuid * x) {
21585+ char * s = NULL;
21586+ if (NULL != x) {
21587+ cJSON * j = cJSON_CreateUuid(x);
21588+ if (NULL != j) {
21589+ s = cJSON_Print(j);
21590+ cJSON_Delete(j);
21591+ }
21592+ }
21593+ return s;
21594+}
21595+
21596+void cJSON_DeleteUuid(struct Uuid * x) {
21597+ if (NULL != x) {
21598+ cJSON_free(x);
21599+ }
21600+}
21601+
21602+struct Var * cJSON_ParseVar(const char * s) {
21603+ struct Var * x = NULL;
21604+ if (NULL != s) {
21605+ cJSON * j = cJSON_Parse(s);
21606+ if (NULL != j) {
21607+ x = cJSON_GetVarValue(j);
21608+ cJSON_Delete(j);
21609+ }
21610+ }
21611+ return x;
21612+}
21613+
21614+struct Var * cJSON_GetVarValue(const cJSON * j) {
21615+ struct Var * x = NULL;
21616+ if (NULL != j) {
21617+ if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) {
21618+ memset(x, 0, sizeof(struct Var));
21619+ if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; }
21620+ if (cJSON_HasObjectItem(j, "var")) {
21621+ if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; }
21622+ x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
21623+ }
21624+ }
21625+ }
21626+ return x;
21627+}
21628+
21629+cJSON * cJSON_CreateVar(const struct Var * x) {
21630+ cJSON * j = NULL;
21631+ if (NULL != x) {
21632+ if (NULL != (j = cJSON_CreateObject())) {
21633+ cJSON_AddNumberToObject(j, "var", x->var);
21634+ }
21635+ }
21636+ return j;
21637+}
21638+
21639+char * cJSON_PrintVar(const struct Var * x) {
21640+ char * s = NULL;
21641+ if (NULL != x) {
21642+ cJSON * j = cJSON_CreateVar(x);
21643+ if (NULL != j) {
21644+ s = cJSON_Print(j);
21645+ cJSON_Delete(j);
21646+ }
21647+ }
21648+ return s;
21649+}
21650+
21651+void cJSON_DeleteVar(struct Var * x) {
21652+ if (NULL != x) {
21653+ cJSON_free(x);
21654+ }
21655+}
21656+
2149221657 struct Weak * cJSON_ParseWeak(const char * s) {
2149321658 struct Weak * x = NULL;
2149421659 if (NULL != s) {
@@ -21841,6 +22006,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2184122006 if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; }
2184222007 x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy"));
2184322008 }
22009+ if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj6(x); return NULL; }
22010+ if (cJSON_HasObjectItem(j, "virtual")) {
22011+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj6(x); return NULL; }
22012+ x->obj6_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual"));
22013+ if (NULL == x->obj6_virtual) { cJSON_DeleteObj6(x); return NULL; }
22014+ }
2184422015 if (!cJSON_HasObjectItem(j, "void")) { cJSON_DeleteObj6(x); return NULL; }
2184522016 if (cJSON_HasObjectItem(j, "void")) {
2184622017 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "void"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -21877,6 +22048,18 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) {
2187722048 x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq"));
2187822049 if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; }
2187922050 }
22051+ if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteObj6(x); return NULL; }
22052+ if (cJSON_HasObjectItem(j, "UUID")) {
22053+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteObj6(x); return NULL; }
22054+ x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID"));
22055+ if (NULL == x->uuid) { cJSON_DeleteObj6(x); return NULL; }
22056+ }
22057+ if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj6(x); return NULL; }
22058+ if (cJSON_HasObjectItem(j, "var")) {
22059+ if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj6(x); return NULL; }
22060+ x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var"));
22061+ if (NULL == x->var) { cJSON_DeleteObj6(x); return NULL; }
22062+ }
2188022063 if (!cJSON_HasObjectItem(j, "weak")) { cJSON_DeleteObj6(x); return NULL; }
2188122064 if (cJSON_HasObjectItem(j, "weak")) {
2188222065 if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "weak"))) { cJSON_DeleteObj6(x); return NULL; }
@@ -21923,12 +22106,15 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) {
2192322106 if (NULL != x) {
2192422107 if (NULL != (j = cJSON_CreateObject())) {
2192522108 cJSON_AddNumberToObject(j, "dummy", x->dummy);
22109+ cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual));
2192622110 cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void));
2192722111 cJSON_AddItemToObject(j, "volatile", cJSON_CreateVolatile(x->obj6_volatile));
2192822112 cJSON_AddItemToObject(j, "wchar_t", cJSON_CreateWcharT(x->obj6_wchar_t));
2192922113 cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while));
2193022114 cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor));
2193122115 cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq));
22116+ cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid));
22117+ cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var));
2193222118 cJSON_AddItemToObject(j, "weak", cJSON_CreateWeak(x->weak));
2193322119 cJSON_AddItemToObject(j, "where", cJSON_CreateWhere(x->where));
2193422120 cJSON_AddItemToObject(j, "willSet", cJSON_CreateWillSet(x->will_set));
@@ -21954,6 +22140,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) {
2195422140
2195522141 void cJSON_DeleteObj6(struct Obj6 * x) {
2195622142 if (NULL != x) {
22143+ if (NULL != x->obj6_virtual) {
22144+ cJSON_DeleteVirtual(x->obj6_virtual);
22145+ }
2195722146 if (NULL != x->obj6_void) {
2195822147 cJSON_DeleteVoid(x->obj6_void);
2195922148 }
@@ -21972,6 +22161,12 @@ void cJSON_DeleteObj6(struct Obj6 * x) {
2197222161 if (NULL != x->obj6_xor_eq) {
2197322162 cJSON_DeleteXorEq(x->obj6_xor_eq);
2197422163 }
22164+ if (NULL != x->uuid) {
22165+ cJSON_DeleteUuid(x->uuid);
22166+ }
22167+ if (NULL != x->var) {
22168+ cJSON_DeleteVar(x->var);
22169+ }
2197522170 if (NULL != x->weak) {
2197622171 cJSON_DeleteWeak(x->weak);
2197722172 }
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 SelfClass {
@@ -1445,14 +1445,22 @@ struct Using {
14451445 int64_t using_using;
14461446 };
14471447
1448-struct Virtual {
1449- int64_t virtual_virtual;
1450-};
1451-
14521448 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 };
@@ -1597,14 +1605,6 @@ struct Utf8JsonWriter {
15971605 int64_t utf8_json_writer;
15981606 };
15991607
1600-struct Uuid {
1601- int64_t uuid;
1602-};
1603-
1604-struct Var {
1605- int64_t var;
1606-};
1607-
16081608 struct Obj5 {
16091609 int64_t dummy;
16101610 struct SelfClass * obj5_self;
@@ -1631,8 +1631,10 @@ struct Obj5 {
16311631 struct Union * obj5_union;
16321632 struct Unsigned * obj5_unsigned;
16331633 struct Using * obj5_using;
1634- struct Virtual * obj5_virtual;
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 Serialize * serialize;
@@ -1669,8 +1671,10 @@ struct Obj5 {
16691671 struct Ushort * ushort;
16701672 struct Utf8JsonReader * utf8_json_reader;
16711673 struct Utf8JsonWriter * utf8_json_writer;
1672- struct Uuid * uuid;
1673- struct Var * var;
1674+};
1675+
1676+struct Virtual {
1677+ int64_t virtual_virtual;
16741678 };
16751679
16761680 struct Void {
@@ -1697,6 +1701,14 @@ struct XorEq {
16971701 int64_t xor_eq_xor_eq;
16981702 };
16991703
1704+struct Uuid {
1705+ int64_t uuid;
1706+};
1707+
1708+struct Var {
1709+ int64_t var;
1710+};
1711+
17001712 struct Weak {
17011713 int64_t weak;
17021714 };
@@ -1723,12 +1735,15 @@ struct Yield {
17231735
17241736 struct Obj6 {
17251737 int64_t dummy;
1738+ struct Virtual * obj6_virtual;
17261739 struct Void * obj6_void;
17271740 struct Volatile * obj6_volatile;
17281741 struct WcharT * obj6_wchar_t;
17291742 struct While * obj6_while;
17301743 struct Xor * obj6_xor;
17311744 struct XorEq * obj6_xor_eq;
1745+ struct Uuid * uuid;
1746+ struct Var * var;
17321747 struct Weak * weak;
17331748 struct Where * where;
17341749 struct WillSet * will_set;
@@ -2794,6 +2809,12 @@ cJSON * cJSON_CreateList(const struct List * x);
27942809 char * cJSON_PrintList(const struct List * x);
27952810 void cJSON_DeleteList(struct List * x);
27962811
2812+struct LocalDate * cJSON_ParseLocalDate(const char * s);
2813+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
2814+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
2815+char * cJSON_PrintLocalDate(const struct LocalDate * x);
2816+void cJSON_DeleteLocalDate(struct LocalDate * x);
2817+
27972818 struct Locale * cJSON_ParseLocale(const char * s);
27982819 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
27992820 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -2908,12 +2929,6 @@ cJSON * cJSON_CreateNew(const struct New * x);
29082929 char * cJSON_PrintNew(const struct New * x);
29092930 void cJSON_DeleteNew(struct New * x);
29102931
2911-struct Noexcept * cJSON_ParseNoexcept(const char * s);
2912-struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
2913-cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
2914-char * cJSON_PrintNoexcept(const struct Noexcept * x);
2915-void cJSON_DeleteNoexcept(struct Noexcept * x);
2916-
29172932 struct Obj3 * cJSON_ParseObj3(const char * s);
29182933 struct Obj3 * cJSON_GetObj3Value(const cJSON * j);
29192934 cJSON * cJSON_CreateObj3(const struct Obj3 * x);
@@ -2980,6 +2995,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x);
29802995 char * cJSON_PrintNumberClass(const struct NumberClass * x);
29812996 void cJSON_DeleteNumberClass(struct NumberClass * x);
29822997
2998+struct Noexcept * cJSON_ParseNoexcept(const char * s);
2999+struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j);
3000+cJSON * cJSON_CreateNoexcept(const struct Noexcept * x);
3001+char * cJSON_PrintNoexcept(const struct Noexcept * x);
3002+void cJSON_DeleteNoexcept(struct Noexcept * x);
3003+
29833004 struct NoneClass * cJSON_ParseNoneClass(const char * s);
29843005 struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j);
29853006 cJSON * cJSON_CreateNoneClass(const struct NoneClass * x);
@@ -3106,6 +3127,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
31063127 char * cJSON_PrintOf(const struct Of * x);
31073128 void cJSON_DeleteOf(struct Of * x);
31083129
3130+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
3131+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
3132+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
3133+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
3134+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
3135+
3136+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
3137+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
3138+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
3139+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
3140+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
3141+
31093142 struct Oneway * cJSON_ParseOneway(const char * s);
31103143 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
31113144 cJSON * cJSON_CreateOneway(const struct Oneway * x);
@@ -3286,24 +3319,6 @@ cJSON * cJSON_CreateSbyte(const struct Sbyte * x);
32863319 char * cJSON_PrintSbyte(const struct Sbyte * x);
32873320 void cJSON_DeleteSbyte(struct Sbyte * x);
32883321
3289-struct Sealed * cJSON_ParseSealed(const char * s);
3290-struct Sealed * cJSON_GetSealedValue(const cJSON * j);
3291-cJSON * cJSON_CreateSealed(const struct Sealed * x);
3292-char * cJSON_PrintSealed(const struct Sealed * x);
3293-void cJSON_DeleteSealed(struct Sealed * x);
3294-
3295-struct Sel * cJSON_ParseSel(const char * s);
3296-struct Sel * cJSON_GetSelValue(const cJSON * j);
3297-cJSON * cJSON_CreateSel(const struct Sel * x);
3298-char * cJSON_PrintSel(const struct Sel * x);
3299-void cJSON_DeleteSel(struct Sel * x);
3300-
3301-struct Select * cJSON_ParseSelect(const char * s);
3302-struct Select * cJSON_GetSelectValue(const cJSON * j);
3303-cJSON * cJSON_CreateSelect(const struct Select * x);
3304-char * cJSON_PrintSelect(const struct Select * x);
3305-void cJSON_DeleteSelect(struct Select * x);
3306-
33073322 struct Obj4 * cJSON_ParseObj4(const char * s);
33083323 struct Obj4 * cJSON_GetObj4Value(const cJSON * j);
33093324 cJSON * cJSON_CreateObj4(const struct Obj4 * x);
@@ -3454,18 +3469,30 @@ cJSON * cJSON_CreateUsing(const struct Using * x);
34543469 char * cJSON_PrintUsing(const struct Using * x);
34553470 void cJSON_DeleteUsing(struct Using * x);
34563471
3457-struct Virtual * cJSON_ParseVirtual(const char * s);
3458-struct Virtual * cJSON_GetVirtualValue(const cJSON * j);
3459-cJSON * cJSON_CreateVirtual(const struct Virtual * x);
3460-char * cJSON_PrintVirtual(const struct Virtual * x);
3461-void cJSON_DeleteVirtual(struct Virtual * x);
3462-
34633472 struct Obj5True * cJSON_ParseObj5True(const char * s);
34643473 struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j);
34653474 cJSON * cJSON_CreateObj5True(const struct Obj5True * x);
34663475 char * cJSON_PrintObj5True(const struct Obj5True * x);
34673476 void cJSON_DeleteObj5True(struct Obj5True * x);
34683477
3478+struct Sealed * cJSON_ParseSealed(const char * s);
3479+struct Sealed * cJSON_GetSealedValue(const cJSON * j);
3480+cJSON * cJSON_CreateSealed(const struct Sealed * x);
3481+char * cJSON_PrintSealed(const struct Sealed * x);
3482+void cJSON_DeleteSealed(struct Sealed * x);
3483+
3484+struct Sel * cJSON_ParseSel(const char * s);
3485+struct Sel * cJSON_GetSelValue(const cJSON * j);
3486+cJSON * cJSON_CreateSel(const struct Sel * x);
3487+char * cJSON_PrintSel(const struct Sel * x);
3488+void cJSON_DeleteSel(struct Sel * x);
3489+
3490+struct Select * cJSON_ParseSelect(const char * s);
3491+struct Select * cJSON_GetSelectValue(const cJSON * j);
3492+cJSON * cJSON_CreateSelect(const struct Select * x);
3493+char * cJSON_PrintSelect(const struct Select * x);
3494+void cJSON_DeleteSelect(struct Select * x);
3495+
34693496 struct Self * cJSON_ParseSelf(const char * s);
34703497 struct Self * cJSON_GetSelfValue(const cJSON * j);
34713498 cJSON * cJSON_CreateSelf(const struct Self * x);
@@ -3682,24 +3709,18 @@ cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x);
36823709 char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x);
36833710 void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x);
36843711
3685-struct Uuid * cJSON_ParseUuid(const char * s);
3686-struct Uuid * cJSON_GetUuidValue(const cJSON * j);
3687-cJSON * cJSON_CreateUuid(const struct Uuid * x);
3688-char * cJSON_PrintUuid(const struct Uuid * x);
3689-void cJSON_DeleteUuid(struct Uuid * x);
3690-
3691-struct Var * cJSON_ParseVar(const char * s);
3692-struct Var * cJSON_GetVarValue(const cJSON * j);
3693-cJSON * cJSON_CreateVar(const struct Var * x);
3694-char * cJSON_PrintVar(const struct Var * x);
3695-void cJSON_DeleteVar(struct Var * x);
3696-
36973712 struct Obj5 * cJSON_ParseObj5(const char * s);
36983713 struct Obj5 * cJSON_GetObj5Value(const cJSON * j);
36993714 cJSON * cJSON_CreateObj5(const struct Obj5 * x);
37003715 char * cJSON_PrintObj5(const struct Obj5 * x);
37013716 void cJSON_DeleteObj5(struct Obj5 * x);
37023717
3718+struct Virtual * cJSON_ParseVirtual(const char * s);
3719+struct Virtual * cJSON_GetVirtualValue(const cJSON * j);
3720+cJSON * cJSON_CreateVirtual(const struct Virtual * x);
3721+char * cJSON_PrintVirtual(const struct Virtual * x);
3722+void cJSON_DeleteVirtual(struct Virtual * x);
3723+
37033724 struct Void * cJSON_ParseVoid(const char * s);
37043725 struct Void * cJSON_GetVoidValue(const cJSON * j);
37053726 cJSON * cJSON_CreateVoid(const struct Void * x);
@@ -3736,6 +3757,18 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x);
37363757 char * cJSON_PrintXorEq(const struct XorEq * x);
37373758 void cJSON_DeleteXorEq(struct XorEq * x);
37383759
3760+struct Uuid * cJSON_ParseUuid(const char * s);
3761+struct Uuid * cJSON_GetUuidValue(const cJSON * j);
3762+cJSON * cJSON_CreateUuid(const struct Uuid * x);
3763+char * cJSON_PrintUuid(const struct Uuid * x);
3764+void cJSON_DeleteUuid(struct Uuid * x);
3765+
3766+struct Var * cJSON_ParseVar(const char * s);
3767+struct Var * cJSON_GetVarValue(const cJSON * j);
3768+cJSON * cJSON_CreateVar(const struct Var * x);
3769+char * cJSON_PrintVar(const struct Var * x);
3770+void cJSON_DeleteVar(struct Var * x);
3771+
37393772 struct Weak * cJSON_ParseWeak(const char * s);
37403773 struct Weak * cJSON_GetWeakValue(const cJSON * j);
37413774 cJSON * cJSON_CreateWeak(const struct Weak * x);
Mcplusplusdefault / quicktype.hpp+347 −242
@@ -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 SelfClass {
@@ -5275,20 +5275,6 @@ namespace quicktype {
52755275 void set_using_using(const int64_t & value) { this->using_using = value; }
52765276 };
52775277
5278- class Virtual {
5279- public:
5280- Virtual() = default;
5281- virtual ~Virtual() = default;
5282-
5283- private:
5284- int64_t virtual_virtual;
5285-
5286- public:
5287- const int64_t & get_virtual_virtual() const { return virtual_virtual; }
5288- int64_t & get_mutable_virtual_virtual() { return virtual_virtual; }
5289- void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; }
5290- };
5291-
52925278 class TrueClass {
52935279 public:
52945280 TrueClass() = 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;
@@ -5821,34 +5849,6 @@ namespace quicktype {
58215849 void set_utf8_json_writer(const int64_t & value) { this->utf8_json_writer = value; }
58225850 };
58235851
5824- class Uuid {
5825- public:
5826- Uuid() = default;
5827- virtual ~Uuid() = default;
5828-
5829- private:
5830- int64_t uuid;
5831-
5832- public:
5833- const int64_t & get_uuid() const { return uuid; }
5834- int64_t & get_mutable_uuid() { return uuid; }
5835- void set_uuid(const int64_t & value) { this->uuid = value; }
5836- };
5837-
5838- class Var {
5839- public:
5840- Var() = default;
5841- virtual ~Var() = default;
5842-
5843- private:
5844- int64_t var;
5845-
5846- public:
5847- const int64_t & get_var() const { return var; }
5848- int64_t & get_mutable_var() { return var; }
5849- void set_var(const int64_t & value) { this->var = value; }
5850- };
5851-
58525852 class Obj5 {
58535853 public:
58545854 Obj5() = default;
@@ -5879,8 +5879,10 @@ namespace quicktype {
58795879 Union obj5_union;
58805880 Unsigned obj5_unsigned;
58815881 Using obj5_using;
5882- Virtual obj5_virtual;
58835882 TrueClass purple_true;
5883+ Sealed sealed;
5884+ Sel sel;
5885+ Select select;
58845886 Self self;
58855887 Sendable sendable;
58865888 Serialize serialize;
@@ -5918,8 +5920,6 @@ namespace quicktype {
59185920 Ushort ushort;
59195921 Utf8JsonReader utf8_json_reader;
59205922 Utf8JsonWriter utf8_json_writer;
5921- Uuid uuid;
5922- Var var;
59235923
59245924 public:
59255925 const int64_t & get_dummy() const { return dummy; }
@@ -6018,14 +6018,22 @@ namespace quicktype {
60186018 Using & get_mutable_obj5_using() { return obj5_using; }
60196019 void set_obj5_using(const Using & value) { this->obj5_using = value; }
60206020
6021- const Virtual & get_obj5_virtual() const { return obj5_virtual; }
6022- Virtual & get_mutable_obj5_virtual() { return obj5_virtual; }
6023- void set_obj5_virtual(const Virtual & value) { this->obj5_virtual = value; }
6024-
60256021 const TrueClass & get_purple_true() const { return purple_true; }
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; }
@@ -6173,14 +6181,20 @@ namespace quicktype {
61736181 const Utf8JsonWriter & get_utf8_json_writer() const { return utf8_json_writer; }
61746182 Utf8JsonWriter & get_mutable_utf8_json_writer() { return utf8_json_writer; }
61756183 void set_utf8_json_writer(const Utf8JsonWriter & value) { this->utf8_json_writer = value; }
6184+ };
61766185
6177- const Uuid & get_uuid() const { return uuid; }
6178- Uuid & get_mutable_uuid() { return uuid; }
6179- void set_uuid(const Uuid & value) { this->uuid = value; }
6186+ class Virtual {
6187+ public:
6188+ Virtual() = default;
6189+ virtual ~Virtual() = default;
61806190
6181- const Var & get_var() const { return var; }
6182- Var & get_mutable_var() { return var; }
6183- void set_var(const Var & value) { this->var = value; }
6191+ private:
6192+ int64_t virtual_virtual;
6193+
6194+ public:
6195+ const int64_t & get_virtual_virtual() const { return virtual_virtual; }
6196+ int64_t & get_mutable_virtual_virtual() { return virtual_virtual; }
6197+ void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; }
61846198 };
61856199
61866200 class Void {
@@ -6267,6 +6281,34 @@ namespace quicktype {
62676281 void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; }
62686282 };
62696283
6284+ class Uuid {
6285+ public:
6286+ Uuid() = default;
6287+ virtual ~Uuid() = default;
6288+
6289+ private:
6290+ int64_t uuid;
6291+
6292+ public:
6293+ const int64_t & get_uuid() const { return uuid; }
6294+ int64_t & get_mutable_uuid() { return uuid; }
6295+ void set_uuid(const int64_t & value) { this->uuid = value; }
6296+ };
6297+
6298+ class Var {
6299+ public:
6300+ Var() = default;
6301+ virtual ~Var() = default;
6302+
6303+ private:
6304+ int64_t var;
6305+
6306+ public:
6307+ const int64_t & get_var() const { return var; }
6308+ int64_t & get_mutable_var() { return var; }
6309+ void set_var(const int64_t & value) { this->var = value; }
6310+ };
6311+
62706312 class Weak {
62716313 public:
62726314 Weak() = default;
@@ -6358,12 +6400,15 @@ namespace quicktype {
63586400
63596401 private:
63606402 int64_t dummy;
6403+ Virtual obj6_virtual;
63616404 Void obj6_void;
63626405 Volatile obj6_volatile;
63636406 WcharT obj6_wchar_t;
63646407 While obj6_while;
63656408 Xor obj6_xor;
63666409 XorEq obj6_xor_eq;
6410+ Uuid uuid;
6411+ Var var;
63676412 Weak weak;
63686413 Where where;
63696414 WillSet will_set;
@@ -6376,6 +6421,10 @@ namespace quicktype {
63766421 int64_t & get_mutable_dummy() { return dummy; }
63776422 void set_dummy(const int64_t & value) { this->dummy = value; }
63786423
6424+ const Virtual & get_obj6_virtual() const { return obj6_virtual; }
6425+ Virtual & get_mutable_obj6_virtual() { return obj6_virtual; }
6426+ void set_obj6_virtual(const Virtual & value) { this->obj6_virtual = value; }
6427+
63796428 const Void & get_obj6_void() const { return obj6_void; }
63806429 Void & get_mutable_obj6_void() { return obj6_void; }
63816430 void set_obj6_void(const Void & value) { this->obj6_void = value; }
@@ -6400,6 +6449,14 @@ namespace quicktype {
64006449 XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; }
64016450 void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; }
64026451
6452+ const Uuid & get_uuid() const { return uuid; }
6453+ Uuid & get_mutable_uuid() { return uuid; }
6454+ void set_uuid(const Uuid & value) { this->uuid = value; }
6455+
6456+ const Var & get_var() const { return var; }
6457+ Var & get_mutable_var() { return var; }
6458+ void set_var(const Var & value) { this->var = value; }
6459+
64036460 const Weak & get_weak() const { return weak; }
64046461 Weak & get_mutable_weak() { return weak; }
64056462 void set_weak(const Weak & value) { this->weak = value; }
@@ -6993,6 +7050,9 @@ namespace quicktype {
69937050 void from_json(const json & j, List & x);
69947051 void to_json(json & j, const List & x);
69957052
7053+ void from_json(const json & j, LocalDate & x);
7054+ void to_json(json & j, const LocalDate & x);
7055+
69967056 void from_json(const json & j, Locale & x);
69977057 void to_json(json & j, const Locale & x);
69987058
@@ -7050,9 +7110,6 @@ namespace quicktype {
70507110 void from_json(const json & j, New & x);
70517111 void to_json(json & j, const New & x);
70527112
7053- void from_json(const json & j, Noexcept & x);
7054- void to_json(json & j, const Noexcept & x);
7055-
70567113 void from_json(const json & j, Obj3 & x);
70577114 void to_json(json & j, const Obj3 & x);
70587115
@@ -7086,6 +7143,9 @@ namespace quicktype {
70867143 void from_json(const json & j, Number & x);
70877144 void to_json(json & j, const Number & x);
70887145
7146+ void from_json(const json & j, Noexcept & x);
7147+ void to_json(json & j, const Noexcept & x);
7148+
70897149 void from_json(const json & j, NoneClass & x);
70907150 void to_json(json & j, const NoneClass & x);
70917151
@@ -7146,6 +7206,12 @@ namespace quicktype {
71467206 void from_json(const json & j, Of & x);
71477207 void to_json(json & j, const Of & x);
71487208
7209+ void from_json(const json & j, OffsetDateTime & x);
7210+ void to_json(json & j, const OffsetDateTime & x);
7211+
7212+ void from_json(const json & j, OffsetTime & x);
7213+ void to_json(json & j, const OffsetTime & x);
7214+
71497215 void from_json(const json & j, Oneway & x);
71507216 void to_json(json & j, const Oneway & x);
71517217
@@ -7239,15 +7305,6 @@ namespace quicktype {
72397305 void from_json(const json & j, Sbyte & x);
72407306 void to_json(json & j, const Sbyte & x);
72417307
7242- void from_json(const json & j, Sealed & x);
7243- void to_json(json & j, const Sealed & x);
7244-
7245- void from_json(const json & j, Sel & x);
7246- void to_json(json & j, const Sel & x);
7247-
7248- void from_json(const json & j, Select & x);
7249- void to_json(json & j, const Select & x);
7250-
72517308 void from_json(const json & j, Obj4 & x);
72527309 void to_json(json & j, const Obj4 & x);
72537310
@@ -7320,12 +7377,18 @@ namespace quicktype {
73207377 void from_json(const json & j, Using & x);
73217378 void to_json(json & j, const Using & x);
73227379
7323- void from_json(const json & j, Virtual & x);
7324- void to_json(json & j, const Virtual & x);
7325-
73267380 void from_json(const json & j, TrueClass & x);
73277381 void to_json(json & j, const TrueClass & x);
73287382
7383+ void from_json(const json & j, Sealed & x);
7384+ void to_json(json & j, const Sealed & x);
7385+
7386+ void from_json(const json & j, Sel & x);
7387+ void to_json(json & j, const Sel & x);
7388+
7389+ void from_json(const json & j, Select & x);
7390+ void to_json(json & j, const Select & x);
7391+
73297392 void from_json(const json & j, Self & x);
73307393 void to_json(json & j, const Self & x);
73317394
@@ -7437,15 +7500,12 @@ namespace quicktype {
74377500 void from_json(const json & j, Utf8JsonWriter & x);
74387501 void to_json(json & j, const Utf8JsonWriter & x);
74397502
7440- void from_json(const json & j, Uuid & x);
7441- void to_json(json & j, const Uuid & x);
7442-
7443- void from_json(const json & j, Var & x);
7444- void to_json(json & j, const Var & x);
7445-
74467503 void from_json(const json & j, Obj5 & x);
74477504 void to_json(json & j, const Obj5 & x);
74487505
7506+ void from_json(const json & j, Virtual & x);
7507+ void to_json(json & j, const Virtual & x);
7508+
74497509 void from_json(const json & j, Void & x);
74507510 void to_json(json & j, const Void & x);
74517511
@@ -7464,6 +7524,12 @@ namespace quicktype {
74647524 void from_json(const json & j, XorEq & x);
74657525 void to_json(json & j, const XorEq & x);
74667526
7527+ void from_json(const json & j, Uuid & x);
7528+ void to_json(json & j, const Uuid & x);
7529+
7530+ void from_json(const json & j, Var & x);
7531+ void to_json(json & j, const Var & x);
7532+
74677533 void from_json(const json & j, Weak & x);
74687534 void to_json(json & j, const Weak & x);
74697535
@@ -9659,6 +9725,17 @@ namespace quicktype {
96599725 j["list"] = x.get_list();
96609726 }
96619727
9728+ inline void from_json(const json & j, LocalDate& x) {
9729+ if (!j.is_object()) throw std::runtime_error("Expected object");
9730+ if (j.find("LocalDate") != j.end() && !j.at("LocalDate").is_number_integer()) throw std::runtime_error("Expected integer");
9731+ x.set_local_date(j.at("LocalDate").get<int64_t>());
9732+ }
9733+
9734+ inline void to_json(json & j, const LocalDate & x) {
9735+ j = json::object();
9736+ j["LocalDate"] = x.get_local_date();
9737+ }
9738+
96629739 inline void from_json(const json & j, Locale& x) {
96639740 if (!j.is_object()) throw std::runtime_error("Expected object");
96649741 if (j.find("Locale") != j.end() && !j.at("Locale").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9868,17 +9945,6 @@ namespace quicktype {
98689945 j["new"] = x.get_new_new();
98699946 }
98709947
9871- inline void from_json(const json & j, Noexcept& x) {
9872- if (!j.is_object()) throw std::runtime_error("Expected object");
9873- if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
9874- x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
9875- }
9876-
9877- inline void to_json(json & j, const Noexcept & x) {
9878- j = json::object();
9879- j["noexcept"] = x.get_noexcept_noexcept();
9880- }
9881-
98829948 inline void from_json(const json & j, Obj3& x) {
98839949 if (!j.is_object()) throw std::runtime_error("Expected object");
98849950 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -9927,6 +9993,7 @@ namespace quicktype {
99279993 x.set_left(j.at("left").get<Left>());
99289994 x.set_let(j.at("let").get<Let>());
99299995 x.set_list(j.at("list").get<List>());
9996+ x.set_local_date(j.at("LocalDate").get<LocalDate>());
99309997 x.set_locale(j.at("Locale").get<Locale>());
99319998 x.set_lock(j.at("lock").get<Lock>());
99329999 x.set_map(j.at("map").get<Map>());
@@ -9946,7 +10013,6 @@ namespace quicktype {
994610013 x.set_obj3_mutable(j.at("mutable").get<Mutable>());
994710014 x.set_obj3_namespace(j.at("namespace").get<Namespace>());
994810015 x.set_obj3_new(j.at("new").get<New>());
9949- x.set_obj3_noexcept(j.at("noexcept").get<Noexcept>());
995010016 }
995110017
995210018 inline void to_json(json & j, const Obj3 & x) {
@@ -9996,6 +10062,7 @@ namespace quicktype {
999610062 j["left"] = x.get_left();
999710063 j["let"] = x.get_let();
999810064 j["list"] = x.get_list();
10065+ j["LocalDate"] = x.get_local_date();
999910066 j["Locale"] = x.get_locale();
1000010067 j["lock"] = x.get_lock();
1000110068 j["map"] = x.get_map();
@@ -10015,7 +10082,6 @@ namespace quicktype {
1001510082 j["mutable"] = x.get_obj3_mutable();
1001610083 j["namespace"] = x.get_obj3_namespace();
1001710084 j["new"] = x.get_obj3_new();
10018- j["noexcept"] = x.get_obj3_noexcept();
1001910085 }
1002010086
1002110087 inline void from_json(const json & j, NoSuchMethod& x) {
@@ -10128,6 +10194,17 @@ namespace quicktype {
1012810194 j["number"] = x.get_number();
1012910195 }
1013010196
10197+ inline void from_json(const json & j, Noexcept& x) {
10198+ if (!j.is_object()) throw std::runtime_error("Expected object");
10199+ if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer");
10200+ x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>());
10201+ }
10202+
10203+ inline void to_json(json & j, const Noexcept & x) {
10204+ j = json::object();
10205+ j["noexcept"] = x.get_noexcept_noexcept();
10206+ }
10207+
1013110208 inline void from_json(const json & j, NoneClass& x) {
1013210209 if (!j.is_object()) throw std::runtime_error("Expected object");
1013310210 if (j.find("none") != j.end() && !j.at("none").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10348,6 +10425,28 @@ namespace quicktype {
1034810425 j["of"] = x.get_of();
1034910426 }
1035010427
10428+ inline void from_json(const json & j, OffsetDateTime& x) {
10429+ if (!j.is_object()) throw std::runtime_error("Expected object");
10430+ if (j.find("OffsetDateTime") != j.end() && !j.at("OffsetDateTime").is_number_integer()) throw std::runtime_error("Expected integer");
10431+ x.set_offset_date_time(j.at("OffsetDateTime").get<int64_t>());
10432+ }
10433+
10434+ inline void to_json(json & j, const OffsetDateTime & x) {
10435+ j = json::object();
10436+ j["OffsetDateTime"] = x.get_offset_date_time();
10437+ }
10438+
10439+ inline void from_json(const json & j, OffsetTime& x) {
10440+ if (!j.is_object()) throw std::runtime_error("Expected object");
10441+ if (j.find("OffsetTime") != j.end() && !j.at("OffsetTime").is_number_integer()) throw std::runtime_error("Expected integer");
10442+ x.set_offset_time(j.at("OffsetTime").get<int64_t>());
10443+ }
10444+
10445+ inline void to_json(json & j, const OffsetTime & x) {
10446+ j = json::object();
10447+ j["OffsetTime"] = x.get_offset_time();
10448+ }
10449+
1035110450 inline void from_json(const json & j, Oneway& x) {
1035210451 if (!j.is_object()) throw std::runtime_error("Expected object");
1035310452 if (j.find("oneway") != j.end() && !j.at("oneway").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10689,39 +10788,6 @@ namespace quicktype {
1068910788 j["sbyte"] = x.get_sbyte();
1069010789 }
1069110790
10692- inline void from_json(const json & j, Sealed& x) {
10693- if (!j.is_object()) throw std::runtime_error("Expected object");
10694- if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer");
10695- x.set_sealed(j.at("sealed").get<int64_t>());
10696- }
10697-
10698- inline void to_json(json & j, const Sealed & x) {
10699- j = json::object();
10700- j["sealed"] = x.get_sealed();
10701- }
10702-
10703- inline void from_json(const json & j, Sel& x) {
10704- if (!j.is_object()) throw std::runtime_error("Expected object");
10705- if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer");
10706- x.set_sel(j.at("SEL").get<int64_t>());
10707- }
10708-
10709- inline void to_json(json & j, const Sel & x) {
10710- j = json::object();
10711- j["SEL"] = x.get_sel();
10712- }
10713-
10714- inline void from_json(const json & j, Select& x) {
10715- if (!j.is_object()) throw std::runtime_error("Expected object");
10716- if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
10717- x.set_select(j.at("select").get<int64_t>());
10718- }
10719-
10720- inline void to_json(json & j, const Select & x) {
10721- j = json::object();
10722- j["select"] = x.get_select();
10723- }
10724-
1072510791 inline void from_json(const json & j, Obj4& x) {
1072610792 if (!j.is_object()) throw std::runtime_error("Expected object");
1072710793 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -10736,6 +10802,7 @@ namespace quicktype {
1073610802 x.set_ns_string(j.at("NSString").get<NsString>());
1073710803 x.set_null(j.at("NULL").get<Null>());
1073810804 x.set_number(j.at("number").get<Number>());
10805+ x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>());
1073910806 x.set_obj4_none(j.at("none").get<NoneClass>());
1074010807 x.set_obj4_not(j.at("not").get<Not>());
1074110808 x.set_obj4_not_eq(j.at("not_eq").get<NotEq>());
@@ -10756,6 +10823,8 @@ namespace quicktype {
1075610823 x.set_object(j.at("object").get<Object>());
1075710824 x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>());
1075810825 x.set_of(j.at("of").get<Of>());
10826+ x.set_offset_date_time(j.at("OffsetDateTime").get<OffsetDateTime>());
10827+ x.set_offset_time(j.at("OffsetTime").get<OffsetTime>());
1075910828 x.set_oneway(j.at("oneway").get<Oneway>());
1076010829 x.set_open(j.at("open").get<Open>());
1076110830 x.set_optional(j.at("optional").get<Optional>());
@@ -10787,9 +10856,6 @@ namespace quicktype {
1078710856 x.set_runtime_type(j.at("runtimeType").get<RuntimeType>());
1078810857 x.set_s(j.at("s").get<S>());
1078910858 x.set_sbyte(j.at("sbyte").get<Sbyte>());
10790- x.set_sealed(j.at("sealed").get<Sealed>());
10791- x.set_sel(j.at("SEL").get<Sel>());
10792- x.set_select(j.at("select").get<Select>());
1079310859 }
1079410860
1079510861 inline void to_json(json & j, const Obj4 & x) {
@@ -10805,6 +10871,7 @@ namespace quicktype {
1080510871 j["NSString"] = x.get_ns_string();
1080610872 j["NULL"] = x.get_null();
1080710873 j["number"] = x.get_number();
10874+ j["noexcept"] = x.get_obj4_noexcept();
1080810875 j["none"] = x.get_obj4_none();
1080910876 j["not"] = x.get_obj4_not();
1081010877 j["not_eq"] = x.get_obj4_not_eq();
@@ -10825,6 +10892,8 @@ namespace quicktype {
1082510892 j["object"] = x.get_object();
1082610893 j["ObjectMapper"] = x.get_object_mapper();
1082710894 j["of"] = x.get_of();
10895+ j["OffsetDateTime"] = x.get_offset_date_time();
10896+ j["OffsetTime"] = x.get_offset_time();
1082810897 j["oneway"] = x.get_oneway();
1082910898 j["open"] = x.get_open();
1083010899 j["optional"] = x.get_optional();
@@ -10856,9 +10925,6 @@ namespace quicktype {
1085610925 j["runtimeType"] = x.get_runtime_type();
1085710926 j["s"] = x.get_s();
1085810927 j["sbyte"] = x.get_sbyte();
10859- j["sealed"] = x.get_sealed();
10860- j["SEL"] = x.get_sel();
10861- j["select"] = x.get_select();
1086210928 }
1086310929
1086410930 inline void from_json(const json & j, SelfClass& x) {
@@ -11114,26 +11180,48 @@ namespace quicktype {
1111411180 j["using"] = x.get_using_using();
1111511181 }
1111611182
11117- inline void from_json(const json & j, Virtual& x) {
11183+ inline void from_json(const json & j, TrueClass& x) {
1111811184 if (!j.is_object()) throw std::runtime_error("Expected object");
11119- if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer");
11120- x.set_virtual_virtual(j.at("virtual").get<int64_t>());
11185+ if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer");
11186+ x.set_true_true(j.at("true").get<int64_t>());
1112111187 }
1112211188
11123- inline void to_json(json & j, const Virtual & x) {
11189+ inline void to_json(json & j, const TrueClass & x) {
1112411190 j = json::object();
11125- j["virtual"] = x.get_virtual_virtual();
11191+ j["true"] = x.get_true_true();
1112611192 }
1112711193
11128- inline void from_json(const json & j, TrueClass& x) {
11194+ inline void from_json(const json & j, Sealed& x) {
1112911195 if (!j.is_object()) throw std::runtime_error("Expected object");
11130- if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer");
11131- x.set_true_true(j.at("true").get<int64_t>());
11196+ if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer");
11197+ x.set_sealed(j.at("sealed").get<int64_t>());
1113211198 }
1113311199
11134- inline void to_json(json & j, const TrueClass & x) {
11200+ inline void to_json(json & j, const Sealed & x) {
1113511201 j = json::object();
11136- j["true"] = x.get_true_true();
11202+ j["sealed"] = x.get_sealed();
11203+ }
11204+
11205+ inline void from_json(const json & j, Sel& x) {
11206+ if (!j.is_object()) throw std::runtime_error("Expected object");
11207+ if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer");
11208+ x.set_sel(j.at("SEL").get<int64_t>());
11209+ }
11210+
11211+ inline void to_json(json & j, const Sel & x) {
11212+ j = json::object();
11213+ j["SEL"] = x.get_sel();
11214+ }
11215+
11216+ inline void from_json(const json & j, Select& x) {
11217+ if (!j.is_object()) throw std::runtime_error("Expected object");
11218+ if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer");
11219+ x.set_select(j.at("select").get<int64_t>());
11220+ }
11221+
11222+ inline void to_json(json & j, const Select & x) {
11223+ j = json::object();
11224+ j["select"] = x.get_select();
1113711225 }
1113811226
1113911227 inline void from_json(const json & j, Self& x) {
@@ -11543,28 +11631,6 @@ namespace quicktype {
1154311631 j["Utf8JsonWriter"] = x.get_utf8_json_writer();
1154411632 }
1154511633
11546- inline void from_json(const json & j, Uuid& x) {
11547- if (!j.is_object()) throw std::runtime_error("Expected object");
11548- if (j.find("UUID") != j.end() && !j.at("UUID").is_number_integer()) throw std::runtime_error("Expected integer");
11549- x.set_uuid(j.at("UUID").get<int64_t>());
11550- }
11551-
11552- inline void to_json(json & j, const Uuid & x) {
11553- j = json::object();
11554- j["UUID"] = x.get_uuid();
11555- }
11556-
11557- inline void from_json(const json & j, Var& x) {
11558- if (!j.is_object()) throw std::runtime_error("Expected object");
11559- if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer");
11560- x.set_var(j.at("var").get<int64_t>());
11561- }
11562-
11563- inline void to_json(json & j, const Var & x) {
11564- j = json::object();
11565- j["var"] = x.get_var();
11566- }
11567-
1156811634 inline void from_json(const json & j, Obj5& x) {
1156911635 if (!j.is_object()) throw std::runtime_error("Expected object");
1157011636 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11592,8 +11658,10 @@ namespace quicktype {
1159211658 x.set_obj5_union(j.at("union").get<Union>());
1159311659 x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>());
1159411660 x.set_obj5_using(j.at("using").get<Using>());
11595- x.set_obj5_virtual(j.at("virtual").get<Virtual>());
1159611661 x.set_purple_true(j.at("true").get<TrueClass>());
11662+ x.set_sealed(j.at("sealed").get<Sealed>());
11663+ x.set_sel(j.at("SEL").get<Sel>());
11664+ x.set_select(j.at("select").get<Select>());
1159711665 x.set_self(j.at("Self").get<Self>());
1159811666 x.set_sendable(j.at("Sendable").get<Sendable>());
1159911667 x.set_serialize(j.at("serialize").get<Serialize>());
@@ -11631,8 +11699,6 @@ namespace quicktype {
1163111699 x.set_ushort(j.at("ushort").get<Ushort>());
1163211700 x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>());
1163311701 x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>());
11634- x.set_uuid(j.at("UUID").get<Uuid>());
11635- x.set_var(j.at("var").get<Var>());
1163611702 }
1163711703
1163811704 inline void to_json(json & j, const Obj5 & x) {
@@ -11661,8 +11727,10 @@ namespace quicktype {
1166111727 j["union"] = x.get_obj5_union();
1166211728 j["unsigned"] = x.get_obj5_unsigned();
1166311729 j["using"] = x.get_obj5_using();
11664- j["virtual"] = x.get_obj5_virtual();
1166511730 j["true"] = x.get_purple_true();
11731+ j["sealed"] = x.get_sealed();
11732+ j["SEL"] = x.get_sel();
11733+ j["select"] = x.get_select();
1166611734 j["Self"] = x.get_self();
1166711735 j["Sendable"] = x.get_sendable();
1166811736 j["serialize"] = x.get_serialize();
@@ -11700,8 +11768,17 @@ namespace quicktype {
1170011768 j["ushort"] = x.get_ushort();
1170111769 j["Utf8JsonReader"] = x.get_utf8_json_reader();
1170211770 j["Utf8JsonWriter"] = x.get_utf8_json_writer();
11703- j["UUID"] = x.get_uuid();
11704- j["var"] = x.get_var();
11771+ }
11772+
11773+ inline void from_json(const json & j, Virtual& x) {
11774+ if (!j.is_object()) throw std::runtime_error("Expected object");
11775+ if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer");
11776+ x.set_virtual_virtual(j.at("virtual").get<int64_t>());
11777+ }
11778+
11779+ inline void to_json(json & j, const Virtual & x) {
11780+ j = json::object();
11781+ j["virtual"] = x.get_virtual_virtual();
1170511782 }
1170611783
1170711784 inline void from_json(const json & j, Void& x) {
@@ -11770,6 +11847,28 @@ namespace quicktype {
1177011847 j["xor_eq"] = x.get_xor_eq_xor_eq();
1177111848 }
1177211849
11850+ inline void from_json(const json & j, Uuid& x) {
11851+ if (!j.is_object()) throw std::runtime_error("Expected object");
11852+ if (j.find("UUID") != j.end() && !j.at("UUID").is_number_integer()) throw std::runtime_error("Expected integer");
11853+ x.set_uuid(j.at("UUID").get<int64_t>());
11854+ }
11855+
11856+ inline void to_json(json & j, const Uuid & x) {
11857+ j = json::object();
11858+ j["UUID"] = x.get_uuid();
11859+ }
11860+
11861+ inline void from_json(const json & j, Var& x) {
11862+ if (!j.is_object()) throw std::runtime_error("Expected object");
11863+ if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer");
11864+ x.set_var(j.at("var").get<int64_t>());
11865+ }
11866+
11867+ inline void to_json(json & j, const Var & x) {
11868+ j = json::object();
11869+ j["var"] = x.get_var();
11870+ }
11871+
1177311872 inline void from_json(const json & j, Weak& x) {
1177411873 if (!j.is_object()) throw std::runtime_error("Expected object");
1177511874 if (j.find("weak") != j.end() && !j.at("weak").is_number_integer()) throw std::runtime_error("Expected integer");
@@ -11840,12 +11939,15 @@ namespace quicktype {
1184011939 if (!j.is_object()) throw std::runtime_error("Expected object");
1184111940 if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer");
1184211941 x.set_dummy(j.at("dummy").get<int64_t>());
11942+ x.set_obj6_virtual(j.at("virtual").get<Virtual>());
1184311943 x.set_obj6_void(j.at("void").get<Void>());
1184411944 x.set_obj6_volatile(j.at("volatile").get<Volatile>());
1184511945 x.set_obj6_wchar_t(j.at("wchar_t").get<WcharT>());
1184611946 x.set_obj6_while(j.at("while").get<While>());
1184711947 x.set_obj6_xor(j.at("xor").get<Xor>());
1184811948 x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>());
11949+ x.set_uuid(j.at("UUID").get<Uuid>());
11950+ x.set_var(j.at("var").get<Var>());
1184911951 x.set_weak(j.at("weak").get<Weak>());
1185011952 x.set_where(j.at("where").get<Where>());
1185111953 x.set_will_set(j.at("willSet").get<WillSet>());
@@ -11857,12 +11959,15 @@ namespace quicktype {
1185711959 inline void to_json(json & j, const Obj6 & x) {
1185811960 j = json::object();
1185911961 j["dummy"] = x.get_dummy();
11962+ j["virtual"] = x.get_obj6_virtual();
1186011963 j["void"] = x.get_obj6_void();
1186111964 j["volatile"] = x.get_obj6_volatile();
1186211965 j["wchar_t"] = x.get_obj6_wchar_t();
1186311966 j["while"] = x.get_obj6_while();
1186411967 j["xor"] = x.get_obj6_xor();
1186511968 j["xor_eq"] = x.get_obj6_xor_eq();
11969+ j["UUID"] = x.get_uuid();
11970+ j["var"] = x.get_var();
1186611971 j["weak"] = x.get_weak();
1186711972 j["where"] = x.get_where();
1186811973 j["willSet"] = x.get_will_set();
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,24 +2259,14 @@ 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
22632265 property dummy : Int64
22642266
2267+ @[JSON::Field(key: "select")]
2268+ property obj5_select : Select
2269+
22652270 @[JSON::Field(key: "Self")]
22662271 property obj5_self : Self
22672272
@@ -2301,6 +2306,11 @@ class Obj5
23012306 @[JSON::Field(key: "type")]
23022307 property purple_type : TypeClass
23032308
2309+ property sealed : Sealed
2310+
2311+ @[JSON::Field(key: "SEL")]
2312+ property sel : Sel
2313+
23042314 @[JSON::Field(key: "Sendable")]
23052315 property sendable : Sendable
23062316
@@ -2408,13 +2418,13 @@ class Obj5
24082418
24092419 @[JSON::Field(key: "Utf8JsonWriter")]
24102420 property utf8_json_writer : Utf8JsonWriter
2421+end
24112422
2412- @[JSON::Field(key: "UUID")]
2413- property uuid : Uuid
2414-
2415- property var : Var
2423+class Select
2424+ include JSON::Serializable
24162425
2417- property virtual : Virtual
2426+ @[JSON::Field(key: "select")]
2427+ property select_select : Int64
24182428 end
24192429
24202430 class Self
@@ -2508,6 +2518,19 @@ class TypeClass
25082518 property type_type : Int64
25092519 end
25102520
2521+class Sealed
2522+ include JSON::Serializable
2523+
2524+ property sealed : Int64
2525+end
2526+
2527+class Sel
2528+ include JSON::Serializable
2529+
2530+ @[JSON::Field(key: "SEL")]
2531+ property sel : Int64
2532+end
2533+
25112534 class Sendable
25122535 include JSON::Serializable
25132536
@@ -2808,25 +2831,6 @@ class Utf8JsonWriter
28082831 property utf8_json_writer : Int64
28092832 end
28102833
2811-class Uuid
2812- include JSON::Serializable
2813-
2814- @[JSON::Field(key: "UUID")]
2815- property uuid : Int64
2816-end
2817-
2818-class Var
2819- include JSON::Serializable
2820-
2821- property var : Int64
2822-end
2823-
2824-class Virtual
2825- include JSON::Serializable
2826-
2827- property virtual : Int64
2828-end
2829-
28302834 class Obj6
28312835 include JSON::Serializable
28322836
@@ -2841,6 +2845,13 @@ class Obj6
28412845 @[JSON::Field(key: "yield")]
28422846 property obj6_yield : Yield
28432847
2848+ @[JSON::Field(key: "UUID")]
2849+ property uuid : Uuid
2850+
2851+ property var : Var
2852+
2853+ property virtual : Virtual
2854+
28442855 property void : VoidClass
28452856
28462857 property volatile : Volatile
@@ -2883,6 +2894,25 @@ class Yield
28832894 property yield_yield : Int64
28842895 end
28852896
2897+class Uuid
2898+ include JSON::Serializable
2899+
2900+ @[JSON::Field(key: "UUID")]
2901+ property uuid : Int64
2902+end
2903+
2904+class Var
2905+ include JSON::Serializable
2906+
2907+ property var : Int64
2908+end
2909+
2910+class Virtual
2911+ include JSON::Serializable
2912+
2913+ property virtual : Int64
2914+end
2915+
28862916 class VoidClass
28872917 include JSON::Serializable
Mcsharp-recordsdefault / QuickType.cs+88 −61
@@ -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)]
@@ -2395,6 +2395,15 @@ namespace QuickType
23952395 [JsonProperty("type", Required = Required.Always)]
23962396 public Obj5Type Obj5Type { get; set; }
23972397
2398+ [JsonProperty("sealed", Required = Required.Always)]
2399+ public Sealed Sealed { get; set; }
2400+
2401+ [JsonProperty("SEL", Required = Required.Always)]
2402+ public Sel Sel { get; set; }
2403+
2404+ [JsonProperty("select", Required = Required.Always)]
2405+ public Select Select { get; set; }
2406+
23982407 [JsonProperty("Self", Required = Required.Always)]
23992408 public Self Self { get; set; }
24002409
@@ -2562,15 +2571,6 @@ namespace QuickType
25622571
25632572 [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
25642573 public Utf8JsonWriter Utf8JsonWriter { get; set; }
2565-
2566- [JsonProperty("UUID", Required = Required.Always)]
2567- public Uuid Uuid { get; set; }
2568-
2569- [JsonProperty("var", Required = Required.Always)]
2570- public Var Var { get; set; }
2571-
2572- [JsonProperty("virtual", Required = Required.Always)]
2573- public Virtual Virtual { get; set; }
25742574 }
25752575
25762576 public partial record SelfClass
@@ -2603,6 +2603,24 @@ namespace QuickType
26032603 public long Type { get; set; }
26042604 }
26052605
2606+ public partial record Sealed
2607+ {
2608+ [JsonProperty("sealed", Required = Required.Always)]
2609+ public long SealedSealed { get; set; }
2610+ }
2611+
2612+ public partial record Sel
2613+ {
2614+ [JsonProperty("SEL", Required = Required.Always)]
2615+ public long SelSel { get; set; }
2616+ }
2617+
2618+ public partial record Select
2619+ {
2620+ [JsonProperty("select", Required = Required.Always)]
2621+ public long SelectSelect { get; set; }
2622+ }
2623+
26062624 public partial record Self
26072625 {
26082626 [JsonProperty("Self", Required = Required.Always)]
@@ -2939,28 +2957,19 @@ namespace QuickType
29392957 public long Utf8JsonWriterUtf8JsonWriter { get; set; }
29402958 }
29412959
2942- public partial record Uuid
2960+ public partial record Obj6
29432961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
29442965 [JsonProperty("UUID", Required = Required.Always)]
2945- public long UuidUuid { get; set; }
2946- }
2966+ public Uuid Uuid { get; set; }
29472967
2948- public partial record Var
2949- {
29502968 [JsonProperty("var", Required = Required.Always)]
2951- public long VarVar { get; set; }
2952- }
2969+ public Var Var { get; set; }
29532970
2954- public partial record Virtual
2955- {
29562971 [JsonProperty("virtual", Required = Required.Always)]
2957- public long VirtualVirtual { get; set; }
2958- }
2959-
2960- public partial record Obj6
2961- {
2962- [JsonProperty("dummy", Required = Required.Always)]
2963- public long Dummy { get; set; }
2972+ public Virtual Virtual { get; set; }
29642973
29652974 [JsonProperty("void", Required = Required.Always)]
29662975 public Void Void { get; set; }
@@ -2999,6 +3008,24 @@ namespace QuickType
29993008 public Yield Yield { get; set; }
30003009 }
30013010
3011+ public partial record Uuid
3012+ {
3013+ [JsonProperty("UUID", Required = Required.Always)]
3014+ public long UuidUuid { get; set; }
3015+ }
3016+
3017+ public partial record Var
3018+ {
3019+ [JsonProperty("var", Required = Required.Always)]
3020+ public long VarVar { get; set; }
3021+ }
3022+
3023+ public partial record Virtual
3024+ {
3025+ [JsonProperty("virtual", Required = Required.Always)]
3026+ public long VirtualVirtual { get; set; }
3027+ }
3028+
30023029 public partial record Void
30033030 {
30043031 [JsonProperty("void", Required = Required.Always)]
Mcsharp-SystemTextJsondefault / QuickType.cs+106 −73
@@ -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]
@@ -2921,6 +2921,18 @@ namespace QuickType
29212921 [JsonPropertyName("type")]
29222922 public Obj5Type Obj5Type { get; set; }
29232923
2924+ [JsonRequired]
2925+ [JsonPropertyName("sealed")]
2926+ public Sealed Sealed { get; set; }
2927+
2928+ [JsonRequired]
2929+ [JsonPropertyName("SEL")]
2930+ public Sel Sel { get; set; }
2931+
2932+ [JsonRequired]
2933+ [JsonPropertyName("select")]
2934+ public Select Select { get; set; }
2935+
29242936 [JsonRequired]
29252937 [JsonPropertyName("Self")]
29262938 public Self Self { get; set; }
@@ -3144,18 +3156,6 @@ namespace QuickType
31443156 [JsonRequired]
31453157 [JsonPropertyName("Utf8JsonWriter")]
31463158 public Utf8JsonWriterClass Utf8JsonWriter { get; set; }
3147-
3148- [JsonRequired]
3149- [JsonPropertyName("UUID")]
3150- public Uuid Uuid { get; set; }
3151-
3152- [JsonRequired]
3153- [JsonPropertyName("var")]
3154- public Var Var { get; set; }
3155-
3156- [JsonRequired]
3157- [JsonPropertyName("virtual")]
3158- public Virtual Virtual { get; set; }
31593159 }
31603160
31613161 public partial class SelfClass
@@ -3193,6 +3193,27 @@ namespace QuickType
31933193 public long Type { get; set; }
31943194 }
31953195
3196+ public partial class Sealed
3197+ {
3198+ [JsonRequired]
3199+ [JsonPropertyName("sealed")]
3200+ public long SealedSealed { get; set; }
3201+ }
3202+
3203+ public partial class Sel
3204+ {
3205+ [JsonRequired]
3206+ [JsonPropertyName("SEL")]
3207+ public long SelSel { get; set; }
3208+ }
3209+
3210+ public partial class Select
3211+ {
3212+ [JsonRequired]
3213+ [JsonPropertyName("select")]
3214+ public long SelectSelect { get; set; }
3215+ }
3216+
31963217 public partial class Self
31973218 {
31983219 [JsonRequired]
@@ -3585,32 +3606,23 @@ namespace QuickType
35853606 public long Utf8JsonWriter { get; set; }
35863607 }
35873608
3588- public partial class Uuid
3609+ public partial class Obj6
35893610 {
3611+ [JsonRequired]
3612+ [JsonPropertyName("dummy")]
3613+ public long Dummy { get; set; }
3614+
35903615 [JsonRequired]
35913616 [JsonPropertyName("UUID")]
3592- public long UuidUuid { get; set; }
3593- }
3617+ public Uuid Uuid { get; set; }
35943618
3595- public partial class Var
3596- {
35973619 [JsonRequired]
35983620 [JsonPropertyName("var")]
3599- public long VarVar { get; set; }
3600- }
3621+ public Var Var { get; set; }
36013622
3602- public partial class Virtual
3603- {
36043623 [JsonRequired]
36053624 [JsonPropertyName("virtual")]
3606- public long VirtualVirtual { get; set; }
3607- }
3608-
3609- public partial class Obj6
3610- {
3611- [JsonRequired]
3612- [JsonPropertyName("dummy")]
3613- public long Dummy { get; set; }
3625+ public Virtual Virtual { get; set; }
36143626
36153627 [JsonRequired]
36163628 [JsonPropertyName("void")]
@@ -3661,6 +3673,27 @@ namespace QuickType
36613673 public Yield Yield { get; set; }
36623674 }
36633675
3676+ public partial class Uuid
3677+ {
3678+ [JsonRequired]
3679+ [JsonPropertyName("UUID")]
3680+ public long UuidUuid { get; set; }
3681+ }
3682+
3683+ public partial class Var
3684+ {
3685+ [JsonRequired]
3686+ [JsonPropertyName("var")]
3687+ public long VarVar { get; set; }
3688+ }
3689+
3690+ public partial class Virtual
3691+ {
3692+ [JsonRequired]
3693+ [JsonPropertyName("virtual")]
3694+ public long VirtualVirtual { get; set; }
3695+ }
3696+
36643697 public partial class Void
36653698 {
36663699 [JsonRequired]
Mcsharpdefault / QuickType.cs+88 −61
@@ -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)]
@@ -2395,6 +2395,15 @@ namespace QuickType
23952395 [JsonProperty("type", Required = Required.Always)]
23962396 public Obj5Type Obj5Type { get; set; }
23972397
2398+ [JsonProperty("sealed", Required = Required.Always)]
2399+ public Sealed Sealed { get; set; }
2400+
2401+ [JsonProperty("SEL", Required = Required.Always)]
2402+ public Sel Sel { get; set; }
2403+
2404+ [JsonProperty("select", Required = Required.Always)]
2405+ public Select Select { get; set; }
2406+
23982407 [JsonProperty("Self", Required = Required.Always)]
23992408 public Self Self { get; set; }
24002409
@@ -2562,15 +2571,6 @@ namespace QuickType
25622571
25632572 [JsonProperty("Utf8JsonWriter", Required = Required.Always)]
25642573 public Utf8JsonWriter Utf8JsonWriter { get; set; }
2565-
2566- [JsonProperty("UUID", Required = Required.Always)]
2567- public Uuid Uuid { get; set; }
2568-
2569- [JsonProperty("var", Required = Required.Always)]
2570- public Var Var { get; set; }
2571-
2572- [JsonProperty("virtual", Required = Required.Always)]
2573- public Virtual Virtual { get; set; }
25742574 }
25752575
25762576 public partial class SelfClass
@@ -2603,6 +2603,24 @@ namespace QuickType
26032603 public long Type { get; set; }
26042604 }
26052605
2606+ public partial class Sealed
2607+ {
2608+ [JsonProperty("sealed", Required = Required.Always)]
2609+ public long SealedSealed { get; set; }
2610+ }
2611+
2612+ public partial class Sel
2613+ {
2614+ [JsonProperty("SEL", Required = Required.Always)]
2615+ public long SelSel { get; set; }
2616+ }
2617+
2618+ public partial class Select
2619+ {
2620+ [JsonProperty("select", Required = Required.Always)]
2621+ public long SelectSelect { get; set; }
2622+ }
2623+
26062624 public partial class Self
26072625 {
26082626 [JsonProperty("Self", Required = Required.Always)]
@@ -2939,28 +2957,19 @@ namespace QuickType
29392957 public long Utf8JsonWriterUtf8JsonWriter { get; set; }
29402958 }
29412959
2942- public partial class Uuid
2960+ public partial class Obj6
29432961 {
2962+ [JsonProperty("dummy", Required = Required.Always)]
2963+ public long Dummy { get; set; }
2964+
29442965 [JsonProperty("UUID", Required = Required.Always)]
2945- public long UuidUuid { get; set; }
2946- }
2966+ public Uuid Uuid { get; set; }
29472967
2948- public partial class Var
2949- {
29502968 [JsonProperty("var", Required = Required.Always)]
2951- public long VarVar { get; set; }
2952- }
2969+ public Var Var { get; set; }
29532970
2954- public partial class Virtual
2955- {
29562971 [JsonProperty("virtual", Required = Required.Always)]
2957- public long VirtualVirtual { get; set; }
2958- }
2959-
2960- public partial class Obj6
2961- {
2962- [JsonProperty("dummy", Required = Required.Always)]
2963- public long Dummy { get; set; }
2972+ public Virtual Virtual { get; set; }
29642973
29652974 [JsonProperty("void", Required = Required.Always)]
29662975 public Void Void { get; set; }
@@ -2999,6 +3008,24 @@ namespace QuickType
29993008 public Yield Yield { get; set; }
30003009 }
30013010
3011+ public partial class Uuid
3012+ {
3013+ [JsonProperty("UUID", Required = Required.Always)]
3014+ public long UuidUuid { get; set; }
3015+ }
3016+
3017+ public partial class Var
3018+ {
3019+ [JsonProperty("var", Required = Required.Always)]
3020+ public long VarVar { get; set; }
3021+ }
3022+
3023+ public partial class Virtual
3024+ {
3025+ [JsonProperty("virtual", Required = Required.Always)]
3026+ public long VirtualVirtual { get; set; }
3027+ }
3028+
30023029 public partial class Void
30033030 {
30043031 [JsonProperty("void", Required = Required.Always)]
Mdartdefault / TopLevel.dart+198 −138
@@ -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 SelfClass obj5Self;
@@ -5257,8 +5257,10 @@ class Obj5 {
52575257 final Try obj5Try;
52585258 final TypeClass obj5Type;
52595259 final Typedef obj5Typedef;
5260- final Var obj5Var;
52615260 final TrueClass purpleTrue;
5261+ final Sealed sealed;
5262+ final Sel sel;
5263+ final Select select;
52625264 final Self self;
52635265 final Sendable sendable;
52645266 final Serialize serialize;
@@ -5306,8 +5308,6 @@ class Obj5 {
53065308 final Using using;
53075309 final Utf8JsonReader utf8JsonReader;
53085310 final Utf8JsonWriter utf8JsonWriter;
5309- final Uuid uuid;
5310- final Virtual virtual;
53115311
53125312 Obj5({
53135313 required this.dummy,
@@ -5324,8 +5324,10 @@ class Obj5 {
53245324 required this.obj5Try,
53255325 required this.obj5Type,
53265326 required this.obj5Typedef,
5327- required this.obj5Var,
53285327 required this.purpleTrue,
5328+ required this.sealed,
5329+ required this.sel,
5330+ required this.select,
53295331 required this.self,
53305332 required this.sendable,
53315333 required this.serialize,
@@ -5373,8 +5375,6 @@ class Obj5 {
53735375 required this.using,
53745376 required this.utf8JsonReader,
53755377 required this.utf8JsonWriter,
5376- required this.uuid,
5377- required this.virtual,
53785378 });
53795379
53805380 factory Obj5.fromJson(Map<String, dynamic> json) => Obj5(
@@ -5392,8 +5392,10 @@ class Obj5 {
53925392 obj5Try: Try.fromJson(json["try"]),
53935393 obj5Type: TypeClass.fromJson(json["type"]),
53945394 obj5Typedef: Typedef.fromJson(json["typedef"]),
5395- obj5Var: Var.fromJson(json["var"]),
53965395 purpleTrue: TrueClass.fromJson(json["true"]),
5396+ sealed: Sealed.fromJson(json["sealed"]),
5397+ sel: Sel.fromJson(json["SEL"]),
5398+ select: Select.fromJson(json["select"]),
53975399 self: Self.fromJson(json["Self"]),
53985400 sendable: Sendable.fromJson(json["Sendable"]),
53995401 serialize: Serialize.fromJson(json["serialize"]),
@@ -5441,8 +5443,6 @@ class Obj5 {
54415443 using: Using.fromJson(json["using"]),
54425444 utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]),
54435445 utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]),
5444- uuid: Uuid.fromJson(json["UUID"]),
5445- virtual: Virtual.fromJson(json["virtual"]),
54465446 );
54475447
54485448 Map<String, dynamic> toJson() => {
@@ -5460,8 +5460,10 @@ class Obj5 {
54605460 "try": obj5Try.toJson(),
54615461 "type": obj5Type.toJson(),
54625462 "typedef": obj5Typedef.toJson(),
5463- "var": obj5Var.toJson(),
54645463 "true": purpleTrue.toJson(),
5464+ "sealed": sealed.toJson(),
5465+ "SEL": sel.toJson(),
5466+ "select": select.toJson(),
54655467 "Self": self.toJson(),
54665468 "Sendable": sendable.toJson(),
54675469 "serialize": serialize.toJson(),
@@ -5509,8 +5511,6 @@ class Obj5 {
55095511 "using": using.toJson(),
55105512 "Utf8JsonReader": utf8JsonReader.toJson(),
55115513 "Utf8JsonWriter": utf8JsonWriter.toJson(),
5512- "UUID": uuid.toJson(),
5513- "virtual": virtual.toJson(),
55145514 };
55155515 }
55165516
@@ -5722,35 +5722,67 @@ class Typedef {
57225722 };
57235723 }
57245724
5725-class Var {
5726- final int varVar;
5725+class TrueClass {
5726+ final int trueTrue;
57275727
5728- Var({
5729- required this.varVar,
5728+ TrueClass({
5729+ required this.trueTrue,
57305730 });
57315731
5732- factory Var.fromJson(Map<String, dynamic> json) => Var(
5733- varVar: json["var"],
5732+ factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass(
5733+ trueTrue: json["true"],
57345734 );
57355735
57365736 Map<String, dynamic> toJson() => {
5737- "var": varVar,
5737+ "true": trueTrue,
57385738 };
57395739 }
57405740
5741-class TrueClass {
5742- final int trueTrue;
5741+class Sealed {
5742+ final int sealed;
57435743
5744- TrueClass({
5745- required this.trueTrue,
5744+ Sealed({
5745+ required this.sealed,
57465746 });
57475747
5748- factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass(
5749- trueTrue: json["true"],
5748+ factory Sealed.fromJson(Map<String, dynamic> json) => Sealed(
5749+ sealed: json["sealed"],
57505750 );
57515751
57525752 Map<String, dynamic> toJson() => {
5753- "true": trueTrue,
5753+ "sealed": sealed,
5754+ };
5755+}
5756+
5757+class Sel {
5758+ final int sel;
5759+
5760+ Sel({
5761+ required this.sel,
5762+ });
5763+
5764+ factory Sel.fromJson(Map<String, dynamic> json) => Sel(
5765+ sel: json["SEL"],
5766+ );
5767+
5768+ Map<String, dynamic> toJson() => {
5769+ "SEL": sel,
5770+ };
5771+}
5772+
5773+class Select {
5774+ final int select;
5775+
5776+ Select({
5777+ required this.select,
5778+ });
5779+
5780+ factory Select.fromJson(Map<String, dynamic> json) => Select(
5781+ select: json["select"],
5782+ );
5783+
5784+ Map<String, dynamic> toJson() => {
5785+ "select": select,
57545786 };
57555787 }
57565788
@@ -6506,44 +6538,15 @@ class Utf8JsonWriter {
65066538 };
65076539 }
65086540
6509-class Uuid {
6510- final int uuid;
6511-
6512- Uuid({
6513- required this.uuid,
6514- });
6515-
6516- factory Uuid.fromJson(Map<String, dynamic> json) => Uuid(
6517- uuid: json["UUID"],
6518- );
6519-
6520- Map<String, dynamic> toJson() => {
6521- "UUID": uuid,
6522- };
6523-}
6524-
6525-class Virtual {
6526- final int virtual;
6527-
6528- Virtual({
6529- required this.virtual,
6530- });
6531-
6532- factory Virtual.fromJson(Map<String, dynamic> json) => Virtual(
6533- virtual: json["virtual"],
6534- );
6535-
6536- Map<String, dynamic> toJson() => {
6537- "virtual": virtual,
6538- };
6539-}
6540-
65416541 class Obj6 {
65426542 final int dummy;
6543+ final Var obj6Var;
65436544 final Void obj6Void;
65446545 final While obj6While;
65456546 final With obj6With;
65466547 final Yield obj6Yield;
6548+ final Uuid uuid;
6549+ final Virtual virtual;
65476550 final Volatile volatile;
65486551 final WcharT wcharT;
65496552 final Weak weak;
@@ -6555,10 +6558,13 @@ class Obj6 {
65556558
65566559 Obj6({
65576560 required this.dummy,
6561+ required this.obj6Var,
65586562 required this.obj6Void,
65596563 required this.obj6While,
65606564 required this.obj6With,
65616565 required this.obj6Yield,
6566+ required this.uuid,
6567+ required this.virtual,
65626568 required this.volatile,
65636569 required this.wcharT,
65646570 required this.weak,
@@ -6571,10 +6577,13 @@ class Obj6 {
65716577
65726578 factory Obj6.fromJson(Map<String, dynamic> json) => Obj6(
65736579 dummy: json["dummy"],
6580+ obj6Var: Var.fromJson(json["var"]),
65746581 obj6Void: Void.fromJson(json["void"]),
65756582 obj6While: While.fromJson(json["while"]),
65766583 obj6With: With.fromJson(json["with"]),
65776584 obj6Yield: Yield.fromJson(json["yield"]),
6585+ uuid: Uuid.fromJson(json["UUID"]),
6586+ virtual: Virtual.fromJson(json["virtual"]),
65786587 volatile: Volatile.fromJson(json["volatile"]),
65796588 wcharT: WcharT.fromJson(json["wchar_t"]),
65806589 weak: Weak.fromJson(json["weak"]),
@@ -6587,10 +6596,13 @@ class Obj6 {
65876596
65886597 Map<String, dynamic> toJson() => {
65896598 "dummy": dummy,
6599+ "var": obj6Var.toJson(),
65906600 "void": obj6Void.toJson(),
65916601 "while": obj6While.toJson(),
65926602 "with": obj6With.toJson(),
65936603 "yield": obj6Yield.toJson(),
6604+ "UUID": uuid.toJson(),
6605+ "virtual": virtual.toJson(),
65946606 "volatile": volatile.toJson(),
65956607 "wchar_t": wcharT.toJson(),
65966608 "weak": weak.toJson(),
@@ -6602,6 +6614,22 @@ class Obj6 {
66026614 };
66036615 }
66046616
6617+class Var {
6618+ final int varVar;
6619+
6620+ Var({
6621+ required this.varVar,
6622+ });
6623+
6624+ factory Var.fromJson(Map<String, dynamic> json) => Var(
6625+ varVar: json["var"],
6626+ );
6627+
6628+ Map<String, dynamic> toJson() => {
6629+ "var": varVar,
6630+ };
6631+}
6632+
66056633 class Void {
66066634 final int voidVoid;
66076635
@@ -6666,6 +6694,38 @@ class Yield {
66666694 };
66676695 }
66686696
6697+class Uuid {
6698+ final int uuid;
6699+
6700+ Uuid({
6701+ required this.uuid,
6702+ });
6703+
6704+ factory Uuid.fromJson(Map<String, dynamic> json) => Uuid(
6705+ uuid: json["UUID"],
6706+ );
6707+
6708+ Map<String, dynamic> toJson() => {
6709+ "UUID": uuid,
6710+ };
6711+}
6712+
6713+class Virtual {
6714+ final int virtual;
6715+
6716+ Virtual({
6717+ required this.virtual,
6718+ });
6719+
6720+ factory Virtual.fromJson(Map<String, dynamic> json) => Virtual(
6721+ virtual: json["virtual"],
6722+ );
6723+
6724+ Map<String, dynamic> toJson() => {
6725+ "virtual": virtual,
6726+ };
6727+}
6728+
66696729 class Volatile {
66706730 final int volatile;
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
@@ -11076,6 +11076,123 @@ defmodule TypeClass do
1107611076 end
1107711077 end
1107811078
11079+defmodule Sealed do
11080+ @enforce_keys [:sealed]
11081+ defstruct [:sealed]
11082+
11083+ @type t :: %__MODULE__{
11084+ sealed: integer()
11085+ }
11086+
11087+ def decode_sealed(value) when is_integer(value), do: value
11088+ def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"}
11089+
11090+ def encode_sealed(value) when is_integer(value), do: value
11091+ def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"}
11092+
11093+ def from_map(m) do
11094+ %Sealed{
11095+ sealed: decode_sealed(m["sealed"]),
11096+ }
11097+ end
11098+
11099+ def from_json(json) do
11100+ json
11101+ |> Jason.decode!()
11102+ |> from_map()
11103+ end
11104+
11105+ def to_map(struct) do
11106+ %{
11107+ "sealed" => struct.sealed,
11108+ }
11109+ end
11110+
11111+ def to_json(struct) do
11112+ struct
11113+ |> to_map()
11114+ |> Jason.encode!()
11115+ end
11116+end
11117+
11118+defmodule Sel do
11119+ @enforce_keys [:sel]
11120+ defstruct [:sel]
11121+
11122+ @type t :: %__MODULE__{
11123+ sel: integer()
11124+ }
11125+
11126+ def decode_sel(value) when is_integer(value), do: value
11127+ def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"}
11128+
11129+ def encode_sel(value) when is_integer(value), do: value
11130+ def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"}
11131+
11132+ def from_map(m) do
11133+ %Sel{
11134+ sel: decode_sel(m["SEL"]),
11135+ }
11136+ end
11137+
11138+ def from_json(json) do
11139+ json
11140+ |> Jason.decode!()
11141+ |> from_map()
11142+ end
11143+
11144+ def to_map(struct) do
11145+ %{
11146+ "SEL" => struct.sel,
11147+ }
11148+ end
11149+
11150+ def to_json(struct) do
11151+ struct
11152+ |> to_map()
11153+ |> Jason.encode!()
11154+ end
11155+end
11156+
11157+defmodule Select do
11158+ @enforce_keys [:select]
11159+ defstruct [:select]
11160+
11161+ @type t :: %__MODULE__{
11162+ select: integer()
11163+ }
11164+
11165+ def decode_select(value) when is_integer(value), do: value
11166+ def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"}
11167+
11168+ def encode_select(value) when is_integer(value), do: value
11169+ def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"}
11170+
11171+ def from_map(m) do
11172+ %Select{
11173+ select: decode_select(m["select"]),
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+ "select" => struct.select,
11186+ }
11187+ end
11188+
11189+ def to_json(struct) do
11190+ struct
11191+ |> to_map()
11192+ |> Jason.encode!()
11193+ end
11194+end
11195+
1107911196 defmodule Self do
1108011197 @enforce_keys [:self]
1108111198 defstruct [:self]
@@ -13118,126 +13235,9 @@ defmodule Unsafe do
1311813235 def encode_unsafe(value) when is_integer(value), do: value
1311913236 def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"}
1312013237
13121- def from_map(m) do
13122- %Unsafe{
13123- unsafe: decode_unsafe(m["unsafe"]),
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- "unsafe" => struct.unsafe,
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 Unsigned do
13147- @enforce_keys [:unsigned]
13148- defstruct [:unsigned]
13149-
13150- @type t :: %__MODULE__{
13151- unsigned: integer()
13152- }
13153-
13154- def decode_unsigned(value) when is_integer(value), do: value
13155- def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"}
13156-
13157- def encode_unsigned(value) when is_integer(value), do: value
13158- def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"}
13159-
13160- def from_map(m) do
13161- %Unsigned{
13162- unsigned: decode_unsigned(m["unsigned"]),
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- "unsigned" => struct.unsigned,
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 Ushort do
13186- @enforce_keys [:ushort]
13187- defstruct [:ushort]
13188-
13189- @type t :: %__MODULE__{
13190- ushort: integer()
13191- }
13192-
13193- def decode_ushort(value) when is_integer(value), do: value
13194- def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
13195-
13196- def encode_ushort(value) when is_integer(value), do: value
13197- def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
13198-
13199- def from_map(m) do
13200- %Ushort{
13201- ushort: decode_ushort(m["ushort"]),
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- "ushort" => struct.ushort,
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 Using do
13225- @enforce_keys [:using]
13226- defstruct [:using]
13227-
13228- @type t :: %__MODULE__{
13229- using: integer()
13230- }
13231-
13232- def decode_using(value) when is_integer(value), do: value
13233- def decode_using(_), do: {:error, "Unexpected type when decoding Using.using"}
13234-
13235- def encode_using(value) when is_integer(value), do: value
13236- def encode_using(_), do: {:error, "Unexpected type when encoding Using.using"}
13237-
13238- def from_map(m) do
13239- %Using{
13240- using: decode_using(m["using"]),
13238+ def from_map(m) do
13239+ %Unsafe{
13240+ unsafe: decode_unsafe(m["unsafe"]),
1324113241 }
1324213242 end
1324313243
@@ -13249,7 +13249,7 @@ defmodule Using do
1324913249
1325013250 def to_map(struct) do
1325113251 %{
13252- "using" => struct.using,
13252+ "unsafe" => struct.unsafe,
1325313253 }
1325413254 end
1325513255
@@ -13260,23 +13260,23 @@ defmodule Using do
1326013260 end
1326113261 end
1326213262
13263-defmodule Utf8JSONReader do
13264- @enforce_keys [:utf8_json_reader]
13265- defstruct [:utf8_json_reader]
13263+defmodule Unsigned do
13264+ @enforce_keys [:unsigned]
13265+ defstruct [:unsigned]
1326613266
1326713267 @type t :: %__MODULE__{
13268- utf8_json_reader: integer()
13268+ unsigned: integer()
1326913269 }
1327013270
13271- def decode_utf8_json_reader(value) when is_integer(value), do: value
13272- def decode_utf8_json_reader(_), do: {:error, "Unexpected type when decoding Utf8JSONReader.utf8_json_reader"}
13271+ def decode_unsigned(value) when is_integer(value), do: value
13272+ def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"}
1327313273
13274- def encode_utf8_json_reader(value) when is_integer(value), do: value
13275- def encode_utf8_json_reader(_), do: {:error, "Unexpected type when encoding Utf8JSONReader.utf8_json_reader"}
13274+ def encode_unsigned(value) when is_integer(value), do: value
13275+ def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"}
1327613276
1327713277 def from_map(m) do
13278- %Utf8JSONReader{
13279- utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]),
13278+ %Unsigned{
13279+ unsigned: decode_unsigned(m["unsigned"]),
1328013280 }
1328113281 end
1328213282
@@ -13288,7 +13288,7 @@ defmodule Utf8JSONReader do
1328813288
1328913289 def to_map(struct) do
1329013290 %{
13291- "Utf8JsonReader" => struct.utf8_json_reader,
13291+ "unsigned" => struct.unsigned,
1329213292 }
1329313293 end
1329413294
@@ -13299,23 +13299,23 @@ defmodule Utf8JSONReader do
1329913299 end
1330013300 end
1330113301
13302-defmodule Utf8JSONWriter do
13303- @enforce_keys [:utf8_json_writer]
13304- defstruct [:utf8_json_writer]
13302+defmodule Ushort do
13303+ @enforce_keys [:ushort]
13304+ defstruct [:ushort]
1330513305
1330613306 @type t :: %__MODULE__{
13307- utf8_json_writer: integer()
13307+ ushort: integer()
1330813308 }
1330913309
13310- def decode_utf8_json_writer(value) when is_integer(value), do: value
13311- def decode_utf8_json_writer(_), do: {:error, "Unexpected type when decoding Utf8JSONWriter.utf8_json_writer"}
13310+ def decode_ushort(value) when is_integer(value), do: value
13311+ def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"}
1331213312
13313- def encode_utf8_json_writer(value) when is_integer(value), do: value
13314- def encode_utf8_json_writer(_), do: {:error, "Unexpected type when encoding Utf8JSONWriter.utf8_json_writer"}
13313+ def encode_ushort(value) when is_integer(value), do: value
13314+ def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"}
1331513315
1331613316 def from_map(m) do
13317- %Utf8JSONWriter{
13318- utf8_json_writer: decode_utf8_json_writer(m["Utf8JsonWriter"]),
13317+ %Ushort{
13318+ ushort: decode_ushort(m["ushort"]),
1331913319 }
1332013320 end
1332113321
@@ -13327,7 +13327,7 @@ defmodule Utf8JSONWriter do
1332713327
1332813328 def to_map(struct) do
1332913329 %{
13330- "Utf8JsonWriter" => struct.utf8_json_writer,
13330+ "ushort" => struct.ushort,
1333113331 }
1333213332 end
1333313333
@@ -13338,23 +13338,23 @@ defmodule Utf8JSONWriter do
1333813338 end
1333913339 end
1334013340
13341-defmodule UUID do
13342- @enforce_keys [:uuid]
13343- defstruct [:uuid]
13341+defmodule Using do
13342+ @enforce_keys [:using]
13343+ defstruct [:using]
1334413344
1334513345 @type t :: %__MODULE__{
13346- uuid: integer()
13346+ using: integer()
1334713347 }
1334813348
13349- def decode_uuid(value) when is_integer(value), do: value
13350- def decode_uuid(_), do: {:error, "Unexpected type when decoding UUID.uuid"}
13349+ def decode_using(value) when is_integer(value), do: value
13350+ def decode_using(_), do: {:error, "Unexpected type when decoding Using.using"}
1335113351
13352- def encode_uuid(value) when is_integer(value), do: value
13353- def encode_uuid(_), do: {:error, "Unexpected type when encoding UUID.uuid"}
13352+ def encode_using(value) when is_integer(value), do: value
13353+ def encode_using(_), do: {:error, "Unexpected type when encoding Using.using"}
1335413354
1335513355 def from_map(m) do
13356- %UUID{
13357- uuid: decode_uuid(m["UUID"]),
13356+ %Using{
13357+ using: decode_using(m["using"]),
1335813358 }
1335913359 end
1336013360
@@ -13366,7 +13366,7 @@ defmodule UUID do
1336613366
1336713367 def to_map(struct) do
1336813368 %{
13369- "UUID" => struct.uuid,
13369+ "using" => struct.using,
1337013370 }
1337113371 end
1337213372
@@ -13377,23 +13377,23 @@ defmodule UUID do
1337713377 end
1337813378 end
1337913379
13380-defmodule Var do
13381- @enforce_keys [:var]
13382- defstruct [:var]
13380+defmodule Utf8JSONReader do
13381+ @enforce_keys [:utf8_json_reader]
13382+ defstruct [:utf8_json_reader]
1338313383
1338413384 @type t :: %__MODULE__{
13385- var: integer()
13385+ utf8_json_reader: integer()
1338613386 }
1338713387
13388- def decode_var(value) when is_integer(value), do: value
13389- def decode_var(_), do: {:error, "Unexpected type when decoding Var.var"}
13388+ def decode_utf8_json_reader(value) when is_integer(value), do: value
13389+ def decode_utf8_json_reader(_), do: {:error, "Unexpected type when decoding Utf8JSONReader.utf8_json_reader"}
1339013390
13391- def encode_var(value) when is_integer(value), do: value
13392- def encode_var(_), do: {:error, "Unexpected type when encoding Var.var"}
13391+ def encode_utf8_json_reader(value) when is_integer(value), do: value
13392+ def encode_utf8_json_reader(_), do: {:error, "Unexpected type when encoding Utf8JSONReader.utf8_json_reader"}
1339313393
1339413394 def from_map(m) do
13395- %Var{
13396- var: decode_var(m["var"]),
13395+ %Utf8JSONReader{
13396+ utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]),
1339713397 }
1339813398 end
1339913399
@@ -13405,7 +13405,7 @@ defmodule Var do
1340513405
1340613406 def to_map(struct) do
1340713407 %{
13408- "var" => struct.var,
13408+ "Utf8JsonReader" => struct.utf8_json_reader,
1340913409 }
1341013410 end
1341113411
@@ -13416,23 +13416,23 @@ defmodule Var do
1341613416 end
1341713417 end
1341813418
13419-defmodule Virtual do
13420- @enforce_keys [:virtual]
13421- defstruct [:virtual]
13419+defmodule Utf8JSONWriter do
13420+ @enforce_keys [:utf8_json_writer]
13421+ defstruct [:utf8_json_writer]
1342213422
1342313423 @type t :: %__MODULE__{
13424- virtual: integer()
13424+ utf8_json_writer: integer()
1342513425 }
1342613426
13427- def decode_virtual(value) when is_integer(value), do: value
13428- def decode_virtual(_), do: {:error, "Unexpected type when decoding Virtual.virtual"}
13427+ def decode_utf8_json_writer(value) when is_integer(value), do: value
13428+ def decode_utf8_json_writer(_), do: {:error, "Unexpected type when decoding Utf8JSONWriter.utf8_json_writer"}
1342913429
13430- def encode_virtual(value) when is_integer(value), do: value
13431- def encode_virtual(_), do: {:error, "Unexpected type when encoding Virtual.virtual"}
13430+ def encode_utf8_json_writer(value) when is_integer(value), do: value
13431+ def encode_utf8_json_writer(_), do: {:error, "Unexpected type when encoding Utf8JSONWriter.utf8_json_writer"}
1343213432
1343313433 def from_map(m) do
13434- %Virtual{
13435- virtual: decode_virtual(m["virtual"]),
13434+ %Utf8JSONWriter{
13435+ utf8_json_writer: decode_utf8_json_writer(m["Utf8JsonWriter"]),
1343613436 }
1343713437 end
1343813438
@@ -13444,7 +13444,7 @@ defmodule Virtual do
1344413444
1344513445 def to_map(struct) do
1344613446 %{
13447- "virtual" => struct.virtual,
13447+ "Utf8JsonWriter" => struct.utf8_json_writer,
1344813448 }
1344913449 end
1345013450
@@ -13456,14 +13456,17 @@ defmodule Virtual do
1345613456 end
1345713457
1345813458 defmodule Obj5 do
13459- @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :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, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual]
13460- defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :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, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual]
13459+ @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :sealed, :sel, :select, :self, :sendable, :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, :ushort, :using, :utf8_json_reader, :utf8_json_writer]
13460+ defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :sealed, :sel, :select, :self, :sendable, :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, :ushort, :using, :utf8_json_reader, :utf8_json_writer]
1346113461
1346213462 @type t :: %__MODULE__{
1346313463 dummy: integer(),
1346413464 obj5_self: SelfClass.t(),
1346513465 obj5_true: TrueClass.t(),
1346613466 obj5_type: TypeClass.t(),
13467+ sealed: Sealed.t(),
13468+ sel: Sel.t(),
13469+ select: Select.t(),
1346713470 self: Self.t(),
1346813471 sendable: Sendable.t(),
1346913472 serialize: Serialize.t(),
@@ -13521,10 +13524,7 @@ defmodule Obj5 do
1352113524 ushort: Ushort.t(),
1352213525 using: Using.t(),
1352313526 utf8_json_reader: Utf8JSONReader.t(),
13524- utf8_json_writer: Utf8JSONWriter.t(),
13525- uuid: UUID.t(),
13526- var: Var.t(),
13527- virtual: Virtual.t()
13527+ utf8_json_writer: Utf8JSONWriter.t()
1352813528 }
1352913529
1353013530 def decode_dummy(value) when is_integer(value), do: value
@@ -13539,6 +13539,9 @@ defmodule Obj5 do
1353913539 obj5_self: SelfClass.from_map(m["self"]),
1354013540 obj5_true: TrueClass.from_map(m["True"]),
1354113541 obj5_type: TypeClass.from_map(m["type"]),
13542+ sealed: Sealed.from_map(m["sealed"]),
13543+ sel: Sel.from_map(m["SEL"]),
13544+ select: Select.from_map(m["select"]),
1354213545 self: Self.from_map(m["Self"]),
1354313546 sendable: Sendable.from_map(m["Sendable"]),
1354413547 serialize: Serialize.from_map(m["serialize"]),
@@ -13597,9 +13600,6 @@ defmodule Obj5 do
1359713600 using: Using.from_map(m["using"]),
1359813601 utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]),
1359913602 utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]),
13600- uuid: UUID.from_map(m["UUID"]),
13601- var: Var.from_map(m["var"]),
13602- virtual: Virtual.from_map(m["virtual"]),
1360313603 }
1360413604 end
1360513605
@@ -13615,6 +13615,9 @@ defmodule Obj5 do
1361513615 "self" => SelfClass.to_map(struct.obj5_self),
1361613616 "True" => TrueClass.to_map(struct.obj5_true),
1361713617 "type" => TypeClass.to_map(struct.obj5_type),
13618+ "sealed" => Sealed.to_map(struct.sealed),
13619+ "SEL" => Sel.to_map(struct.sel),
13620+ "select" => Select.to_map(struct.select),
1361813621 "Self" => Self.to_map(struct.self),
1361913622 "Sendable" => Sendable.to_map(struct.sendable),
1362013623 "serialize" => Serialize.to_map(struct.serialize),
@@ -13673,9 +13676,123 @@ defmodule Obj5 do
1367313676 "using" => Using.to_map(struct.using),
1367413677 "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader),
1367513678 "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer),
13676- "UUID" => UUID.to_map(struct.uuid),
13677- "var" => Var.to_map(struct.var),
13678- "virtual" => Virtual.to_map(struct.virtual),
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 UUID do
13690+ @enforce_keys [:uuid]
13691+ defstruct [:uuid]
13692+
13693+ @type t :: %__MODULE__{
13694+ uuid: integer()
13695+ }
13696+
13697+ def decode_uuid(value) when is_integer(value), do: value
13698+ def decode_uuid(_), do: {:error, "Unexpected type when decoding UUID.uuid"}
13699+
13700+ def encode_uuid(value) when is_integer(value), do: value
13701+ def encode_uuid(_), do: {:error, "Unexpected type when encoding UUID.uuid"}
13702+
13703+ def from_map(m) do
13704+ %UUID{
13705+ uuid: decode_uuid(m["UUID"]),
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+ "UUID" => struct.uuid,
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 Var do
13729+ @enforce_keys [:var]
13730+ defstruct [:var]
13731+
13732+ @type t :: %__MODULE__{
13733+ var: integer()
13734+ }
13735+
13736+ def decode_var(value) when is_integer(value), do: value
13737+ def decode_var(_), do: {:error, "Unexpected type when decoding Var.var"}
13738+
13739+ def encode_var(value) when is_integer(value), do: value
13740+ def encode_var(_), do: {:error, "Unexpected type when encoding Var.var"}
13741+
13742+ def from_map(m) do
13743+ %Var{
13744+ var: decode_var(m["var"]),
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+ "var" => struct.var,
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 Virtual do
13768+ @enforce_keys [:virtual]
13769+ defstruct [:virtual]
13770+
13771+ @type t :: %__MODULE__{
13772+ virtual: integer()
13773+ }
13774+
13775+ def decode_virtual(value) when is_integer(value), do: value
13776+ def decode_virtual(_), do: {:error, "Unexpected type when decoding Virtual.virtual"}
13777+
13778+ def encode_virtual(value) when is_integer(value), do: value
13779+ def encode_virtual(_), do: {:error, "Unexpected type when encoding Virtual.virtual"}
13780+
13781+ def from_map(m) do
13782+ %Virtual{
13783+ virtual: decode_virtual(m["virtual"]),
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+ "virtual" => struct.virtual,
1367913796 }
1368013797 end
1368113798
@@ -14155,11 +14272,14 @@ defmodule Yield do
1415514272 end
1415614273
1415714274 defmodule Obj6 do
14158- @enforce_keys [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14159- defstruct [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14275+ @enforce_keys [:dummy, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
14276+ defstruct [:dummy, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield]
1416014277
1416114278 @type t :: %__MODULE__{
1416214279 dummy: integer(),
14280+ uuid: UUID.t(),
14281+ var: Var.t(),
14282+ virtual: Virtual.t(),
1416314283 void: Void.t(),
1416414284 volatile: Volatile.t(),
1416514285 wchar_t: WcharT.t(),
@@ -14183,6 +14303,9 @@ defmodule Obj6 do
1418314303 def from_map(m) do
1418414304 %Obj6{
1418514305 dummy: decode_dummy(m["dummy"]),
14306+ uuid: UUID.from_map(m["UUID"]),
14307+ var: Var.from_map(m["var"]),
14308+ virtual: Virtual.from_map(m["virtual"]),
1418614309 void: Void.from_map(m["void"]),
1418714310 volatile: Volatile.from_map(m["volatile"]),
1418814311 wchar_t: WcharT.from_map(m["wchar_t"]),
@@ -14207,6 +14330,9 @@ defmodule Obj6 do
1420714330 def to_map(struct) do
1420814331 %{
1420914332 "dummy" => struct.dummy,
14333+ "UUID" => UUID.to_map(struct.uuid),
14334+ "var" => Var.to_map(struct.var),
14335+ "virtual" => Virtual.to_map(struct.virtual),
1421014336 "void" => Void.to_map(struct.void),
1421114337 "volatile" => Volatile.to_map(struct.volatile),
1421214338 "wchar_t" => WcharT.to_map(struct.wchar_t),
Melmdefault / QuickType.elm+189 −132
@@ -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 , SelfClass
280280 , StringClass
@@ -282,6 +282,9 @@ module QuickType exposing
282282 , Obj5True
283283 , Type
284284 , TypeClass
285+ , Sealed
286+ , Sel
287+ , Select
285288 , Self
286289 , Sendable
287290 , Serialize
@@ -337,11 +340,11 @@ module QuickType exposing
337340 , Using
338341 , Utf8JSONReader
339342 , Utf8JSONWriter
343+ , Obj6
344+ , Where
340345 , UUID
341346 , Var
342347 , Virtual
343- , Obj6
344- , Where
345348 , Void
346349 , Volatile
347350 , WcharT
@@ -1067,6 +1070,7 @@ type alias Obj3 =
10671070 , lazy : Lazy
10681071 , left : Left
10691072 , list : ListClass
1073+ , localDate : LocalDate
10701074 , locale : Locale
10711075 , lock : Lock
10721076 , long : Long
@@ -1081,7 +1085,6 @@ type alias Obj3 =
10811085 , newtonsoft : Newtonsoft
10821086 , nil : Nil
10831087 , no : No
1084- , noexcept : Noexcept
10851088 , obj3If : If
10861089 , obj3Import : Import
10871090 , obj3In : In
@@ -1259,6 +1262,10 @@ type alias ListClass =
12591262 { list : Int
12601263 }
12611264
1265+type alias LocalDate =
1266+ { localDate : Int
1267+ }
1268+
12621269 type alias Locale =
12631270 { locale : Int
12641271 }
@@ -1315,10 +1322,6 @@ type alias No =
13151322 { no : Int
13161323 }
13171324
1318-type alias Noexcept =
1319- { noexcept : Int
1320- }
1321-
13221325 type alias If =
13231326 { ifIf : Int
13241327 }
@@ -1350,6 +1353,7 @@ type alias Module =
13501353 type alias Obj4 =
13511354 { dummy : Int
13521355 , noSuchMethod : NoSuchMethod
1356+ , noexcept : Noexcept
13531357 , nonatomic : Nonatomic
13541358 , none : None
13551359 , nonlocal : Nonlocal
@@ -1369,6 +1373,8 @@ type alias Obj4 =
13691373 , obj4Protocol : ProtocolClass
13701374 , object : Object
13711375 , objectMapper : ObjectMapper
1376+ , offsetDateTime : OffsetDateTime
1377+ , offsetTime : OffsetTime
13721378 , oneway : Oneway
13731379 , open : Open
13741380 , operator : Operator
@@ -1410,15 +1416,16 @@ type alias Obj4 =
14101416 , runtimeType : RuntimeType
14111417 , s : S
14121418 , sbyte : Sbyte
1413- , sealed : Sealed
1414- , sel : Sel
1415- , select : Select
14161419 }
14171420
14181421 type alias NoSuchMethod =
14191422 { noSuchMethod : Int
14201423 }
14211424
1425+type alias Noexcept =
1426+ { noexcept : Int
1427+ }
1428+
14221429 type alias Nonatomic =
14231430 { nonatomic : Int
14241431 }
@@ -1495,6 +1502,14 @@ type alias ObjectMapper =
14951502 { objectMapper : Int
14961503 }
14971504
1505+type alias OffsetDateTime =
1506+ { offsetDateTime : Int
1507+ }
1508+
1509+type alias OffsetTime =
1510+ { offsetTime : Int
1511+ }
1512+
14981513 type alias Oneway =
14991514 { oneway : Int
15001515 }
@@ -1659,18 +1674,6 @@ type alias Sbyte =
16591674 { sbyte : Int
16601675 }
16611676
1662-type alias Sealed =
1663- { sealed : Int
1664- }
1665-
1666-type alias Sel =
1667- { sel : Int
1668- }
1669-
1670-type alias Select =
1671- { select : Int
1672- }
1673-
16741677 type alias Obj5 =
16751678 { dummy : Int
16761679 , obj5Self : SelfClass
@@ -1679,6 +1682,9 @@ type alias Obj5 =
16791682 , obj5True : Obj5True
16801683 , obj5Type : Type
16811684 , purpleType : TypeClass
1685+ , sealed : Sealed
1686+ , sel : Sel
1687+ , select : Select
16821688 , self : Self
16831689 , sendable : Sendable
16841690 , serialize : Serialize
@@ -1734,9 +1740,6 @@ type alias Obj5 =
17341740 , using : Using
17351741 , utf8JSONReader : Utf8JSONReader
17361742 , utf8JSONWriter : Utf8JSONWriter
1737- , uuid : UUID
1738- , var : Var
1739- , virtual : Virtual
17401743 }
17411744
17421745 type alias SelfClass =
@@ -1763,6 +1766,18 @@ type alias TypeClass =
17631766 { typeType : Int
17641767 }
17651768
1769+type alias Sealed =
1770+ { sealed : Int
1771+ }
1772+
1773+type alias Sel =
1774+ { sel : Int
1775+ }
1776+
1777+type alias Select =
1778+ { select : Int
1779+ }
1780+
17661781 type alias Self =
17671782 { self : Int
17681783 }
@@ -1983,21 +1998,12 @@ type alias Utf8JSONWriter =
19831998 { utf8JSONWriter : Int
19841999 }
19852000
1986-type alias UUID =
1987- { uuid : Int
1988- }
1989-
1990-type alias Var =
1991- { var : Int
1992- }
1993-
1994-type alias Virtual =
1995- { virtual : Int
1996- }
1997-
19982001 type alias Obj6 =
19992002 { dummy : Int
20002003 , obj6Where : Where
2004+ , uuid : UUID
2005+ , var : Var
2006+ , virtual : Virtual
20012007 , void : Void
20022008 , volatile : Volatile
20032009 , wcharT : WcharT
@@ -2015,6 +2021,18 @@ type alias Where =
20152021 { whereWhere : Int
20162022 }
20172023
2024+type alias UUID =
2025+ { uuid : Int
2026+ }
2027+
2028+type alias Var =
2029+ { var : Int
2030+ }
2031+
2032+type alias Virtual =
2033+ { virtual : Int
2034+ }
2035+
20182036 type alias Void =
20192037 { void : Int
20202038 }
@@ -3840,6 +3858,7 @@ obj3 =
38403858 |> Jpipe.required "lazy" lazy
38413859 |> Jpipe.required "left" left
38423860 |> Jpipe.required "list" listClass
3861+ |> Jpipe.required "LocalDate" localDate
38433862 |> Jpipe.required "Locale" locale
38443863 |> Jpipe.required "lock" lock
38453864 |> Jpipe.required "long" long
@@ -3854,7 +3873,6 @@ obj3 =
38543873 |> Jpipe.required "newtonsoft" newtonsoft
38553874 |> Jpipe.required "nil" nil
38563875 |> Jpipe.required "NO" no
3857- |> Jpipe.required "noexcept" noexcept
38583876 |> Jpipe.required "if" purpleIf
38593877 |> Jpipe.required "import" purpleImport
38603878 |> Jpipe.required "in" purpleIn
@@ -3909,6 +3927,7 @@ encodeObj3 x =
39093927 , ("lazy", encodeLazy x.lazy)
39103928 , ("left", encodeLeft x.left)
39113929 , ("list", encodeListClass x.list)
3930+ , ("LocalDate", encodeLocalDate x.localDate)
39123931 , ("Locale", encodeLocale x.locale)
39133932 , ("lock", encodeLock x.lock)
39143933 , ("long", encodeLong x.long)
@@ -3923,7 +3942,6 @@ encodeObj3 x =
39233942 , ("newtonsoft", encodeNewtonsoft x.newtonsoft)
39243943 , ("nil", encodeNil x.nil)
39253944 , ("NO", encodeNo x.no)
3926- , ("noexcept", encodeNoexcept x.noexcept)
39273945 , ("if", encodeIf x.obj3If)
39283946 , ("import", encodeImport x.obj3Import)
39293947 , ("in", encodeIn x.obj3In)
@@ -4395,6 +4413,17 @@ encodeListClass x =
43954413 [ ("list", Jenc.int x.list)
43964414 ]
43974415
4416+localDate : Jdec.Decoder LocalDate
4417+localDate =
4418+ Jdec.succeed LocalDate
4419+ |> Jpipe.required "LocalDate" Jdec.int
4420+
4421+encodeLocalDate : LocalDate -> Jenc.Value
4422+encodeLocalDate x =
4423+ Jenc.object
4424+ [ ("LocalDate", Jenc.int x.localDate)
4425+ ]
4426+
43984427 locale : Jdec.Decoder Locale
43994428 locale =
44004429 Jdec.succeed Locale
@@ -4549,17 +4578,6 @@ encodeNo x =
45494578 [ ("NO", Jenc.int x.no)
45504579 ]
45514580
4552-noexcept : Jdec.Decoder Noexcept
4553-noexcept =
4554- Jdec.succeed Noexcept
4555- |> Jpipe.required "noexcept" Jdec.int
4556-
4557-encodeNoexcept : Noexcept -> Jenc.Value
4558-encodeNoexcept x =
4559- Jenc.object
4560- [ ("noexcept", Jenc.int x.noexcept)
4561- ]
4562-
45634581 purpleIf : Jdec.Decoder If
45644582 purpleIf =
45654583 Jdec.succeed If
@@ -4642,6 +4660,7 @@ obj4 =
46424660 Jdec.succeed Obj4
46434661 |> Jpipe.required "dummy" Jdec.int
46444662 |> Jpipe.required "noSuchMethod" noSuchMethod
4663+ |> Jpipe.required "noexcept" noexcept
46454664 |> Jpipe.required "nonatomic" nonatomic
46464665 |> Jpipe.required "None" none
46474666 |> Jpipe.required "nonlocal" nonlocal
@@ -4661,6 +4680,8 @@ obj4 =
46614680 |> Jpipe.required "protocol" protocolClass
46624681 |> Jpipe.required "object" object
46634682 |> Jpipe.required "ObjectMapper" objectMapper
4683+ |> Jpipe.required "OffsetDateTime" offsetDateTime
4684+ |> Jpipe.required "OffsetTime" offsetTime
46644685 |> Jpipe.required "oneway" oneway
46654686 |> Jpipe.required "open" open
46664687 |> Jpipe.required "operator" operator
@@ -4702,15 +4723,13 @@ obj4 =
47024723 |> Jpipe.required "runtimeType" runtimeType
47034724 |> Jpipe.required "s" s
47044725 |> Jpipe.required "sbyte" sbyte
4705- |> Jpipe.required "sealed" sealed
4706- |> Jpipe.required "SEL" sel
4707- |> Jpipe.required "select" select
47084726
47094727 encodeObj4 : Obj4 -> Jenc.Value
47104728 encodeObj4 x =
47114729 Jenc.object
47124730 [ ("dummy", Jenc.int x.dummy)
47134731 , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod)
4732+ , ("noexcept", encodeNoexcept x.noexcept)
47144733 , ("nonatomic", encodeNonatomic x.nonatomic)
47154734 , ("None", encodeNone x.none)
47164735 , ("nonlocal", encodeNonlocal x.nonlocal)
@@ -4730,6 +4749,8 @@ encodeObj4 x =
47304749 , ("protocol", encodeProtocolClass x.obj4Protocol)
47314750 , ("object", encodeObject x.object)
47324751 , ("ObjectMapper", encodeObjectMapper x.objectMapper)
4752+ , ("OffsetDateTime", encodeOffsetDateTime x.offsetDateTime)
4753+ , ("OffsetTime", encodeOffsetTime x.offsetTime)
47334754 , ("oneway", encodeOneway x.oneway)
47344755 , ("open", encodeOpen x.open)
47354756 , ("operator", encodeOperator x.operator)
@@ -4771,9 +4792,6 @@ encodeObj4 x =
47714792 , ("runtimeType", encodeRuntimeType x.runtimeType)
47724793 , ("s", encodeS x.s)
47734794 , ("sbyte", encodeSbyte x.sbyte)
4774- , ("sealed", encodeSealed x.sealed)
4775- , ("SEL", encodeSel x.sel)
4776- , ("select", encodeSelect x.select)
47774795 ]
47784796
47794797 noSuchMethod : Jdec.Decoder NoSuchMethod
@@ -4787,6 +4805,17 @@ encodeNoSuchMethod x =
47874805 [ ("noSuchMethod", Jenc.int x.noSuchMethod)
47884806 ]
47894807
4808+noexcept : Jdec.Decoder Noexcept
4809+noexcept =
4810+ Jdec.succeed Noexcept
4811+ |> Jpipe.required "noexcept" Jdec.int
4812+
4813+encodeNoexcept : Noexcept -> Jenc.Value
4814+encodeNoexcept x =
4815+ Jenc.object
4816+ [ ("noexcept", Jenc.int x.noexcept)
4817+ ]
4818+
47904819 nonatomic : Jdec.Decoder Nonatomic
47914820 nonatomic =
47924821 Jdec.succeed Nonatomic
@@ -4996,6 +5025,28 @@ encodeObjectMapper x =
49965025 [ ("ObjectMapper", Jenc.int x.objectMapper)
49975026 ]
49985027
5028+offsetDateTime : Jdec.Decoder OffsetDateTime
5029+offsetDateTime =
5030+ Jdec.succeed OffsetDateTime
5031+ |> Jpipe.required "OffsetDateTime" Jdec.int
5032+
5033+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
5034+encodeOffsetDateTime x =
5035+ Jenc.object
5036+ [ ("OffsetDateTime", Jenc.int x.offsetDateTime)
5037+ ]
5038+
5039+offsetTime : Jdec.Decoder OffsetTime
5040+offsetTime =
5041+ Jdec.succeed OffsetTime
5042+ |> Jpipe.required "OffsetTime" Jdec.int
5043+
5044+encodeOffsetTime : OffsetTime -> Jenc.Value
5045+encodeOffsetTime x =
5046+ Jenc.object
5047+ [ ("OffsetTime", Jenc.int x.offsetTime)
5048+ ]
5049+
49995050 oneway : Jdec.Decoder Oneway
50005051 oneway =
50015052 Jdec.succeed Oneway
@@ -5447,39 +5498,6 @@ encodeSbyte x =
54475498 [ ("sbyte", Jenc.int x.sbyte)
54485499 ]
54495500
5450-sealed : Jdec.Decoder Sealed
5451-sealed =
5452- Jdec.succeed Sealed
5453- |> Jpipe.required "sealed" Jdec.int
5454-
5455-encodeSealed : Sealed -> Jenc.Value
5456-encodeSealed x =
5457- Jenc.object
5458- [ ("sealed", Jenc.int x.sealed)
5459- ]
5460-
5461-sel : Jdec.Decoder Sel
5462-sel =
5463- Jdec.succeed Sel
5464- |> Jpipe.required "SEL" Jdec.int
5465-
5466-encodeSel : Sel -> Jenc.Value
5467-encodeSel x =
5468- Jenc.object
5469- [ ("SEL", Jenc.int x.sel)
5470- ]
5471-
5472-select : Jdec.Decoder Select
5473-select =
5474- Jdec.succeed Select
5475- |> Jpipe.required "select" Jdec.int
5476-
5477-encodeSelect : Select -> Jenc.Value
5478-encodeSelect x =
5479- Jenc.object
5480- [ ("select", Jenc.int x.select)
5481- ]
5482-
54835501 obj5 : Jdec.Decoder Obj5
54845502 obj5 =
54855503 Jdec.succeed Obj5
@@ -5490,6 +5508,9 @@ obj5 =
54905508 |> Jpipe.required "true" obj5True
54915509 |> Jpipe.required "Type" purpleType
54925510 |> Jpipe.required "type" typeClass
5511+ |> Jpipe.required "sealed" sealed
5512+ |> Jpipe.required "SEL" sel
5513+ |> Jpipe.required "select" select
54935514 |> Jpipe.required "Self" self
54945515 |> Jpipe.required "Sendable" sendable
54955516 |> Jpipe.required "serialize" serialize
@@ -5545,9 +5566,6 @@ obj5 =
55455566 |> Jpipe.required "using" using
55465567 |> Jpipe.required "Utf8JsonReader" utf8JSONReader
55475568 |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter
5548- |> Jpipe.required "UUID" uuid
5549- |> Jpipe.required "var" var
5550- |> Jpipe.required "virtual" virtual
55515569
55525570 encodeObj5 : Obj5 -> Jenc.Value
55535571 encodeObj5 x =
@@ -5559,6 +5577,9 @@ encodeObj5 x =
55595577 , ("true", encodeObj5True x.obj5True)
55605578 , ("Type", encodeType x.obj5Type)
55615579 , ("type", encodeTypeClass x.purpleType)
5580+ , ("sealed", encodeSealed x.sealed)
5581+ , ("SEL", encodeSel x.sel)
5582+ , ("select", encodeSelect x.select)
55625583 , ("Self", encodeSelf x.self)
55635584 , ("Sendable", encodeSendable x.sendable)
55645585 , ("serialize", encodeSerialize x.serialize)
@@ -5614,9 +5635,6 @@ encodeObj5 x =
56145635 , ("using", encodeUsing x.using)
56155636 , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader)
56165637 , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter)
5617- , ("UUID", encodeUUID x.uuid)
5618- , ("var", encodeVar x.var)
5619- , ("virtual", encodeVirtual x.virtual)
56205638 ]
56215639
56225640 selfClass : Jdec.Decoder SelfClass
@@ -5685,6 +5703,39 @@ encodeTypeClass x =
56855703 [ ("type", Jenc.int x.typeType)
56865704 ]
56875705
5706+sealed : Jdec.Decoder Sealed
5707+sealed =
5708+ Jdec.succeed Sealed
5709+ |> Jpipe.required "sealed" Jdec.int
5710+
5711+encodeSealed : Sealed -> Jenc.Value
5712+encodeSealed x =
5713+ Jenc.object
5714+ [ ("sealed", Jenc.int x.sealed)
5715+ ]
5716+
5717+sel : Jdec.Decoder Sel
5718+sel =
5719+ Jdec.succeed Sel
5720+ |> Jpipe.required "SEL" Jdec.int
5721+
5722+encodeSel : Sel -> Jenc.Value
5723+encodeSel x =
5724+ Jenc.object
5725+ [ ("SEL", Jenc.int x.sel)
5726+ ]
5727+
5728+select : Jdec.Decoder Select
5729+select =
5730+ Jdec.succeed Select
5731+ |> Jpipe.required "select" Jdec.int
5732+
5733+encodeSelect : Select -> Jenc.Value
5734+encodeSelect x =
5735+ Jenc.object
5736+ [ ("select", Jenc.int x.select)
5737+ ]
5738+
56885739 self : Jdec.Decoder Self
56895740 self =
56905741 Jdec.succeed Self
@@ -6290,44 +6341,14 @@ encodeUtf8JSONWriter x =
62906341 [ ("Utf8JsonWriter", Jenc.int x.utf8JSONWriter)
62916342 ]
62926343
6293-uuid : Jdec.Decoder UUID
6294-uuid =
6295- Jdec.succeed UUID
6296- |> Jpipe.required "UUID" Jdec.int
6297-
6298-encodeUUID : UUID -> Jenc.Value
6299-encodeUUID x =
6300- Jenc.object
6301- [ ("UUID", Jenc.int x.uuid)
6302- ]
6303-
6304-var : Jdec.Decoder Var
6305-var =
6306- Jdec.succeed Var
6307- |> Jpipe.required "var" Jdec.int
6308-
6309-encodeVar : Var -> Jenc.Value
6310-encodeVar x =
6311- Jenc.object
6312- [ ("var", Jenc.int x.var)
6313- ]
6314-
6315-virtual : Jdec.Decoder Virtual
6316-virtual =
6317- Jdec.succeed Virtual
6318- |> Jpipe.required "virtual" Jdec.int
6319-
6320-encodeVirtual : Virtual -> Jenc.Value
6321-encodeVirtual x =
6322- Jenc.object
6323- [ ("virtual", Jenc.int x.virtual)
6324- ]
6325-
63266344 obj6 : Jdec.Decoder Obj6
63276345 obj6 =
63286346 Jdec.succeed Obj6
63296347 |> Jpipe.required "dummy" Jdec.int
63306348 |> Jpipe.required "where" purpleWhere
6349+ |> Jpipe.required "UUID" uuid
6350+ |> Jpipe.required "var" var
6351+ |> Jpipe.required "virtual" virtual
63316352 |> Jpipe.required "void" void
63326353 |> Jpipe.required "volatile" volatile
63336354 |> Jpipe.required "wchar_t" wcharT
@@ -6345,6 +6366,9 @@ encodeObj6 x =
63456366 Jenc.object
63466367 [ ("dummy", Jenc.int x.dummy)
63476368 , ("where", encodeWhere x.obj6Where)
6369+ , ("UUID", encodeUUID x.uuid)
6370+ , ("var", encodeVar x.var)
6371+ , ("virtual", encodeVirtual x.virtual)
63486372 , ("void", encodeVoid x.void)
63496373 , ("volatile", encodeVolatile x.volatile)
63506374 , ("wchar_t", encodeWcharT x.wcharT)
@@ -6369,6 +6393,39 @@ encodeWhere x =
63696393 [ ("where", Jenc.int x.whereWhere)
63706394 ]
63716395
6396+uuid : Jdec.Decoder UUID
6397+uuid =
6398+ Jdec.succeed UUID
6399+ |> Jpipe.required "UUID" Jdec.int
6400+
6401+encodeUUID : UUID -> Jenc.Value
6402+encodeUUID x =
6403+ Jenc.object
6404+ [ ("UUID", Jenc.int x.uuid)
6405+ ]
6406+
6407+var : Jdec.Decoder Var
6408+var =
6409+ Jdec.succeed Var
6410+ |> Jpipe.required "var" Jdec.int
6411+
6412+encodeVar : Var -> Jenc.Value
6413+encodeVar x =
6414+ Jenc.object
6415+ [ ("var", Jenc.int x.var)
6416+ ]
6417+
6418+virtual : Jdec.Decoder Virtual
6419+virtual =
6420+ Jdec.succeed Virtual
6421+ |> Jpipe.required "virtual" Jdec.int
6422+
6423+encodeVirtual : Virtual -> Jenc.Value
6424+encodeVirtual x =
6425+ Jenc.object
6426+ [ ("virtual", Jenc.int x.virtual)
6427+ ]
6428+
63726429 void : Jdec.Decoder Void
63736430 void =
63746431 Jdec.succeed Void
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,15 +1319,8 @@ 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 = {
1323+ SEL: Sel;
13231324 Self: Self;
13241325 Sendable: Sendable;
13251326 SerializerProvider: SerializerProvider;
@@ -1332,10 +1333,11 @@ export type Obj5 = {
13321333 TimeZone: TimeZone;
13331334 True: True;
13341335 Type: Type;
1335- UUID: UUID;
13361336 Utf8JsonReader: Utf8JSONReader;
13371337 Utf8JsonWriter: Utf8JSONWriter;
13381338 dummy: number;
1339+ sealed: Sealed;
1340+ select: Select;
13391341 self: SelfClass;
13401342 serialize: Serialize;
13411343 set: Set;
@@ -1383,8 +1385,10 @@ export type Obj5 = {
13831385 unsigned: Unsigned;
13841386 ushort: Ushort;
13851387 using: Using;
1386- var: Var;
1387- virtual: Virtual;
1388+};
1389+
1390+export type Sel = {
1391+ SEL: number;
13881392 };
13891393
13901394 export type Self = {
@@ -1435,10 +1439,6 @@ export type Type = {
14351439 Type: number;
14361440 };
14371441
1438-export type UUID = {
1439- UUID: number;
1440-};
1441-
14421442 export type Utf8JSONReader = {
14431443 Utf8JsonReader: number;
14441444 };
@@ -1447,6 +1447,14 @@ export type Utf8JSONWriter = {
14471447 Utf8JsonWriter: number;
14481448 };
14491449
1450+export type Sealed = {
1451+ sealed: number;
1452+};
1453+
1454+export type Select = {
1455+ select: number;
1456+};
1457+
14501458 export type SelfClass = {
14511459 self: number;
14521460 };
@@ -1635,17 +1643,12 @@ export type Using = {
16351643 using: number;
16361644 };
16371645
1638-export type Var = {
1639- var: number;
1640-};
1641-
1642-export type Virtual = {
1643- virtual: number;
1644-};
1645-
16461646 export type Obj6 = {
1647+ UUID: UUID;
16471648 YES: Yes;
16481649 dummy: number;
1650+ var: Var;
1651+ virtual: Virtual;
16491652 void: Void;
16501653 volatile: Volatile;
16511654 wchar_t: WcharT;
@@ -1659,10 +1662,22 @@ export type Obj6 = {
16591662 yield: Yield;
16601663 };
16611664
1665+export type UUID = {
1666+ UUID: number;
1667+};
1668+
16621669 export type Yes = {
16631670 YES: number;
16641671 };
16651672
1673+export type Var = {
1674+ var: number;
1675+};
1676+
1677+export type Virtual = {
1678+ virtual: number;
1679+};
1680+
16661681 export type Void = {
16671682 void: number;
16681683 };
@@ -2436,6 +2451,7 @@ const typeMap: any = {
24362451 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24372452 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24382453 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2454+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24392455 { json: "Locale", js: "Locale", typ: r("Locale") },
24402456 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24412457 { json: "NO", js: "NO", typ: r("No") },
@@ -2485,7 +2501,6 @@ const typeMap: any = {
24852501 { json: "new", js: "new", typ: r("New") },
24862502 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
24872503 { json: "nil", js: "nil", typ: r("Nil") },
2488- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
24892504 ], false),
24902505 "Hashable": o([
24912506 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2532,6 +2547,9 @@ const typeMap: any = {
25322547 "JSONTokenType": o([
25332548 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25342549 ], false),
2550+ "LocalDate": o([
2551+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2552+ ], false),
25352553 "Locale": o([
25362554 { json: "Locale", js: "Locale", typ: i(0) },
25372555 ], false),
@@ -2676,9 +2694,6 @@ const typeMap: any = {
26762694 "Nil": o([
26772695 { json: "nil", js: "nil", typ: i(0) },
26782696 ], false),
2679- "Noexcept": o([
2680- { json: "noexcept", js: "noexcept", typ: i(0) },
2681- ], false),
26822697 "Obj4": o([
26832698 { json: "NSError", js: "NSError", typ: r("NSError") },
26842699 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2686,11 +2701,13 @@ const typeMap: any = {
26862701 { json: "NULL", js: "NULL", typ: r("Null") },
26872702 { json: "None", js: "None", typ: r("None") },
26882703 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2704+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2705+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
26892706 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
26902707 { json: "RegExp", js: "RegExp", typ: r("RegExpClass") },
2691- { json: "SEL", js: "SEL", typ: r("Sel") },
26922708 { json: "dummy", js: "dummy", typ: i(0) },
26932709 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2710+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
26942711 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
26952712 { json: "none", js: "none", typ: r("NoneClass") },
26962713 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2743,8 +2760,6 @@ const typeMap: any = {
27432760 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
27442761 { json: "s", js: "s", typ: r("S") },
27452762 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2746- { json: "sealed", js: "sealed", typ: r("Sealed") },
2747- { json: "select", js: "select", typ: r("Select") },
27482763 ], false),
27492764 "NSError": o([
27502765 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2764,18 +2779,24 @@ const typeMap: any = {
27642779 "ObjectMapper": o([
27652780 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
27662781 ], false),
2782+ "OffsetDateTime": o([
2783+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2784+ ], false),
2785+ "OffsetTime": o([
2786+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2787+ ], false),
27672788 "Protocol": o([
27682789 { json: "Protocol", js: "Protocol", typ: i(0) },
27692790 ], false),
27702791 "RegExpClass": o([
27712792 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
27722793 ], false),
2773- "Sel": o([
2774- { json: "SEL", js: "SEL", typ: i(0) },
2775- ], false),
27762794 "NoSuchMethod": o([
27772795 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
27782796 ], false),
2797+ "Noexcept": o([
2798+ { json: "noexcept", js: "noexcept", typ: i(0) },
2799+ ], false),
27792800 "Nonatomic": o([
27802801 { json: "nonatomic", js: "nonatomic", typ: i(0) },
27812802 ], false),
@@ -2932,13 +2953,8 @@ const typeMap: any = {
29322953 "Sbyte": o([
29332954 { json: "sbyte", js: "sbyte", typ: i(0) },
29342955 ], false),
2935- "Sealed": o([
2936- { json: "sealed", js: "sealed", typ: i(0) },
2937- ], false),
2938- "Select": o([
2939- { json: "select", js: "select", typ: i(0) },
2940- ], false),
29412956 "Obj5": o([
2957+ { json: "SEL", js: "SEL", typ: r("Sel") },
29422958 { json: "Self", js: "Self", typ: r("Self") },
29432959 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29442960 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
@@ -2951,10 +2967,11 @@ const typeMap: any = {
29512967 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
29522968 { json: "True", js: "True", typ: r("True") },
29532969 { json: "Type", js: "Type", typ: r("Type") },
2954- { json: "UUID", js: "UUID", typ: r("UUID") },
29552970 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
29562971 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
29572972 { json: "dummy", js: "dummy", typ: i(0) },
2973+ { json: "sealed", js: "sealed", typ: r("Sealed") },
2974+ { json: "select", js: "select", typ: r("Select") },
29582975 { json: "self", js: "self", typ: r("SelfClass") },
29592976 { json: "serialize", js: "serialize", typ: r("Serialize") },
29602977 { json: "set", js: "set", typ: r("Set") },
@@ -3002,8 +3019,9 @@ const typeMap: any = {
30023019 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30033020 { json: "ushort", js: "ushort", typ: r("Ushort") },
30043021 { json: "using", js: "using", typ: r("Using") },
3005- { json: "var", js: "var", typ: r("Var") },
3006- { json: "virtual", js: "virtual", typ: r("Virtual") },
3022+ ], false),
3023+ "Sel": o([
3024+ { json: "SEL", js: "SEL", typ: i(0) },
30073025 ], false),
30083026 "Self": o([
30093027 { json: "Self", js: "Self", typ: i(0) },
@@ -3041,15 +3059,18 @@ const typeMap: any = {
30413059 "Type": o([
30423060 { json: "Type", js: "Type", typ: i(0) },
30433061 ], false),
3044- "UUID": o([
3045- { json: "UUID", js: "UUID", typ: i(0) },
3046- ], false),
30473062 "Utf8JSONReader": o([
30483063 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
30493064 ], false),
30503065 "Utf8JSONWriter": o([
30513066 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
30523067 ], false),
3068+ "Sealed": o([
3069+ { json: "sealed", js: "sealed", typ: i(0) },
3070+ ], false),
3071+ "Select": o([
3072+ { json: "select", js: "select", typ: i(0) },
3073+ ], false),
30533074 "SelfClass": o([
30543075 { json: "self", js: "self", typ: i(0) },
30553076 ], false),
@@ -3191,15 +3212,12 @@ const typeMap: any = {
31913212 "Using": o([
31923213 { json: "using", js: "using", typ: i(0) },
31933214 ], false),
3194- "Var": o([
3195- { json: "var", js: "var", typ: i(0) },
3196- ], false),
3197- "Virtual": o([
3198- { json: "virtual", js: "virtual", typ: i(0) },
3199- ], false),
32003215 "Obj6": o([
3216+ { json: "UUID", js: "UUID", typ: r("UUID") },
32013217 { json: "YES", js: "YES", typ: r("Yes") },
32023218 { json: "dummy", js: "dummy", typ: i(0) },
3219+ { json: "var", js: "var", typ: r("Var") },
3220+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32033221 { json: "void", js: "void", typ: r("Void") },
32043222 { json: "volatile", js: "volatile", typ: r("Volatile") },
32053223 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3212,9 +3230,18 @@ const typeMap: any = {
32123230 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
32133231 { json: "yield", js: "yield", typ: r("Yield") },
32143232 ], false),
3233+ "UUID": o([
3234+ { json: "UUID", js: "UUID", typ: i(0) },
3235+ ], false),
32153236 "Yes": o([
32163237 { json: "YES", js: "YES", typ: i(0) },
32173238 ], false),
3239+ "Var": o([
3240+ { json: "var", js: "var", typ: i(0) },
3241+ ], false),
3242+ "Virtual": o([
3243+ { json: "virtual", js: "virtual", typ: i(0) },
3244+ ], false),
32183245 "Void": o([
32193246 { json: "void", js: "void", typ: i(0) },
32203247 ], 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,23 +1326,14 @@ 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 Obj5Self SelfClass `json:"self"`
13321332 Obj5True TrueClass `json:"true"`
13331333 Obj5Type TypeClass `json:"type"`
1334+ Sealed Sealed `json:"sealed"`
1335+ Sel Sel `json:"SEL"`
1336+ Select Select `json:"select"`
13341337 Self Self `json:"Self"`
13351338 Sendable Sendable `json:"Sendable"`
13361339 Serialize Serialize `json:"serialize"`
@@ -1377,7 +1380,6 @@ type Obj5 struct {
13771380 Typeid Typeid `json:"typeid"`
13781381 Typename Typename `json:"typename"`
13791382 Typeof Typeof `json:"typeof"`
1380- UUID UUID `json:"UUID"`
13811383 Uint Uint `json:"uint"`
13821384 Ulong Ulong `json:"ulong"`
13831385 Unchecked Unchecked `json:"unchecked"`
@@ -1390,8 +1392,6 @@ type Obj5 struct {
13901392 Using Using `json:"using"`
13911393 Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"`
13921394 Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"`
1393- Var Var `json:"var"`
1394- Virtual Virtual `json:"virtual"`
13951395 }
13961396
13971397 type SelfClass struct {
@@ -1406,6 +1406,18 @@ type TypeClass struct {
14061406 Type int64 `json:"type"`
14071407 }
14081408
1409+type Sealed struct {
1410+ Sealed int64 `json:"sealed"`
1411+}
1412+
1413+type Sel struct {
1414+ Sel int64 `json:"SEL"`
1415+}
1416+
1417+type Select struct {
1418+ Select int64 `json:"select"`
1419+}
1420+
14091421 type Self struct {
14101422 Self int64 `json:"Self"`
14111423 }
@@ -1590,10 +1602,6 @@ type Typeof struct {
15901602 Typeof int64 `json:"typeof"`
15911603 }
15921604
1593-type UUID struct {
1594- UUID int64 `json:"UUID"`
1595-}
1596-
15971605 type Uint struct {
15981606 Uint int64 `json:"uint"`
15991607 }
@@ -1642,16 +1650,11 @@ type Utf8JSONWriter struct {
16421650 Utf8JSONWriter int64 `json:"Utf8JsonWriter"`
16431651 }
16441652
1645-type Var struct {
1646- Var int64 `json:"var"`
1647-}
1648-
1649-type Virtual struct {
1650- Virtual int64 `json:"virtual"`
1651-}
1652-
16531653 type Obj6 struct {
16541654 Dummy int64 `json:"dummy"`
1655+ UUID UUID `json:"UUID"`
1656+ Var Var `json:"var"`
1657+ Virtual Virtual `json:"virtual"`
16551658 Void Void `json:"void"`
16561659 Volatile Volatile `json:"volatile"`
16571660 WcharT WcharT `json:"wchar_t"`
@@ -1666,6 +1669,18 @@ type Obj6 struct {
16661669 Yield Yield `json:"yield"`
16671670 }
16681671
1672+type UUID struct {
1673+ UUID int64 `json:"UUID"`
1674+}
1675+
1676+type Var struct {
1677+ Var int64 `json:"var"`
1678+}
1679+
1680+type Virtual struct {
1681+ Virtual int64 `json:"virtual"`
1682+}
1683+
16691684 type Void struct {
16701685 Void int64 `json:"void"`
16711686 }
Mhaskelldefault / QuickType.hs+183 −129
@@ -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,15 +263,15 @@ module QuickType
260263 , RuntimeType (..)
261264 , S (..)
262265 , Sbyte (..)
263- , Sealed (..)
264- , Sel (..)
265- , Select (..)
266266 , Obj5 (..)
267267 , SelfClass (..)
268268 , Then (..)
269269 , Obj5True (..)
270270 , Type (..)
271271 , TypeClass (..)
272+ , Sealed (..)
273+ , Sel (..)
274+ , Select (..)
272275 , Self (..)
273276 , Sendable (..)
274277 , Serialize (..)
@@ -325,11 +328,11 @@ module QuickType
325328 , Using (..)
326329 , Utf8JSONReader (..)
327330 , Utf8JSONWriter (..)
331+ , Obj6 (..)
332+ , Where (..)
328333 , UUID (..)
329334 , Var (..)
330335 , Virtual (..)
331- , Obj6 (..)
332- , Where (..)
333336 , Void (..)
334337 , Volatile (..)
335338 , WcharT (..)
@@ -1058,6 +1061,7 @@ data Obj3 = Obj3
10581061 , lazyObj3 :: Lazy
10591062 , leftObj3 :: LeftClass
10601063 , listObj3 :: List
1064+ , localDateObj3 :: LocalDate
10611065 , localeObj3 :: Locale
10621066 , lockObj3 :: Lock
10631067 , longObj3 :: Long
@@ -1072,7 +1076,6 @@ data Obj3 = Obj3
10721076 , newtonsoftObj3 :: Newtonsoft
10731077 , nilObj3 :: Nil
10741078 , noObj3 :: No
1075- , noexceptObj3 :: Noexcept
10761079 , obj3IDObj3 :: ID
10771080 , obj3IfObj3 :: If
10781081 , obj3ImportObj3 :: Import
@@ -1250,6 +1253,10 @@ data List = List
12501253 { listList :: Int
12511254 } deriving (Show)
12521255
1256+data LocalDate = LocalDate
1257+ { localDateLocalDate :: Int
1258+ } deriving (Show)
1259+
12531260 data Locale = Locale
12541261 { localeLocale :: Int
12551262 } deriving (Show)
@@ -1306,10 +1313,6 @@ data No = No
13061313 { noNo :: Int
13071314 } deriving (Show)
13081315
1309-data Noexcept = Noexcept
1310- { noexceptNoexcept :: Int
1311- } deriving (Show)
1312-
13131316 data ID = ID
13141317 { idIDID :: Int
13151318 } deriving (Show)
@@ -1341,6 +1344,7 @@ data Module = Module
13411344 data Obj4 = Obj4
13421345 { dummyObj4 :: Int
13431346 , noSuchMethodObj4 :: NoSuchMethod
1347+ , noexceptObj4 :: Noexcept
13441348 , nonatomicObj4 :: Nonatomic
13451349 , noneObj4 :: None
13461350 , nonlocalObj4 :: Nonlocal
@@ -1359,6 +1363,8 @@ data Obj4 = Obj4
13591363 , obj4ProtocolObj4 :: ProtocolClass
13601364 , objectObj4 :: ObjectClass
13611365 , objectMapperObj4 :: ObjectMapper
1366+ , offsetDateTimeObj4 :: OffsetDateTime
1367+ , offsetTimeObj4 :: OffsetTime
13621368 , onewayObj4 :: Oneway
13631369 , openObj4 :: Open
13641370 , operatorObj4 :: Operator
@@ -1401,15 +1407,16 @@ data Obj4 = Obj4
14011407 , runtimeTypeObj4 :: RuntimeType
14021408 , sObj4 :: S
14031409 , sbyteObj4 :: Sbyte
1404- , sealedObj4 :: Sealed
1405- , selObj4 :: Sel
1406- , selectObj4 :: Select
14071410 } deriving (Show)
14081411
14091412 data NoSuchMethod = NoSuchMethod
14101413 { noSuchMethodNoSuchMethod :: Int
14111414 } deriving (Show)
14121415
1416+data Noexcept = Noexcept
1417+ { noexceptNoexcept :: Int
1418+ } deriving (Show)
1419+
14131420 data Nonatomic = Nonatomic
14141421 { nonatomicNonatomic :: Int
14151422 } deriving (Show)
@@ -1482,6 +1489,14 @@ data ObjectMapper = ObjectMapper
14821489 { objectMapperObjectMapper :: Int
14831490 } deriving (Show)
14841491
1492+data OffsetDateTime = OffsetDateTime
1493+ { offsetDateTimeOffsetDateTime :: Int
1494+ } deriving (Show)
1495+
1496+data OffsetTime = OffsetTime
1497+ { offsetTimeOffsetTime :: Int
1498+ } deriving (Show)
1499+
14851500 data Oneway = Oneway
14861501 { onewayOneway :: Int
14871502 } deriving (Show)
@@ -1650,18 +1665,6 @@ data Sbyte = Sbyte
16501665 { sbyteSbyte :: Int
16511666 } deriving (Show)
16521667
1653-data Sealed = Sealed
1654- { sealedSealed :: Int
1655- } deriving (Show)
1656-
1657-data Sel = Sel
1658- { selSel :: Int
1659- } deriving (Show)
1660-
1661-data Select = Select
1662- { selectSelect :: Int
1663- } deriving (Show)
1664-
16651668 data Obj5 = Obj5
16661669 { dummyObj5 :: Int
16671670 , obj5SelfObj5 :: SelfClass
@@ -1669,6 +1672,9 @@ data Obj5 = Obj5
16691672 , obj5TrueObj5 :: Obj5True
16701673 , obj5TypeObj5 :: Type
16711674 , purpleTypeObj5 :: TypeClass
1675+ , sealedObj5 :: Sealed
1676+ , selObj5 :: Sel
1677+ , selectObj5 :: Select
16721678 , selfObj5 :: Self
16731679 , sendableObj5 :: Sendable
16741680 , serializeObj5 :: Serialize
@@ -1725,9 +1731,6 @@ data Obj5 = Obj5
17251731 , usingObj5 :: Using
17261732 , utf8JSONReaderObj5 :: Utf8JSONReader
17271733 , utf8JSONWriterObj5 :: Utf8JSONWriter
1728- , uuidObj5 :: UUID
1729- , varObj5 :: Var
1730- , virtualObj5 :: Virtual
17311734 } deriving (Show)
17321735
17331736 data SelfClass = SelfClass
@@ -1750,6 +1753,18 @@ data TypeClass = TypeClass
17501753 { typeTypeTypeClass :: Int
17511754 } deriving (Show)
17521755
1756+data Sealed = Sealed
1757+ { sealedSealed :: Int
1758+ } deriving (Show)
1759+
1760+data Sel = Sel
1761+ { selSel :: Int
1762+ } deriving (Show)
1763+
1764+data Select = Select
1765+ { selectSelect :: Int
1766+ } deriving (Show)
1767+
17531768 data Self = Self
17541769 { selfSelf :: Int
17551770 } deriving (Show)
@@ -1974,21 +1989,12 @@ data Utf8JSONWriter = Utf8JSONWriter
19741989 { utf8JSONWriterUtf8JSONWriter :: Int
19751990 } deriving (Show)
19761991
1977-data UUID = UUID
1978- { uuidUUID :: Int
1979- } deriving (Show)
1980-
1981-data Var = Var
1982- { varVar :: Int
1983- } deriving (Show)
1984-
1985-data Virtual = Virtual
1986- { virtualVirtual :: Int
1987- } deriving (Show)
1988-
19891992 data Obj6 = Obj6
19901993 { dummyObj6 :: Int
19911994 , obj6WhereObj6 :: Where
1995+ , uuidObj6 :: UUID
1996+ , varObj6 :: Var
1997+ , virtualObj6 :: Virtual
19921998 , voidObj6 :: Void
19931999 , volatileObj6 :: Volatile
19942000 , wcharTObj6 :: WcharT
@@ -2006,6 +2012,18 @@ data Where = Where
20062012 { whereWhereWhere :: Int
20072013 } deriving (Show)
20082014
2015+data UUID = UUID
2016+ { uuidUUID :: Int
2017+ } deriving (Show)
2018+
2019+data Var = Var
2020+ { varVar :: Int
2021+ } deriving (Show)
2022+
2023+data Virtual = Virtual
2024+ { virtualVirtual :: Int
2025+ } deriving (Show)
2026+
20092027 data Void = Void
20102028 { voidVoid :: Int
20112029 } deriving (Show)
@@ -3642,7 +3660,7 @@ instance FromJSON Obj2False where
36423660 <$> v .: "false"
36433661
36443662 instance ToJSON Obj3 where
3645- 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) =
3663+ 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) =
36463664 object $ foldMap (maybe [] pure)
36473665 [ Just $ "dummy" .= dummyObj3
36483666 , Just $ "guard" .= guardObj3
@@ -3687,6 +3705,7 @@ instance ToJSON Obj3 where
36873705 , Just $ "lazy" .= lazyObj3
36883706 , Just $ "left" .= leftObj3
36893707 , Just $ "list" .= listObj3
3708+ , Just $ "LocalDate" .= localDateObj3
36903709 , Just $ "Locale" .= localeObj3
36913710 , Just $ "lock" .= lockObj3
36923711 , Just $ "long" .= longObj3
@@ -3701,7 +3720,6 @@ instance ToJSON Obj3 where
37013720 , Just $ "newtonsoft" .= newtonsoftObj3
37023721 , Just $ "nil" .= nilObj3
37033722 , Just $ "NO" .= noObj3
3704- , Just $ "noexcept" .= noexceptObj3
37053723 , Just $ "id" .= obj3IDObj3
37063724 , Just $ "if" .= obj3IfObj3
37073725 , Just $ "import" .= obj3ImportObj3
@@ -3756,6 +3774,7 @@ instance FromJSON Obj3 where
37563774 <*> v .: "lazy"
37573775 <*> v .: "left"
37583776 <*> v .: "list"
3777+ <*> v .: "LocalDate"
37593778 <*> v .: "Locale"
37603779 <*> v .: "lock"
37613780 <*> v .: "long"
@@ -3770,7 +3789,6 @@ instance FromJSON Obj3 where
37703789 <*> v .: "newtonsoft"
37713790 <*> v .: "nil"
37723791 <*> v .: "NO"
3773- <*> v .: "noexcept"
37743792 <*> v .: "id"
37753793 <*> v .: "if"
37763794 <*> v .: "import"
@@ -4199,6 +4217,16 @@ instance FromJSON List where
41994217 parseJSON (Object v) = List
42004218 <$> v .: "list"
42014219
4220+instance ToJSON LocalDate where
4221+ toJSON (LocalDate localDateLocalDate) =
4222+ object $ foldMap (maybe [] pure)
4223+ [ Just $ "LocalDate" .= localDateLocalDate
4224+ ]
4225+
4226+instance FromJSON LocalDate where
4227+ parseJSON (Object v) = LocalDate
4228+ <$> v .: "LocalDate"
4229+
42024230 instance ToJSON Locale where
42034231 toJSON (Locale localeLocale) =
42044232 object $ foldMap (maybe [] pure)
@@ -4339,16 +4367,6 @@ instance FromJSON No where
43394367 parseJSON (Object v) = No
43404368 <$> v .: "NO"
43414369
4342-instance ToJSON Noexcept where
4343- toJSON (Noexcept noexceptNoexcept) =
4344- object $ foldMap (maybe [] pure)
4345- [ Just $ "noexcept" .= noexceptNoexcept
4346- ]
4347-
4348-instance FromJSON Noexcept where
4349- parseJSON (Object v) = Noexcept
4350- <$> v .: "noexcept"
4351-
43524370 instance ToJSON ID where
43534371 toJSON (ID idIDID) =
43544372 object $ foldMap (maybe [] pure)
@@ -4420,10 +4438,11 @@ instance FromJSON Module where
44204438 <$> v .: "module"
44214439
44224440 instance ToJSON Obj4 where
4423- 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) =
4441+ 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) =
44244442 object $ foldMap (maybe [] pure)
44254443 [ Just $ "dummy" .= dummyObj4
44264444 , Just $ "noSuchMethod" .= noSuchMethodObj4
4445+ , Just $ "noexcept" .= noexceptObj4
44274446 , Just $ "nonatomic" .= nonatomicObj4
44284447 , Just $ "None" .= noneObj4
44294448 , Just $ "nonlocal" .= nonlocalObj4
@@ -4442,6 +4461,8 @@ instance ToJSON Obj4 where
44424461 , Just $ "protocol" .= obj4ProtocolObj4
44434462 , Just $ "object" .= objectObj4
44444463 , Just $ "ObjectMapper" .= objectMapperObj4
4464+ , Just $ "OffsetDateTime" .= offsetDateTimeObj4
4465+ , Just $ "OffsetTime" .= offsetTimeObj4
44454466 , Just $ "oneway" .= onewayObj4
44464467 , Just $ "open" .= openObj4
44474468 , Just $ "operator" .= operatorObj4
@@ -4484,15 +4505,13 @@ instance ToJSON Obj4 where
44844505 , Just $ "runtimeType" .= runtimeTypeObj4
44854506 , Just $ "s" .= sObj4
44864507 , Just $ "sbyte" .= sbyteObj4
4487- , Just $ "sealed" .= sealedObj4
4488- , Just $ "SEL" .= selObj4
4489- , Just $ "select" .= selectObj4
44904508 ]
44914509
44924510 instance FromJSON Obj4 where
44934511 parseJSON (Object v) = Obj4
44944512 <$> v .: "dummy"
44954513 <*> v .: "noSuchMethod"
4514+ <*> v .: "noexcept"
44964515 <*> v .: "nonatomic"
44974516 <*> v .: "None"
44984517 <*> v .: "nonlocal"
@@ -4511,6 +4530,8 @@ instance FromJSON Obj4 where
45114530 <*> v .: "protocol"
45124531 <*> v .: "object"
45134532 <*> v .: "ObjectMapper"
4533+ <*> v .: "OffsetDateTime"
4534+ <*> v .: "OffsetTime"
45144535 <*> v .: "oneway"
45154536 <*> v .: "open"
45164537 <*> v .: "operator"
@@ -4553,9 +4574,6 @@ instance FromJSON Obj4 where
45534574 <*> v .: "runtimeType"
45544575 <*> v .: "s"
45554576 <*> v .: "sbyte"
4556- <*> v .: "sealed"
4557- <*> v .: "SEL"
4558- <*> v .: "select"
45594577
45604578 instance ToJSON NoSuchMethod where
45614579 toJSON (NoSuchMethod noSuchMethodNoSuchMethod) =
@@ -4567,6 +4585,16 @@ instance FromJSON NoSuchMethod where
45674585 parseJSON (Object v) = NoSuchMethod
45684586 <$> v .: "noSuchMethod"
45694587
4588+instance ToJSON Noexcept where
4589+ toJSON (Noexcept noexceptNoexcept) =
4590+ object $ foldMap (maybe [] pure)
4591+ [ Just $ "noexcept" .= noexceptNoexcept
4592+ ]
4593+
4594+instance FromJSON Noexcept where
4595+ parseJSON (Object v) = Noexcept
4596+ <$> v .: "noexcept"
4597+
45704598 instance ToJSON Nonatomic where
45714599 toJSON (Nonatomic nonatomicNonatomic) =
45724600 object $ foldMap (maybe [] pure)
@@ -4747,6 +4775,26 @@ instance FromJSON ObjectMapper where
47474775 parseJSON (Object v) = ObjectMapper
47484776 <$> v .: "ObjectMapper"
47494777
4778+instance ToJSON OffsetDateTime where
4779+ toJSON (OffsetDateTime offsetDateTimeOffsetDateTime) =
4780+ object $ foldMap (maybe [] pure)
4781+ [ Just $ "OffsetDateTime" .= offsetDateTimeOffsetDateTime
4782+ ]
4783+
4784+instance FromJSON OffsetDateTime where
4785+ parseJSON (Object v) = OffsetDateTime
4786+ <$> v .: "OffsetDateTime"
4787+
4788+instance ToJSON OffsetTime where
4789+ toJSON (OffsetTime offsetTimeOffsetTime) =
4790+ object $ foldMap (maybe [] pure)
4791+ [ Just $ "OffsetTime" .= offsetTimeOffsetTime
4792+ ]
4793+
4794+instance FromJSON OffsetTime where
4795+ parseJSON (Object v) = OffsetTime
4796+ <$> v .: "OffsetTime"
4797+
47504798 instance ToJSON Oneway where
47514799 toJSON (Oneway onewayOneway) =
47524800 object $ foldMap (maybe [] pure)
@@ -5167,38 +5215,8 @@ instance FromJSON Sbyte where
51675215 parseJSON (Object v) = Sbyte
51685216 <$> v .: "sbyte"
51695217
5170-instance ToJSON Sealed where
5171- toJSON (Sealed sealedSealed) =
5172- object $ foldMap (maybe [] pure)
5173- [ Just $ "sealed" .= sealedSealed
5174- ]
5175-
5176-instance FromJSON Sealed where
5177- parseJSON (Object v) = Sealed
5178- <$> v .: "sealed"
5179-
5180-instance ToJSON Sel where
5181- toJSON (Sel selSel) =
5182- object $ foldMap (maybe [] pure)
5183- [ Just $ "SEL" .= selSel
5184- ]
5185-
5186-instance FromJSON Sel where
5187- parseJSON (Object v) = Sel
5188- <$> v .: "SEL"
5189-
5190-instance ToJSON Select where
5191- toJSON (Select selectSelect) =
5192- object $ foldMap (maybe [] pure)
5193- [ Just $ "select" .= selectSelect
5194- ]
5195-
5196-instance FromJSON Select where
5197- parseJSON (Object v) = Select
5198- <$> v .: "select"
5199-
52005218 instance ToJSON Obj5 where
5201- toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 selfObj5 sendableObj5 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 ushortObj5 usingObj5 utf8JSONReaderObj5 utf8JSONWriterObj5 uuidObj5 varObj5 virtualObj5) =
5219+ toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 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 ushortObj5 usingObj5 utf8JSONReaderObj5 utf8JSONWriterObj5) =
52025220 object $ foldMap (maybe [] pure)
52035221 [ Just $ "dummy" .= dummyObj5
52045222 , Just $ "self" .= obj5SelfObj5
@@ -5206,6 +5224,9 @@ instance ToJSON Obj5 where
52065224 , Just $ "true" .= obj5TrueObj5
52075225 , Just $ "Type" .= obj5TypeObj5
52085226 , Just $ "type" .= purpleTypeObj5
5227+ , Just $ "sealed" .= sealedObj5
5228+ , Just $ "SEL" .= selObj5
5229+ , Just $ "select" .= selectObj5
52095230 , Just $ "Self" .= selfObj5
52105231 , Just $ "Sendable" .= sendableObj5
52115232 , Just $ "serialize" .= serializeObj5
@@ -5262,9 +5283,6 @@ instance ToJSON Obj5 where
52625283 , Just $ "using" .= usingObj5
52635284 , Just $ "Utf8JsonReader" .= utf8JSONReaderObj5
52645285 , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj5
5265- , Just $ "UUID" .= uuidObj5
5266- , Just $ "var" .= varObj5
5267- , Just $ "virtual" .= virtualObj5
52685286 ]
52695287
52705288 instance FromJSON Obj5 where
@@ -5275,6 +5293,9 @@ instance FromJSON Obj5 where
52755293 <*> v .: "true"
52765294 <*> v .: "Type"
52775295 <*> v .: "type"
5296+ <*> v .: "sealed"
5297+ <*> v .: "SEL"
5298+ <*> v .: "select"
52785299 <*> v .: "Self"
52795300 <*> v .: "Sendable"
52805301 <*> v .: "serialize"
@@ -5331,9 +5352,6 @@ instance FromJSON Obj5 where
53315352 <*> v .: "using"
53325353 <*> v .: "Utf8JsonReader"
53335354 <*> v .: "Utf8JsonWriter"
5334- <*> v .: "UUID"
5335- <*> v .: "var"
5336- <*> v .: "virtual"
53375355
53385356 instance ToJSON SelfClass where
53395357 toJSON (SelfClass selfSelfClass) =
@@ -5385,6 +5403,36 @@ instance FromJSON TypeClass where
53855403 parseJSON (Object v) = TypeClass
53865404 <$> v .: "type"
53875405
5406+instance ToJSON Sealed where
5407+ toJSON (Sealed sealedSealed) =
5408+ object $ foldMap (maybe [] pure)
5409+ [ Just $ "sealed" .= sealedSealed
5410+ ]
5411+
5412+instance FromJSON Sealed where
5413+ parseJSON (Object v) = Sealed
5414+ <$> v .: "sealed"
5415+
5416+instance ToJSON Sel where
5417+ toJSON (Sel selSel) =
5418+ object $ foldMap (maybe [] pure)
5419+ [ Just $ "SEL" .= selSel
5420+ ]
5421+
5422+instance FromJSON Sel where
5423+ parseJSON (Object v) = Sel
5424+ <$> v .: "SEL"
5425+
5426+instance ToJSON Select where
5427+ toJSON (Select selectSelect) =
5428+ object $ foldMap (maybe [] pure)
5429+ [ Just $ "select" .= selectSelect
5430+ ]
5431+
5432+instance FromJSON Select where
5433+ parseJSON (Object v) = Select
5434+ <$> v .: "select"
5435+
53885436 instance ToJSON Self where
53895437 toJSON (Self selfSelf) =
53905438 object $ foldMap (maybe [] pure)
@@ -5945,41 +5993,14 @@ instance FromJSON Utf8JSONWriter where
59455993 parseJSON (Object v) = Utf8JSONWriter
59465994 <$> v .: "Utf8JsonWriter"
59475995
5948-instance ToJSON UUID where
5949- toJSON (UUID uuidUUID) =
5950- object $ foldMap (maybe [] pure)
5951- [ Just $ "UUID" .= uuidUUID
5952- ]
5953-
5954-instance FromJSON UUID where
5955- parseJSON (Object v) = UUID
5956- <$> v .: "UUID"
5957-
5958-instance ToJSON Var where
5959- toJSON (Var varVar) =
5960- object $ foldMap (maybe [] pure)
5961- [ Just $ "var" .= varVar
5962- ]
5963-
5964-instance FromJSON Var where
5965- parseJSON (Object v) = Var
5966- <$> v .: "var"
5967-
5968-instance ToJSON Virtual where
5969- toJSON (Virtual virtualVirtual) =
5970- object $ foldMap (maybe [] pure)
5971- [ Just $ "virtual" .= virtualVirtual
5972- ]
5973-
5974-instance FromJSON Virtual where
5975- parseJSON (Object v) = Virtual
5976- <$> v .: "virtual"
5977-
59785996 instance ToJSON Obj6 where
5979- toJSON (Obj6 dummyObj6 obj6WhereObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
5997+ toJSON (Obj6 dummyObj6 obj6WhereObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) =
59805998 object $ foldMap (maybe [] pure)
59815999 [ Just $ "dummy" .= dummyObj6
59826000 , Just $ "where" .= obj6WhereObj6
6001+ , Just $ "UUID" .= uuidObj6
6002+ , Just $ "var" .= varObj6
6003+ , Just $ "virtual" .= virtualObj6
59836004 , Just $ "void" .= voidObj6
59846005 , Just $ "volatile" .= volatileObj6
59856006 , Just $ "wchar_t" .= wcharTObj6
@@ -5997,6 +6018,9 @@ instance FromJSON Obj6 where
59976018 parseJSON (Object v) = Obj6
59986019 <$> v .: "dummy"
59996020 <*> v .: "where"
6021+ <*> v .: "UUID"
6022+ <*> v .: "var"
6023+ <*> v .: "virtual"
60006024 <*> v .: "void"
60016025 <*> v .: "volatile"
60026026 <*> v .: "wchar_t"
@@ -6019,6 +6043,36 @@ instance FromJSON Where where
60196043 parseJSON (Object v) = Where
60206044 <$> v .: "where"
60216045
6046+instance ToJSON UUID where
6047+ toJSON (UUID uuidUUID) =
6048+ object $ foldMap (maybe [] pure)
6049+ [ Just $ "UUID" .= uuidUUID
6050+ ]
6051+
6052+instance FromJSON UUID where
6053+ parseJSON (Object v) = UUID
6054+ <$> v .: "UUID"
6055+
6056+instance ToJSON Var where
6057+ toJSON (Var varVar) =
6058+ object $ foldMap (maybe [] pure)
6059+ [ Just $ "var" .= varVar
6060+ ]
6061+
6062+instance FromJSON Var where
6063+ parseJSON (Object v) = Var
6064+ <$> v .: "var"
6065+
6066+instance ToJSON Virtual where
6067+ toJSON (Virtual virtualVirtual) =
6068+ object $ foldMap (maybe [] pure)
6069+ [ Just $ "virtual" .= virtualVirtual
6070+ ]
6071+
6072+instance FromJSON Virtual where
6073+ parseJSON (Object v) = Virtual
6074+ <$> v .: "virtual"
6075+
60226076 instance ToJSON Void where
60236077 toJSON (Void voidVoid) =
60246078 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
@@ -19,6 +19,9 @@ public class Obj5 {
1919 private Try obj5Try;
2020 private TypeClass obj5Type;
2121 private TrueClass purpleTrue;
22+ private Sealed sealed;
23+ private Sel sel;
24+ private Select select;
2225 private Self self;
2326 private Sendable sendable;
2427 private Serialize serialize;
@@ -65,9 +68,6 @@ public class Obj5 {
6568 private Using using;
6669 private Utf8JSONReader utf8JSONReader;
6770 private Utf8JSONWriter utf8JSONWriter;
68- private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -149,6 +149,21 @@ public class Obj5 {
149149 @JsonProperty("true")
150150 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
151151
152+ @JsonProperty("sealed")
153+ public Sealed getSealed() { return sealed; }
154+ @JsonProperty("sealed")
155+ public void setSealed(Sealed value) { this.sealed = value; }
156+
157+ @JsonProperty("SEL")
158+ public Sel getSel() { return sel; }
159+ @JsonProperty("SEL")
160+ public void setSel(Sel value) { this.sel = value; }
161+
162+ @JsonProperty("select")
163+ public Select getSelect() { return select; }
164+ @JsonProperty("select")
165+ public void setSelect(Select value) { this.select = value; }
166+
152167 @JsonProperty("Self")
153168 public Self getSelf() { return self; }
154169 @JsonProperty("Self")
@@ -378,19 +393,4 @@ public class Obj5 {
378393 public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
379394 @JsonProperty("Utf8JsonWriter")
380395 public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
381-
382- @JsonProperty("UUID")
383- public UUIDClass getUUID() { return uuid; }
384- @JsonProperty("UUID")
385- public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = 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 UUIDClass uuid;
11+ private Var var;
12+ private Virtual virtual;
1013 private WcharT wcharT;
1114 private Weak weak;
1215 private Where where;
@@ -37,6 +40,21 @@ public class Obj6 {
3740 @JsonProperty("while")
3841 public void setObj6While(While value) { this.obj6While = value; }
3942
43+ @JsonProperty("UUID")
44+ public UUIDClass getUUID() { return uuid; }
45+ @JsonProperty("UUID")
46+ public void setUUID(UUIDClass value) { this.uuid = value; }
47+
48+ @JsonProperty("var")
49+ public Var getVar() { return var; }
50+ @JsonProperty("var")
51+ public void setVar(Var value) { this.var = value; }
52+
53+ @JsonProperty("virtual")
54+ public Virtual getVirtual() { return virtual; }
55+ @JsonProperty("virtual")
56+ public void setVirtual(Virtual value) { this.virtual = value; }
57+
4058 @JsonProperty("wchar_t")
4159 public WcharT getWcharT() { return wcharT; }
4260 @JsonProperty("wchar_t")
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
@@ -19,6 +19,9 @@ public class Obj5 {
1919 private Try obj5Try;
2020 private TypeClass obj5Type;
2121 private TrueClass purpleTrue;
22+ private Sealed sealed;
23+ private Sel sel;
24+ private Select select;
2225 private Self self;
2326 private Sendable sendable;
2427 private Serialize serialize;
@@ -65,9 +68,6 @@ public class Obj5 {
6568 private Using using;
6669 private Utf8JSONReader utf8JSONReader;
6770 private Utf8JSONWriter utf8JSONWriter;
68- private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -149,6 +149,21 @@ public class Obj5 {
149149 @JsonProperty("true")
150150 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
151151
152+ @JsonProperty("sealed")
153+ public Sealed getSealed() { return sealed; }
154+ @JsonProperty("sealed")
155+ public void setSealed(Sealed value) { this.sealed = value; }
156+
157+ @JsonProperty("SEL")
158+ public Sel getSel() { return sel; }
159+ @JsonProperty("SEL")
160+ public void setSel(Sel value) { this.sel = value; }
161+
162+ @JsonProperty("select")
163+ public Select getSelect() { return select; }
164+ @JsonProperty("select")
165+ public void setSelect(Select value) { this.select = value; }
166+
152167 @JsonProperty("Self")
153168 public Self getSelf() { return self; }
154169 @JsonProperty("Self")
@@ -378,19 +393,4 @@ public class Obj5 {
378393 public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
379394 @JsonProperty("Utf8JsonWriter")
380395 public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
381-
382- @JsonProperty("UUID")
383- public UUIDClass getUUID() { return uuid; }
384- @JsonProperty("UUID")
385- public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = 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 UUIDClass uuid;
11+ private Var var;
12+ private Virtual virtual;
1013 private WcharT wcharT;
1114 private Weak weak;
1215 private Where where;
@@ -37,6 +40,21 @@ public class Obj6 {
3740 @JsonProperty("while")
3841 public void setObj6While(While value) { this.obj6While = value; }
3942
43+ @JsonProperty("UUID")
44+ public UUIDClass getUUID() { return uuid; }
45+ @JsonProperty("UUID")
46+ public void setUUID(UUIDClass value) { this.uuid = value; }
47+
48+ @JsonProperty("var")
49+ public Var getVar() { return var; }
50+ @JsonProperty("var")
51+ public void setVar(Var value) { this.var = value; }
52+
53+ @JsonProperty("virtual")
54+ public Virtual getVirtual() { return virtual; }
55+ @JsonProperty("virtual")
56+ public void setVirtual(Virtual value) { this.virtual = value; }
57+
4058 @JsonProperty("wchar_t")
4159 public WcharT getWcharT() { return wcharT; }
4260 @JsonProperty("wchar_t")
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
@@ -19,6 +19,9 @@ public class Obj5 {
1919 private Try obj5Try;
2020 private TypeClass obj5Type;
2121 private TrueClass purpleTrue;
22+ private Sealed sealed;
23+ private Sel sel;
24+ private Select select;
2225 private Self self;
2326 private Sendable sendable;
2427 private Serialize serialize;
@@ -65,9 +68,6 @@ public class Obj5 {
6568 private Using using;
6669 private Utf8JSONReader utf8JSONReader;
6770 private Utf8JSONWriter utf8JSONWriter;
68- private UUIDClass uuid;
69- private Var var;
70- private Virtual virtual;
7171
7272 @JsonProperty("dummy")
7373 public long getDummy() { return dummy; }
@@ -149,6 +149,21 @@ public class Obj5 {
149149 @JsonProperty("true")
150150 public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; }
151151
152+ @JsonProperty("sealed")
153+ public Sealed getSealed() { return sealed; }
154+ @JsonProperty("sealed")
155+ public void setSealed(Sealed value) { this.sealed = value; }
156+
157+ @JsonProperty("SEL")
158+ public Sel getSel() { return sel; }
159+ @JsonProperty("SEL")
160+ public void setSel(Sel value) { this.sel = value; }
161+
162+ @JsonProperty("select")
163+ public Select getSelect() { return select; }
164+ @JsonProperty("select")
165+ public void setSelect(Select value) { this.select = value; }
166+
152167 @JsonProperty("Self")
153168 public Self getSelf() { return self; }
154169 @JsonProperty("Self")
@@ -378,19 +393,4 @@ public class Obj5 {
378393 public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; }
379394 @JsonProperty("Utf8JsonWriter")
380395 public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; }
381-
382- @JsonProperty("UUID")
383- public UUIDClass getUUID() { return uuid; }
384- @JsonProperty("UUID")
385- public void setUUID(UUIDClass value) { this.uuid = value; }
386-
387- @JsonProperty("var")
388- public Var getVar() { return var; }
389- @JsonProperty("var")
390- public void setVar(Var value) { this.var = value; }
391-
392- @JsonProperty("virtual")
393- public Virtual getVirtual() { return virtual; }
394- @JsonProperty("virtual")
395- public void setVirtual(Virtual value) { this.virtual = 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 UUIDClass uuid;
11+ private Var var;
12+ private Virtual virtual;
1013 private WcharT wcharT;
1114 private Weak weak;
1215 private Where where;
@@ -37,6 +40,21 @@ public class Obj6 {
3740 @JsonProperty("while")
3841 public void setObj6While(While value) { this.obj6While = value; }
3942
43+ @JsonProperty("UUID")
44+ public UUIDClass getUUID() { return uuid; }
45+ @JsonProperty("UUID")
46+ public void setUUID(UUIDClass value) { this.uuid = value; }
47+
48+ @JsonProperty("var")
49+ public Var getVar() { return var; }
50+ @JsonProperty("var")
51+ public void setVar(Var value) { this.var = value; }
52+
53+ @JsonProperty("virtual")
54+ public Virtual getVirtual() { return virtual; }
55+ @JsonProperty("virtual")
56+ public void setVirtual(Virtual value) { this.virtual = value; }
57+
4058 @JsonProperty("wchar_t")
4159 public WcharT getWcharT() { return wcharT; }
4260 @JsonProperty("wchar_t")
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,9 +274,8 @@ let _Right;
272274 let _RuntimeType;
273275 let _S;
274276 let _Sbyte;
275-let _Sealed;
276-let _Select;
277277 let _Obj5;
278+let _Sel;
278279 let _Self;
279280 let _Sendable;
280281 let _SerializerProvider;
@@ -287,9 +288,10 @@ let _TimeOnlyConverter;
287288 let _TimeZone;
288289 let _True;
289290 let _Type;
290-let _UUID;
291291 let _Utf8JSONReader;
292292 let _Utf8JSONWriter;
293+let _Sealed;
294+let _Select;
293295 let _SelfClass;
294296 let _Serialize;
295297 let _Set;
@@ -337,10 +339,11 @@ let _Unsafe;
337339 let _Unsigned;
338340 let _Ushort;
339341 let _Using;
340-let _Var;
341-let _Virtual;
342342 let _Obj6;
343+let _UUID;
343344 let _Yes;
345+let _Var;
346+let _Virtual;
344347 let _Void;
345348 let _Volatile;
346349 let _WcharT;
@@ -916,6 +919,9 @@ _JSONReader = PropTypes.shape({
916919 _JSONTokenType = PropTypes.shape({
917920 "JsonTokenType": PropTypes.oneOfType([Integer]).isRequired,
918921 });
922+_LocalDate = PropTypes.shape({
923+ "LocalDate": PropTypes.oneOfType([Integer]).isRequired,
924+});
919925 _Locale = PropTypes.shape({
920926 "Locale": PropTypes.oneOfType([Integer]).isRequired,
921927 });
@@ -1060,9 +1066,6 @@ _Newtonsoft = PropTypes.shape({
10601066 _Nil = PropTypes.shape({
10611067 "nil": PropTypes.oneOfType([Integer]).isRequired,
10621068 });
1063-_Noexcept = PropTypes.shape({
1064- "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1065-});
10661069 _Obj3 = PropTypes.shape({
10671070 "Hashable": _Hashable,
10681071 "Hasher": _Hasher,
@@ -1079,6 +1082,7 @@ _Obj3 = PropTypes.shape({
10791082 "JsonParser": _JSONParser,
10801083 "JsonReader": _JSONReader,
10811084 "JsonTokenType": _JSONTokenType,
1085+ "LocalDate": _LocalDate,
10821086 "Locale": _Locale,
10831087 "MapEntry": _MapEntry,
10841088 "NO": _No,
@@ -1128,7 +1132,6 @@ _Obj3 = PropTypes.shape({
11281132 "new": _New,
11291133 "newtonsoft": _Newtonsoft,
11301134 "nil": _Nil,
1131- "noexcept": _Noexcept,
11321135 });
11331136 _NSError = PropTypes.shape({
11341137 "NSError": PropTypes.oneOfType([Integer]).isRequired,
@@ -1148,18 +1151,24 @@ _None = PropTypes.shape({
11481151 _ObjectMapper = PropTypes.shape({
11491152 "ObjectMapper": PropTypes.oneOfType([Integer]).isRequired,
11501153 });
1154+_OffsetDateTime = PropTypes.shape({
1155+ "OffsetDateTime": PropTypes.oneOfType([Integer]).isRequired,
1156+});
1157+_OffsetTime = PropTypes.shape({
1158+ "OffsetTime": PropTypes.oneOfType([Integer]).isRequired,
1159+});
11511160 _Protocol = PropTypes.shape({
11521161 "Protocol": PropTypes.oneOfType([Integer]).isRequired,
11531162 });
11541163 _RegExp = PropTypes.shape({
11551164 "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,
11561165 });
1157-_Sel = PropTypes.shape({
1158- "SEL": PropTypes.oneOfType([Integer]).isRequired,
1159-});
11601166 _NoSuchMethod = PropTypes.shape({
11611167 "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired,
11621168 });
1169+_Noexcept = PropTypes.shape({
1170+ "noexcept": PropTypes.oneOfType([Integer]).isRequired,
1171+});
11631172 _Nonatomic = PropTypes.shape({
11641173 "nonatomic": PropTypes.oneOfType([Integer]).isRequired,
11651174 });
@@ -1316,12 +1325,6 @@ _S = PropTypes.shape({
13161325 _Sbyte = PropTypes.shape({
13171326 "sbyte": PropTypes.oneOfType([Integer]).isRequired,
13181327 });
1319-_Sealed = PropTypes.shape({
1320- "sealed": PropTypes.oneOfType([Integer]).isRequired,
1321-});
1322-_Select = PropTypes.shape({
1323- "select": PropTypes.oneOfType([Integer]).isRequired,
1324-});
13251328 _Obj4 = PropTypes.shape({
13261329 "NSError": _NSError,
13271330 "NSObject": _NSObject,
@@ -1329,11 +1332,13 @@ _Obj4 = PropTypes.shape({
13291332 "NULL": _Null,
13301333 "None": _None,
13311334 "ObjectMapper": _ObjectMapper,
1335+ "OffsetDateTime": _OffsetDateTime,
1336+ "OffsetTime": _OffsetTime,
13321337 "Protocol": _Protocol,
13331338 "RegExp": _RegExp,
1334- "SEL": _Sel,
13351339 "dummy": PropTypes.oneOfType([Integer]).isRequired,
13361340 "noSuchMethod": _NoSuchMethod,
1341+ "noexcept": _Noexcept,
13371342 "nonatomic": _Nonatomic,
13381343 "none": _NoneClass,
13391344 "nonlocal": _Nonlocal,
@@ -1386,8 +1391,9 @@ _Obj4 = PropTypes.shape({
13861391 "runtimeType": _RuntimeType,
13871392 "s": _S,
13881393 "sbyte": _Sbyte,
1389- "sealed": _Sealed,
1390- "select": _Select,
1394+});
1395+_Sel = PropTypes.shape({
1396+ "SEL": PropTypes.oneOfType([Integer]).isRequired,
13911397 });
13921398 _Self = PropTypes.shape({
13931399 "Self": PropTypes.oneOfType([Integer]).isRequired,
@@ -1425,15 +1431,18 @@ _True = PropTypes.shape({
14251431 _Type = PropTypes.shape({
14261432 "Type": PropTypes.oneOfType([Integer]).isRequired,
14271433 });
1428-_UUID = PropTypes.shape({
1429- "UUID": PropTypes.oneOfType([Integer]).isRequired,
1430-});
14311434 _Utf8JSONReader = PropTypes.shape({
14321435 "Utf8JsonReader": PropTypes.oneOfType([Integer]).isRequired,
14331436 });
14341437 _Utf8JSONWriter = PropTypes.shape({
14351438 "Utf8JsonWriter": PropTypes.oneOfType([Integer]).isRequired,
14361439 });
1440+_Sealed = PropTypes.shape({
1441+ "sealed": PropTypes.oneOfType([Integer]).isRequired,
1442+});
1443+_Select = PropTypes.shape({
1444+ "select": PropTypes.oneOfType([Integer]).isRequired,
1445+});
14371446 _SelfClass = PropTypes.shape({
14381447 "self": PropTypes.oneOfType([Integer]).isRequired,
14391448 });
@@ -1575,13 +1584,8 @@ _Ushort = PropTypes.shape({
15751584 _Using = PropTypes.shape({
15761585 "using": PropTypes.oneOfType([Integer]).isRequired,
15771586 });
1578-_Var = PropTypes.shape({
1579- "var": PropTypes.oneOfType([Integer]).isRequired,
1580-});
1581-_Virtual = PropTypes.shape({
1582- "virtual": PropTypes.oneOfType([Integer]).isRequired,
1583-});
15841587 _Obj5 = PropTypes.shape({
1588+ "SEL": _Sel,
15851589 "Self": _Self,
15861590 "Sendable": _Sendable,
15871591 "SerializerProvider": _SerializerProvider,
@@ -1594,10 +1598,11 @@ _Obj5 = PropTypes.shape({
15941598 "TimeZone": _TimeZone,
15951599 "True": _True,
15961600 "Type": _Type,
1597- "UUID": _UUID,
15981601 "Utf8JsonReader": _Utf8JSONReader,
15991602 "Utf8JsonWriter": _Utf8JSONWriter,
16001603 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1604+ "sealed": _Sealed,
1605+ "select": _Select,
16011606 "self": _SelfClass,
16021607 "serialize": _Serialize,
16031608 "set": _Set,
@@ -1645,12 +1650,19 @@ _Obj5 = PropTypes.shape({
16451650 "unsigned": _Unsigned,
16461651 "ushort": _Ushort,
16471652 "using": _Using,
1648- "var": _Var,
1649- "virtual": _Virtual,
1653+});
1654+_UUID = PropTypes.shape({
1655+ "UUID": PropTypes.oneOfType([Integer]).isRequired,
16501656 });
16511657 _Yes = PropTypes.shape({
16521658 "YES": PropTypes.oneOfType([Integer]).isRequired,
16531659 });
1660+_Var = PropTypes.shape({
1661+ "var": PropTypes.oneOfType([Integer]).isRequired,
1662+});
1663+_Virtual = PropTypes.shape({
1664+ "virtual": PropTypes.oneOfType([Integer]).isRequired,
1665+});
16541666 _Void = PropTypes.shape({
16551667 "void": PropTypes.oneOfType([Integer]).isRequired,
16561668 });
@@ -1685,8 +1697,11 @@ _Yield = PropTypes.shape({
16851697 "yield": PropTypes.oneOfType([Integer]).isRequired,
16861698 });
16871699 _Obj6 = PropTypes.shape({
1700+ "UUID": _UUID,
16881701 "YES": _Yes,
16891702 "dummy": PropTypes.oneOfType([Integer]).isRequired,
1703+ "var": _Var,
1704+ "virtual": _Virtual,
16901705 "void": _Void,
16911706 "volatile": _Volatile,
16921707 "wchar_t": _WcharT,
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,13 +1238,8 @@ 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([
1242+ { json: "SEL", js: "SEL", typ: r("Sel") },
12421243 { json: "Self", js: "Self", typ: r("Self") },
12431244 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
12441245 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
@@ -1251,10 +1252,11 @@ const typeMap = {
12511252 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
12521253 { json: "True", js: "True", typ: r("True") },
12531254 { json: "Type", js: "Type", typ: r("Type") },
1254- { json: "UUID", js: "UUID", typ: r("UUID") },
12551255 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
12561256 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
12571257 { json: "dummy", js: "dummy", typ: i(0) },
1258+ { json: "sealed", js: "sealed", typ: r("Sealed") },
1259+ { json: "select", js: "select", typ: r("Select") },
12581260 { json: "self", js: "self", typ: r("SelfClass") },
12591261 { json: "serialize", js: "serialize", typ: r("Serialize") },
12601262 { json: "set", js: "set", typ: r("Set") },
@@ -1302,8 +1304,9 @@ const typeMap = {
13021304 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
13031305 { json: "ushort", js: "ushort", typ: r("Ushort") },
13041306 { json: "using", js: "using", typ: r("Using") },
1305- { json: "var", js: "var", typ: r("Var") },
1306- { json: "virtual", js: "virtual", typ: r("Virtual") },
1307+ ], false),
1308+ "Sel": o([
1309+ { json: "SEL", js: "SEL", typ: i(0) },
13071310 ], false),
13081311 "Self": o([
13091312 { json: "Self", js: "Self", typ: i(0) },
@@ -1341,15 +1344,18 @@ const typeMap = {
13411344 "Type": o([
13421345 { json: "Type", js: "Type", typ: i(0) },
13431346 ], false),
1344- "UUID": o([
1345- { json: "UUID", js: "UUID", typ: i(0) },
1346- ], false),
13471347 "Utf8JSONReader": o([
13481348 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
13491349 ], false),
13501350 "Utf8JSONWriter": o([
13511351 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
13521352 ], false),
1353+ "Sealed": o([
1354+ { json: "sealed", js: "sealed", typ: i(0) },
1355+ ], false),
1356+ "Select": o([
1357+ { json: "select", js: "select", typ: i(0) },
1358+ ], false),
13531359 "SelfClass": o([
13541360 { json: "self", js: "self", typ: i(0) },
13551361 ], false),
@@ -1491,15 +1497,12 @@ const typeMap = {
14911497 "Using": o([
14921498 { json: "using", js: "using", typ: i(0) },
14931499 ], false),
1494- "Var": o([
1495- { json: "var", js: "var", typ: i(0) },
1496- ], false),
1497- "Virtual": o([
1498- { json: "virtual", js: "virtual", typ: i(0) },
1499- ], false),
15001500 "Obj6": o([
1501+ { json: "UUID", js: "UUID", typ: r("UUID") },
15011502 { json: "YES", js: "YES", typ: r("Yes") },
15021503 { json: "dummy", js: "dummy", typ: i(0) },
1504+ { json: "var", js: "var", typ: r("Var") },
1505+ { json: "virtual", js: "virtual", typ: r("Virtual") },
15031506 { json: "void", js: "void", typ: r("Void") },
15041507 { json: "volatile", js: "volatile", typ: r("Volatile") },
15051508 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -1512,9 +1515,18 @@ const typeMap = {
15121515 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
15131516 { json: "yield", js: "yield", typ: r("Yield") },
15141517 ], false),
1518+ "UUID": o([
1519+ { json: "UUID", js: "UUID", typ: i(0) },
1520+ ], false),
15151521 "Yes": o([
15161522 { json: "YES", js: "YES", typ: i(0) },
15171523 ], false),
1524+ "Var": o([
1525+ { json: "var", js: "var", typ: i(0) },
1526+ ], false),
1527+ "Virtual": o([
1528+ { json: "virtual", js: "virtual", typ: i(0) },
1529+ ], false),
15181530 "Void": o([
15191531 { json: "void", js: "void", typ: i(0) },
15201532 ], 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,
@@ -2175,12 +2175,18 @@ data class Obj5 (
21752175 @get:JsonProperty("typeof", required=true)@field:JsonProperty("typeof", required=true)
21762176 val obj5Typeof: Typeof,
21772177
2178- @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2179- val obj5Var: Var,
2180-
21812178 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
21822179 val purpleTrue: TrueClass,
21832180
2181+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2182+ val sealed: Sealed,
2183+
2184+ @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2185+ val sel: Sel,
2186+
2187+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2188+ val select: Select,
2189+
21842190 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
21852191 val self: Self,
21862192
@@ -2332,13 +2338,7 @@ data class Obj5 (
23322338 val utf8JSONReader: Utf8JSONReader,
23332339
23342340 @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true)
2335- val utf8JSONWriter: Utf8JSONWriter,
2336-
2337- @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2338- val uuid: UUID,
2339-
2340- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2341- val virtual: Virtual
2341+ val utf8JSONWriter: Utf8JSONWriter
23422342 )
23432343
23442344 data class SelfClass (
@@ -2386,16 +2386,26 @@ data class Typeof (
23862386 val typeofTypeof: Long
23872387 )
23882388
2389-data class Var (
2390- @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2391- val varVar: Long
2392-)
2393-
23942389 data class TrueClass (
23952390 @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true)
23962391 val trueTrue: Long
23972392 )
23982393
2394+data class Sealed (
2395+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2396+ val sealed: Long
2397+)
2398+
2399+data class Sel (
2400+ @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true)
2401+ val sel: Long
2402+)
2403+
2404+data class Select (
2405+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2406+ val select: Long
2407+)
2408+
23992409 data class Self (
24002410 @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true)
24012411 val self: Long
@@ -2651,23 +2661,22 @@ data class Utf8JSONWriter (
26512661 val utf8JSONWriter: Long
26522662 )
26532663
2654-data class UUID (
2655- @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2656- val uuid: Long
2657-)
2658-
2659-data class Virtual (
2660- @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2661- val virtual: Long
2662-)
2663-
26642664 data class Obj6 (
26652665 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26662666 val dummy: Long,
26672667
2668+ @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2669+ val obj6Var: Var,
2670+
26682671 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
26692672 val obj6While: While,
26702673
2674+ @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2675+ val uuid: UUID,
2676+
2677+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2678+ val virtual: Virtual,
2679+
26712680 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
26722681 val void: Void,
26732682
@@ -2702,11 +2711,26 @@ data class Obj6 (
27022711 val yield: Yield
27032712 )
27042713
2714+data class Var (
2715+ @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true)
2716+ val varVar: Long
2717+)
2718+
27052719 data class While (
27062720 @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true)
27072721 val whileWhile: Long
27082722 )
27092723
2724+data class UUID (
2725+ @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true)
2726+ val uuid: Long
2727+)
2728+
2729+data class Virtual (
2730+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
2731+ val virtual: Long
2732+)
2733+
27102734 data class Void (
27112735 @get:JsonProperty(required=true)@field:JsonProperty(required=true)
27122736 val void: Long
Mkotlindefault / TopLevel.kt+73 −49
@@ -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
@@ -1684,12 +1689,16 @@ data class Obj5 (
16841689 @Json(name = "typeof")
16851690 val obj5Typeof: Typeof,
16861691
1687- @Json(name = "var")
1688- val obj5Var: Var,
1689-
16901692 @Json(name = "true")
16911693 val purpleTrue: TrueClass,
16921694
1695+ val sealed: Sealed,
1696+
1697+ @Json(name = "SEL")
1698+ val sel: Sel,
1699+
1700+ val select: Select,
1701+
16931702 @Json(name = "Self")
16941703 val self: Self,
16951704
@@ -1784,12 +1793,7 @@ data class Obj5 (
17841793 val utf8JSONReader: Utf8JSONReader,
17851794
17861795 @Json(name = "Utf8JsonWriter")
1787- val utf8JSONWriter: Utf8JSONWriter,
1788-
1789- @Json(name = "UUID")
1790- val uuid: UUID,
1791-
1792- val virtual: Virtual
1796+ val utf8JSONWriter: Utf8JSONWriter
17931797 )
17941798
17951799 data class SelfClass (
@@ -1835,16 +1839,24 @@ data class Typeof (
18351839 val typeofTypeof: Long
18361840 )
18371841
1838-data class Var (
1839- @Json(name = "var")
1840- val varVar: Long
1841-)
1842-
18431842 data class TrueClass (
18441843 @Json(name = "true")
18451844 val trueTrue: Long
18461845 )
18471846
1847+data class Sealed (
1848+ val sealed: Long
1849+)
1850+
1851+data class Sel (
1852+ @Json(name = "SEL")
1853+ val sel: Long
1854+)
1855+
1856+data class Select (
1857+ val select: Long
1858+)
1859+
18481860 data class Self (
18491861 @Json(name = "Self")
18501862 val self: Long
@@ -2067,21 +2079,19 @@ data class Utf8JSONWriter (
20672079 val utf8JSONWriter: Long
20682080 )
20692081
2070-data class UUID (
2071- @Json(name = "UUID")
2072- val uuid: Long
2073-)
2074-
2075-data class Virtual (
2076- val virtual: Long
2077-)
2078-
20792082 data class Obj6 (
20802083 val dummy: Long,
20812084
2085+ @Json(name = "var")
2086+ val obj6Var: Var,
2087+
20822088 @Json(name = "while")
20832089 val obj6While: While,
20842090
2091+ @Json(name = "UUID")
2092+ val uuid: UUID,
2093+
2094+ val virtual: Virtual,
20852095 val void: Void,
20862096 val volatile: Volatile,
20872097
@@ -2103,11 +2113,25 @@ data class Obj6 (
21032113 val yield: Yield
21042114 )
21052115
2116+data class Var (
2117+ @Json(name = "var")
2118+ val varVar: Long
2119+)
2120+
21062121 data class While (
21072122 @Json(name = "while")
21082123 val whileWhile: Long
21092124 )
21102125
2126+data class UUID (
2127+ @Json(name = "UUID")
2128+ val uuid: Long
2129+)
2130+
2131+data class Virtual (
2132+ val virtual: Long
2133+)
2134+
21112135 data class Void (
21122136 val void: Long
21132137 )
Mkotlinxdefault / TopLevel.kt+83 −56
@@ -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,
@@ -1927,12 +1932,16 @@ data class Obj5 (
19271932 @SerialName("typeof")
19281933 val obj5Typeof: Typeof,
19291934
1930- @SerialName("var")
1931- val obj5Var: Var,
1932-
19331935 @SerialName("true")
19341936 val purpleTrue: TrueClass,
19351937
1938+ val sealed: Sealed,
1939+
1940+ @SerialName("SEL")
1941+ val sel: Sel,
1942+
1943+ val select: Select,
1944+
19361945 @SerialName("Self")
19371946 val self: Self,
19381947
@@ -2027,12 +2036,7 @@ data class Obj5 (
20272036 val utf8JSONReader: Utf8JSONReader,
20282037
20292038 @SerialName("Utf8JsonWriter")
2030- val utf8JSONWriter: Utf8JSONWriter,
2031-
2032- @SerialName("UUID")
2033- val uuid: UUID,
2034-
2035- val virtual: Virtual
2039+ val utf8JSONWriter: Utf8JSONWriter
20362040 )
20372041
20382042 @Serializable
@@ -2087,18 +2091,28 @@ data class Typeof (
20872091 val typeofTypeof: Long
20882092 )
20892093
2090-@Serializable
2091-data class Var (
2092- @SerialName("var")
2093- val varVar: Long
2094-)
2095-
20962094 @Serializable
20972095 data class TrueClass (
20982096 @SerialName("true")
20992097 val trueTrue: Long
21002098 )
21012099
2100+@Serializable
2101+data class Sealed (
2102+ val sealed: Long
2103+)
2104+
2105+@Serializable
2106+data class Sel (
2107+ @SerialName("SEL")
2108+ val sel: Long
2109+)
2110+
2111+@Serializable
2112+data class Select (
2113+ val select: Long
2114+)
2115+
21022116 @Serializable
21032117 data class Self (
21042118 @SerialName("Self")
@@ -2372,24 +2386,20 @@ data class Utf8JSONWriter (
23722386 val utf8JSONWriter: Long
23732387 )
23742388
2375-@Serializable
2376-data class UUID (
2377- @SerialName("UUID")
2378- val uuid: Long
2379-)
2380-
2381-@Serializable
2382-data class Virtual (
2383- val virtual: Long
2384-)
2385-
23862389 @Serializable
23872390 data class Obj6 (
23882391 val dummy: Long,
23892392
2393+ @SerialName("var")
2394+ val obj6Var: Var,
2395+
23902396 @SerialName("while")
23912397 val obj6While: While,
23922398
2399+ @SerialName("UUID")
2400+ val uuid: UUID,
2401+
2402+ val virtual: Virtual,
23932403 val void: Void,
23942404 val volatile: Volatile,
23952405
@@ -2411,12 +2421,29 @@ data class Obj6 (
24112421 val yield: Yield
24122422 )
24132423
2424+@Serializable
2425+data class Var (
2426+ @SerialName("var")
2427+ val varVar: Long
2428+)
2429+
24142430 @Serializable
24152431 data class While (
24162432 @SerialName("while")
24172433 val whileWhile: Long
24182434 )
24192435
2436+@Serializable
2437+data class UUID (
2438+ @SerialName("UUID")
2439+ val uuid: Long
2440+)
2441+
2442+@Serializable
2443+data class Virtual (
2444+ val virtual: Long
2445+)
2446+
24202447 @Serializable
24212448 data class Void (
24222449 val void: 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 QTSelfClass;
272272 @class QTShort;
@@ -281,6 +281,9 @@
281281 @class QTTypeof;
282282 @class QTUnion;
283283 @class QTUnsigned;
284+@class QTSealed;
285+@class QTSel;
286+@class QTSelect;
284287 @class QTSelf;
285288 @class QTSendable;
286289 @class QTSerialize;
@@ -329,13 +332,13 @@
329332 @class QTUsing;
330333 @class QTUtf8JSONReader;
331334 @class QTUtf8JSONWriter;
332-@class QTUUID;
333-@class QTVar;
334-@class QTVirtual;
335335 @class QTObj6;
336336 @class QTVoid;
337337 @class QTVolatile;
338338 @class QTWhile;
339+@class QTUUID;
340+@class QTVar;
341+@class QTVirtual;
339342 @class QTWcharT;
340343 @class QTWeak;
341344 @class QTWhere;
@@ -1074,6 +1077,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10741077 @property (nonatomic, strong) QTLeft *left;
10751078 @property (nonatomic, strong) QTLet *let;
10761079 @property (nonatomic, strong) QTList *list;
1080+@property (nonatomic, strong) QTLocalDate *localDate;
10771081 @property (nonatomic, strong) QTLocale *locale;
10781082 @property (nonatomic, strong) QTLock *lock;
10791083 @property (nonatomic, strong) QTMap *map;
@@ -1086,7 +1090,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
10861090 @property (nonatomic, strong) QTNative *native;
10871091 @property (nonatomic, strong) QTNewtonsoft *newtonsoft;
10881092 @property (nonatomic, strong) QTNo *no;
1089-@property (nonatomic, strong) QTNoexcept *noexcept;
10901093 @property (nonatomic, strong) QTIf *obj3If;
10911094 @property (nonatomic, strong) QTInline *obj3Inline;
10921095 @property (nonatomic, strong) QTInt *obj3Int;
@@ -1269,6 +1272,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12691272 @property (nonatomic, assign) NSInteger list;
12701273 @end
12711274
1275+@interface QTLocalDate : NSObject
1276+@property (nonatomic, assign) NSInteger localDate;
1277+@end
1278+
12721279 @interface QTLocale : NSObject
12731280 @property (nonatomic, assign) NSInteger locale;
12741281 @end
@@ -1317,10 +1324,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13171324 @property (nonatomic, assign) NSInteger no;
13181325 @end
13191326
1320-@interface QTNoexcept : NSObject
1321-@property (nonatomic, assign) NSInteger noexcept;
1322-@end
1323-
13241327 @interface QTIf : NSObject
13251328 @property (nonatomic, assign) NSInteger ifIf;
13261329 @end
@@ -1356,6 +1359,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13561359 @interface QTObj4 : NSObject
13571360 @property (nonatomic, assign) NSInteger dummy;
13581361 @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod;
1362+@property (nonatomic, strong) QTNoexcept *noexcept;
13591363 @property (nonatomic, strong) QTNone *none;
13601364 @property (nonatomic, strong) QTNonlocal *nonlocal;
13611365 @property (nonatomic, strong) QTNonmutating *nonmutating;
@@ -1378,6 +1382,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
13781382 @property (nonatomic, strong) QTObject *object;
13791383 @property (nonatomic, strong) QTObjectMapper *objectMapper;
13801384 @property (nonatomic, strong) QTOf *of;
1385+@property (nonatomic, strong) QTOffsetDateTime *offsetDateTime;
1386+@property (nonatomic, strong) QTOffsetTime *offsetTime;
13811387 @property (nonatomic, strong) QTOneway *oneway;
13821388 @property (nonatomic, strong) QTOpen *open;
13831389 @property (nonatomic, strong) QTOperator *operator;
@@ -1416,15 +1422,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
14161422 @property (nonatomic, strong) QTRuntimeType *runtimeType;
14171423 @property (nonatomic, strong) QTS *s;
14181424 @property (nonatomic, strong) QTSbyte *sbyte;
1419-@property (nonatomic, strong) QTSealed *sealed;
1420-@property (nonatomic, strong) QTSel *sel;
1421-@property (nonatomic, strong) QTSelect *select;
14221425 @end
14231426
14241427 @interface QTNoSuchMethod : NSObject
14251428 @property (nonatomic, assign) NSInteger noSuchMethod;
14261429 @end
14271430
1431+@interface QTNoexcept : NSObject
1432+@property (nonatomic, assign) NSInteger noexcept;
1433+@end
1434+
14281435 @interface QTNone : NSObject
14291436 @property (nonatomic, assign) NSInteger none;
14301437 @end
@@ -1513,6 +1520,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
15131520 @property (nonatomic, assign) NSInteger of;
15141521 @end
15151522
1523+@interface QTOffsetDateTime : NSObject
1524+@property (nonatomic, assign) NSInteger offsetDateTime;
1525+@end
1526+
1527+@interface QTOffsetTime : NSObject
1528+@property (nonatomic, assign) NSInteger offsetTime;
1529+@end
1530+
15161531 @interface QTOneway : NSObject
15171532 @property (nonatomic, assign) NSInteger oneway;
15181533 @end
@@ -1665,18 +1680,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16651680 @property (nonatomic, assign) NSInteger sbyte;
16661681 @end
16671682
1668-@interface QTSealed : NSObject
1669-@property (nonatomic, assign) NSInteger sealed;
1670-@end
1671-
1672-@interface QTSel : NSObject
1673-@property (nonatomic, assign) NSInteger sel;
1674-@end
1675-
1676-@interface QTSelect : NSObject
1677-@property (nonatomic, assign) NSInteger select;
1678-@end
1679-
16801683 @interface QTObj5 : NSObject
16811684 @property (nonatomic, assign) NSInteger dummy;
16821685 @property (nonatomic, strong) QTSelfClass *obj5Self;
@@ -1692,6 +1695,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
16921695 @property (nonatomic, strong) QTTypeof *obj5Typeof;
16931696 @property (nonatomic, strong) QTUnion *obj5Union;
16941697 @property (nonatomic, strong) QTUnsigned *obj5Unsigned;
1698+@property (nonatomic, strong) QTSealed *sealed;
1699+@property (nonatomic, strong) QTSel *sel;
1700+@property (nonatomic, strong) QTSelect *select;
16951701 @property (nonatomic, strong) QTSelf *self;
16961702 @property (nonatomic, strong) QTSendable *sendable;
16971703 @property (nonatomic, strong) QTSerialize *serialize;
@@ -1740,9 +1746,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17401746 @property (nonatomic, strong) QTUsing *using;
17411747 @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader;
17421748 @property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter;
1743-@property (nonatomic, strong) QTUUID *uuid;
1744-@property (nonatomic, strong) QTVar *var;
1745-@property (nonatomic, strong) QTVirtual *virtual;
17461749 @end
17471750
17481751 @interface QTSelfClass : NSObject
@@ -1797,6 +1800,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
17971800 @property (nonatomic, assign) NSInteger unsignedUnsigned;
17981801 @end
17991802
1803+@interface QTSealed : NSObject
1804+@property (nonatomic, assign) NSInteger sealed;
1805+@end
1806+
1807+@interface QTSel : NSObject
1808+@property (nonatomic, assign) NSInteger sel;
1809+@end
1810+
1811+@interface QTSelect : NSObject
1812+@property (nonatomic, assign) NSInteger select;
1813+@end
1814+
18001815 @interface QTSelf : NSObject
18011816 @property (nonatomic, assign) NSInteger self;
18021817 @end
@@ -1989,23 +2004,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
19892004 @property (nonatomic, assign) NSInteger utf8JSONWriter;
19902005 @end
19912006
1992-@interface QTUUID : NSObject
1993-@property (nonatomic, assign) NSInteger uuid;
1994-@end
1995-
1996-@interface QTVar : NSObject
1997-@property (nonatomic, assign) NSInteger var;
1998-@end
1999-
2000-@interface QTVirtual : NSObject
2001-@property (nonatomic, assign) NSInteger virtual;
2002-@end
2003-
20042007 @interface QTObj6 : NSObject
20052008 @property (nonatomic, assign) NSInteger dummy;
20062009 @property (nonatomic, strong) QTVoid *obj6Void;
20072010 @property (nonatomic, strong) QTVolatile *obj6Volatile;
20082011 @property (nonatomic, strong) QTWhile *obj6While;
2012+@property (nonatomic, strong) QTUUID *uuid;
2013+@property (nonatomic, strong) QTVar *var;
2014+@property (nonatomic, strong) QTVirtual *virtual;
20092015 @property (nonatomic, strong) QTWcharT *wcharT;
20102016 @property (nonatomic, strong) QTWeak *weak;
20112017 @property (nonatomic, strong) QTWhere *where;
@@ -2029,6 +2035,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
20292035 @property (nonatomic, assign) NSInteger whileWhile;
20302036 @end
20312037
2038+@interface QTUUID : NSObject
2039+@property (nonatomic, assign) NSInteger uuid;
2040+@end
2041+
2042+@interface QTVar : NSObject
2043+@property (nonatomic, assign) NSInteger var;
2044+@end
2045+
2046+@interface QTVirtual : NSObject
2047+@property (nonatomic, assign) NSInteger virtual;
2048+@end
2049+
20322050 @interface QTWcharT : NSObject
20332051 @property (nonatomic, assign) NSInteger wcharT;
20342052 @end
Mobjective-cdefault / QTTopLevel.m+585 −399
@@ -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,6 +1383,21 @@ NS_ASSUME_NONNULL_BEGIN
13831383 - (NSDictionary *)JSONDictionary;
13841384 @end
13851385
1386+@interface QTSealed (JSONConversion)
1387++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1388+- (NSDictionary *)JSONDictionary;
1389+@end
1390+
1391+@interface QTSel (JSONConversion)
1392++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1393+- (NSDictionary *)JSONDictionary;
1394+@end
1395+
1396+@interface QTSelect (JSONConversion)
1397++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
1398+- (NSDictionary *)JSONDictionary;
1399+@end
1400+
13861401 @interface QTSelf (JSONConversion)
13871402 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
13881403 - (NSDictionary *)JSONDictionary;
@@ -1623,37 +1638,37 @@ NS_ASSUME_NONNULL_BEGIN
16231638 - (NSDictionary *)JSONDictionary;
16241639 @end
16251640
1626-@interface QTUUID (JSONConversion)
1641+@interface QTObj6 (JSONConversion)
16271642 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16281643 - (NSDictionary *)JSONDictionary;
16291644 @end
16301645
1631-@interface QTVar (JSONConversion)
1646+@interface QTVoid (JSONConversion)
16321647 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16331648 - (NSDictionary *)JSONDictionary;
16341649 @end
16351650
1636-@interface QTVirtual (JSONConversion)
1651+@interface QTVolatile (JSONConversion)
16371652 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16381653 - (NSDictionary *)JSONDictionary;
16391654 @end
16401655
1641-@interface QTObj6 (JSONConversion)
1656+@interface QTWhile (JSONConversion)
16421657 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16431658 - (NSDictionary *)JSONDictionary;
16441659 @end
16451660
1646-@interface QTVoid (JSONConversion)
1661+@interface QTUUID (JSONConversion)
16471662 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16481663 - (NSDictionary *)JSONDictionary;
16491664 @end
16501665
1651-@interface QTVolatile (JSONConversion)
1666+@interface QTVar (JSONConversion)
16521667 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16531668 - (NSDictionary *)JSONDictionary;
16541669 @end
16551670
1656-@interface QTWhile (JSONConversion)
1671+@interface QTVirtual (JSONConversion)
16571672 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
16581673 - (NSDictionary *)JSONDictionary;
16591674 @end
@@ -8634,6 +8649,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86348649 @"left": @"left",
86358650 @"let": @"let",
86368651 @"list": @"list",
8652+ @"LocalDate": @"localDate",
86378653 @"Locale": @"locale",
86388654 @"lock": @"lock",
86398655 @"map": @"map",
@@ -8646,7 +8662,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
86468662 @"native": @"native",
86478663 @"newtonsoft": @"newtonsoft",
86488664 @"NO": @"no",
8649- @"noexcept": @"noexcept",
86508665 @"if": @"obj3If",
86518666 @"inline": @"obj3Inline",
86528667 @"int": @"obj3Int",
@@ -8711,6 +8726,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87118726 if (![dict[@"left"] isKindOfClass:NSDictionary.class]) return nil;
87128727 if (![dict[@"let"] isKindOfClass:NSDictionary.class]) return nil;
87138728 if (![dict[@"list"] isKindOfClass:NSDictionary.class]) return nil;
8729+ if (![dict[@"LocalDate"] isKindOfClass:NSDictionary.class]) return nil;
87148730 if (![dict[@"Locale"] isKindOfClass:NSDictionary.class]) return nil;
87158731 if (![dict[@"lock"] isKindOfClass:NSDictionary.class]) return nil;
87168732 if (![dict[@"map"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8723,7 +8739,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
87238739 if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil;
87248740 if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil;
87258741 if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil;
8726- if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
87278742 if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil;
87288743 if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil;
87298744 if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil;
@@ -8819,6 +8834,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88198834 if (!_let && dict[@"let"] && ![dict[@"let"] isKindOfClass:NSNull.class]) return nil;
88208835 _list = [QTList fromJSONDictionary:(id)_list];
88218836 if (!_list && dict[@"list"] && ![dict[@"list"] isKindOfClass:NSNull.class]) return nil;
8837+ _localDate = [QTLocalDate fromJSONDictionary:(id)_localDate];
8838+ if (!_localDate && dict[@"LocalDate"] && ![dict[@"LocalDate"] isKindOfClass:NSNull.class]) return nil;
88228839 _locale = [QTLocale fromJSONDictionary:(id)_locale];
88238840 if (!_locale && dict[@"Locale"] && ![dict[@"Locale"] isKindOfClass:NSNull.class]) return nil;
88248841 _lock = [QTLock fromJSONDictionary:(id)_lock];
@@ -8843,8 +8860,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
88438860 if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil;
88448861 _no = [QTNo fromJSONDictionary:(id)_no];
88458862 if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil;
8846- _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
8847- if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
88488863 _obj3If = [QTIf fromJSONDictionary:(id)_obj3If];
88498864 if (!_obj3If && dict[@"if"] && ![dict[@"if"] isKindOfClass:NSNull.class]) return nil;
88508865 _obj3Inline = [QTInline fromJSONDictionary:(id)_obj3Inline];
@@ -8933,6 +8948,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89338948 @"left": [_left JSONDictionary],
89348949 @"let": [_let JSONDictionary],
89358950 @"list": [_list JSONDictionary],
8951+ @"LocalDate": [_localDate JSONDictionary],
89368952 @"Locale": [_locale JSONDictionary],
89378953 @"lock": [_lock JSONDictionary],
89388954 @"map": [_map JSONDictionary],
@@ -8945,7 +8961,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89458961 @"native": [_native JSONDictionary],
89468962 @"newtonsoft": [_newtonsoft JSONDictionary],
89478963 @"NO": [_no JSONDictionary],
8948- @"noexcept": [_noexcept JSONDictionary],
89498964 @"if": [_obj3If JSONDictionary],
89508965 @"inline": [_obj3Inline JSONDictionary],
89518966 @"int": [_obj3Int JSONDictionary],
@@ -10965,6 +10980,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1096510980 }
1096610981 @end
1096710982
10983+@implementation QTLocalDate
10984++ (NSDictionary<NSString *, NSString *> *)properties
10985+{
10986+ static NSDictionary<NSString *, NSString *> *properties;
10987+ return properties = properties ? properties : @{
10988+ @"LocalDate": @"localDate",
10989+ };
10990+}
10991+
10992++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
10993+{
10994+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
10995+}
10996+
10997+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
10998+{
10999+ if (self = [super init]) {
11000+ if (![dict[@"LocalDate"] isKindOfClass:NSNumber.class]) return nil;
11001+ if ([dict[@"LocalDate"] doubleValue] != [dict[@"LocalDate"] longLongValue]) return nil;
11002+ [self setValuesForKeysWithDictionary:dict];
11003+ }
11004+ return self;
11005+}
11006+
11007+- (void)setValue:(nullable id)value forKey:(NSString *)key
11008+{
11009+ id resolved = QTLocalDate.properties[key];
11010+ if (resolved) [super setValue:value forKey:resolved];
11011+}
11012+
11013+- (void)setNilValueForKey:(NSString *)key
11014+{
11015+ id resolved = QTLocalDate.properties[key];
11016+ if (resolved) [super setValue:@(0) forKey:resolved];
11017+}
11018+
11019+- (NSDictionary *)JSONDictionary
11020+{
11021+ id dict = [[self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues] mutableCopy];
11022+
11023+ for (id jsonName in QTLocalDate.properties) {
11024+ id propertyName = QTLocalDate.properties[jsonName];
11025+ if (![jsonName isEqualToString:propertyName]) {
11026+ dict[jsonName] = dict[propertyName];
11027+ [dict removeObjectForKey:propertyName];
11028+ }
11029+ }
11030+
11031+ return dict;
11032+}
11033+@end
11034+
1096811035 @implementation QTLocale
1096911036 + (NSDictionary<NSString *, NSString *> *)properties
1097011037 {
@@ -11509,48 +11576,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1150911576 }
1151011577 @end
1151111578
11512-@implementation QTNoexcept
11513-+ (NSDictionary<NSString *, NSString *> *)properties
11514-{
11515- static NSDictionary<NSString *, NSString *> *properties;
11516- return properties = properties ? properties : @{
11517- @"noexcept": @"noexcept",
11518- };
11519-}
11520-
11521-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
11522-{
11523- return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
11524-}
11525-
11526-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
11527-{
11528- if (self = [super init]) {
11529- if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
11530- if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
11531- [self setValuesForKeysWithDictionary:dict];
11532- }
11533- return self;
11534-}
11535-
11536-- (void)setValue:(nullable id)value forKey:(NSString *)key
11537-{
11538- id resolved = QTNoexcept.properties[key];
11539- if (resolved) [super setValue:value forKey:resolved];
11540-}
11541-
11542-- (void)setNilValueForKey:(NSString *)key
11543-{
11544- id resolved = QTNoexcept.properties[key];
11545- if (resolved) [super setValue:@(0) forKey:resolved];
11546-}
11547-
11548-- (NSDictionary *)JSONDictionary
11549-{
11550- return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
11551-}
11552-@end
11553-
1155411579 @implementation QTIf
1155511580 + (NSDictionary<NSString *, NSString *> *)properties
1155611581 {
@@ -11974,6 +11999,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1197411999 return properties = properties ? properties : @{
1197512000 @"dummy": @"dummy",
1197612001 @"noSuchMethod": @"noSuchMethod",
12002+ @"noexcept": @"noexcept",
1197712003 @"None": @"none",
1197812004 @"nonlocal": @"nonlocal",
1197912005 @"nonmutating": @"nonmutating",
@@ -11996,6 +12022,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1199612022 @"object": @"object",
1199712023 @"ObjectMapper": @"objectMapper",
1199812024 @"of": @"of",
12025+ @"OffsetDateTime": @"offsetDateTime",
12026+ @"OffsetTime": @"offsetTime",
1199912027 @"oneway": @"oneway",
1200012028 @"open": @"open",
1200112029 @"operator": @"operator",
@@ -12034,9 +12062,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1203412062 @"runtimeType": @"runtimeType",
1203512063 @"s": @"s",
1203612064 @"sbyte": @"sbyte",
12037- @"sealed": @"sealed",
12038- @"SEL": @"sel",
12039- @"select": @"select",
1204012065 };
1204112066 }
1204212067
@@ -12051,6 +12076,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1205112076 if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil;
1205212077 if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil;
1205312078 if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil;
12079+ if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil;
1205412080 if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil;
1205512081 if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil;
1205612082 if (![dict[@"nonmutating"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12073,6 +12099,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1207312099 if (![dict[@"object"] isKindOfClass:NSDictionary.class]) return nil;
1207412100 if (![dict[@"ObjectMapper"] isKindOfClass:NSDictionary.class]) return nil;
1207512101 if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil;
12102+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSDictionary.class]) return nil;
12103+ if (![dict[@"OffsetTime"] isKindOfClass:NSDictionary.class]) return nil;
1207612104 if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil;
1207712105 if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil;
1207812106 if (![dict[@"operator"] isKindOfClass:NSDictionary.class]) return nil;
@@ -12111,12 +12139,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1211112139 if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil;
1211212140 if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil;
1211312141 if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil;
12114- if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
12115- if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
12116- if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1211712142 [self setValuesForKeysWithDictionary:dict];
1211812143 _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod];
1211912144 if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil;
12145+ _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept];
12146+ if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil;
1212012147 _none = [QTNone fromJSONDictionary:(id)_none];
1212112148 if (!_none && dict[@"None"] && ![dict[@"None"] isKindOfClass:NSNull.class]) return nil;
1212212149 _nonlocal = [QTNonlocal fromJSONDictionary:(id)_nonlocal];
@@ -12161,6 +12188,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1216112188 if (!_objectMapper && dict[@"ObjectMapper"] && ![dict[@"ObjectMapper"] isKindOfClass:NSNull.class]) return nil;
1216212189 _of = [QTOf fromJSONDictionary:(id)_of];
1216312190 if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil;
12191+ _offsetDateTime = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTime];
12192+ if (!_offsetDateTime && dict[@"OffsetDateTime"] && ![dict[@"OffsetDateTime"] isKindOfClass:NSNull.class]) return nil;
12193+ _offsetTime = [QTOffsetTime fromJSONDictionary:(id)_offsetTime];
12194+ if (!_offsetTime && dict[@"OffsetTime"] && ![dict[@"OffsetTime"] isKindOfClass:NSNull.class]) return nil;
1216412195 _oneway = [QTOneway fromJSONDictionary:(id)_oneway];
1216512196 if (!_oneway && dict[@"oneway"] && ![dict[@"oneway"] isKindOfClass:NSNull.class]) return nil;
1216612197 _open = [QTOpen fromJSONDictionary:(id)_open];
@@ -12237,12 +12268,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1223712268 if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil;
1223812269 _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte];
1223912270 if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil;
12240- _sealed = [QTSealed fromJSONDictionary:(id)_sealed];
12241- if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
12242- _sel = [QTSel fromJSONDictionary:(id)_sel];
12243- if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
12244- _select = [QTSelect fromJSONDictionary:(id)_select];
12245- if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1224612271 }
1224712272 return self;
1224812273 }
@@ -12273,6 +12298,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1227312298
1227412299 [dict addEntriesFromDictionary:@{
1227512300 @"noSuchMethod": [_noSuchMethod JSONDictionary],
12301+ @"noexcept": [_noexcept JSONDictionary],
1227612302 @"None": [_none JSONDictionary],
1227712303 @"nonlocal": [_nonlocal JSONDictionary],
1227812304 @"nonmutating": [_nonmutating JSONDictionary],
@@ -12295,6 +12321,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1229512321 @"object": [_object JSONDictionary],
1229612322 @"ObjectMapper": [_objectMapper JSONDictionary],
1229712323 @"of": [_of JSONDictionary],
12324+ @"OffsetDateTime": [_offsetDateTime JSONDictionary],
12325+ @"OffsetTime": [_offsetTime JSONDictionary],
1229812326 @"oneway": [_oneway JSONDictionary],
1229912327 @"open": [_open JSONDictionary],
1230012328 @"operator": [_operator JSONDictionary],
@@ -12333,9 +12361,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1233312361 @"runtimeType": [_runtimeType JSONDictionary],
1233412362 @"s": [_s JSONDictionary],
1233512363 @"sbyte": [_sbyte JSONDictionary],
12336- @"sealed": [_sealed JSONDictionary],
12337- @"SEL": [_sel JSONDictionary],
12338- @"select": [_select JSONDictionary],
1233912364 }];
1234012365
1234112366 return dict;
@@ -12384,6 +12409,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1238412409 }
1238512410 @end
1238612411
12412+@implementation QTNoexcept
12413++ (NSDictionary<NSString *, NSString *> *)properties
12414+{
12415+ static NSDictionary<NSString *, NSString *> *properties;
12416+ return properties = properties ? properties : @{
12417+ @"noexcept": @"noexcept",
12418+ };
12419+}
12420+
12421++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
12422+{
12423+ return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil;
12424+}
12425+
12426+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
12427+{
12428+ if (self = [super init]) {
12429+ if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil;
12430+ if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil;
12431+ [self setValuesForKeysWithDictionary:dict];
12432+ }
12433+ return self;
12434+}
12435+
12436+- (void)setValue:(nullable id)value forKey:(NSString *)key
12437+{
12438+ id resolved = QTNoexcept.properties[key];
12439+ if (resolved) [super setValue:value forKey:resolved];
12440+}
12441+
12442+- (void)setNilValueForKey:(NSString *)key
12443+{
12444+ id resolved = QTNoexcept.properties[key];
12445+ if (resolved) [super setValue:@(0) forKey:resolved];
12446+}
12447+
12448+- (NSDictionary *)JSONDictionary
12449+{
12450+ return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues];
12451+}
12452+@end
12453+
1238712454 @implementation QTNone
1238812455 + (NSDictionary<NSString *, NSString *> *)properties
1238912456 {
@@ -13428,25 +13495,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1342813495 }
1342913496 @end
1343013497
13431-@implementation QTOneway
13498+@implementation QTOffsetDateTime
1343213499 + (NSDictionary<NSString *, NSString *> *)properties
1343313500 {
1343413501 static NSDictionary<NSString *, NSString *> *properties;
1343513502 return properties = properties ? properties : @{
13436- @"oneway": @"oneway",
13503+ @"OffsetDateTime": @"offsetDateTime",
1343713504 };
1343813505 }
1343913506
1344013507 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1344113508 {
13442- return [dict isKindOfClass:NSDictionary.class] ? [[QTOneway alloc] initWithJSONDictionary:dict] : nil;
13509+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
1344313510 }
1344413511
1344513512 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1344613513 {
1344713514 if (self = [super init]) {
13448- if (![dict[@"oneway"] isKindOfClass:NSNumber.class]) return nil;
13449- if ([dict[@"oneway"] doubleValue] != [dict[@"oneway"] longLongValue]) return nil;
13515+ if (![dict[@"OffsetDateTime"] isKindOfClass:NSNumber.class]) return nil;
13516+ if ([dict[@"OffsetDateTime"] doubleValue] != [dict[@"OffsetDateTime"] longLongValue]) return nil;
1345013517 [self setValuesForKeysWithDictionary:dict];
1345113518 }
1345213519 return self;
@@ -13454,41 +13521,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1345413521
1345513522 - (void)setValue:(nullable id)value forKey:(NSString *)key
1345613523 {
13457- id resolved = QTOneway.properties[key];
13524+ id resolved = QTOffsetDateTime.properties[key];
1345813525 if (resolved) [super setValue:value forKey:resolved];
1345913526 }
1346013527
1346113528 - (void)setNilValueForKey:(NSString *)key
1346213529 {
13463- id resolved = QTOneway.properties[key];
13530+ id resolved = QTOffsetDateTime.properties[key];
1346413531 if (resolved) [super setValue:@(0) forKey:resolved];
1346513532 }
1346613533
1346713534 - (NSDictionary *)JSONDictionary
1346813535 {
13469- return [self dictionaryWithValuesForKeys:QTOneway.properties.allValues];
13536+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues] mutableCopy];
13537+
13538+ for (id jsonName in QTOffsetDateTime.properties) {
13539+ id propertyName = QTOffsetDateTime.properties[jsonName];
13540+ if (![jsonName isEqualToString:propertyName]) {
13541+ dict[jsonName] = dict[propertyName];
13542+ [dict removeObjectForKey:propertyName];
13543+ }
13544+ }
13545+
13546+ return dict;
1347013547 }
1347113548 @end
1347213549
13473-@implementation QTOpen
13550+@implementation QTOffsetTime
1347413551 + (NSDictionary<NSString *, NSString *> *)properties
1347513552 {
1347613553 static NSDictionary<NSString *, NSString *> *properties;
1347713554 return properties = properties ? properties : @{
13478- @"open": @"open",
13555+ @"OffsetTime": @"offsetTime",
1347913556 };
1348013557 }
1348113558
1348213559 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1348313560 {
13484- return [dict isKindOfClass:NSDictionary.class] ? [[QTOpen alloc] initWithJSONDictionary:dict] : nil;
13561+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
1348513562 }
1348613563
1348713564 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1348813565 {
1348913566 if (self = [super init]) {
13490- if (![dict[@"open"] isKindOfClass:NSNumber.class]) return nil;
13491- if ([dict[@"open"] doubleValue] != [dict[@"open"] longLongValue]) return nil;
13567+ if (![dict[@"OffsetTime"] isKindOfClass:NSNumber.class]) return nil;
13568+ if ([dict[@"OffsetTime"] doubleValue] != [dict[@"OffsetTime"] longLongValue]) return nil;
1349213569 [self setValuesForKeysWithDictionary:dict];
1349313570 }
1349413571 return self;
@@ -13496,40 +13573,134 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1349613573
1349713574 - (void)setValue:(nullable id)value forKey:(NSString *)key
1349813575 {
13499- id resolved = QTOpen.properties[key];
13576+ id resolved = QTOffsetTime.properties[key];
1350013577 if (resolved) [super setValue:value forKey:resolved];
1350113578 }
1350213579
1350313580 - (void)setNilValueForKey:(NSString *)key
1350413581 {
13505- id resolved = QTOpen.properties[key];
13582+ id resolved = QTOffsetTime.properties[key];
1350613583 if (resolved) [super setValue:@(0) forKey:resolved];
1350713584 }
1350813585
1350913586 - (NSDictionary *)JSONDictionary
1351013587 {
13511- return [self dictionaryWithValuesForKeys:QTOpen.properties.allValues];
13588+ id dict = [[self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues] mutableCopy];
13589+
13590+ for (id jsonName in QTOffsetTime.properties) {
13591+ id propertyName = QTOffsetTime.properties[jsonName];
13592+ if (![jsonName isEqualToString:propertyName]) {
13593+ dict[jsonName] = dict[propertyName];
13594+ [dict removeObjectForKey:propertyName];
13595+ }
13596+ }
13597+
13598+ return dict;
1351213599 }
1351313600 @end
1351413601
13515-@implementation QTOperator
13602+@implementation QTOneway
1351613603 + (NSDictionary<NSString *, NSString *> *)properties
1351713604 {
1351813605 static NSDictionary<NSString *, NSString *> *properties;
1351913606 return properties = properties ? properties : @{
13520- @"operator": @"operator",
13607+ @"oneway": @"oneway",
1352113608 };
1352213609 }
1352313610
1352413611 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1352513612 {
13526- return [dict isKindOfClass:NSDictionary.class] ? [[QTOperator alloc] initWithJSONDictionary:dict] : nil;
13613+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOneway alloc] initWithJSONDictionary:dict] : nil;
1352713614 }
1352813615
1352913616 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
1353013617 {
1353113618 if (self = [super init]) {
13532- if (![dict[@"operator"] isKindOfClass:NSNumber.class]) return nil;
13619+ if (![dict[@"oneway"] isKindOfClass:NSNumber.class]) return nil;
13620+ if ([dict[@"oneway"] doubleValue] != [dict[@"oneway"] longLongValue]) return nil;
13621+ [self setValuesForKeysWithDictionary:dict];
13622+ }
13623+ return self;
13624+}
13625+
13626+- (void)setValue:(nullable id)value forKey:(NSString *)key
13627+{
13628+ id resolved = QTOneway.properties[key];
13629+ if (resolved) [super setValue:value forKey:resolved];
13630+}
13631+
13632+- (void)setNilValueForKey:(NSString *)key
13633+{
13634+ id resolved = QTOneway.properties[key];
13635+ if (resolved) [super setValue:@(0) forKey:resolved];
13636+}
13637+
13638+- (NSDictionary *)JSONDictionary
13639+{
13640+ return [self dictionaryWithValuesForKeys:QTOneway.properties.allValues];
13641+}
13642+@end
13643+
13644+@implementation QTOpen
13645++ (NSDictionary<NSString *, NSString *> *)properties
13646+{
13647+ static NSDictionary<NSString *, NSString *> *properties;
13648+ return properties = properties ? properties : @{
13649+ @"open": @"open",
13650+ };
13651+}
13652+
13653++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13654+{
13655+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOpen alloc] initWithJSONDictionary:dict] : nil;
13656+}
13657+
13658+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13659+{
13660+ if (self = [super init]) {
13661+ if (![dict[@"open"] isKindOfClass:NSNumber.class]) return nil;
13662+ if ([dict[@"open"] doubleValue] != [dict[@"open"] longLongValue]) return nil;
13663+ [self setValuesForKeysWithDictionary:dict];
13664+ }
13665+ return self;
13666+}
13667+
13668+- (void)setValue:(nullable id)value forKey:(NSString *)key
13669+{
13670+ id resolved = QTOpen.properties[key];
13671+ if (resolved) [super setValue:value forKey:resolved];
13672+}
13673+
13674+- (void)setNilValueForKey:(NSString *)key
13675+{
13676+ id resolved = QTOpen.properties[key];
13677+ if (resolved) [super setValue:@(0) forKey:resolved];
13678+}
13679+
13680+- (NSDictionary *)JSONDictionary
13681+{
13682+ return [self dictionaryWithValuesForKeys:QTOpen.properties.allValues];
13683+}
13684+@end
13685+
13686+@implementation QTOperator
13687++ (NSDictionary<NSString *, NSString *> *)properties
13688+{
13689+ static NSDictionary<NSString *, NSString *> *properties;
13690+ return properties = properties ? properties : @{
13691+ @"operator": @"operator",
13692+ };
13693+}
13694+
13695++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
13696+{
13697+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOperator alloc] initWithJSONDictionary:dict] : nil;
13698+}
13699+
13700+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
13701+{
13702+ if (self = [super init]) {
13703+ if (![dict[@"operator"] isKindOfClass:NSNumber.class]) return nil;
1353313704 if ([dict[@"operator"] doubleValue] != [dict[@"operator"] longLongValue]) return nil;
1353413705 [self setValuesForKeysWithDictionary:dict];
1353513706 }
@@ -15064,142 +15235,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1506415235 }
1506515236 @end
1506615237
15067-@implementation QTSealed
15068-+ (NSDictionary<NSString *, NSString *> *)properties
15069-{
15070- static NSDictionary<NSString *, NSString *> *properties;
15071- return properties = properties ? properties : @{
15072- @"sealed": @"sealed",
15073- };
15074-}
15075-
15076-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15077-{
15078- return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil;
15079-}
15080-
15081-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15082-{
15083- if (self = [super init]) {
15084- if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil;
15085- if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil;
15086- [self setValuesForKeysWithDictionary:dict];
15087- }
15088- return self;
15089-}
15090-
15091-- (void)setValue:(nullable id)value forKey:(NSString *)key
15092-{
15093- id resolved = QTSealed.properties[key];
15094- if (resolved) [super setValue:value forKey:resolved];
15095-}
15096-
15097-- (void)setNilValueForKey:(NSString *)key
15098-{
15099- id resolved = QTSealed.properties[key];
15100- if (resolved) [super setValue:@(0) forKey:resolved];
15101-}
15102-
15103-- (NSDictionary *)JSONDictionary
15104-{
15105- return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues];
15106-}
15107-@end
15108-
15109-@implementation QTSel
15110-+ (NSDictionary<NSString *, NSString *> *)properties
15111-{
15112- static NSDictionary<NSString *, NSString *> *properties;
15113- return properties = properties ? properties : @{
15114- @"SEL": @"sel",
15115- };
15116-}
15117-
15118-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15119-{
15120- return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil;
15121-}
15122-
15123-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15124-{
15125- if (self = [super init]) {
15126- if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil;
15127- if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil;
15128- [self setValuesForKeysWithDictionary:dict];
15129- }
15130- return self;
15131-}
15132-
15133-- (void)setValue:(nullable id)value forKey:(NSString *)key
15134-{
15135- id resolved = QTSel.properties[key];
15136- if (resolved) [super setValue:value forKey:resolved];
15137-}
15138-
15139-- (void)setNilValueForKey:(NSString *)key
15140-{
15141- id resolved = QTSel.properties[key];
15142- if (resolved) [super setValue:@(0) forKey:resolved];
15143-}
15144-
15145-- (NSDictionary *)JSONDictionary
15146-{
15147- id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy];
15148-
15149- for (id jsonName in QTSel.properties) {
15150- id propertyName = QTSel.properties[jsonName];
15151- if (![jsonName isEqualToString:propertyName]) {
15152- dict[jsonName] = dict[propertyName];
15153- [dict removeObjectForKey:propertyName];
15154- }
15155- }
15156-
15157- return dict;
15158-}
15159-@end
15160-
15161-@implementation QTSelect
15162-+ (NSDictionary<NSString *, NSString *> *)properties
15163-{
15164- static NSDictionary<NSString *, NSString *> *properties;
15165- return properties = properties ? properties : @{
15166- @"select": @"select",
15167- };
15168-}
15169-
15170-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
15171-{
15172- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
15173-}
15174-
15175-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
15176-{
15177- if (self = [super init]) {
15178- if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
15179- if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
15180- [self setValuesForKeysWithDictionary:dict];
15181- }
15182- return self;
15183-}
15184-
15185-- (void)setValue:(nullable id)value forKey:(NSString *)key
15186-{
15187- id resolved = QTSelect.properties[key];
15188- if (resolved) [super setValue:value forKey:resolved];
15189-}
15190-
15191-- (void)setNilValueForKey:(NSString *)key
15192-{
15193- id resolved = QTSelect.properties[key];
15194- if (resolved) [super setValue:@(0) forKey:resolved];
15195-}
15196-
15197-- (NSDictionary *)JSONDictionary
15198-{
15199- return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
15200-}
15201-@end
15202-
1520315238 @implementation QTObj5
1520415239 + (NSDictionary<NSString *, NSString *> *)properties
1520515240 {
@@ -15219,6 +15254,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1521915254 @"typeof": @"obj5Typeof",
1522015255 @"union": @"obj5Union",
1522115256 @"unsigned": @"obj5Unsigned",
15257+ @"sealed": @"sealed",
15258+ @"SEL": @"sel",
15259+ @"select": @"select",
1522215260 @"Self": @"self",
1522315261 @"Sendable": @"sendable",
1522415262 @"serialize": @"serialize",
@@ -15267,9 +15305,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1526715305 @"using": @"using",
1526815306 @"Utf8JsonReader": @"utf8JSONReader",
1526915307 @"Utf8JsonWriter": @"utf8JSONWriter",
15270- @"UUID": @"uuid",
15271- @"var": @"var",
15272- @"virtual": @"virtual",
1527315308 };
1527415309 }
1527515310
@@ -15296,6 +15331,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1529615331 if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil;
1529715332 if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil;
1529815333 if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil;
15334+ if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil;
15335+ if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil;
15336+ if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil;
1529915337 if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil;
1530015338 if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil;
1530115339 if (![dict[@"serialize"] isKindOfClass:NSDictionary.class]) return nil;
@@ -15344,9 +15382,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1534415382 if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil;
1534515383 if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil;
1534615384 if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil;
15347- if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
15348- if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
15349- if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
1535015385 [self setValuesForKeysWithDictionary:dict];
1535115386 _obj5Self = [QTSelfClass fromJSONDictionary:(id)_obj5Self];
1535215387 if (!_obj5Self && dict[@"self"] && ![dict[@"self"] isKindOfClass:NSNull.class]) return nil;
@@ -15374,6 +15409,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1537415409 if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil;
1537515410 _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned];
1537615411 if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil;
15412+ _sealed = [QTSealed fromJSONDictionary:(id)_sealed];
15413+ if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil;
15414+ _sel = [QTSel fromJSONDictionary:(id)_sel];
15415+ if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil;
15416+ _select = [QTSelect fromJSONDictionary:(id)_select];
15417+ if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil;
1537715418 _self = [QTSelf fromJSONDictionary:(id)_self];
1537815419 if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil;
1537915420 _sendable = [QTSendable fromJSONDictionary:(id)_sendable];
@@ -15470,12 +15511,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1547015511 if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil;
1547115512 _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter];
1547215513 if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil;
15473- _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
15474- if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
15475- _var = [QTVar fromJSONDictionary:(id)_var];
15476- if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
15477- _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
15478- if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
1547915514 }
1548015515 return self;
1548115516 }
@@ -15518,6 +15553,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1551815553 @"typeof": [_obj5Typeof JSONDictionary],
1551915554 @"union": [_obj5Union JSONDictionary],
1552015555 @"unsigned": [_obj5Unsigned JSONDictionary],
15556+ @"sealed": [_sealed JSONDictionary],
15557+ @"SEL": [_sel JSONDictionary],
15558+ @"select": [_select JSONDictionary],
1552115559 @"Self": [_self JSONDictionary],
1552215560 @"Sendable": [_sendable JSONDictionary],
1552315561 @"serialize": [_serialize JSONDictionary],
@@ -15566,9 +15604,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1556615604 @"using": [_using JSONDictionary],
1556715605 @"Utf8JsonReader": [_utf8JSONReader JSONDictionary],
1556815606 @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary],
15569- @"UUID": [_uuid JSONDictionary],
15570- @"var": [_var JSONDictionary],
15571- @"virtual": [_virtual JSONDictionary],
1557215607 }];
1557315608
1557415609 return dict;
@@ -16231,18 +16266,154 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1623116266 }
1623216267 @end
1623316268
16234-@implementation QTSelf
16269+@implementation QTSealed
1623516270 + (NSDictionary<NSString *, NSString *> *)properties
1623616271 {
1623716272 static NSDictionary<NSString *, NSString *> *properties;
1623816273 return properties = properties ? properties : @{
16239- @"Self": @"self",
16274+ @"sealed": @"sealed",
1624016275 };
1624116276 }
1624216277
1624316278 + (instancetype)fromJSONDictionary:(NSDictionary *)dict
1624416279 {
16245- return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil;
16280+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil;
16281+}
16282+
16283+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16284+{
16285+ if (self = [super init]) {
16286+ if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil;
16287+ if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil;
16288+ [self setValuesForKeysWithDictionary:dict];
16289+ }
16290+ return self;
16291+}
16292+
16293+- (void)setValue:(nullable id)value forKey:(NSString *)key
16294+{
16295+ id resolved = QTSealed.properties[key];
16296+ if (resolved) [super setValue:value forKey:resolved];
16297+}
16298+
16299+- (void)setNilValueForKey:(NSString *)key
16300+{
16301+ id resolved = QTSealed.properties[key];
16302+ if (resolved) [super setValue:@(0) forKey:resolved];
16303+}
16304+
16305+- (NSDictionary *)JSONDictionary
16306+{
16307+ return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues];
16308+}
16309+@end
16310+
16311+@implementation QTSel
16312++ (NSDictionary<NSString *, NSString *> *)properties
16313+{
16314+ static NSDictionary<NSString *, NSString *> *properties;
16315+ return properties = properties ? properties : @{
16316+ @"SEL": @"sel",
16317+ };
16318+}
16319+
16320++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16321+{
16322+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil;
16323+}
16324+
16325+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16326+{
16327+ if (self = [super init]) {
16328+ if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil;
16329+ if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil;
16330+ [self setValuesForKeysWithDictionary:dict];
16331+ }
16332+ return self;
16333+}
16334+
16335+- (void)setValue:(nullable id)value forKey:(NSString *)key
16336+{
16337+ id resolved = QTSel.properties[key];
16338+ if (resolved) [super setValue:value forKey:resolved];
16339+}
16340+
16341+- (void)setNilValueForKey:(NSString *)key
16342+{
16343+ id resolved = QTSel.properties[key];
16344+ if (resolved) [super setValue:@(0) forKey:resolved];
16345+}
16346+
16347+- (NSDictionary *)JSONDictionary
16348+{
16349+ id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy];
16350+
16351+ for (id jsonName in QTSel.properties) {
16352+ id propertyName = QTSel.properties[jsonName];
16353+ if (![jsonName isEqualToString:propertyName]) {
16354+ dict[jsonName] = dict[propertyName];
16355+ [dict removeObjectForKey:propertyName];
16356+ }
16357+ }
16358+
16359+ return dict;
16360+}
16361+@end
16362+
16363+@implementation QTSelect
16364++ (NSDictionary<NSString *, NSString *> *)properties
16365+{
16366+ static NSDictionary<NSString *, NSString *> *properties;
16367+ return properties = properties ? properties : @{
16368+ @"select": @"select",
16369+ };
16370+}
16371+
16372++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16373+{
16374+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil;
16375+}
16376+
16377+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
16378+{
16379+ if (self = [super init]) {
16380+ if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil;
16381+ if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil;
16382+ [self setValuesForKeysWithDictionary:dict];
16383+ }
16384+ return self;
16385+}
16386+
16387+- (void)setValue:(nullable id)value forKey:(NSString *)key
16388+{
16389+ id resolved = QTSelect.properties[key];
16390+ if (resolved) [super setValue:value forKey:resolved];
16391+}
16392+
16393+- (void)setNilValueForKey:(NSString *)key
16394+{
16395+ id resolved = QTSelect.properties[key];
16396+ if (resolved) [super setValue:@(0) forKey:resolved];
16397+}
16398+
16399+- (NSDictionary *)JSONDictionary
16400+{
16401+ return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues];
16402+}
16403+@end
16404+
16405+@implementation QTSelf
16406++ (NSDictionary<NSString *, NSString *> *)properties
16407+{
16408+ static NSDictionary<NSString *, NSString *> *properties;
16409+ return properties = properties ? properties : @{
16410+ @"Self": @"self",
16411+ };
16412+}
16413+
16414++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
16415+{
16416+ return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil;
1624616417 }
1624716418
1624816419 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
@@ -18437,142 +18608,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1843718608 }
1843818609 @end
1843918610
18440-@implementation QTUUID
18441-+ (NSDictionary<NSString *, NSString *> *)properties
18442-{
18443- static NSDictionary<NSString *, NSString *> *properties;
18444- return properties = properties ? properties : @{
18445- @"UUID": @"uuid",
18446- };
18447-}
18448-
18449-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18450-{
18451- return [dict isKindOfClass:NSDictionary.class] ? [[QTUUID alloc] initWithJSONDictionary:dict] : nil;
18452-}
18453-
18454-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18455-{
18456- if (self = [super init]) {
18457- if (![dict[@"UUID"] isKindOfClass:NSNumber.class]) return nil;
18458- if ([dict[@"UUID"] doubleValue] != [dict[@"UUID"] longLongValue]) return nil;
18459- [self setValuesForKeysWithDictionary:dict];
18460- }
18461- return self;
18462-}
18463-
18464-- (void)setValue:(nullable id)value forKey:(NSString *)key
18465-{
18466- id resolved = QTUUID.properties[key];
18467- if (resolved) [super setValue:value forKey:resolved];
18468-}
18469-
18470-- (void)setNilValueForKey:(NSString *)key
18471-{
18472- id resolved = QTUUID.properties[key];
18473- if (resolved) [super setValue:@(0) forKey:resolved];
18474-}
18475-
18476-- (NSDictionary *)JSONDictionary
18477-{
18478- id dict = [[self dictionaryWithValuesForKeys:QTUUID.properties.allValues] mutableCopy];
18479-
18480- for (id jsonName in QTUUID.properties) {
18481- id propertyName = QTUUID.properties[jsonName];
18482- if (![jsonName isEqualToString:propertyName]) {
18483- dict[jsonName] = dict[propertyName];
18484- [dict removeObjectForKey:propertyName];
18485- }
18486- }
18487-
18488- return dict;
18489-}
18490-@end
18491-
18492-@implementation QTVar
18493-+ (NSDictionary<NSString *, NSString *> *)properties
18494-{
18495- static NSDictionary<NSString *, NSString *> *properties;
18496- return properties = properties ? properties : @{
18497- @"var": @"var",
18498- };
18499-}
18500-
18501-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18502-{
18503- return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil;
18504-}
18505-
18506-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18507-{
18508- if (self = [super init]) {
18509- if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil;
18510- if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil;
18511- [self setValuesForKeysWithDictionary:dict];
18512- }
18513- return self;
18514-}
18515-
18516-- (void)setValue:(nullable id)value forKey:(NSString *)key
18517-{
18518- id resolved = QTVar.properties[key];
18519- if (resolved) [super setValue:value forKey:resolved];
18520-}
18521-
18522-- (void)setNilValueForKey:(NSString *)key
18523-{
18524- id resolved = QTVar.properties[key];
18525- if (resolved) [super setValue:@(0) forKey:resolved];
18526-}
18527-
18528-- (NSDictionary *)JSONDictionary
18529-{
18530- return [self dictionaryWithValuesForKeys:QTVar.properties.allValues];
18531-}
18532-@end
18533-
18534-@implementation QTVirtual
18535-+ (NSDictionary<NSString *, NSString *> *)properties
18536-{
18537- static NSDictionary<NSString *, NSString *> *properties;
18538- return properties = properties ? properties : @{
18539- @"virtual": @"virtual",
18540- };
18541-}
18542-
18543-+ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18544-{
18545- return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil;
18546-}
18547-
18548-- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18549-{
18550- if (self = [super init]) {
18551- if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil;
18552- if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil;
18553- [self setValuesForKeysWithDictionary:dict];
18554- }
18555- return self;
18556-}
18557-
18558-- (void)setValue:(nullable id)value forKey:(NSString *)key
18559-{
18560- id resolved = QTVirtual.properties[key];
18561- if (resolved) [super setValue:value forKey:resolved];
18562-}
18563-
18564-- (void)setNilValueForKey:(NSString *)key
18565-{
18566- id resolved = QTVirtual.properties[key];
18567- if (resolved) [super setValue:@(0) forKey:resolved];
18568-}
18569-
18570-- (NSDictionary *)JSONDictionary
18571-{
18572- return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues];
18573-}
18574-@end
18575-
1857618611 @implementation QTObj6
1857718612 + (NSDictionary<NSString *, NSString *> *)properties
1857818613 {
@@ -18582,6 +18617,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1858218617 @"void": @"obj6Void",
1858318618 @"volatile": @"obj6Volatile",
1858418619 @"while": @"obj6While",
18620+ @"UUID": @"uuid",
18621+ @"var": @"var",
18622+ @"virtual": @"virtual",
1858518623 @"wchar_t": @"wcharT",
1858618624 @"weak": @"weak",
1858718625 @"where": @"where",
@@ -18607,6 +18645,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1860718645 if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil;
1860818646 if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil;
1860918647 if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil;
18648+ if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil;
18649+ if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil;
18650+ if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil;
1861018651 if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil;
1861118652 if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil;
1861218653 if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil;
@@ -18623,6 +18664,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1862318664 if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil;
1862418665 _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While];
1862518666 if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil;
18667+ _uuid = [QTUUID fromJSONDictionary:(id)_uuid];
18668+ if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil;
18669+ _var = [QTVar fromJSONDictionary:(id)_var];
18670+ if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil;
18671+ _virtual = [QTVirtual fromJSONDictionary:(id)_virtual];
18672+ if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil;
1862618673 _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT];
1862718674 if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil;
1862818675 _weak = [QTWeak fromJSONDictionary:(id)_weak];
@@ -18673,6 +18720,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1867318720 @"void": [_obj6Void JSONDictionary],
1867418721 @"volatile": [_obj6Volatile JSONDictionary],
1867518722 @"while": [_obj6While JSONDictionary],
18723+ @"UUID": [_uuid JSONDictionary],
18724+ @"var": [_var JSONDictionary],
18725+ @"virtual": [_virtual JSONDictionary],
1867618726 @"wchar_t": [_wcharT JSONDictionary],
1867718727 @"weak": [_weak JSONDictionary],
1867818728 @"where": [_where JSONDictionary],
@@ -18844,6 +18894,142 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
1884418894 }
1884518895 @end
1884618896
18897+@implementation QTUUID
18898++ (NSDictionary<NSString *, NSString *> *)properties
18899+{
18900+ static NSDictionary<NSString *, NSString *> *properties;
18901+ return properties = properties ? properties : @{
18902+ @"UUID": @"uuid",
18903+ };
18904+}
18905+
18906++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18907+{
18908+ return [dict isKindOfClass:NSDictionary.class] ? [[QTUUID alloc] initWithJSONDictionary:dict] : nil;
18909+}
18910+
18911+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18912+{
18913+ if (self = [super init]) {
18914+ if (![dict[@"UUID"] isKindOfClass:NSNumber.class]) return nil;
18915+ if ([dict[@"UUID"] doubleValue] != [dict[@"UUID"] longLongValue]) return nil;
18916+ [self setValuesForKeysWithDictionary:dict];
18917+ }
18918+ return self;
18919+}
18920+
18921+- (void)setValue:(nullable id)value forKey:(NSString *)key
18922+{
18923+ id resolved = QTUUID.properties[key];
18924+ if (resolved) [super setValue:value forKey:resolved];
18925+}
18926+
18927+- (void)setNilValueForKey:(NSString *)key
18928+{
18929+ id resolved = QTUUID.properties[key];
18930+ if (resolved) [super setValue:@(0) forKey:resolved];
18931+}
18932+
18933+- (NSDictionary *)JSONDictionary
18934+{
18935+ id dict = [[self dictionaryWithValuesForKeys:QTUUID.properties.allValues] mutableCopy];
18936+
18937+ for (id jsonName in QTUUID.properties) {
18938+ id propertyName = QTUUID.properties[jsonName];
18939+ if (![jsonName isEqualToString:propertyName]) {
18940+ dict[jsonName] = dict[propertyName];
18941+ [dict removeObjectForKey:propertyName];
18942+ }
18943+ }
18944+
18945+ return dict;
18946+}
18947+@end
18948+
18949+@implementation QTVar
18950++ (NSDictionary<NSString *, NSString *> *)properties
18951+{
18952+ static NSDictionary<NSString *, NSString *> *properties;
18953+ return properties = properties ? properties : @{
18954+ @"var": @"var",
18955+ };
18956+}
18957+
18958++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
18959+{
18960+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil;
18961+}
18962+
18963+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
18964+{
18965+ if (self = [super init]) {
18966+ if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil;
18967+ if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil;
18968+ [self setValuesForKeysWithDictionary:dict];
18969+ }
18970+ return self;
18971+}
18972+
18973+- (void)setValue:(nullable id)value forKey:(NSString *)key
18974+{
18975+ id resolved = QTVar.properties[key];
18976+ if (resolved) [super setValue:value forKey:resolved];
18977+}
18978+
18979+- (void)setNilValueForKey:(NSString *)key
18980+{
18981+ id resolved = QTVar.properties[key];
18982+ if (resolved) [super setValue:@(0) forKey:resolved];
18983+}
18984+
18985+- (NSDictionary *)JSONDictionary
18986+{
18987+ return [self dictionaryWithValuesForKeys:QTVar.properties.allValues];
18988+}
18989+@end
18990+
18991+@implementation QTVirtual
18992++ (NSDictionary<NSString *, NSString *> *)properties
18993+{
18994+ static NSDictionary<NSString *, NSString *> *properties;
18995+ return properties = properties ? properties : @{
18996+ @"virtual": @"virtual",
18997+ };
18998+}
18999+
19000++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
19001+{
19002+ return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil;
19003+}
19004+
19005+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
19006+{
19007+ if (self = [super init]) {
19008+ if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil;
19009+ if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil;
19010+ [self setValuesForKeysWithDictionary:dict];
19011+ }
19012+ return self;
19013+}
19014+
19015+- (void)setValue:(nullable id)value forKey:(NSString *)key
19016+{
19017+ id resolved = QTVirtual.properties[key];
19018+ if (resolved) [super setValue:value forKey:resolved];
19019+}
19020+
19021+- (void)setNilValueForKey:(NSString *)key
19022+{
19023+ id resolved = QTVirtual.properties[key];
19024+ if (resolved) [super setValue:@(0) forKey:resolved];
19025+}
19026+
19027+- (NSDictionary *)JSONDictionary
19028+{
19029+ return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues];
19030+}
19031+@end
19032+
1884719033 @implementation QTWcharT
1884819034 + (NSDictionary<NSString *, NSString *> *)properties
1884919035 {
Mphpdefault / TopLevel.php+2,316 −1,839
@@ -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
@@ -41640,6 +41640,9 @@ class Obj5 {
4164041640 private This $obj5This; // json:this Required
4164141641 private Obj5True $obj5True; // json:true Required
4164241642 private TypeClass $obj5Type; // json:type Required
41643+ private Sealed $sealed; // json:sealed Required
41644+ private Sel $sel; // json:SEL Required
41645+ private Select $select; // json:select Required
4164341646 private SelfClass $self; // json:Self Required
4164441647 private Sendable $sendable; // json:Sendable Required
4164541648 private Serialize $serialize; // json:serialize Required
@@ -41697,9 +41700,6 @@ class Obj5 {
4169741700 private Using $using; // json:using Required
4169841701 private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required
4169941702 private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required
41700- private UUID $uuid; // json:UUID Required
41701- private VarClass $var; // json:var Required
41702- private Virtual $virtual; // json:virtual Required
4170341703
4170441704 /**
4170541705 * @param int $dummy
@@ -41707,6 +41707,9 @@ class Obj5 {
4170741707 * @param This $obj5This
4170841708 * @param Obj5True $obj5True
4170941709 * @param TypeClass $obj5Type
41710+ * @param Sealed $sealed
41711+ * @param Sel $sel
41712+ * @param Select $select
4171041713 * @param SelfClass $self
4171141714 * @param Sendable $sendable
4171241715 * @param Serialize $serialize
@@ -41764,16 +41767,16 @@ class Obj5 {
4176441767 * @param Using $using
4176541768 * @param Utf8JSONReader $utf8JSONReader
4176641769 * @param Utf8JSONWriter $utf8JSONWriter
41767- * @param UUID $uuid
41768- * @param VarClass $var
41769- * @param Virtual $virtual
4177041770 */
41771- public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, SelfClass $self, Sendable $sendable, 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, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual) {
41771+ public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, 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, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter) {
4177241772 $this->dummy = $dummy;
4177341773 $this->obj5Self = $obj5Self;
4177441774 $this->obj5This = $obj5This;
4177541775 $this->obj5True = $obj5True;
4177641776 $this->obj5Type = $obj5Type;
41777+ $this->sealed = $sealed;
41778+ $this->sel = $sel;
41779+ $this->select = $select;
4177741780 $this->self = $self;
4177841781 $this->sendable = $sendable;
4177941782 $this->serialize = $serialize;
@@ -41831,9 +41834,6 @@ class Obj5 {
4183141834 $this->using = $using;
4183241835 $this->utf8JSONReader = $utf8JSONReader;
4183341836 $this->utf8JSONWriter = $utf8JSONWriter;
41834- $this->uuid = $uuid;
41835- $this->var = $var;
41836- $this->virtual = $virtual;
4183741837 }
4183841838
4183941839 /**
@@ -42075,6 +42075,150 @@ class Obj5 {
4207542075 return TypeClass::sample(); /*35:obj5Type*/
4207642076 }
4207742077
42078+ /**
42079+ * @param stdClass $value
42080+ * @throws Exception
42081+ * @return Sealed
42082+ */
42083+ public static function fromSealed(stdClass $value): Sealed {
42084+ return Sealed::from($value); /*class*/
42085+ }
42086+
42087+ /**
42088+ * @throws Exception
42089+ * @return stdClass
42090+ */
42091+ public function toSealed(): stdClass {
42092+ if (Obj5::validateSealed($this->sealed)) {
42093+ return $this->sealed->to(); /*class*/
42094+ }
42095+ throw new Exception('never get to this Obj5::sealed');
42096+ }
42097+
42098+ /**
42099+ * @param Sealed
42100+ * @return bool
42101+ * @throws Exception
42102+ */
42103+ public static function validateSealed(Sealed $value): bool {
42104+ $value->validate();
42105+ return true;
42106+ }
42107+
42108+ /**
42109+ * @throws Exception
42110+ * @return Sealed
42111+ */
42112+ public function getSealed(): Sealed {
42113+ if (Obj5::validateSealed($this->sealed)) {
42114+ return $this->sealed;
42115+ }
42116+ throw new Exception('never get to getSealed Obj5::sealed');
42117+ }
42118+
42119+ /**
42120+ * @return Sealed
42121+ */
42122+ public static function sampleSealed(): Sealed {
42123+ return Sealed::sample(); /*36:sealed*/
42124+ }
42125+
42126+ /**
42127+ * @param stdClass $value
42128+ * @throws Exception
42129+ * @return Sel
42130+ */
42131+ public static function fromSel(stdClass $value): Sel {
42132+ return Sel::from($value); /*class*/
42133+ }
42134+
42135+ /**
42136+ * @throws Exception
42137+ * @return stdClass
42138+ */
42139+ public function toSel(): stdClass {
42140+ if (Obj5::validateSel($this->sel)) {
42141+ return $this->sel->to(); /*class*/
42142+ }
42143+ throw new Exception('never get to this Obj5::sel');
42144+ }
42145+
42146+ /**
42147+ * @param Sel
42148+ * @return bool
42149+ * @throws Exception
42150+ */
42151+ public static function validateSel(Sel $value): bool {
42152+ $value->validate();
42153+ return true;
42154+ }
42155+
42156+ /**
42157+ * @throws Exception
42158+ * @return Sel
42159+ */
42160+ public function getSel(): Sel {
42161+ if (Obj5::validateSel($this->sel)) {
42162+ return $this->sel;
42163+ }
42164+ throw new Exception('never get to getSel Obj5::sel');
42165+ }
42166+
42167+ /**
42168+ * @return Sel
42169+ */
42170+ public static function sampleSel(): Sel {
42171+ return Sel::sample(); /*37:sel*/
42172+ }
42173+
42174+ /**
42175+ * @param stdClass $value
42176+ * @throws Exception
42177+ * @return Select
42178+ */
42179+ public static function fromSelect(stdClass $value): Select {
42180+ return Select::from($value); /*class*/
42181+ }
42182+
42183+ /**
42184+ * @throws Exception
42185+ * @return stdClass
42186+ */
42187+ public function toSelect(): stdClass {
42188+ if (Obj5::validateSelect($this->select)) {
42189+ return $this->select->to(); /*class*/
42190+ }
42191+ throw new Exception('never get to this Obj5::select');
42192+ }
42193+
42194+ /**
42195+ * @param Select
42196+ * @return bool
42197+ * @throws Exception
42198+ */
42199+ public static function validateSelect(Select $value): bool {
42200+ $value->validate();
42201+ return true;
42202+ }
42203+
42204+ /**
42205+ * @throws Exception
42206+ * @return Select
42207+ */
42208+ public function getSelect(): Select {
42209+ if (Obj5::validateSelect($this->select)) {
42210+ return $this->select;
42211+ }
42212+ throw new Exception('never get to getSelect Obj5::select');
42213+ }
42214+
42215+ /**
42216+ * @return Select
42217+ */
42218+ public static function sampleSelect(): Select {
42219+ return Select::sample(); /*38:select*/
42220+ }
42221+
4207842222 /**
4207942223 * @param stdClass $value
4208042224 * @throws Exception
@@ -42120,7 +42264,7 @@ class Obj5 {
4212042264 * @return SelfClass
4212142265 */
4212242266 public static function sampleSelf(): SelfClass {
42123- return SelfClass::sample(); /*36:self*/
42267+ return SelfClass::sample(); /*39:self*/
4212442268 }
4212542269
4212642270 /**
@@ -42168,7 +42312,7 @@ class Obj5 {
4216842312 * @return Sendable
4216942313 */
4217042314 public static function sampleSendable(): Sendable {
42171- return Sendable::sample(); /*37:sendable*/
42315+ return Sendable::sample(); /*40:sendable*/
4217242316 }
4217342317
4217442318 /**
@@ -42216,7 +42360,7 @@ class Obj5 {
4221642360 * @return Serialize
4221742361 */
4221842362 public static function sampleSerialize(): Serialize {
42219- return Serialize::sample(); /*38:serialize*/
42363+ return Serialize::sample(); /*41:serialize*/
4222042364 }
4222142365
4222242366 /**
@@ -42264,7 +42408,7 @@ class Obj5 {
4226442408 * @return SerializerProvider
4226542409 */
4226642410 public static function sampleSerializerProvider(): SerializerProvider {
42267- return SerializerProvider::sample(); /*39:serializerProvider*/
42411+ return SerializerProvider::sample(); /*42:serializerProvider*/
4226842412 }
4226942413
4227042414 /**
@@ -42312,7 +42456,7 @@ class Obj5 {
4231242456 * @return Set
4231342457 */
4231442458 public static function sampleSet(): Set {
42315- return Set::sample(); /*40:set*/
42459+ return Set::sample(); /*43:set*/
4231642460 }
4231742461
4231842462 /**
@@ -42360,7 +42504,7 @@ class Obj5 {
4236042504 * @return Short
4236142505 */
4236242506 public static function sampleShort(): Short {
42363- return Short::sample(); /*41:short*/
42507+ return Short::sample(); /*44:short*/
4236442508 }
4236542509
4236642510 /**
@@ -42408,7 +42552,7 @@ class Obj5 {
4240842552 * @return Signed
4240942553 */
4241042554 public static function sampleSigned(): Signed {
42411- return Signed::sample(); /*42:signed*/
42555+ return Signed::sample(); /*45:signed*/
4241242556 }
4241342557
4241442558 /**
@@ -42456,7 +42600,7 @@ class Obj5 {
4245642600 * @return SimpleModule
4245742601 */
4245842602 public static function sampleSimpleModule(): SimpleModule {
42459- return SimpleModule::sample(); /*43:simpleModule*/
42603+ return SimpleModule::sample(); /*46:simpleModule*/
4246042604 }
4246142605
4246242606 /**
@@ -42504,7 +42648,7 @@ class Obj5 {
4250442648 * @return Sizeof
4250542649 */
4250642650 public static function sampleSizeof(): Sizeof {
42507- return Sizeof::sample(); /*44:sizeof*/
42651+ return Sizeof::sample(); /*47:sizeof*/
4250842652 }
4250942653
4251042654 /**
@@ -42552,7 +42696,7 @@ class Obj5 {
4255242696 * @return Stackalloc
4255342697 */
4255442698 public static function sampleStackalloc(): Stackalloc {
42555- return Stackalloc::sample(); /*45:stackalloc*/
42699+ return Stackalloc::sample(); /*48:stackalloc*/
4255642700 }
4255742701
4255842702 /**
@@ -42600,7 +42744,7 @@ class Obj5 {
4260042744 * @return Standards
4260142745 */
4260242746 public static function sampleStandards(): Standards {
42603- return Standards::sample(); /*46:standards*/
42747+ return Standards::sample(); /*49:standards*/
4260442748 }
4260542749
4260642750 /**
@@ -42648,7 +42792,7 @@ class Obj5 {
4264842792 * @return StaticClass
4264942793 */
4265042794 public static function sampleStatic(): StaticClass {
42651- return StaticClass::sample(); /*47:static*/
42795+ return StaticClass::sample(); /*50:static*/
4265242796 }
4265342797
4265442798 /**
@@ -42696,7 +42840,7 @@ class Obj5 {
4269642840 * @return StaticAssert
4269742841 */
4269842842 public static function sampleStaticAssert(): StaticAssert {
42699- return StaticAssert::sample(); /*48:staticAssert*/
42843+ return StaticAssert::sample(); /*51:staticAssert*/
4270042844 }
4270142845
4270242846 /**
@@ -42744,7 +42888,7 @@ class Obj5 {
4274442888 * @return StaticCast
4274542889 */
4274642890 public static function sampleStaticCast(): StaticCast {
42747- return StaticCast::sample(); /*49:staticCast*/
42891+ return StaticCast::sample(); /*52:staticCast*/
4274842892 }
4274942893
4275042894 /**
@@ -42792,7 +42936,7 @@ class Obj5 {
4279242936 * @return StdDeserializer
4279342937 */
4279442938 public static function sampleStdDeserializer(): StdDeserializer {
42795- return StdDeserializer::sample(); /*50:stdDeserializer*/
42939+ return StdDeserializer::sample(); /*53:stdDeserializer*/
4279642940 }
4279742941
4279842942 /**
@@ -42840,7 +42984,7 @@ class Obj5 {
4284042984 * @return StdSerializer
4284142985 */
4284242986 public static function sampleStdSerializer(): StdSerializer {
42843- return StdSerializer::sample(); /*51:stdSerializer*/
42987+ return StdSerializer::sample(); /*54:stdSerializer*/
4284442988 }
4284542989
4284642990 /**
@@ -42888,7 +43032,7 @@ class Obj5 {
4288843032 * @return Strictfp
4288943033 */
4289043034 public static function sampleStrictfp(): Strictfp {
42891- return Strictfp::sample(); /*52:strictfp*/
43035+ return Strictfp::sample(); /*55:strictfp*/
4289243036 }
4289343037
4289443038 /**
@@ -42936,7 +43080,7 @@ class Obj5 {
4293643080 * @return StringClass
4293743081 */
4293843082 public static function sampleString(): StringClass {
42939- return StringClass::sample(); /*53:string*/
43083+ return StringClass::sample(); /*56:string*/
4294043084 }
4294143085
4294243086 /**
@@ -42984,7 +43128,7 @@ class Obj5 {
4298443128 * @return Struct
4298543129 */
4298643130 public static function sampleStruct(): Struct {
42987- return Struct::sample(); /*54:struct*/
43131+ return Struct::sample(); /*57:struct*/
4298843132 }
4298943133
4299043134 /**
@@ -43032,7 +43176,7 @@ class Obj5 {
4303243176 * @return Subscript
4303343177 */
4303443178 public static function sampleSubscript(): Subscript {
43035- return Subscript::sample(); /*55:subscript*/
43179+ return Subscript::sample(); /*58:subscript*/
4303643180 }
4303743181
4303843182 /**
@@ -43080,7 +43224,7 @@ class Obj5 {
4308043224 * @return Super
4308143225 */
4308243226 public static function sampleSuper(): Super {
43083- return Super::sample(); /*56:super*/
43227+ return Super::sample(); /*59:super*/
4308443228 }
4308543229
4308643230 /**
@@ -43128,7 +43272,7 @@ class Obj5 {
4312843272 * @return SwitchClass
4312943273 */
4313043274 public static function sampleSwitch(): SwitchClass {
43131- return SwitchClass::sample(); /*57:switch*/
43275+ return SwitchClass::sample(); /*60:switch*/
4313243276 }
4313343277
4313443278 /**
@@ -43176,7 +43320,7 @@ class Obj5 {
4317643320 * @return Symbol
4317743321 */
4317843322 public static function sampleSymbol(): Symbol {
43179- return Symbol::sample(); /*58:symbol*/
43323+ return Symbol::sample(); /*61:symbol*/
4318043324 }
4318143325
4318243326 /**
@@ -43224,7 +43368,7 @@ class Obj5 {
4322443368 * @return Synchronized
4322543369 */
4322643370 public static function sampleSynchronized(): Synchronized {
43227- return Synchronized::sample(); /*59:synchronized*/
43371+ return Synchronized::sample(); /*62:synchronized*/
4322843372 }
4322943373
4323043374 /**
@@ -43272,7 +43416,7 @@ class Obj5 {
4327243416 * @return System
4327343417 */
4327443418 public static function sampleSystem(): System {
43275- return System::sample(); /*60:system*/
43419+ return System::sample(); /*63:system*/
4327643420 }
4327743421
4327843422 /**
@@ -43320,7 +43464,7 @@ class Obj5 {
4332043464 * @return Template
4332143465 */
4332243466 public static function sampleTemplate(): Template {
43323- return Template::sample(); /*61:template*/
43467+ return Template::sample(); /*64:template*/
4332443468 }
4332543469
4332643470 /**
@@ -43368,7 +43512,7 @@ class Obj5 {
4336843512 * @return Then
4336943513 */
4337043514 public static function sampleThen(): Then {
43371- return Then::sample(); /*62:then*/
43515+ return Then::sample(); /*65:then*/
4337243516 }
4337343517
4337443518 /**
@@ -43416,7 +43560,7 @@ class Obj5 {
4341643560 * @return ThreadLocal
4341743561 */
4341843562 public static function sampleThreadLocal(): ThreadLocal {
43419- return ThreadLocal::sample(); /*63:threadLocal*/
43563+ return ThreadLocal::sample(); /*66:threadLocal*/
4342043564 }
4342143565
4342243566 /**
@@ -43464,7 +43608,7 @@ class Obj5 {
4346443608 * @return ThrowClass
4346543609 */
4346643610 public static function sampleThrow(): ThrowClass {
43467- return ThrowClass::sample(); /*64:throw*/
43611+ return ThrowClass::sample(); /*67:throw*/
4346843612 }
4346943613
4347043614 /**
@@ -43512,7 +43656,7 @@ class Obj5 {
4351243656 * @return Throws
4351343657 */
4351443658 public static function sampleThrows(): Throws {
43515- return Throws::sample(); /*65:throws*/
43659+ return Throws::sample(); /*68:throws*/
4351643660 }
4351743661
4351843662 /**
@@ -43560,7 +43704,7 @@ class Obj5 {
4356043704 * @return TimeOnly
4356143705 */
4356243706 public static function sampleTimeOnly(): TimeOnly {
43563- return TimeOnly::sample(); /*66:timeOnly*/
43707+ return TimeOnly::sample(); /*69:timeOnly*/
4356443708 }
4356543709
4356643710 /**
@@ -43608,7 +43752,7 @@ class Obj5 {
4360843752 * @return TimeOnlyConverter
4360943753 */
4361043754 public static function sampleTimeOnlyConverter(): TimeOnlyConverter {
43611- return TimeOnlyConverter::sample(); /*67:timeOnlyConverter*/
43755+ return TimeOnlyConverter::sample(); /*70:timeOnlyConverter*/
4361243756 }
4361343757
4361443758 /**
@@ -43656,7 +43800,7 @@ class Obj5 {
4365643800 * @return TimeZone
4365743801 */
4365843802 public static function sampleTimeZone(): TimeZone {
43659- return TimeZone::sample(); /*68:timeZone*/
43803+ return TimeZone::sample(); /*71:timeZone*/
4366043804 }
4366143805
4366243806 /**
@@ -43704,7 +43848,7 @@ class Obj5 {
4370443848 * @return ToJSON
4370543849 */
4370643850 public static function sampleToJSON(): ToJSON {
43707- return ToJSON::sample(); /*69:toJSON*/
43851+ return ToJSON::sample(); /*72:toJSON*/
4370843852 }
4370943853
4371043854 /**
@@ -43752,7 +43896,7 @@ class Obj5 {
4375243896 * @return ToString
4375343897 */
4375443898 public static function sampleToString(): ToString {
43755- return ToString::sample(); /*70:toString*/
43899+ return ToString::sample(); /*73:toString*/
4375643900 }
4375743901
4375843902 /**
@@ -43800,7 +43944,7 @@ class Obj5 {
4380043944 * @return TopLevelClass
4380143945 */
4380243946 public static function sampleTopLevel(): TopLevelClass {
43803- return TopLevelClass::sample(); /*71:topLevel*/
43947+ return TopLevelClass::sample(); /*74:topLevel*/
4380443948 }
4380543949
4380643950 /**
@@ -43848,7 +43992,7 @@ class Obj5 {
4384843992 * @return Transient
4384943993 */
4385043994 public static function sampleTransient(): Transient {
43851- return Transient::sample(); /*72:transient*/
43995+ return Transient::sample(); /*75:transient*/
4385243996 }
4385343997
4385443998 /**
@@ -43896,7 +44040,7 @@ class Obj5 {
4389644040 * @return TrueClass
4389744041 */
4389844042 public static function sampleTrue(): TrueClass {
43899- return TrueClass::sample(); /*73:true*/
44043+ return TrueClass::sample(); /*76:true*/
4390044044 }
4390144045
4390244046 /**
@@ -43944,7 +44088,7 @@ class Obj5 {
4394444088 * @return TryClass
4394544089 */
4394644090 public static function sampleTry(): TryClass {
43947- return TryClass::sample(); /*74:try*/
44091+ return TryClass::sample(); /*77:try*/
4394844092 }
4394944093
4395044094 /**
@@ -43992,7 +44136,7 @@ class Obj5 {
4399244136 * @return Type
4399344137 */
4399444138 public static function sampleType(): Type {
43995- return Type::sample(); /*75:type*/
44139+ return Type::sample(); /*78:type*/
4399644140 }
4399744141
4399844142 /**
@@ -44040,7 +44184,7 @@ class Obj5 {
4404044184 * @return Typealias
4404144185 */
4404244186 public static function sampleTypealias(): Typealias {
44043- return Typealias::sample(); /*76:typealias*/
44187+ return Typealias::sample(); /*79:typealias*/
4404444188 }
4404544189
4404644190 /**
@@ -44088,7 +44232,7 @@ class Obj5 {
4408844232 * @return Typedef
4408944233 */
4409044234 public static function sampleTypedef(): Typedef {
44091- return Typedef::sample(); /*77:typedef*/
44235+ return Typedef::sample(); /*80:typedef*/
4409244236 }
4409344237
4409444238 /**
@@ -44136,7 +44280,7 @@ class Obj5 {
4413644280 * @return Typeid
4413744281 */
4413844282 public static function sampleTypeid(): Typeid {
44139- return Typeid::sample(); /*78:typeid*/
44283+ return Typeid::sample(); /*81:typeid*/
4414044284 }
4414144285
4414244286 /**
@@ -44184,7 +44328,7 @@ class Obj5 {
4418444328 * @return Typename
4418544329 */
4418644330 public static function sampleTypename(): Typename {
44187- return Typename::sample(); /*79:typename*/
44331+ return Typename::sample(); /*82:typename*/
4418844332 }
4418944333
4419044334 /**
@@ -44232,7 +44376,7 @@ class Obj5 {
4423244376 * @return Typeof
4423344377 */
4423444378 public static function sampleTypeof(): Typeof {
44235- return Typeof::sample(); /*80:typeof*/
44379+ return Typeof::sample(); /*83:typeof*/
4423644380 }
4423744381
4423844382 /**
@@ -44280,7 +44424,7 @@ class Obj5 {
4428044424 * @return Uint
4428144425 */
4428244426 public static function sampleUint(): Uint {
44283- return Uint::sample(); /*81:uint*/
44427+ return Uint::sample(); /*84:uint*/
4428444428 }
4428544429
4428644430 /**
@@ -44328,7 +44472,7 @@ class Obj5 {
4432844472 * @return Ulong
4432944473 */
4433044474 public static function sampleUlong(): Ulong {
44331- return Ulong::sample(); /*82:ulong*/
44475+ return Ulong::sample(); /*85:ulong*/
4433244476 }
4433344477
4433444478 /**
@@ -44376,7 +44520,7 @@ class Obj5 {
4437644520 * @return Unchecked
4437744521 */
4437844522 public static function sampleUnchecked(): Unchecked {
44379- return Unchecked::sample(); /*83:unchecked*/
44523+ return Unchecked::sample(); /*86:unchecked*/
4438044524 }
4438144525
4438244526 /**
@@ -44424,7 +44568,7 @@ class Obj5 {
4442444568 * @return Undefined
4442544569 */
4442644570 public static function sampleUndefined(): Undefined {
44427- return Undefined::sample(); /*84:undefined*/
44571+ return Undefined::sample(); /*87:undefined*/
4442844572 }
4442944573
4443044574 /**
@@ -44472,7 +44616,7 @@ class Obj5 {
4447244616 * @return Union
4447344617 */
4447444618 public static function sampleUnion(): Union {
44475- return Union::sample(); /*85:union*/
44619+ return Union::sample(); /*88:union*/
4447644620 }
4447744621
4447844622 /**
@@ -44520,7 +44664,7 @@ class Obj5 {
4452044664 * @return Unowned
4452144665 */
4452244666 public static function sampleUnowned(): Unowned {
44523- return Unowned::sample(); /*86:unowned*/
44667+ return Unowned::sample(); /*89:unowned*/
4452444668 }
4452544669
4452644670 /**
@@ -44568,7 +44712,7 @@ class Obj5 {
4456844712 * @return Unsafe
4456944713 */
4457044714 public static function sampleUnsafe(): Unsafe {
44571- return Unsafe::sample(); /*87:unsafe*/
44715+ return Unsafe::sample(); /*90:unsafe*/
4457244716 }
4457344717
4457444718 /**
@@ -44616,7 +44760,7 @@ class Obj5 {
4461644760 * @return Unsigned
4461744761 */
4461844762 public static function sampleUnsigned(): Unsigned {
44619- return Unsigned::sample(); /*88:unsigned*/
44763+ return Unsigned::sample(); /*91:unsigned*/
4462044764 }
4462144765
4462244766 /**
@@ -44664,7 +44808,7 @@ class Obj5 {
4466444808 * @return Ushort
4466544809 */
4466644810 public static function sampleUshort(): Ushort {
44667- return Ushort::sample(); /*89:ushort*/
44811+ return Ushort::sample(); /*92:ushort*/
4466844812 }
4466944813
4467044814 /**
@@ -44712,7 +44856,7 @@ class Obj5 {
4471244856 * @return Using
4471344857 */
4471444858 public static function sampleUsing(): Using {
44715- return Using::sample(); /*90:using*/
44859+ return Using::sample(); /*93:using*/
4471644860 }
4471744861
4471844862 /**
@@ -44760,7 +44904,7 @@ class Obj5 {
4476044904 * @return Utf8JSONReader
4476144905 */
4476244906 public static function sampleUtf8JSONReader(): Utf8JSONReader {
44763- return Utf8JSONReader::sample(); /*91:utf8JSONReader*/
44907+ return Utf8JSONReader::sample(); /*94:utf8JSONReader*/
4476444908 }
4476544909
4476644910 /**
@@ -44808,228 +44952,84 @@ class Obj5 {
4480844952 * @return Utf8JSONWriter
4480944953 */
4481044954 public static function sampleUtf8JSONWriter(): Utf8JSONWriter {
44811- return Utf8JSONWriter::sample(); /*92:utf8JSONWriter*/
44812- }
44813-
44814- /**
44815- * @param stdClass $value
44816- * @throws Exception
44817- * @return UUID
44818- */
44819- public static function fromUUID(stdClass $value): UUID {
44820- return UUID::from($value); /*class*/
44955+ return Utf8JSONWriter::sample(); /*95:utf8JSONWriter*/
4482144956 }
4482244957
4482344958 /**
4482444959 * @throws Exception
44825- * @return stdClass
44826- */
44827- public function toUUID(): stdClass {
44828- if (Obj5::validateUUID($this->uuid)) {
44829- return $this->uuid->to(); /*class*/
44830- }
44831- throw new Exception('never get to this Obj5::uuid');
44832- }
44833-
44834- /**
44835- * @param UUID
4483644960 * @return bool
44837- * @throws Exception
44838- */
44839- public static function validateUUID(UUID $value): bool {
44840- $value->validate();
44841- return true;
44842- }
44843-
44844- /**
44845- * @throws Exception
44846- * @return UUID
44847- */
44848- public function getUUID(): UUID {
44849- if (Obj5::validateUUID($this->uuid)) {
44850- return $this->uuid;
44851- }
44852- throw new Exception('never get to getUUID Obj5::uuid');
44853- }
44854-
44855- /**
44856- * @return UUID
44857- */
44858- public static function sampleUUID(): UUID {
44859- return UUID::sample(); /*93:uuid*/
44860- }
44861-
44862- /**
44863- * @param stdClass $value
44864- * @throws Exception
44865- * @return VarClass
4486644961 */
44867- public static function fromVar(stdClass $value): VarClass {
44868- return VarClass::from($value); /*class*/
44962+ public function validate(): bool {
44963+ return Obj5::validateDummy($this->dummy)
44964+ || Obj5::validateObj5Self($this->obj5Self)
44965+ || Obj5::validateObj5This($this->obj5This)
44966+ || Obj5::validateObj5True($this->obj5True)
44967+ || Obj5::validateObj5Type($this->obj5Type)
44968+ || Obj5::validateSealed($this->sealed)
44969+ || Obj5::validateSel($this->sel)
44970+ || Obj5::validateSelect($this->select)
44971+ || Obj5::validateSelf($this->self)
44972+ || Obj5::validateSendable($this->sendable)
44973+ || Obj5::validateSerialize($this->serialize)
44974+ || Obj5::validateSerializerProvider($this->serializerProvider)
44975+ || Obj5::validateSet($this->set)
44976+ || Obj5::validateShort($this->short)
44977+ || Obj5::validateSigned($this->signed)
44978+ || Obj5::validateSimpleModule($this->simpleModule)
44979+ || Obj5::validateSizeof($this->sizeof)
44980+ || Obj5::validateStackalloc($this->stackalloc)
44981+ || Obj5::validateStandards($this->standards)
44982+ || Obj5::validateStatic($this->static)
44983+ || Obj5::validateStaticAssert($this->staticAssert)
44984+ || Obj5::validateStaticCast($this->staticCast)
44985+ || Obj5::validateStdDeserializer($this->stdDeserializer)
44986+ || Obj5::validateStdSerializer($this->stdSerializer)
44987+ || Obj5::validateStrictfp($this->strictfp)
44988+ || Obj5::validateString($this->string)
44989+ || Obj5::validateStruct($this->struct)
44990+ || Obj5::validateSubscript($this->subscript)
44991+ || Obj5::validateSuper($this->super)
44992+ || Obj5::validateSwitch($this->switch)
44993+ || Obj5::validateSymbol($this->symbol)
44994+ || Obj5::validateSynchronized($this->synchronized)
44995+ || Obj5::validateSystem($this->system)
44996+ || Obj5::validateTemplate($this->template)
44997+ || Obj5::validateThen($this->then)
44998+ || Obj5::validateThreadLocal($this->threadLocal)
44999+ || Obj5::validateThrow($this->throw)
45000+ || Obj5::validateThrows($this->throws)
45001+ || Obj5::validateTimeOnly($this->timeOnly)
45002+ || Obj5::validateTimeOnlyConverter($this->timeOnlyConverter)
45003+ || Obj5::validateTimeZone($this->timeZone)
45004+ || Obj5::validateToJSON($this->toJSON)
45005+ || Obj5::validateToString($this->toString)
45006+ || Obj5::validateTopLevel($this->topLevel)
45007+ || Obj5::validateTransient($this->transient)
45008+ || Obj5::validateTrue($this->true)
45009+ || Obj5::validateTry($this->try)
45010+ || Obj5::validateType($this->type)
45011+ || Obj5::validateTypealias($this->typealias)
45012+ || Obj5::validateTypedef($this->typedef)
45013+ || Obj5::validateTypeid($this->typeid)
45014+ || Obj5::validateTypename($this->typename)
45015+ || Obj5::validateTypeof($this->typeof)
45016+ || Obj5::validateUint($this->uint)
45017+ || Obj5::validateUlong($this->ulong)
45018+ || Obj5::validateUnchecked($this->unchecked)
45019+ || Obj5::validateUndefined($this->undefined)
45020+ || Obj5::validateUnion($this->union)
45021+ || Obj5::validateUnowned($this->unowned)
45022+ || Obj5::validateUnsafe($this->unsafe)
45023+ || Obj5::validateUnsigned($this->unsigned)
45024+ || Obj5::validateUshort($this->ushort)
45025+ || Obj5::validateUsing($this->using)
45026+ || Obj5::validateUtf8JSONReader($this->utf8JSONReader)
45027+ || Obj5::validateUtf8JSONWriter($this->utf8JSONWriter);
4486945028 }
4487045029
4487145030 /**
44872- * @throws Exception
4487345031 * @return stdClass
44874- */
44875- public function toVar(): stdClass {
44876- if (Obj5::validateVar($this->var)) {
44877- return $this->var->to(); /*class*/
44878- }
44879- throw new Exception('never get to this Obj5::var');
44880- }
44881-
44882- /**
44883- * @param VarClass
44884- * @return bool
44885- * @throws Exception
44886- */
44887- public static function validateVar(VarClass $value): bool {
44888- $value->validate();
44889- return true;
44890- }
44891-
44892- /**
44893- * @throws Exception
44894- * @return VarClass
44895- */
44896- public function getVar(): VarClass {
44897- if (Obj5::validateVar($this->var)) {
44898- return $this->var;
44899- }
44900- throw new Exception('never get to getVar Obj5::var');
44901- }
44902-
44903- /**
44904- * @return VarClass
44905- */
44906- public static function sampleVar(): VarClass {
44907- return VarClass::sample(); /*94:var*/
44908- }
44909-
44910- /**
44911- * @param stdClass $value
44912- * @throws Exception
44913- * @return Virtual
44914- */
44915- public static function fromVirtual(stdClass $value): Virtual {
44916- return Virtual::from($value); /*class*/
44917- }
44918-
44919- /**
44920- * @throws Exception
44921- * @return stdClass
44922- */
44923- public function toVirtual(): stdClass {
44924- if (Obj5::validateVirtual($this->virtual)) {
44925- return $this->virtual->to(); /*class*/
44926- }
44927- throw new Exception('never get to this Obj5::virtual');
44928- }
44929-
44930- /**
44931- * @param Virtual
44932- * @return bool
44933- * @throws Exception
44934- */
44935- public static function validateVirtual(Virtual $value): bool {
44936- $value->validate();
44937- return true;
44938- }
44939-
44940- /**
44941- * @throws Exception
44942- * @return Virtual
44943- */
44944- public function getVirtual(): Virtual {
44945- if (Obj5::validateVirtual($this->virtual)) {
44946- return $this->virtual;
44947- }
44948- throw new Exception('never get to getVirtual Obj5::virtual');
44949- }
44950-
44951- /**
44952- * @return Virtual
44953- */
44954- public static function sampleVirtual(): Virtual {
44955- return Virtual::sample(); /*95:virtual*/
44956- }
44957-
44958- /**
44959- * @throws Exception
44960- * @return bool
44961- */
44962- public function validate(): bool {
44963- return Obj5::validateDummy($this->dummy)
44964- || Obj5::validateObj5Self($this->obj5Self)
44965- || Obj5::validateObj5This($this->obj5This)
44966- || Obj5::validateObj5True($this->obj5True)
44967- || Obj5::validateObj5Type($this->obj5Type)
44968- || Obj5::validateSelf($this->self)
44969- || Obj5::validateSendable($this->sendable)
44970- || Obj5::validateSerialize($this->serialize)
44971- || Obj5::validateSerializerProvider($this->serializerProvider)
44972- || Obj5::validateSet($this->set)
44973- || Obj5::validateShort($this->short)
44974- || Obj5::validateSigned($this->signed)
44975- || Obj5::validateSimpleModule($this->simpleModule)
44976- || Obj5::validateSizeof($this->sizeof)
44977- || Obj5::validateStackalloc($this->stackalloc)
44978- || Obj5::validateStandards($this->standards)
44979- || Obj5::validateStatic($this->static)
44980- || Obj5::validateStaticAssert($this->staticAssert)
44981- || Obj5::validateStaticCast($this->staticCast)
44982- || Obj5::validateStdDeserializer($this->stdDeserializer)
44983- || Obj5::validateStdSerializer($this->stdSerializer)
44984- || Obj5::validateStrictfp($this->strictfp)
44985- || Obj5::validateString($this->string)
44986- || Obj5::validateStruct($this->struct)
44987- || Obj5::validateSubscript($this->subscript)
44988- || Obj5::validateSuper($this->super)
44989- || Obj5::validateSwitch($this->switch)
44990- || Obj5::validateSymbol($this->symbol)
44991- || Obj5::validateSynchronized($this->synchronized)
44992- || Obj5::validateSystem($this->system)
44993- || Obj5::validateTemplate($this->template)
44994- || Obj5::validateThen($this->then)
44995- || Obj5::validateThreadLocal($this->threadLocal)
44996- || Obj5::validateThrow($this->throw)
44997- || Obj5::validateThrows($this->throws)
44998- || Obj5::validateTimeOnly($this->timeOnly)
44999- || Obj5::validateTimeOnlyConverter($this->timeOnlyConverter)
45000- || Obj5::validateTimeZone($this->timeZone)
45001- || Obj5::validateToJSON($this->toJSON)
45002- || Obj5::validateToString($this->toString)
45003- || Obj5::validateTopLevel($this->topLevel)
45004- || Obj5::validateTransient($this->transient)
45005- || Obj5::validateTrue($this->true)
45006- || Obj5::validateTry($this->try)
45007- || Obj5::validateType($this->type)
45008- || Obj5::validateTypealias($this->typealias)
45009- || Obj5::validateTypedef($this->typedef)
45010- || Obj5::validateTypeid($this->typeid)
45011- || Obj5::validateTypename($this->typename)
45012- || Obj5::validateTypeof($this->typeof)
45013- || Obj5::validateUint($this->uint)
45014- || Obj5::validateUlong($this->ulong)
45015- || Obj5::validateUnchecked($this->unchecked)
45016- || Obj5::validateUndefined($this->undefined)
45017- || Obj5::validateUnion($this->union)
45018- || Obj5::validateUnowned($this->unowned)
45019- || Obj5::validateUnsafe($this->unsafe)
45020- || Obj5::validateUnsigned($this->unsigned)
45021- || Obj5::validateUshort($this->ushort)
45022- || Obj5::validateUsing($this->using)
45023- || Obj5::validateUtf8JSONReader($this->utf8JSONReader)
45024- || Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)
45025- || Obj5::validateUUID($this->uuid)
45026- || Obj5::validateVar($this->var)
45027- || Obj5::validateVirtual($this->virtual);
45028- }
45029-
45030- /**
45031- * @return stdClass
45032- * @throws Exception
45032+ * @throws Exception
4503345033 */
4503445034 public function to(): stdClass {
4503545035 $out = new stdClass();
@@ -45038,6 +45038,9 @@ class Obj5 {
4503845038 $out->{'this'} = $this->toObj5This();
4503945039 $out->{'true'} = $this->toObj5True();
4504045040 $out->{'type'} = $this->toObj5Type();
45041+ $out->{'sealed'} = $this->toSealed();
45042+ $out->{'SEL'} = $this->toSel();
45043+ $out->{'select'} = $this->toSelect();
4504145044 $out->{'Self'} = $this->toSelf();
4504245045 $out->{'Sendable'} = $this->toSendable();
4504345046 $out->{'serialize'} = $this->toSerialize();
@@ -45095,9 +45098,6 @@ class Obj5 {
4509545098 $out->{'using'} = $this->toUsing();
4509645099 $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader();
4509745100 $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter();
45098- $out->{'UUID'} = $this->toUUID();
45099- $out->{'var'} = $this->toVar();
45100- $out->{'virtual'} = $this->toVirtual();
4510145101 return $out;
4510245102 }
4510345103
@@ -45122,6 +45122,15 @@ class Obj5 {
4512245122 if (!property_exists($obj, 'type')) {
4512345123 throw new Exception("Missing required property");
4512445124 }
45125+ if (!property_exists($obj, 'sealed')) {
45126+ throw new Exception("Missing required property");
45127+ }
45128+ if (!property_exists($obj, 'SEL')) {
45129+ throw new Exception("Missing required property");
45130+ }
45131+ if (!property_exists($obj, 'select')) {
45132+ throw new Exception("Missing required property");
45133+ }
4512545134 if (!property_exists($obj, 'Self')) {
4512645135 throw new Exception("Missing required property");
4512745136 }
@@ -45293,21 +45302,15 @@ class Obj5 {
4529345302 if (!property_exists($obj, 'Utf8JsonWriter')) {
4529445303 throw new Exception("Missing required property");
4529545304 }
45296- if (!property_exists($obj, 'UUID')) {
45297- throw new Exception("Missing required property");
45298- }
45299- if (!property_exists($obj, 'var')) {
45300- throw new Exception("Missing required property");
45301- }
45302- if (!property_exists($obj, 'virtual')) {
45303- throw new Exception("Missing required property");
45304- }
4530545305 return new Obj5(
4530645306 Obj5::fromDummy($obj->{'dummy'})
4530745307 ,Obj5::fromObj5Self($obj->{'self'})
4530845308 ,Obj5::fromObj5This($obj->{'this'})
4530945309 ,Obj5::fromObj5True($obj->{'true'})
4531045310 ,Obj5::fromObj5Type($obj->{'type'})
45311+ ,Obj5::fromSealed($obj->{'sealed'})
45312+ ,Obj5::fromSel($obj->{'SEL'})
45313+ ,Obj5::fromSelect($obj->{'select'})
4531145314 ,Obj5::fromSelf($obj->{'Self'})
4531245315 ,Obj5::fromSendable($obj->{'Sendable'})
4531345316 ,Obj5::fromSerialize($obj->{'serialize'})
@@ -45365,96 +45368,396 @@ class Obj5 {
4536545368 ,Obj5::fromUsing($obj->{'using'})
4536645369 ,Obj5::fromUtf8JSONReader($obj->{'Utf8JsonReader'})
4536745370 ,Obj5::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'})
45368- ,Obj5::fromUUID($obj->{'UUID'})
45369- ,Obj5::fromVar($obj->{'var'})
45370- ,Obj5::fromVirtual($obj->{'virtual'})
4537145371 );
4537245372 }
4537345373
4537445374 /**
45375- * @return Obj5
45375+ * @return Obj5
45376+ */
45377+ public static function sample(): Obj5 {
45378+ return new Obj5(
45379+ Obj5::sampleDummy()
45380+ ,Obj5::sampleObj5Self()
45381+ ,Obj5::sampleObj5This()
45382+ ,Obj5::sampleObj5True()
45383+ ,Obj5::sampleObj5Type()
45384+ ,Obj5::sampleSealed()
45385+ ,Obj5::sampleSel()
45386+ ,Obj5::sampleSelect()
45387+ ,Obj5::sampleSelf()
45388+ ,Obj5::sampleSendable()
45389+ ,Obj5::sampleSerialize()
45390+ ,Obj5::sampleSerializerProvider()
45391+ ,Obj5::sampleSet()
45392+ ,Obj5::sampleShort()
45393+ ,Obj5::sampleSigned()
45394+ ,Obj5::sampleSimpleModule()
45395+ ,Obj5::sampleSizeof()
45396+ ,Obj5::sampleStackalloc()
45397+ ,Obj5::sampleStandards()
45398+ ,Obj5::sampleStatic()
45399+ ,Obj5::sampleStaticAssert()
45400+ ,Obj5::sampleStaticCast()
45401+ ,Obj5::sampleStdDeserializer()
45402+ ,Obj5::sampleStdSerializer()
45403+ ,Obj5::sampleStrictfp()
45404+ ,Obj5::sampleString()
45405+ ,Obj5::sampleStruct()
45406+ ,Obj5::sampleSubscript()
45407+ ,Obj5::sampleSuper()
45408+ ,Obj5::sampleSwitch()
45409+ ,Obj5::sampleSymbol()
45410+ ,Obj5::sampleSynchronized()
45411+ ,Obj5::sampleSystem()
45412+ ,Obj5::sampleTemplate()
45413+ ,Obj5::sampleThen()
45414+ ,Obj5::sampleThreadLocal()
45415+ ,Obj5::sampleThrow()
45416+ ,Obj5::sampleThrows()
45417+ ,Obj5::sampleTimeOnly()
45418+ ,Obj5::sampleTimeOnlyConverter()
45419+ ,Obj5::sampleTimeZone()
45420+ ,Obj5::sampleToJSON()
45421+ ,Obj5::sampleToString()
45422+ ,Obj5::sampleTopLevel()
45423+ ,Obj5::sampleTransient()
45424+ ,Obj5::sampleTrue()
45425+ ,Obj5::sampleTry()
45426+ ,Obj5::sampleType()
45427+ ,Obj5::sampleTypealias()
45428+ ,Obj5::sampleTypedef()
45429+ ,Obj5::sampleTypeid()
45430+ ,Obj5::sampleTypename()
45431+ ,Obj5::sampleTypeof()
45432+ ,Obj5::sampleUint()
45433+ ,Obj5::sampleUlong()
45434+ ,Obj5::sampleUnchecked()
45435+ ,Obj5::sampleUndefined()
45436+ ,Obj5::sampleUnion()
45437+ ,Obj5::sampleUnowned()
45438+ ,Obj5::sampleUnsafe()
45439+ ,Obj5::sampleUnsigned()
45440+ ,Obj5::sampleUshort()
45441+ ,Obj5::sampleUsing()
45442+ ,Obj5::sampleUtf8JSONReader()
45443+ ,Obj5::sampleUtf8JSONWriter()
45444+ );
45445+ }
45446+}
45447+
45448+// This is an autogenerated file:Obj5Self
45449+
45450+class Obj5Self {
45451+ private int $self; // json:self Required
45452+
45453+ /**
45454+ * @param int $self
45455+ */
45456+ public function __construct(int $self) {
45457+ $this->self = $self;
45458+ }
45459+
45460+ /**
45461+ * @param int $value
45462+ * @throws Exception
45463+ * @return int
45464+ */
45465+ public static function fromSelf(int $value): int {
45466+ return $value; /*int*/
45467+ }
45468+
45469+ /**
45470+ * @throws Exception
45471+ * @return int
45472+ */
45473+ public function toSelf(): int {
45474+ if (Obj5Self::validateSelf($this->self)) {
45475+ return $this->self; /*int*/
45476+ }
45477+ throw new Exception('never get to this Obj5Self::self');
45478+ }
45479+
45480+ /**
45481+ * @param int
45482+ * @return bool
45483+ * @throws Exception
45484+ */
45485+ public static function validateSelf(int $value): bool {
45486+ return true;
45487+ }
45488+
45489+ /**
45490+ * @throws Exception
45491+ * @return int
45492+ */
45493+ public function getSelf(): int {
45494+ if (Obj5Self::validateSelf($this->self)) {
45495+ return $this->self;
45496+ }
45497+ throw new Exception('never get to getSelf Obj5Self::self');
45498+ }
45499+
45500+ /**
45501+ * @return int
45502+ */
45503+ public static function sampleSelf(): int {
45504+ return 31; /*31:self*/
45505+ }
45506+
45507+ /**
45508+ * @throws Exception
45509+ * @return bool
45510+ */
45511+ public function validate(): bool {
45512+ return Obj5Self::validateSelf($this->self);
45513+ }
45514+
45515+ /**
45516+ * @return stdClass
45517+ * @throws Exception
45518+ */
45519+ public function to(): stdClass {
45520+ $out = new stdClass();
45521+ $out->{'self'} = $this->toSelf();
45522+ return $out;
45523+ }
45524+
45525+ /**
45526+ * @param stdClass $obj
45527+ * @return Obj5Self
45528+ * @throws Exception
45529+ */
45530+ public static function from(stdClass $obj): Obj5Self {
45531+ if (!property_exists($obj, 'self')) {
45532+ throw new Exception("Missing required property");
45533+ }
45534+ return new Obj5Self(
45535+ Obj5Self::fromSelf($obj->{'self'})
45536+ );
45537+ }
45538+
45539+ /**
45540+ * @return Obj5Self
45541+ */
45542+ public static function sample(): Obj5Self {
45543+ return new Obj5Self(
45544+ Obj5Self::sampleSelf()
45545+ );
45546+ }
45547+}
45548+
45549+// This is an autogenerated file:This
45550+
45551+class This {
45552+ private int $thisThis; // json:this Required
45553+
45554+ /**
45555+ * @param int $thisThis
45556+ */
45557+ public function __construct(int $thisThis) {
45558+ $this->thisThis = $thisThis;
45559+ }
45560+
45561+ /**
45562+ * @param int $value
45563+ * @throws Exception
45564+ * @return int
45565+ */
45566+ public static function fromThisThis(int $value): int {
45567+ return $value; /*int*/
45568+ }
45569+
45570+ /**
45571+ * @throws Exception
45572+ * @return int
45573+ */
45574+ public function toThisThis(): int {
45575+ if (This::validateThisThis($this->thisThis)) {
45576+ return $this->thisThis; /*int*/
45577+ }
45578+ throw new Exception('never get to this This::thisThis');
45579+ }
45580+
45581+ /**
45582+ * @param int
45583+ * @return bool
45584+ * @throws Exception
45585+ */
45586+ public static function validateThisThis(int $value): bool {
45587+ return true;
45588+ }
45589+
45590+ /**
45591+ * @throws Exception
45592+ * @return int
45593+ */
45594+ public function getThisThis(): int {
45595+ if (This::validateThisThis($this->thisThis)) {
45596+ return $this->thisThis;
45597+ }
45598+ throw new Exception('never get to getThisThis This::thisThis');
45599+ }
45600+
45601+ /**
45602+ * @return int
45603+ */
45604+ public static function sampleThisThis(): int {
45605+ return 31; /*31:thisThis*/
45606+ }
45607+
45608+ /**
45609+ * @throws Exception
45610+ * @return bool
45611+ */
45612+ public function validate(): bool {
45613+ return This::validateThisThis($this->thisThis);
45614+ }
45615+
45616+ /**
45617+ * @return stdClass
45618+ * @throws Exception
45619+ */
45620+ public function to(): stdClass {
45621+ $out = new stdClass();
45622+ $out->{'this'} = $this->toThisThis();
45623+ return $out;
45624+ }
45625+
45626+ /**
45627+ * @param stdClass $obj
45628+ * @return This
45629+ * @throws Exception
45630+ */
45631+ public static function from(stdClass $obj): This {
45632+ if (!property_exists($obj, 'this')) {
45633+ throw new Exception("Missing required property");
45634+ }
45635+ return new This(
45636+ This::fromThisThis($obj->{'this'})
45637+ );
45638+ }
45639+
45640+ /**
45641+ * @return This
45642+ */
45643+ public static function sample(): This {
45644+ return new This(
45645+ This::sampleThisThis()
45646+ );
45647+ }
45648+}
45649+
45650+// This is an autogenerated file:Obj5True
45651+
45652+class Obj5True {
45653+ private int $true; // json:true Required
45654+
45655+ /**
45656+ * @param int $true
45657+ */
45658+ public function __construct(int $true) {
45659+ $this->true = $true;
45660+ }
45661+
45662+ /**
45663+ * @param int $value
45664+ * @throws Exception
45665+ * @return int
45666+ */
45667+ public static function fromTrue(int $value): int {
45668+ return $value; /*int*/
45669+ }
45670+
45671+ /**
45672+ * @throws Exception
45673+ * @return int
45674+ */
45675+ public function toTrue(): int {
45676+ if (Obj5True::validateTrue($this->true)) {
45677+ return $this->true; /*int*/
45678+ }
45679+ throw new Exception('never get to this Obj5True::true');
45680+ }
45681+
45682+ /**
45683+ * @param int
45684+ * @return bool
45685+ * @throws Exception
45686+ */
45687+ public static function validateTrue(int $value): bool {
45688+ return true;
45689+ }
45690+
45691+ /**
45692+ * @throws Exception
45693+ * @return int
45694+ */
45695+ public function getTrue(): int {
45696+ if (Obj5True::validateTrue($this->true)) {
45697+ return $this->true;
45698+ }
45699+ throw new Exception('never get to getTrue Obj5True::true');
45700+ }
45701+
45702+ /**
45703+ * @return int
45704+ */
45705+ public static function sampleTrue(): int {
45706+ return 31; /*31:true*/
45707+ }
45708+
45709+ /**
45710+ * @throws Exception
45711+ * @return bool
45712+ */
45713+ public function validate(): bool {
45714+ return Obj5True::validateTrue($this->true);
45715+ }
45716+
45717+ /**
45718+ * @return stdClass
45719+ * @throws Exception
45720+ */
45721+ public function to(): stdClass {
45722+ $out = new stdClass();
45723+ $out->{'true'} = $this->toTrue();
45724+ return $out;
45725+ }
45726+
45727+ /**
45728+ * @param stdClass $obj
45729+ * @return Obj5True
45730+ * @throws Exception
45731+ */
45732+ public static function from(stdClass $obj): Obj5True {
45733+ if (!property_exists($obj, 'true')) {
45734+ throw new Exception("Missing required property");
45735+ }
45736+ return new Obj5True(
45737+ Obj5True::fromTrue($obj->{'true'})
45738+ );
45739+ }
45740+
45741+ /**
45742+ * @return Obj5True
4537645743 */
45377- public static function sample(): Obj5 {
45378- return new Obj5(
45379- Obj5::sampleDummy()
45380- ,Obj5::sampleObj5Self()
45381- ,Obj5::sampleObj5This()
45382- ,Obj5::sampleObj5True()
45383- ,Obj5::sampleObj5Type()
45384- ,Obj5::sampleSelf()
45385- ,Obj5::sampleSendable()
45386- ,Obj5::sampleSerialize()
45387- ,Obj5::sampleSerializerProvider()
45388- ,Obj5::sampleSet()
45389- ,Obj5::sampleShort()
45390- ,Obj5::sampleSigned()
45391- ,Obj5::sampleSimpleModule()
45392- ,Obj5::sampleSizeof()
45393- ,Obj5::sampleStackalloc()
45394- ,Obj5::sampleStandards()
45395- ,Obj5::sampleStatic()
45396- ,Obj5::sampleStaticAssert()
45397- ,Obj5::sampleStaticCast()
45398- ,Obj5::sampleStdDeserializer()
45399- ,Obj5::sampleStdSerializer()
45400- ,Obj5::sampleStrictfp()
45401- ,Obj5::sampleString()
45402- ,Obj5::sampleStruct()
45403- ,Obj5::sampleSubscript()
45404- ,Obj5::sampleSuper()
45405- ,Obj5::sampleSwitch()
45406- ,Obj5::sampleSymbol()
45407- ,Obj5::sampleSynchronized()
45408- ,Obj5::sampleSystem()
45409- ,Obj5::sampleTemplate()
45410- ,Obj5::sampleThen()
45411- ,Obj5::sampleThreadLocal()
45412- ,Obj5::sampleThrow()
45413- ,Obj5::sampleThrows()
45414- ,Obj5::sampleTimeOnly()
45415- ,Obj5::sampleTimeOnlyConverter()
45416- ,Obj5::sampleTimeZone()
45417- ,Obj5::sampleToJSON()
45418- ,Obj5::sampleToString()
45419- ,Obj5::sampleTopLevel()
45420- ,Obj5::sampleTransient()
45421- ,Obj5::sampleTrue()
45422- ,Obj5::sampleTry()
45423- ,Obj5::sampleType()
45424- ,Obj5::sampleTypealias()
45425- ,Obj5::sampleTypedef()
45426- ,Obj5::sampleTypeid()
45427- ,Obj5::sampleTypename()
45428- ,Obj5::sampleTypeof()
45429- ,Obj5::sampleUint()
45430- ,Obj5::sampleUlong()
45431- ,Obj5::sampleUnchecked()
45432- ,Obj5::sampleUndefined()
45433- ,Obj5::sampleUnion()
45434- ,Obj5::sampleUnowned()
45435- ,Obj5::sampleUnsafe()
45436- ,Obj5::sampleUnsigned()
45437- ,Obj5::sampleUshort()
45438- ,Obj5::sampleUsing()
45439- ,Obj5::sampleUtf8JSONReader()
45440- ,Obj5::sampleUtf8JSONWriter()
45441- ,Obj5::sampleUUID()
45442- ,Obj5::sampleVar()
45443- ,Obj5::sampleVirtual()
45744+ public static function sample(): Obj5True {
45745+ return new Obj5True(
45746+ Obj5True::sampleTrue()
4544445747 );
4544545748 }
4544645749 }
4544745750
45448-// This is an autogenerated file:Obj5Self
45751+// This is an autogenerated file:TypeClass
4544945752
45450-class Obj5Self {
45451- private int $self; // json:self Required
45753+class TypeClass {
45754+ private int $type; // json:type Required
4545245755
4545345756 /**
45454- * @param int $self
45757+ * @param int $type
4545545758 */
45456- public function __construct(int $self) {
45457- $this->self = $self;
45759+ public function __construct(int $type) {
45760+ $this->type = $type;
4545845761 }
4545945762
4546045763 /**
@@ -45462,7 +45765,7 @@ class Obj5Self {
4546245765 * @throws Exception
4546345766 * @return int
4546445767 */
45465- public static function fromSelf(int $value): int {
45768+ public static function fromType(int $value): int {
4546645769 return $value; /*int*/
4546745770 }
4546845771
@@ -45470,11 +45773,11 @@ class Obj5Self {
4547045773 * @throws Exception
4547145774 * @return int
4547245775 */
45473- public function toSelf(): int {
45474- if (Obj5Self::validateSelf($this->self)) {
45475- return $this->self; /*int*/
45776+ public function toType(): int {
45777+ if (TypeClass::validateType($this->type)) {
45778+ return $this->type; /*int*/
4547645779 }
45477- throw new Exception('never get to this Obj5Self::self');
45780+ throw new Exception('never get to this TypeClass::type');
4547845781 }
4547945782
4548045783 /**
@@ -45482,7 +45785,7 @@ class Obj5Self {
4548245785 * @return bool
4548345786 * @throws Exception
4548445787 */
45485- public static function validateSelf(int $value): bool {
45788+ public static function validateType(int $value): bool {
4548645789 return true;
4548745790 }
4548845791
@@ -45490,18 +45793,18 @@ class Obj5Self {
4549045793 * @throws Exception
4549145794 * @return int
4549245795 */
45493- public function getSelf(): int {
45494- if (Obj5Self::validateSelf($this->self)) {
45495- return $this->self;
45796+ public function getType(): int {
45797+ if (TypeClass::validateType($this->type)) {
45798+ return $this->type;
4549645799 }
45497- throw new Exception('never get to getSelf Obj5Self::self');
45800+ throw new Exception('never get to getType TypeClass::type');
4549845801 }
4549945802
4550045803 /**
4550145804 * @return int
4550245805 */
45503- public static function sampleSelf(): int {
45504- return 31; /*31:self*/
45806+ public static function sampleType(): int {
45807+ return 31; /*31:type*/
4550545808 }
4550645809
4550745810 /**
@@ -45509,7 +45812,7 @@ class Obj5Self {
4550945812 * @return bool
4551045813 */
4551145814 public function validate(): bool {
45512- return Obj5Self::validateSelf($this->self);
45815+ return TypeClass::validateType($this->type);
4551345816 }
4551445817
4551545818 /**
@@ -45518,44 +45821,44 @@ class Obj5Self {
4551845821 */
4551945822 public function to(): stdClass {
4552045823 $out = new stdClass();
45521- $out->{'self'} = $this->toSelf();
45824+ $out->{'type'} = $this->toType();
4552245825 return $out;
4552345826 }
4552445827
4552545828 /**
4552645829 * @param stdClass $obj
45527- * @return Obj5Self
45830+ * @return TypeClass
4552845831 * @throws Exception
4552945832 */
45530- public static function from(stdClass $obj): Obj5Self {
45531- if (!property_exists($obj, 'self')) {
45833+ public static function from(stdClass $obj): TypeClass {
45834+ if (!property_exists($obj, 'type')) {
4553245835 throw new Exception("Missing required property");
4553345836 }
45534- return new Obj5Self(
45535- Obj5Self::fromSelf($obj->{'self'})
45837+ return new TypeClass(
45838+ TypeClass::fromType($obj->{'type'})
4553645839 );
4553745840 }
4553845841
4553945842 /**
45540- * @return Obj5Self
45843+ * @return TypeClass
4554145844 */
45542- public static function sample(): Obj5Self {
45543- return new Obj5Self(
45544- Obj5Self::sampleSelf()
45845+ public static function sample(): TypeClass {
45846+ return new TypeClass(
45847+ TypeClass::sampleType()
4554545848 );
4554645849 }
4554745850 }
4554845851
45549-// This is an autogenerated file:This
45852+// This is an autogenerated file:Sealed
4555045853
45551-class This {
45552- private int $thisThis; // json:this Required
45854+class Sealed {
45855+ private int $sealed; // json:sealed Required
4555345856
4555445857 /**
45555- * @param int $thisThis
45858+ * @param int $sealed
4555645859 */
45557- public function __construct(int $thisThis) {
45558- $this->thisThis = $thisThis;
45860+ public function __construct(int $sealed) {
45861+ $this->sealed = $sealed;
4555945862 }
4556045863
4556145864 /**
@@ -45563,7 +45866,7 @@ class This {
4556345866 * @throws Exception
4556445867 * @return int
4556545868 */
45566- public static function fromThisThis(int $value): int {
45869+ public static function fromSealed(int $value): int {
4556745870 return $value; /*int*/
4556845871 }
4556945872
@@ -45571,11 +45874,11 @@ class This {
4557145874 * @throws Exception
4557245875 * @return int
4557345876 */
45574- public function toThisThis(): int {
45575- if (This::validateThisThis($this->thisThis)) {
45576- return $this->thisThis; /*int*/
45877+ public function toSealed(): int {
45878+ if (Sealed::validateSealed($this->sealed)) {
45879+ return $this->sealed; /*int*/
4557745880 }
45578- throw new Exception('never get to this This::thisThis');
45881+ throw new Exception('never get to this Sealed::sealed');
4557945882 }
4558045883
4558145884 /**
@@ -45583,7 +45886,7 @@ class This {
4558345886 * @return bool
4558445887 * @throws Exception
4558545888 */
45586- public static function validateThisThis(int $value): bool {
45889+ public static function validateSealed(int $value): bool {
4558745890 return true;
4558845891 }
4558945892
@@ -45591,18 +45894,18 @@ class This {
4559145894 * @throws Exception
4559245895 * @return int
4559345896 */
45594- public function getThisThis(): int {
45595- if (This::validateThisThis($this->thisThis)) {
45596- return $this->thisThis;
45897+ public function getSealed(): int {
45898+ if (Sealed::validateSealed($this->sealed)) {
45899+ return $this->sealed;
4559745900 }
45598- throw new Exception('never get to getThisThis This::thisThis');
45901+ throw new Exception('never get to getSealed Sealed::sealed');
4559945902 }
4560045903
4560145904 /**
4560245905 * @return int
4560345906 */
45604- public static function sampleThisThis(): int {
45605- return 31; /*31:thisThis*/
45907+ public static function sampleSealed(): int {
45908+ return 31; /*31:sealed*/
4560645909 }
4560745910
4560845911 /**
@@ -45610,7 +45913,7 @@ class This {
4561045913 * @return bool
4561145914 */
4561245915 public function validate(): bool {
45613- return This::validateThisThis($this->thisThis);
45916+ return Sealed::validateSealed($this->sealed);
4561445917 }
4561545918
4561645919 /**
@@ -45619,44 +45922,44 @@ class This {
4561945922 */
4562045923 public function to(): stdClass {
4562145924 $out = new stdClass();
45622- $out->{'this'} = $this->toThisThis();
45925+ $out->{'sealed'} = $this->toSealed();
4562345926 return $out;
4562445927 }
4562545928
4562645929 /**
4562745930 * @param stdClass $obj
45628- * @return This
45931+ * @return Sealed
4562945932 * @throws Exception
4563045933 */
45631- public static function from(stdClass $obj): This {
45632- if (!property_exists($obj, 'this')) {
45934+ public static function from(stdClass $obj): Sealed {
45935+ if (!property_exists($obj, 'sealed')) {
4563345936 throw new Exception("Missing required property");
4563445937 }
45635- return new This(
45636- This::fromThisThis($obj->{'this'})
45938+ return new Sealed(
45939+ Sealed::fromSealed($obj->{'sealed'})
4563745940 );
4563845941 }
4563945942
4564045943 /**
45641- * @return This
45944+ * @return Sealed
4564245945 */
45643- public static function sample(): This {
45644- return new This(
45645- This::sampleThisThis()
45946+ public static function sample(): Sealed {
45947+ return new Sealed(
45948+ Sealed::sampleSealed()
4564645949 );
4564745950 }
4564845951 }
4564945952
45650-// This is an autogenerated file:Obj5True
45953+// This is an autogenerated file:Sel
4565145954
45652-class Obj5True {
45653- private int $true; // json:true Required
45955+class Sel {
45956+ private int $sel; // json:SEL Required
4565445957
4565545958 /**
45656- * @param int $true
45959+ * @param int $sel
4565745960 */
45658- public function __construct(int $true) {
45659- $this->true = $true;
45961+ public function __construct(int $sel) {
45962+ $this->sel = $sel;
4566045963 }
4566145964
4566245965 /**
@@ -45664,7 +45967,7 @@ class Obj5True {
4566445967 * @throws Exception
4566545968 * @return int
4566645969 */
45667- public static function fromTrue(int $value): int {
45970+ public static function fromSel(int $value): int {
4566845971 return $value; /*int*/
4566945972 }
4567045973
@@ -45672,11 +45975,11 @@ class Obj5True {
4567245975 * @throws Exception
4567345976 * @return int
4567445977 */
45675- public function toTrue(): int {
45676- if (Obj5True::validateTrue($this->true)) {
45677- return $this->true; /*int*/
45978+ public function toSel(): int {
45979+ if (Sel::validateSel($this->sel)) {
45980+ return $this->sel; /*int*/
4567845981 }
45679- throw new Exception('never get to this Obj5True::true');
45982+ throw new Exception('never get to this Sel::sel');
4568045983 }
4568145984
4568245985 /**
@@ -45684,7 +45987,7 @@ class Obj5True {
4568445987 * @return bool
4568545988 * @throws Exception
4568645989 */
45687- public static function validateTrue(int $value): bool {
45990+ public static function validateSel(int $value): bool {
4568845991 return true;
4568945992 }
4569045993
@@ -45692,18 +45995,18 @@ class Obj5True {
4569245995 * @throws Exception
4569345996 * @return int
4569445997 */
45695- public function getTrue(): int {
45696- if (Obj5True::validateTrue($this->true)) {
45697- return $this->true;
45998+ public function getSel(): int {
45999+ if (Sel::validateSel($this->sel)) {
46000+ return $this->sel;
4569846001 }
45699- throw new Exception('never get to getTrue Obj5True::true');
46002+ throw new Exception('never get to getSel Sel::sel');
4570046003 }
4570146004
4570246005 /**
4570346006 * @return int
4570446007 */
45705- public static function sampleTrue(): int {
45706- return 31; /*31:true*/
46008+ public static function sampleSel(): int {
46009+ return 31; /*31:sel*/
4570746010 }
4570846011
4570946012 /**
@@ -45711,7 +46014,7 @@ class Obj5True {
4571146014 * @return bool
4571246015 */
4571346016 public function validate(): bool {
45714- return Obj5True::validateTrue($this->true);
46017+ return Sel::validateSel($this->sel);
4571546018 }
4571646019
4571746020 /**
@@ -45720,44 +46023,44 @@ class Obj5True {
4572046023 */
4572146024 public function to(): stdClass {
4572246025 $out = new stdClass();
45723- $out->{'true'} = $this->toTrue();
46026+ $out->{'SEL'} = $this->toSel();
4572446027 return $out;
4572546028 }
4572646029
4572746030 /**
4572846031 * @param stdClass $obj
45729- * @return Obj5True
46032+ * @return Sel
4573046033 * @throws Exception
4573146034 */
45732- public static function from(stdClass $obj): Obj5True {
45733- if (!property_exists($obj, 'true')) {
46035+ public static function from(stdClass $obj): Sel {
46036+ if (!property_exists($obj, 'SEL')) {
4573446037 throw new Exception("Missing required property");
4573546038 }
45736- return new Obj5True(
45737- Obj5True::fromTrue($obj->{'true'})
46039+ return new Sel(
46040+ Sel::fromSel($obj->{'SEL'})
4573846041 );
4573946042 }
4574046043
4574146044 /**
45742- * @return Obj5True
46045+ * @return Sel
4574346046 */
45744- public static function sample(): Obj5True {
45745- return new Obj5True(
45746- Obj5True::sampleTrue()
46047+ public static function sample(): Sel {
46048+ return new Sel(
46049+ Sel::sampleSel()
4574746050 );
4574846051 }
4574946052 }
4575046053
45751-// This is an autogenerated file:TypeClass
46054+// This is an autogenerated file:Select
4575246055
45753-class TypeClass {
45754- private int $type; // json:type Required
46056+class Select {
46057+ private int $select; // json:select Required
4575546058
4575646059 /**
45757- * @param int $type
46060+ * @param int $select
4575846061 */
45759- public function __construct(int $type) {
45760- $this->type = $type;
46062+ public function __construct(int $select) {
46063+ $this->select = $select;
4576146064 }
4576246065
4576346066 /**
@@ -45765,7 +46068,7 @@ class TypeClass {
4576546068 * @throws Exception
4576646069 * @return int
4576746070 */
45768- public static function fromType(int $value): int {
46071+ public static function fromSelect(int $value): int {
4576946072 return $value; /*int*/
4577046073 }
4577146074
@@ -45773,11 +46076,11 @@ class TypeClass {
4577346076 * @throws Exception
4577446077 * @return int
4577546078 */
45776- public function toType(): int {
45777- if (TypeClass::validateType($this->type)) {
45778- return $this->type; /*int*/
46079+ public function toSelect(): int {
46080+ if (Select::validateSelect($this->select)) {
46081+ return $this->select; /*int*/
4577946082 }
45780- throw new Exception('never get to this TypeClass::type');
46083+ throw new Exception('never get to this Select::select');
4578146084 }
4578246085
4578346086 /**
@@ -45785,7 +46088,7 @@ class TypeClass {
4578546088 * @return bool
4578646089 * @throws Exception
4578746090 */
45788- public static function validateType(int $value): bool {
46091+ public static function validateSelect(int $value): bool {
4578946092 return true;
4579046093 }
4579146094
@@ -45793,18 +46096,18 @@ class TypeClass {
4579346096 * @throws Exception
4579446097 * @return int
4579546098 */
45796- public function getType(): int {
45797- if (TypeClass::validateType($this->type)) {
45798- return $this->type;
46099+ public function getSelect(): int {
46100+ if (Select::validateSelect($this->select)) {
46101+ return $this->select;
4579946102 }
45800- throw new Exception('never get to getType TypeClass::type');
46103+ throw new Exception('never get to getSelect Select::select');
4580146104 }
4580246105
4580346106 /**
4580446107 * @return int
4580546108 */
45806- public static function sampleType(): int {
45807- return 31; /*31:type*/
46109+ public static function sampleSelect(): int {
46110+ return 31; /*31:select*/
4580846111 }
4580946112
4581046113 /**
@@ -45812,7 +46115,7 @@ class TypeClass {
4581246115 * @return bool
4581346116 */
4581446117 public function validate(): bool {
45815- return TypeClass::validateType($this->type);
46118+ return Select::validateSelect($this->select);
4581646119 }
4581746120
4581846121 /**
@@ -45821,30 +46124,30 @@ class TypeClass {
4582146124 */
4582246125 public function to(): stdClass {
4582346126 $out = new stdClass();
45824- $out->{'type'} = $this->toType();
46127+ $out->{'select'} = $this->toSelect();
4582546128 return $out;
4582646129 }
4582746130
4582846131 /**
4582946132 * @param stdClass $obj
45830- * @return TypeClass
46133+ * @return Select
4583146134 * @throws Exception
4583246135 */
45833- public static function from(stdClass $obj): TypeClass {
45834- if (!property_exists($obj, 'type')) {
46136+ public static function from(stdClass $obj): Select {
46137+ if (!property_exists($obj, 'select')) {
4583546138 throw new Exception("Missing required property");
4583646139 }
45837- return new TypeClass(
45838- TypeClass::fromType($obj->{'type'})
46140+ return new Select(
46141+ Select::fromSelect($obj->{'select'})
4583946142 );
4584046143 }
4584146144
4584246145 /**
45843- * @return TypeClass
46146+ * @return Select
4584446147 */
45845- public static function sample(): TypeClass {
45846- return new TypeClass(
45847- TypeClass::sampleType()
46148+ public static function sample(): Select {
46149+ return new Select(
46150+ Select::sampleSelect()
4584846151 );
4584946152 }
4585046153 }
@@ -51606,16 +51909,61 @@ class Utf8JSONWriter {
5160651909 }
5160751910 }
5160851911
51609-// This is an autogenerated file:UUID
51912+// This is an autogenerated file:Obj6
5161051913
51611-class UUID {
51612- private int $uuid; // json:UUID Required
51914+class Obj6 {
51915+ private int $dummy; // json:dummy Required
51916+ private UUID $uuid; // json:UUID Required
51917+ private VarClass $var; // json:var Required
51918+ private Virtual $virtual; // json:virtual Required
51919+ private VoidClass $void; // json:void Required
51920+ private Volatile $volatile; // json:volatile Required
51921+ private WcharT $wcharT; // json:wchar_t Required
51922+ private Weak $weak; // json:weak Required
51923+ private Where $where; // json:where Required
51924+ private WhileClass $while; // json:while Required
51925+ private WillSet $willSet; // json:willSet Required
51926+ private With $with; // json:with Required
51927+ private XorClass $xor; // json:xor Required
51928+ private XorEq $xorEq; // json:xor_eq Required
51929+ private Yes $yes; // json:YES Required
51930+ private YieldClass $yield; // json:yield Required
5161351931
5161451932 /**
51615- * @param int $uuid
51933+ * @param int $dummy
51934+ * @param UUID $uuid
51935+ * @param VarClass $var
51936+ * @param Virtual $virtual
51937+ * @param VoidClass $void
51938+ * @param Volatile $volatile
51939+ * @param WcharT $wcharT
51940+ * @param Weak $weak
51941+ * @param Where $where
51942+ * @param WhileClass $while
51943+ * @param WillSet $willSet
51944+ * @param With $with
51945+ * @param XorClass $xor
51946+ * @param XorEq $xorEq
51947+ * @param Yes $yes
51948+ * @param YieldClass $yield
5161651949 */
51617- public function __construct(int $uuid) {
51950+ public function __construct(int $dummy, 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) {
51951+ $this->dummy = $dummy;
5161851952 $this->uuid = $uuid;
51953+ $this->var = $var;
51954+ $this->virtual = $virtual;
51955+ $this->void = $void;
51956+ $this->volatile = $volatile;
51957+ $this->wcharT = $wcharT;
51958+ $this->weak = $weak;
51959+ $this->where = $where;
51960+ $this->while = $while;
51961+ $this->willSet = $willSet;
51962+ $this->with = $with;
51963+ $this->xor = $xor;
51964+ $this->xorEq = $xorEq;
51965+ $this->yes = $yes;
51966+ $this->yield = $yield;
5161951967 }
5162051968
5162151969 /**
@@ -51623,7 +51971,7 @@ class UUID {
5162351971 * @throws Exception
5162451972 * @return int
5162551973 */
51626- public static function fromUUID(int $value): int {
51974+ public static function fromDummy(int $value): int {
5162751975 return $value; /*int*/
5162851976 }
5162951977
@@ -51631,953 +51979,1166 @@ class UUID {
5163151979 * @throws Exception
5163251980 * @return int
5163351981 */
51634- public function toUUID(): int {
51635- if (UUID::validateUUID($this->uuid)) {
51636- return $this->uuid; /*int*/
51982+ public function toDummy(): int {
51983+ if (Obj6::validateDummy($this->dummy)) {
51984+ return $this->dummy; /*int*/
51985+ }
51986+ throw new Exception('never get to this Obj6::dummy');
51987+ }
51988+
51989+ /**
51990+ * @param int
51991+ * @return bool
51992+ * @throws Exception
51993+ */
51994+ public static function validateDummy(int $value): bool {
51995+ return true;
51996+ }
51997+
51998+ /**
51999+ * @throws Exception
52000+ * @return int
52001+ */
52002+ public function getDummy(): int {
52003+ if (Obj6::validateDummy($this->dummy)) {
52004+ return $this->dummy;
52005+ }
52006+ throw new Exception('never get to getDummy Obj6::dummy');
52007+ }
52008+
52009+ /**
52010+ * @return int
52011+ */
52012+ public static function sampleDummy(): int {
52013+ return 31; /*31:dummy*/
52014+ }
52015+
52016+ /**
52017+ * @param stdClass $value
52018+ * @throws Exception
52019+ * @return UUID
52020+ */
52021+ public static function fromUUID(stdClass $value): UUID {
52022+ return UUID::from($value); /*class*/
52023+ }
52024+
52025+ /**
52026+ * @throws Exception
52027+ * @return stdClass
52028+ */
52029+ public function toUUID(): stdClass {
52030+ if (Obj6::validateUUID($this->uuid)) {
52031+ return $this->uuid->to(); /*class*/
52032+ }
52033+ throw new Exception('never get to this Obj6::uuid');
52034+ }
52035+
52036+ /**
52037+ * @param UUID
52038+ * @return bool
52039+ * @throws Exception
52040+ */
52041+ public static function validateUUID(UUID $value): bool {
52042+ $value->validate();
52043+ return true;
52044+ }
52045+
52046+ /**
52047+ * @throws Exception
52048+ * @return UUID
52049+ */
52050+ public function getUUID(): UUID {
52051+ if (Obj6::validateUUID($this->uuid)) {
52052+ return $this->uuid;
52053+ }
52054+ throw new Exception('never get to getUUID Obj6::uuid');
52055+ }
52056+
52057+ /**
52058+ * @return UUID
52059+ */
52060+ public static function sampleUUID(): UUID {
52061+ return UUID::sample(); /*32:uuid*/
52062+ }
52063+
52064+ /**
52065+ * @param stdClass $value
52066+ * @throws Exception
52067+ * @return VarClass
52068+ */
52069+ public static function fromVar(stdClass $value): VarClass {
52070+ return VarClass::from($value); /*class*/
52071+ }
52072+
52073+ /**
52074+ * @throws Exception
52075+ * @return stdClass
52076+ */
52077+ public function toVar(): stdClass {
52078+ if (Obj6::validateVar($this->var)) {
52079+ return $this->var->to(); /*class*/
52080+ }
52081+ throw new Exception('never get to this Obj6::var');
52082+ }
52083+
52084+ /**
52085+ * @param VarClass
52086+ * @return bool
52087+ * @throws Exception
52088+ */
52089+ public static function validateVar(VarClass $value): bool {
52090+ $value->validate();
52091+ return true;
52092+ }
52093+
52094+ /**
52095+ * @throws Exception
52096+ * @return VarClass
52097+ */
52098+ public function getVar(): VarClass {
52099+ if (Obj6::validateVar($this->var)) {
52100+ return $this->var;
52101+ }
52102+ throw new Exception('never get to getVar Obj6::var');
52103+ }
52104+
52105+ /**
52106+ * @return VarClass
52107+ */
52108+ public static function sampleVar(): VarClass {
52109+ return VarClass::sample(); /*33:var*/
52110+ }
52111+
52112+ /**
52113+ * @param stdClass $value
52114+ * @throws Exception
52115+ * @return Virtual
52116+ */
52117+ public static function fromVirtual(stdClass $value): Virtual {
52118+ return Virtual::from($value); /*class*/
52119+ }
52120+
52121+ /**
52122+ * @throws Exception
52123+ * @return stdClass
52124+ */
52125+ public function toVirtual(): stdClass {
52126+ if (Obj6::validateVirtual($this->virtual)) {
52127+ return $this->virtual->to(); /*class*/
5163752128 }
51638- throw new Exception('never get to this UUID::uuid');
52129+ throw new Exception('never get to this Obj6::virtual');
5163952130 }
5164052131
5164152132 /**
51642- * @param int
52133+ * @param Virtual
5164352134 * @return bool
5164452135 * @throws Exception
5164552136 */
51646- public static function validateUUID(int $value): bool {
52137+ public static function validateVirtual(Virtual $value): bool {
52138+ $value->validate();
5164752139 return true;
5164852140 }
5164952141
5165052142 /**
5165152143 * @throws Exception
51652- * @return int
52144+ * @return Virtual
5165352145 */
51654- public function getUUID(): int {
51655- if (UUID::validateUUID($this->uuid)) {
51656- return $this->uuid;
52146+ public function getVirtual(): Virtual {
52147+ if (Obj6::validateVirtual($this->virtual)) {
52148+ return $this->virtual;
5165752149 }
51658- throw new Exception('never get to getUUID UUID::uuid');
52150+ throw new Exception('never get to getVirtual Obj6::virtual');
5165952151 }
5166052152
5166152153 /**
51662- * @return int
52154+ * @return Virtual
5166352155 */
51664- public static function sampleUUID(): int {
51665- return 31; /*31:uuid*/
52156+ public static function sampleVirtual(): Virtual {
52157+ return Virtual::sample(); /*34:virtual*/
5166652158 }
5166752159
5166852160 /**
52161+ * @param stdClass $value
5166952162 * @throws Exception
51670- * @return bool
52163+ * @return VoidClass
5167152164 */
51672- public function validate(): bool {
51673- return UUID::validateUUID($this->uuid);
52165+ public static function fromVoid(stdClass $value): VoidClass {
52166+ return VoidClass::from($value); /*class*/
5167452167 }
5167552168
5167652169 /**
51677- * @return stdClass
5167852170 * @throws Exception
52171+ * @return stdClass
5167952172 */
51680- public function to(): stdClass {
51681- $out = new stdClass();
51682- $out->{'UUID'} = $this->toUUID();
51683- return $out;
52173+ public function toVoid(): stdClass {
52174+ if (Obj6::validateVoid($this->void)) {
52175+ return $this->void->to(); /*class*/
52176+ }
52177+ throw new Exception('never get to this Obj6::void');
5168452178 }
5168552179
5168652180 /**
51687- * @param stdClass $obj
51688- * @return UUID
52181+ * @param VoidClass
52182+ * @return bool
5168952183 * @throws Exception
5169052184 */
51691- public static function from(stdClass $obj): UUID {
51692- if (!property_exists($obj, 'UUID')) {
51693- throw new Exception("Missing required property");
51694- }
51695- return new UUID(
51696- UUID::fromUUID($obj->{'UUID'})
51697- );
52185+ public static function validateVoid(VoidClass $value): bool {
52186+ $value->validate();
52187+ return true;
5169852188 }
5169952189
5170052190 /**
51701- * @return UUID
52191+ * @throws Exception
52192+ * @return VoidClass
5170252193 */
51703- public static function sample(): UUID {
51704- return new UUID(
51705- UUID::sampleUUID()
51706- );
52194+ public function getVoid(): VoidClass {
52195+ if (Obj6::validateVoid($this->void)) {
52196+ return $this->void;
52197+ }
52198+ throw new Exception('never get to getVoid Obj6::void');
5170752199 }
51708-}
51709-
51710-// This is an autogenerated file:VarClass
51711-
51712-class VarClass {
51713- private int $var; // json:var Required
5171452200
5171552201 /**
51716- * @param int $var
52202+ * @return VoidClass
5171752203 */
51718- public function __construct(int $var) {
51719- $this->var = $var;
52204+ public static function sampleVoid(): VoidClass {
52205+ return VoidClass::sample(); /*35:void*/
5172052206 }
5172152207
5172252208 /**
51723- * @param int $value
52209+ * @param stdClass $value
5172452210 * @throws Exception
51725- * @return int
52211+ * @return Volatile
5172652212 */
51727- public static function fromVar(int $value): int {
51728- return $value; /*int*/
52213+ public static function fromVolatile(stdClass $value): Volatile {
52214+ return Volatile::from($value); /*class*/
5172952215 }
5173052216
5173152217 /**
5173252218 * @throws Exception
51733- * @return int
52219+ * @return stdClass
5173452220 */
51735- public function toVar(): int {
51736- if (VarClass::validateVar($this->var)) {
51737- return $this->var; /*int*/
52221+ public function toVolatile(): stdClass {
52222+ if (Obj6::validateVolatile($this->volatile)) {
52223+ return $this->volatile->to(); /*class*/
5173852224 }
51739- throw new Exception('never get to this VarClass::var');
52225+ throw new Exception('never get to this Obj6::volatile');
5174052226 }
5174152227
5174252228 /**
51743- * @param int
52229+ * @param Volatile
5174452230 * @return bool
5174552231 * @throws Exception
5174652232 */
51747- public static function validateVar(int $value): bool {
52233+ public static function validateVolatile(Volatile $value): bool {
52234+ $value->validate();
5174852235 return true;
5174952236 }
5175052237
5175152238 /**
5175252239 * @throws Exception
51753- * @return int
52240+ * @return Volatile
5175452241 */
51755- public function getVar(): int {
51756- if (VarClass::validateVar($this->var)) {
51757- return $this->var;
52242+ public function getVolatile(): Volatile {
52243+ if (Obj6::validateVolatile($this->volatile)) {
52244+ return $this->volatile;
5175852245 }
51759- throw new Exception('never get to getVar VarClass::var');
52246+ throw new Exception('never get to getVolatile Obj6::volatile');
5176052247 }
5176152248
5176252249 /**
51763- * @return int
52250+ * @return Volatile
5176452251 */
51765- public static function sampleVar(): int {
51766- return 31; /*31:var*/
52252+ public static function sampleVolatile(): Volatile {
52253+ return Volatile::sample(); /*36:volatile*/
5176752254 }
5176852255
5176952256 /**
52257+ * @param stdClass $value
5177052258 * @throws Exception
51771- * @return bool
52259+ * @return WcharT
5177252260 */
51773- public function validate(): bool {
51774- return VarClass::validateVar($this->var);
52261+ public static function fromWcharT(stdClass $value): WcharT {
52262+ return WcharT::from($value); /*class*/
5177552263 }
5177652264
5177752265 /**
51778- * @return stdClass
5177952266 * @throws Exception
52267+ * @return stdClass
5178052268 */
51781- public function to(): stdClass {
51782- $out = new stdClass();
51783- $out->{'var'} = $this->toVar();
51784- return $out;
52269+ public function toWcharT(): stdClass {
52270+ if (Obj6::validateWcharT($this->wcharT)) {
52271+ return $this->wcharT->to(); /*class*/
52272+ }
52273+ throw new Exception('never get to this Obj6::wcharT');
5178552274 }
5178652275
5178752276 /**
51788- * @param stdClass $obj
51789- * @return VarClass
52277+ * @param WcharT
52278+ * @return bool
5179052279 * @throws Exception
5179152280 */
51792- public static function from(stdClass $obj): VarClass {
51793- if (!property_exists($obj, 'var')) {
51794- throw new Exception("Missing required property");
51795- }
51796- return new VarClass(
51797- VarClass::fromVar($obj->{'var'})
51798- );
52281+ public static function validateWcharT(WcharT $value): bool {
52282+ $value->validate();
52283+ return true;
5179952284 }
5180052285
5180152286 /**
51802- * @return VarClass
52287+ * @throws Exception
52288+ * @return WcharT
5180352289 */
51804- public static function sample(): VarClass {
51805- return new VarClass(
51806- VarClass::sampleVar()
51807- );
52290+ public function getWcharT(): WcharT {
52291+ if (Obj6::validateWcharT($this->wcharT)) {
52292+ return $this->wcharT;
52293+ }
52294+ throw new Exception('never get to getWcharT Obj6::wcharT');
5180852295 }
51809-}
51810-
51811-// This is an autogenerated file:Virtual
51812-
51813-class Virtual {
51814- private int $virtual; // json:virtual Required
5181552296
5181652297 /**
51817- * @param int $virtual
52298+ * @return WcharT
5181852299 */
51819- public function __construct(int $virtual) {
51820- $this->virtual = $virtual;
52300+ public static function sampleWcharT(): WcharT {
52301+ return WcharT::sample(); /*37:wcharT*/
5182152302 }
5182252303
5182352304 /**
51824- * @param int $value
52305+ * @param stdClass $value
5182552306 * @throws Exception
51826- * @return int
52307+ * @return Weak
5182752308 */
51828- public static function fromVirtual(int $value): int {
51829- return $value; /*int*/
52309+ public static function fromWeak(stdClass $value): Weak {
52310+ return Weak::from($value); /*class*/
5183052311 }
5183152312
5183252313 /**
5183352314 * @throws Exception
51834- * @return int
52315+ * @return stdClass
5183552316 */
51836- public function toVirtual(): int {
51837- if (Virtual::validateVirtual($this->virtual)) {
51838- return $this->virtual; /*int*/
52317+ public function toWeak(): stdClass {
52318+ if (Obj6::validateWeak($this->weak)) {
52319+ return $this->weak->to(); /*class*/
5183952320 }
51840- throw new Exception('never get to this Virtual::virtual');
52321+ throw new Exception('never get to this Obj6::weak');
5184152322 }
5184252323
5184352324 /**
51844- * @param int
52325+ * @param Weak
5184552326 * @return bool
5184652327 * @throws Exception
5184752328 */
51848- public static function validateVirtual(int $value): bool {
52329+ public static function validateWeak(Weak $value): bool {
52330+ $value->validate();
5184952331 return true;
5185052332 }
5185152333
5185252334 /**
5185352335 * @throws Exception
51854- * @return int
52336+ * @return Weak
5185552337 */
51856- public function getVirtual(): int {
51857- if (Virtual::validateVirtual($this->virtual)) {
51858- return $this->virtual;
52338+ public function getWeak(): Weak {
52339+ if (Obj6::validateWeak($this->weak)) {
52340+ return $this->weak;
5185952341 }
51860- throw new Exception('never get to getVirtual Virtual::virtual');
51861- }
51862-
51863- /**
51864- * @return int
51865- */
51866- public static function sampleVirtual(): int {
51867- return 31; /*31:virtual*/
52342+ throw new Exception('never get to getWeak Obj6::weak');
5186852343 }
5186952344
5187052345 /**
51871- * @throws Exception
51872- * @return bool
52346+ * @return Weak
5187352347 */
51874- public function validate(): bool {
51875- return Virtual::validateVirtual($this->virtual);
52348+ public static function sampleWeak(): Weak {
52349+ return Weak::sample(); /*38:weak*/
5187652350 }
5187752351
5187852352 /**
51879- * @return stdClass
52353+ * @param stdClass $value
5188052354 * @throws Exception
52355+ * @return Where
5188152356 */
51882- public function to(): stdClass {
51883- $out = new stdClass();
51884- $out->{'virtual'} = $this->toVirtual();
51885- return $out;
52357+ public static function fromWhere(stdClass $value): Where {
52358+ return Where::from($value); /*class*/
5188652359 }
5188752360
5188852361 /**
51889- * @param stdClass $obj
51890- * @return Virtual
5189152362 * @throws Exception
52363+ * @return stdClass
5189252364 */
51893- public static function from(stdClass $obj): Virtual {
51894- if (!property_exists($obj, 'virtual')) {
51895- throw new Exception("Missing required property");
52365+ public function toWhere(): stdClass {
52366+ if (Obj6::validateWhere($this->where)) {
52367+ return $this->where->to(); /*class*/
5189652368 }
51897- return new Virtual(
51898- Virtual::fromVirtual($obj->{'virtual'})
51899- );
52369+ throw new Exception('never get to this Obj6::where');
5190052370 }
5190152371
5190252372 /**
51903- * @return Virtual
52373+ * @param Where
52374+ * @return bool
52375+ * @throws Exception
5190452376 */
51905- public static function sample(): Virtual {
51906- return new Virtual(
51907- Virtual::sampleVirtual()
51908- );
51909- }
51910-}
51911-
51912-// This is an autogenerated file:Obj6
52377+ public static function validateWhere(Where $value): bool {
52378+ $value->validate();
52379+ return true;
52380+ }
5191352381
51914-class Obj6 {
51915- private int $dummy; // json:dummy Required
51916- private VoidClass $void; // json:void Required
51917- private Volatile $volatile; // json:volatile Required
51918- private WcharT $wcharT; // json:wchar_t Required
51919- private Weak $weak; // json:weak Required
51920- private Where $where; // json:where Required
51921- private WhileClass $while; // json:while Required
51922- private WillSet $willSet; // json:willSet Required
51923- private With $with; // json:with Required
51924- private XorClass $xor; // json:xor Required
51925- private XorEq $xorEq; // json:xor_eq Required
51926- private Yes $yes; // json:YES Required
51927- private YieldClass $yield; // json:yield Required
52382+ /**
52383+ * @throws Exception
52384+ * @return Where
52385+ */
52386+ public function getWhere(): Where {
52387+ if (Obj6::validateWhere($this->where)) {
52388+ return $this->where;
52389+ }
52390+ throw new Exception('never get to getWhere Obj6::where');
52391+ }
5192852392
5192952393 /**
51930- * @param int $dummy
51931- * @param VoidClass $void
51932- * @param Volatile $volatile
51933- * @param WcharT $wcharT
51934- * @param Weak $weak
51935- * @param Where $where
51936- * @param WhileClass $while
51937- * @param WillSet $willSet
51938- * @param With $with
51939- * @param XorClass $xor
51940- * @param XorEq $xorEq
51941- * @param Yes $yes
51942- * @param YieldClass $yield
52394+ * @return Where
5194352395 */
51944- public function __construct(int $dummy, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) {
51945- $this->dummy = $dummy;
51946- $this->void = $void;
51947- $this->volatile = $volatile;
51948- $this->wcharT = $wcharT;
51949- $this->weak = $weak;
51950- $this->where = $where;
51951- $this->while = $while;
51952- $this->willSet = $willSet;
51953- $this->with = $with;
51954- $this->xor = $xor;
51955- $this->xorEq = $xorEq;
51956- $this->yes = $yes;
51957- $this->yield = $yield;
52396+ public static function sampleWhere(): Where {
52397+ return Where::sample(); /*39:where*/
5195852398 }
5195952399
5196052400 /**
51961- * @param int $value
52401+ * @param stdClass $value
5196252402 * @throws Exception
51963- * @return int
52403+ * @return WhileClass
5196452404 */
51965- public static function fromDummy(int $value): int {
51966- return $value; /*int*/
52405+ public static function fromWhile(stdClass $value): WhileClass {
52406+ return WhileClass::from($value); /*class*/
5196752407 }
5196852408
5196952409 /**
5197052410 * @throws Exception
51971- * @return int
52411+ * @return stdClass
5197252412 */
51973- public function toDummy(): int {
51974- if (Obj6::validateDummy($this->dummy)) {
51975- return $this->dummy; /*int*/
52413+ public function toWhile(): stdClass {
52414+ if (Obj6::validateWhile($this->while)) {
52415+ return $this->while->to(); /*class*/
5197652416 }
51977- throw new Exception('never get to this Obj6::dummy');
52417+ throw new Exception('never get to this Obj6::while');
5197852418 }
5197952419
5198052420 /**
51981- * @param int
52421+ * @param WhileClass
5198252422 * @return bool
5198352423 * @throws Exception
5198452424 */
51985- public static function validateDummy(int $value): bool {
52425+ public static function validateWhile(WhileClass $value): bool {
52426+ $value->validate();
5198652427 return true;
5198752428 }
5198852429
5198952430 /**
5199052431 * @throws Exception
51991- * @return int
52432+ * @return WhileClass
5199252433 */
51993- public function getDummy(): int {
51994- if (Obj6::validateDummy($this->dummy)) {
51995- return $this->dummy;
52434+ public function getWhile(): WhileClass {
52435+ if (Obj6::validateWhile($this->while)) {
52436+ return $this->while;
5199652437 }
51997- throw new Exception('never get to getDummy Obj6::dummy');
52438+ throw new Exception('never get to getWhile Obj6::while');
5199852439 }
5199952440
5200052441 /**
52001- * @return int
52442+ * @return WhileClass
5200252443 */
52003- public static function sampleDummy(): int {
52004- return 31; /*31:dummy*/
52444+ public static function sampleWhile(): WhileClass {
52445+ return WhileClass::sample(); /*40:while*/
5200552446 }
5200652447
5200752448 /**
5200852449 * @param stdClass $value
5200952450 * @throws Exception
52010- * @return VoidClass
52451+ * @return WillSet
5201152452 */
52012- public static function fromVoid(stdClass $value): VoidClass {
52013- return VoidClass::from($value); /*class*/
52453+ public static function fromWillSet(stdClass $value): WillSet {
52454+ return WillSet::from($value); /*class*/
5201452455 }
5201552456
5201652457 /**
5201752458 * @throws Exception
5201852459 * @return stdClass
5201952460 */
52020- public function toVoid(): stdClass {
52021- if (Obj6::validateVoid($this->void)) {
52022- return $this->void->to(); /*class*/
52461+ public function toWillSet(): stdClass {
52462+ if (Obj6::validateWillSet($this->willSet)) {
52463+ return $this->willSet->to(); /*class*/
5202352464 }
52024- throw new Exception('never get to this Obj6::void');
52465+ throw new Exception('never get to this Obj6::willSet');
5202552466 }
5202652467
5202752468 /**
52028- * @param VoidClass
52469+ * @param WillSet
5202952470 * @return bool
5203052471 * @throws Exception
5203152472 */
52032- public static function validateVoid(VoidClass $value): bool {
52473+ public static function validateWillSet(WillSet $value): bool {
5203352474 $value->validate();
5203452475 return true;
5203552476 }
5203652477
5203752478 /**
5203852479 * @throws Exception
52039- * @return VoidClass
52480+ * @return WillSet
5204052481 */
52041- public function getVoid(): VoidClass {
52042- if (Obj6::validateVoid($this->void)) {
52043- return $this->void;
52482+ public function getWillSet(): WillSet {
52483+ if (Obj6::validateWillSet($this->willSet)) {
52484+ return $this->willSet;
5204452485 }
52045- throw new Exception('never get to getVoid Obj6::void');
52486+ throw new Exception('never get to getWillSet Obj6::willSet');
5204652487 }
5204752488
5204852489 /**
52049- * @return VoidClass
52490+ * @return WillSet
5205052491 */
52051- public static function sampleVoid(): VoidClass {
52052- return VoidClass::sample(); /*32:void*/
52492+ public static function sampleWillSet(): WillSet {
52493+ return WillSet::sample(); /*41:willSet*/
5205352494 }
5205452495
5205552496 /**
5205652497 * @param stdClass $value
5205752498 * @throws Exception
52058- * @return Volatile
52499+ * @return With
5205952500 */
52060- public static function fromVolatile(stdClass $value): Volatile {
52061- return Volatile::from($value); /*class*/
52501+ public static function fromWith(stdClass $value): With {
52502+ return With::from($value); /*class*/
5206252503 }
5206352504
5206452505 /**
5206552506 * @throws Exception
5206652507 * @return stdClass
5206752508 */
52068- public function toVolatile(): stdClass {
52069- if (Obj6::validateVolatile($this->volatile)) {
52070- return $this->volatile->to(); /*class*/
52509+ public function toWith(): stdClass {
52510+ if (Obj6::validateWith($this->with)) {
52511+ return $this->with->to(); /*class*/
5207152512 }
52072- throw new Exception('never get to this Obj6::volatile');
52513+ throw new Exception('never get to this Obj6::with');
5207352514 }
5207452515
5207552516 /**
52076- * @param Volatile
52517+ * @param With
5207752518 * @return bool
5207852519 * @throws Exception
5207952520 */
52080- public static function validateVolatile(Volatile $value): bool {
52521+ public static function validateWith(With $value): bool {
5208152522 $value->validate();
5208252523 return true;
5208352524 }
5208452525
5208552526 /**
5208652527 * @throws Exception
52087- * @return Volatile
52528+ * @return With
5208852529 */
52089- public function getVolatile(): Volatile {
52090- if (Obj6::validateVolatile($this->volatile)) {
52091- return $this->volatile;
52530+ public function getWith(): With {
52531+ if (Obj6::validateWith($this->with)) {
52532+ return $this->with;
5209252533 }
52093- throw new Exception('never get to getVolatile Obj6::volatile');
52534+ throw new Exception('never get to getWith Obj6::with');
5209452535 }
5209552536
5209652537 /**
52097- * @return Volatile
52538+ * @return With
5209852539 */
52099- public static function sampleVolatile(): Volatile {
52100- return Volatile::sample(); /*33:volatile*/
52540+ public static function sampleWith(): With {
52541+ return With::sample(); /*42:with*/
5210152542 }
5210252543
5210352544 /**
5210452545 * @param stdClass $value
5210552546 * @throws Exception
52106- * @return WcharT
52547+ * @return XorClass
5210752548 */
52108- public static function fromWcharT(stdClass $value): WcharT {
52109- return WcharT::from($value); /*class*/
52549+ public static function fromXor(stdClass $value): XorClass {
52550+ return XorClass::from($value); /*class*/
5211052551 }
5211152552
5211252553 /**
5211352554 * @throws Exception
5211452555 * @return stdClass
5211552556 */
52116- public function toWcharT(): stdClass {
52117- if (Obj6::validateWcharT($this->wcharT)) {
52118- return $this->wcharT->to(); /*class*/
52557+ public function toXor(): stdClass {
52558+ if (Obj6::validateXor($this->xor)) {
52559+ return $this->xor->to(); /*class*/
5211952560 }
52120- throw new Exception('never get to this Obj6::wcharT');
52561+ throw new Exception('never get to this Obj6::xor');
5212152562 }
5212252563
5212352564 /**
52124- * @param WcharT
52565+ * @param XorClass
5212552566 * @return bool
5212652567 * @throws Exception
5212752568 */
52128- public static function validateWcharT(WcharT $value): bool {
52569+ public static function validateXor(XorClass $value): bool {
5212952570 $value->validate();
5213052571 return true;
5213152572 }
5213252573
5213352574 /**
5213452575 * @throws Exception
52135- * @return WcharT
52576+ * @return XorClass
5213652577 */
52137- public function getWcharT(): WcharT {
52138- if (Obj6::validateWcharT($this->wcharT)) {
52139- return $this->wcharT;
52578+ public function getXor(): XorClass {
52579+ if (Obj6::validateXor($this->xor)) {
52580+ return $this->xor;
5214052581 }
52141- throw new Exception('never get to getWcharT Obj6::wcharT');
52582+ throw new Exception('never get to getXor Obj6::xor');
5214252583 }
5214352584
5214452585 /**
52145- * @return WcharT
52586+ * @return XorClass
5214652587 */
52147- public static function sampleWcharT(): WcharT {
52148- return WcharT::sample(); /*34:wcharT*/
52588+ public static function sampleXor(): XorClass {
52589+ return XorClass::sample(); /*43:xor*/
5214952590 }
5215052591
5215152592 /**
5215252593 * @param stdClass $value
5215352594 * @throws Exception
52154- * @return Weak
52595+ * @return XorEq
5215552596 */
52156- public static function fromWeak(stdClass $value): Weak {
52157- return Weak::from($value); /*class*/
52597+ public static function fromXorEq(stdClass $value): XorEq {
52598+ return XorEq::from($value); /*class*/
5215852599 }
5215952600
5216052601 /**
5216152602 * @throws Exception
5216252603 * @return stdClass
5216352604 */
52164- public function toWeak(): stdClass {
52165- if (Obj6::validateWeak($this->weak)) {
52166- return $this->weak->to(); /*class*/
52605+ public function toXorEq(): stdClass {
52606+ if (Obj6::validateXorEq($this->xorEq)) {
52607+ return $this->xorEq->to(); /*class*/
5216752608 }
52168- throw new Exception('never get to this Obj6::weak');
52609+ throw new Exception('never get to this Obj6::xorEq');
5216952610 }
5217052611
5217152612 /**
52172- * @param Weak
52613+ * @param XorEq
5217352614 * @return bool
5217452615 * @throws Exception
5217552616 */
52176- public static function validateWeak(Weak $value): bool {
52617+ public static function validateXorEq(XorEq $value): bool {
5217752618 $value->validate();
5217852619 return true;
5217952620 }
5218052621
5218152622 /**
5218252623 * @throws Exception
52183- * @return Weak
52624+ * @return XorEq
5218452625 */
52185- public function getWeak(): Weak {
52186- if (Obj6::validateWeak($this->weak)) {
52187- return $this->weak;
52626+ public function getXorEq(): XorEq {
52627+ if (Obj6::validateXorEq($this->xorEq)) {
52628+ return $this->xorEq;
5218852629 }
52189- throw new Exception('never get to getWeak Obj6::weak');
52630+ throw new Exception('never get to getXorEq Obj6::xorEq');
5219052631 }
5219152632
5219252633 /**
52193- * @return Weak
52634+ * @return XorEq
5219452635 */
52195- public static function sampleWeak(): Weak {
52196- return Weak::sample(); /*35:weak*/
52636+ public static function sampleXorEq(): XorEq {
52637+ return XorEq::sample(); /*44:xorEq*/
5219752638 }
5219852639
5219952640 /**
5220052641 * @param stdClass $value
5220152642 * @throws Exception
52202- * @return Where
52643+ * @return Yes
5220352644 */
52204- public static function fromWhere(stdClass $value): Where {
52205- return Where::from($value); /*class*/
52645+ public static function fromYes(stdClass $value): Yes {
52646+ return Yes::from($value); /*class*/
5220652647 }
5220752648
5220852649 /**
5220952650 * @throws Exception
5221052651 * @return stdClass
5221152652 */
52212- public function toWhere(): stdClass {
52213- if (Obj6::validateWhere($this->where)) {
52214- return $this->where->to(); /*class*/
52653+ public function toYes(): stdClass {
52654+ if (Obj6::validateYes($this->yes)) {
52655+ return $this->yes->to(); /*class*/
5221552656 }
52216- throw new Exception('never get to this Obj6::where');
52657+ throw new Exception('never get to this Obj6::yes');
5221752658 }
5221852659
5221952660 /**
52220- * @param Where
52661+ * @param Yes
5222152662 * @return bool
5222252663 * @throws Exception
5222352664 */
52224- public static function validateWhere(Where $value): bool {
52665+ public static function validateYes(Yes $value): bool {
5222552666 $value->validate();
5222652667 return true;
5222752668 }
5222852669
5222952670 /**
5223052671 * @throws Exception
52231- * @return Where
52672+ * @return Yes
5223252673 */
52233- public function getWhere(): Where {
52234- if (Obj6::validateWhere($this->where)) {
52235- return $this->where;
52674+ public function getYes(): Yes {
52675+ if (Obj6::validateYes($this->yes)) {
52676+ return $this->yes;
5223652677 }
52237- throw new Exception('never get to getWhere Obj6::where');
52678+ throw new Exception('never get to getYes Obj6::yes');
5223852679 }
5223952680
5224052681 /**
52241- * @return Where
52682+ * @return Yes
5224252683 */
52243- public static function sampleWhere(): Where {
52244- return Where::sample(); /*36:where*/
52684+ public static function sampleYes(): Yes {
52685+ return Yes::sample(); /*45:yes*/
5224552686 }
5224652687
5224752688 /**
5224852689 * @param stdClass $value
5224952690 * @throws Exception
52250- * @return WhileClass
52691+ * @return YieldClass
5225152692 */
52252- public static function fromWhile(stdClass $value): WhileClass {
52253- return WhileClass::from($value); /*class*/
52693+ public static function fromYield(stdClass $value): YieldClass {
52694+ return YieldClass::from($value); /*class*/
5225452695 }
5225552696
5225652697 /**
5225752698 * @throws Exception
5225852699 * @return stdClass
5225952700 */
52260- public function toWhile(): stdClass {
52261- if (Obj6::validateWhile($this->while)) {
52262- return $this->while->to(); /*class*/
52701+ public function toYield(): stdClass {
52702+ if (Obj6::validateYield($this->yield)) {
52703+ return $this->yield->to(); /*class*/
5226352704 }
52264- throw new Exception('never get to this Obj6::while');
52705+ throw new Exception('never get to this Obj6::yield');
5226552706 }
5226652707
5226752708 /**
52268- * @param WhileClass
52709+ * @param YieldClass
5226952710 * @return bool
5227052711 * @throws Exception
5227152712 */
52272- public static function validateWhile(WhileClass $value): bool {
52713+ public static function validateYield(YieldClass $value): bool {
5227352714 $value->validate();
5227452715 return true;
5227552716 }
5227652717
5227752718 /**
5227852719 * @throws Exception
52279- * @return WhileClass
52720+ * @return YieldClass
5228052721 */
52281- public function getWhile(): WhileClass {
52282- if (Obj6::validateWhile($this->while)) {
52283- return $this->while;
52722+ public function getYield(): YieldClass {
52723+ if (Obj6::validateYield($this->yield)) {
52724+ return $this->yield;
5228452725 }
52285- throw new Exception('never get to getWhile Obj6::while');
52726+ throw new Exception('never get to getYield Obj6::yield');
5228652727 }
5228752728
5228852729 /**
52289- * @return WhileClass
52730+ * @return YieldClass
5229052731 */
52291- public static function sampleWhile(): WhileClass {
52292- return WhileClass::sample(); /*37:while*/
52732+ public static function sampleYield(): YieldClass {
52733+ return YieldClass::sample(); /*46:yield*/
5229352734 }
5229452735
5229552736 /**
52296- * @param stdClass $value
5229752737 * @throws Exception
52298- * @return WillSet
52738+ * @return bool
5229952739 */
52300- public static function fromWillSet(stdClass $value): WillSet {
52301- return WillSet::from($value); /*class*/
52740+ public function validate(): bool {
52741+ return Obj6::validateDummy($this->dummy)
52742+ || Obj6::validateUUID($this->uuid)
52743+ || Obj6::validateVar($this->var)
52744+ || Obj6::validateVirtual($this->virtual)
52745+ || Obj6::validateVoid($this->void)
52746+ || Obj6::validateVolatile($this->volatile)
52747+ || Obj6::validateWcharT($this->wcharT)
52748+ || Obj6::validateWeak($this->weak)
52749+ || Obj6::validateWhere($this->where)
52750+ || Obj6::validateWhile($this->while)
52751+ || Obj6::validateWillSet($this->willSet)
52752+ || Obj6::validateWith($this->with)
52753+ || Obj6::validateXor($this->xor)
52754+ || Obj6::validateXorEq($this->xorEq)
52755+ || Obj6::validateYes($this->yes)
52756+ || Obj6::validateYield($this->yield);
5230252757 }
5230352758
5230452759 /**
52305- * @throws Exception
5230652760 * @return stdClass
52761+ * @throws Exception
5230752762 */
52308- public function toWillSet(): stdClass {
52309- if (Obj6::validateWillSet($this->willSet)) {
52310- return $this->willSet->to(); /*class*/
52311- }
52312- throw new Exception('never get to this Obj6::willSet');
52763+ public function to(): stdClass {
52764+ $out = new stdClass();
52765+ $out->{'dummy'} = $this->toDummy();
52766+ $out->{'UUID'} = $this->toUUID();
52767+ $out->{'var'} = $this->toVar();
52768+ $out->{'virtual'} = $this->toVirtual();
52769+ $out->{'void'} = $this->toVoid();
52770+ $out->{'volatile'} = $this->toVolatile();
52771+ $out->{'wchar_t'} = $this->toWcharT();
52772+ $out->{'weak'} = $this->toWeak();
52773+ $out->{'where'} = $this->toWhere();
52774+ $out->{'while'} = $this->toWhile();
52775+ $out->{'willSet'} = $this->toWillSet();
52776+ $out->{'with'} = $this->toWith();
52777+ $out->{'xor'} = $this->toXor();
52778+ $out->{'xor_eq'} = $this->toXorEq();
52779+ $out->{'YES'} = $this->toYes();
52780+ $out->{'yield'} = $this->toYield();
52781+ return $out;
5231352782 }
5231452783
5231552784 /**
52316- * @param WillSet
52317- * @return bool
52785+ * @param stdClass $obj
52786+ * @return Obj6
5231852787 * @throws Exception
5231952788 */
52320- public static function validateWillSet(WillSet $value): bool {
52321- $value->validate();
52322- return true;
52789+ public static function from(stdClass $obj): Obj6 {
52790+ if (!property_exists($obj, 'dummy')) {
52791+ throw new Exception("Missing required property");
52792+ }
52793+ if (!property_exists($obj, 'UUID')) {
52794+ throw new Exception("Missing required property");
52795+ }
52796+ if (!property_exists($obj, 'var')) {
52797+ throw new Exception("Missing required property");
52798+ }
52799+ if (!property_exists($obj, 'virtual')) {
52800+ throw new Exception("Missing required property");
52801+ }
52802+ if (!property_exists($obj, 'void')) {
52803+ throw new Exception("Missing required property");
52804+ }
52805+ if (!property_exists($obj, 'volatile')) {
52806+ throw new Exception("Missing required property");
52807+ }
52808+ if (!property_exists($obj, 'wchar_t')) {
52809+ throw new Exception("Missing required property");
52810+ }
52811+ if (!property_exists($obj, 'weak')) {
52812+ throw new Exception("Missing required property");
52813+ }
52814+ if (!property_exists($obj, 'where')) {
52815+ throw new Exception("Missing required property");
52816+ }
52817+ if (!property_exists($obj, 'while')) {
52818+ throw new Exception("Missing required property");
52819+ }
52820+ if (!property_exists($obj, 'willSet')) {
52821+ throw new Exception("Missing required property");
52822+ }
52823+ if (!property_exists($obj, 'with')) {
52824+ throw new Exception("Missing required property");
52825+ }
52826+ if (!property_exists($obj, 'xor')) {
52827+ throw new Exception("Missing required property");
52828+ }
52829+ if (!property_exists($obj, 'xor_eq')) {
52830+ throw new Exception("Missing required property");
52831+ }
52832+ if (!property_exists($obj, 'YES')) {
52833+ throw new Exception("Missing required property");
52834+ }
52835+ if (!property_exists($obj, 'yield')) {
52836+ throw new Exception("Missing required property");
52837+ }
52838+ return new Obj6(
52839+ Obj6::fromDummy($obj->{'dummy'})
52840+ ,Obj6::fromUUID($obj->{'UUID'})
52841+ ,Obj6::fromVar($obj->{'var'})
52842+ ,Obj6::fromVirtual($obj->{'virtual'})
52843+ ,Obj6::fromVoid($obj->{'void'})
52844+ ,Obj6::fromVolatile($obj->{'volatile'})
52845+ ,Obj6::fromWcharT($obj->{'wchar_t'})
52846+ ,Obj6::fromWeak($obj->{'weak'})
52847+ ,Obj6::fromWhere($obj->{'where'})
52848+ ,Obj6::fromWhile($obj->{'while'})
52849+ ,Obj6::fromWillSet($obj->{'willSet'})
52850+ ,Obj6::fromWith($obj->{'with'})
52851+ ,Obj6::fromXor($obj->{'xor'})
52852+ ,Obj6::fromXorEq($obj->{'xor_eq'})
52853+ ,Obj6::fromYes($obj->{'YES'})
52854+ ,Obj6::fromYield($obj->{'yield'})
52855+ );
5232352856 }
5232452857
5232552858 /**
52326- * @throws Exception
52327- * @return WillSet
52859+ * @return Obj6
5232852860 */
52329- public function getWillSet(): WillSet {
52330- if (Obj6::validateWillSet($this->willSet)) {
52331- return $this->willSet;
52332- }
52333- throw new Exception('never get to getWillSet Obj6::willSet');
52861+ public static function sample(): Obj6 {
52862+ return new Obj6(
52863+ Obj6::sampleDummy()
52864+ ,Obj6::sampleUUID()
52865+ ,Obj6::sampleVar()
52866+ ,Obj6::sampleVirtual()
52867+ ,Obj6::sampleVoid()
52868+ ,Obj6::sampleVolatile()
52869+ ,Obj6::sampleWcharT()
52870+ ,Obj6::sampleWeak()
52871+ ,Obj6::sampleWhere()
52872+ ,Obj6::sampleWhile()
52873+ ,Obj6::sampleWillSet()
52874+ ,Obj6::sampleWith()
52875+ ,Obj6::sampleXor()
52876+ ,Obj6::sampleXorEq()
52877+ ,Obj6::sampleYes()
52878+ ,Obj6::sampleYield()
52879+ );
5233452880 }
52881+}
52882+
52883+// This is an autogenerated file:UUID
52884+
52885+class UUID {
52886+ private int $uuid; // json:UUID Required
5233552887
5233652888 /**
52337- * @return WillSet
52889+ * @param int $uuid
5233852890 */
52339- public static function sampleWillSet(): WillSet {
52340- return WillSet::sample(); /*38:willSet*/
52891+ public function __construct(int $uuid) {
52892+ $this->uuid = $uuid;
5234152893 }
5234252894
5234352895 /**
52344- * @param stdClass $value
52896+ * @param int $value
5234552897 * @throws Exception
52346- * @return With
52898+ * @return int
5234752899 */
52348- public static function fromWith(stdClass $value): With {
52349- return With::from($value); /*class*/
52900+ public static function fromUUID(int $value): int {
52901+ return $value; /*int*/
5235052902 }
5235152903
5235252904 /**
5235352905 * @throws Exception
52354- * @return stdClass
52906+ * @return int
5235552907 */
52356- public function toWith(): stdClass {
52357- if (Obj6::validateWith($this->with)) {
52358- return $this->with->to(); /*class*/
52908+ public function toUUID(): int {
52909+ if (UUID::validateUUID($this->uuid)) {
52910+ return $this->uuid; /*int*/
5235952911 }
52360- throw new Exception('never get to this Obj6::with');
52912+ throw new Exception('never get to this UUID::uuid');
5236152913 }
5236252914
5236352915 /**
52364- * @param With
52916+ * @param int
5236552917 * @return bool
5236652918 * @throws Exception
5236752919 */
52368- public static function validateWith(With $value): bool {
52369- $value->validate();
52920+ public static function validateUUID(int $value): bool {
5237052921 return true;
5237152922 }
5237252923
5237352924 /**
5237452925 * @throws Exception
52375- * @return With
52926+ * @return int
5237652927 */
52377- public function getWith(): With {
52378- if (Obj6::validateWith($this->with)) {
52379- return $this->with;
52928+ public function getUUID(): int {
52929+ if (UUID::validateUUID($this->uuid)) {
52930+ return $this->uuid;
5238052931 }
52381- throw new Exception('never get to getWith Obj6::with');
52932+ throw new Exception('never get to getUUID UUID::uuid');
5238252933 }
5238352934
5238452935 /**
52385- * @return With
52936+ * @return int
5238652937 */
52387- public static function sampleWith(): With {
52388- return With::sample(); /*39:with*/
52938+ public static function sampleUUID(): int {
52939+ return 31; /*31:uuid*/
5238952940 }
5239052941
5239152942 /**
52392- * @param stdClass $value
5239352943 * @throws Exception
52394- * @return XorClass
52944+ * @return bool
5239552945 */
52396- public static function fromXor(stdClass $value): XorClass {
52397- return XorClass::from($value); /*class*/
52946+ public function validate(): bool {
52947+ return UUID::validateUUID($this->uuid);
5239852948 }
5239952949
5240052950 /**
52401- * @throws Exception
5240252951 * @return stdClass
52403- */
52404- public function toXor(): stdClass {
52405- if (Obj6::validateXor($this->xor)) {
52406- return $this->xor->to(); /*class*/
52407- }
52408- throw new Exception('never get to this Obj6::xor');
52409- }
52410-
52411- /**
52412- * @param XorClass
52413- * @return bool
5241452952 * @throws Exception
5241552953 */
52416- public static function validateXor(XorClass $value): bool {
52417- $value->validate();
52418- return true;
52954+ public function to(): stdClass {
52955+ $out = new stdClass();
52956+ $out->{'UUID'} = $this->toUUID();
52957+ return $out;
5241952958 }
5242052959
5242152960 /**
52961+ * @param stdClass $obj
52962+ * @return UUID
5242252963 * @throws Exception
52423- * @return XorClass
5242452964 */
52425- public function getXor(): XorClass {
52426- if (Obj6::validateXor($this->xor)) {
52427- return $this->xor;
52965+ public static function from(stdClass $obj): UUID {
52966+ if (!property_exists($obj, 'UUID')) {
52967+ throw new Exception("Missing required property");
5242852968 }
52429- throw new Exception('never get to getXor Obj6::xor');
52969+ return new UUID(
52970+ UUID::fromUUID($obj->{'UUID'})
52971+ );
52972+ }
52973+
52974+ /**
52975+ * @return UUID
52976+ */
52977+ public static function sample(): UUID {
52978+ return new UUID(
52979+ UUID::sampleUUID()
52980+ );
5243052981 }
52982+}
52983+
52984+// This is an autogenerated file:VarClass
52985+
52986+class VarClass {
52987+ private int $var; // json:var Required
5243152988
5243252989 /**
52433- * @return XorClass
52990+ * @param int $var
5243452991 */
52435- public static function sampleXor(): XorClass {
52436- return XorClass::sample(); /*40:xor*/
52992+ public function __construct(int $var) {
52993+ $this->var = $var;
5243752994 }
5243852995
5243952996 /**
52440- * @param stdClass $value
52997+ * @param int $value
5244152998 * @throws Exception
52442- * @return XorEq
52999+ * @return int
5244353000 */
52444- public static function fromXorEq(stdClass $value): XorEq {
52445- return XorEq::from($value); /*class*/
53001+ public static function fromVar(int $value): int {
53002+ return $value; /*int*/
5244653003 }
5244753004
5244853005 /**
5244953006 * @throws Exception
52450- * @return stdClass
53007+ * @return int
5245153008 */
52452- public function toXorEq(): stdClass {
52453- if (Obj6::validateXorEq($this->xorEq)) {
52454- return $this->xorEq->to(); /*class*/
53009+ public function toVar(): int {
53010+ if (VarClass::validateVar($this->var)) {
53011+ return $this->var; /*int*/
5245553012 }
52456- throw new Exception('never get to this Obj6::xorEq');
53013+ throw new Exception('never get to this VarClass::var');
5245753014 }
5245853015
5245953016 /**
52460- * @param XorEq
53017+ * @param int
5246153018 * @return bool
5246253019 * @throws Exception
5246353020 */
52464- public static function validateXorEq(XorEq $value): bool {
52465- $value->validate();
53021+ public static function validateVar(int $value): bool {
5246653022 return true;
5246753023 }
5246853024
5246953025 /**
5247053026 * @throws Exception
52471- * @return XorEq
53027+ * @return int
5247253028 */
52473- public function getXorEq(): XorEq {
52474- if (Obj6::validateXorEq($this->xorEq)) {
52475- return $this->xorEq;
53029+ public function getVar(): int {
53030+ if (VarClass::validateVar($this->var)) {
53031+ return $this->var;
5247653032 }
52477- throw new Exception('never get to getXorEq Obj6::xorEq');
53033+ throw new Exception('never get to getVar VarClass::var');
5247853034 }
5247953035
5248053036 /**
52481- * @return XorEq
53037+ * @return int
5248253038 */
52483- public static function sampleXorEq(): XorEq {
52484- return XorEq::sample(); /*41:xorEq*/
53039+ public static function sampleVar(): int {
53040+ return 31; /*31:var*/
5248553041 }
5248653042
5248753043 /**
52488- * @param stdClass $value
5248953044 * @throws Exception
52490- * @return Yes
53045+ * @return bool
5249153046 */
52492- public static function fromYes(stdClass $value): Yes {
52493- return Yes::from($value); /*class*/
53047+ public function validate(): bool {
53048+ return VarClass::validateVar($this->var);
5249453049 }
5249553050
5249653051 /**
52497- * @throws Exception
5249853052 * @return stdClass
53053+ * @throws Exception
5249953054 */
52500- public function toYes(): stdClass {
52501- if (Obj6::validateYes($this->yes)) {
52502- return $this->yes->to(); /*class*/
52503- }
52504- throw new Exception('never get to this Obj6::yes');
53055+ public function to(): stdClass {
53056+ $out = new stdClass();
53057+ $out->{'var'} = $this->toVar();
53058+ return $out;
5250553059 }
5250653060
5250753061 /**
52508- * @param Yes
52509- * @return bool
53062+ * @param stdClass $obj
53063+ * @return VarClass
5251053064 * @throws Exception
5251153065 */
52512- public static function validateYes(Yes $value): bool {
52513- $value->validate();
52514- return true;
53066+ public static function from(stdClass $obj): VarClass {
53067+ if (!property_exists($obj, 'var')) {
53068+ throw new Exception("Missing required property");
53069+ }
53070+ return new VarClass(
53071+ VarClass::fromVar($obj->{'var'})
53072+ );
5251553073 }
5251653074
5251753075 /**
52518- * @throws Exception
52519- * @return Yes
53076+ * @return VarClass
5252053077 */
52521- public function getYes(): Yes {
52522- if (Obj6::validateYes($this->yes)) {
52523- return $this->yes;
52524- }
52525- throw new Exception('never get to getYes Obj6::yes');
53078+ public static function sample(): VarClass {
53079+ return new VarClass(
53080+ VarClass::sampleVar()
53081+ );
5252653082 }
53083+}
53084+
53085+// This is an autogenerated file:Virtual
53086+
53087+class Virtual {
53088+ private int $virtual; // json:virtual Required
5252753089
5252853090 /**
52529- * @return Yes
53091+ * @param int $virtual
5253053092 */
52531- public static function sampleYes(): Yes {
52532- return Yes::sample(); /*42:yes*/
53093+ public function __construct(int $virtual) {
53094+ $this->virtual = $virtual;
5253353095 }
5253453096
5253553097 /**
52536- * @param stdClass $value
53098+ * @param int $value
5253753099 * @throws Exception
52538- * @return YieldClass
53100+ * @return int
5253953101 */
52540- public static function fromYield(stdClass $value): YieldClass {
52541- return YieldClass::from($value); /*class*/
53102+ public static function fromVirtual(int $value): int {
53103+ return $value; /*int*/
5254253104 }
5254353105
5254453106 /**
5254553107 * @throws Exception
52546- * @return stdClass
53108+ * @return int
5254753109 */
52548- public function toYield(): stdClass {
52549- if (Obj6::validateYield($this->yield)) {
52550- return $this->yield->to(); /*class*/
53110+ public function toVirtual(): int {
53111+ if (Virtual::validateVirtual($this->virtual)) {
53112+ return $this->virtual; /*int*/
5255153113 }
52552- throw new Exception('never get to this Obj6::yield');
53114+ throw new Exception('never get to this Virtual::virtual');
5255353115 }
5255453116
5255553117 /**
52556- * @param YieldClass
53118+ * @param int
5255753119 * @return bool
5255853120 * @throws Exception
5255953121 */
52560- public static function validateYield(YieldClass $value): bool {
52561- $value->validate();
53122+ public static function validateVirtual(int $value): bool {
5256253123 return true;
5256353124 }
5256453125
5256553126 /**
5256653127 * @throws Exception
52567- * @return YieldClass
53128+ * @return int
5256853129 */
52569- public function getYield(): YieldClass {
52570- if (Obj6::validateYield($this->yield)) {
52571- return $this->yield;
53130+ public function getVirtual(): int {
53131+ if (Virtual::validateVirtual($this->virtual)) {
53132+ return $this->virtual;
5257253133 }
52573- throw new Exception('never get to getYield Obj6::yield');
53134+ throw new Exception('never get to getVirtual Virtual::virtual');
5257453135 }
5257553136
5257653137 /**
52577- * @return YieldClass
53138+ * @return int
5257853139 */
52579- public static function sampleYield(): YieldClass {
52580- return YieldClass::sample(); /*43:yield*/
53140+ public static function sampleVirtual(): int {
53141+ return 31; /*31:virtual*/
5258153142 }
5258253143
5258353144 /**
@@ -52585,19 +53146,7 @@ class Obj6 {
5258553146 * @return bool
5258653147 */
5258753148 public function validate(): bool {
52588- return Obj6::validateDummy($this->dummy)
52589- || Obj6::validateVoid($this->void)
52590- || Obj6::validateVolatile($this->volatile)
52591- || Obj6::validateWcharT($this->wcharT)
52592- || Obj6::validateWeak($this->weak)
52593- || Obj6::validateWhere($this->where)
52594- || Obj6::validateWhile($this->while)
52595- || Obj6::validateWillSet($this->willSet)
52596- || Obj6::validateWith($this->with)
52597- || Obj6::validateXor($this->xor)
52598- || Obj6::validateXorEq($this->xorEq)
52599- || Obj6::validateYes($this->yes)
52600- || Obj6::validateYield($this->yield);
53149+ return Virtual::validateVirtual($this->virtual);
5260153150 }
5260253151
5260353152 /**
@@ -52606,102 +53155,30 @@ class Obj6 {
5260653155 */
5260753156 public function to(): stdClass {
5260853157 $out = new stdClass();
52609- $out->{'dummy'} = $this->toDummy();
52610- $out->{'void'} = $this->toVoid();
52611- $out->{'volatile'} = $this->toVolatile();
52612- $out->{'wchar_t'} = $this->toWcharT();
52613- $out->{'weak'} = $this->toWeak();
52614- $out->{'where'} = $this->toWhere();
52615- $out->{'while'} = $this->toWhile();
52616- $out->{'willSet'} = $this->toWillSet();
52617- $out->{'with'} = $this->toWith();
52618- $out->{'xor'} = $this->toXor();
52619- $out->{'xor_eq'} = $this->toXorEq();
52620- $out->{'YES'} = $this->toYes();
52621- $out->{'yield'} = $this->toYield();
53158+ $out->{'virtual'} = $this->toVirtual();
5262253159 return $out;
5262353160 }
5262453161
5262553162 /**
5262653163 * @param stdClass $obj
52627- * @return Obj6
53164+ * @return Virtual
5262853165 * @throws Exception
5262953166 */
52630- public static function from(stdClass $obj): Obj6 {
52631- if (!property_exists($obj, 'dummy')) {
52632- throw new Exception("Missing required property");
52633- }
52634- if (!property_exists($obj, 'void')) {
52635- throw new Exception("Missing required property");
52636- }
52637- if (!property_exists($obj, 'volatile')) {
52638- throw new Exception("Missing required property");
52639- }
52640- if (!property_exists($obj, 'wchar_t')) {
52641- throw new Exception("Missing required property");
52642- }
52643- if (!property_exists($obj, 'weak')) {
52644- throw new Exception("Missing required property");
52645- }
52646- if (!property_exists($obj, 'where')) {
52647- throw new Exception("Missing required property");
52648- }
52649- if (!property_exists($obj, 'while')) {
52650- throw new Exception("Missing required property");
52651- }
52652- if (!property_exists($obj, 'willSet')) {
52653- throw new Exception("Missing required property");
52654- }
52655- if (!property_exists($obj, 'with')) {
52656- throw new Exception("Missing required property");
52657- }
52658- if (!property_exists($obj, 'xor')) {
52659- throw new Exception("Missing required property");
52660- }
52661- if (!property_exists($obj, 'xor_eq')) {
52662- throw new Exception("Missing required property");
52663- }
52664- if (!property_exists($obj, 'YES')) {
52665- throw new Exception("Missing required property");
52666- }
52667- if (!property_exists($obj, 'yield')) {
53167+ public static function from(stdClass $obj): Virtual {
53168+ if (!property_exists($obj, 'virtual')) {
5266853169 throw new Exception("Missing required property");
5266953170 }
52670- return new Obj6(
52671- Obj6::fromDummy($obj->{'dummy'})
52672- ,Obj6::fromVoid($obj->{'void'})
52673- ,Obj6::fromVolatile($obj->{'volatile'})
52674- ,Obj6::fromWcharT($obj->{'wchar_t'})
52675- ,Obj6::fromWeak($obj->{'weak'})
52676- ,Obj6::fromWhere($obj->{'where'})
52677- ,Obj6::fromWhile($obj->{'while'})
52678- ,Obj6::fromWillSet($obj->{'willSet'})
52679- ,Obj6::fromWith($obj->{'with'})
52680- ,Obj6::fromXor($obj->{'xor'})
52681- ,Obj6::fromXorEq($obj->{'xor_eq'})
52682- ,Obj6::fromYes($obj->{'YES'})
52683- ,Obj6::fromYield($obj->{'yield'})
53171+ return new Virtual(
53172+ Virtual::fromVirtual($obj->{'virtual'})
5268453173 );
5268553174 }
5268653175
5268753176 /**
52688- * @return Obj6
53177+ * @return Virtual
5268953178 */
52690- public static function sample(): Obj6 {
52691- return new Obj6(
52692- Obj6::sampleDummy()
52693- ,Obj6::sampleVoid()
52694- ,Obj6::sampleVolatile()
52695- ,Obj6::sampleWcharT()
52696- ,Obj6::sampleWeak()
52697- ,Obj6::sampleWhere()
52698- ,Obj6::sampleWhile()
52699- ,Obj6::sampleWillSet()
52700- ,Obj6::sampleWith()
52701- ,Obj6::sampleXor()
52702- ,Obj6::sampleXorEq()
52703- ,Obj6::sampleYes()
52704- ,Obj6::sampleYield()
53179+ public static function sample(): Virtual {
53180+ return new Virtual(
53181+ Virtual::sampleVirtual()
5270553182 );
5270653183 }
5270753184 }
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 SelfClass obj5_self; // json: "self"
@@ -6556,6 +6556,9 @@ class Obj5 {
65566556 TypeClass obj5_type; // json: "type"
65576557 Typedef obj5_typedef; // json: "typedef"
65586558 Typeof obj5_typeof; // json: "typeof"
6559+ Sealed sealed; // json: "sealed"
6560+ Sel sel; // json: "SEL"
6561+ Select select; // json: "select"
65596562 Self self; // json: "Self"
65606563 Sendable sendable; // json: "Sendable"
65616564 Serialize serialize; // json: "serialize"
@@ -6609,9 +6612,6 @@ class Obj5 {
66096612 Using using; // json: "using"
66106613 Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader"
66116614 Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter"
6612- Uuid uuid; // json: "UUID"
6613- Var var; // json: "var"
6614- Virtual virtual; // json: "virtual"
66156615
66166616 string encode_json() {
66176617 mapping(string:mixed) json = ([
@@ -6624,6 +6624,9 @@ class Obj5 {
66246624 "type" : obj5_type,
66256625 "typedef" : obj5_typedef,
66266626 "typeof" : obj5_typeof,
6627+ "sealed" : sealed,
6628+ "SEL" : sel,
6629+ "select" : select,
66276630 "Self" : self,
66286631 "Sendable" : sendable,
66296632 "serialize" : serialize,
@@ -6677,9 +6680,6 @@ class Obj5 {
66776680 "using" : using,
66786681 "Utf8JsonReader" : utf8_json_reader,
66796682 "Utf8JsonWriter" : utf8_json_writer,
6680- "UUID" : uuid,
6681- "var" : var,
6682- "virtual" : virtual,
66836683 ]);
66846684
66856685 return Standards.JSON.encode(json);
@@ -6707,6 +6707,12 @@ Obj5 Obj5_from_JSON(mixed json) {
67076707 retval.obj5_typedef = json["typedef"];
67086708 if (!mappingp(json["typeof"])) error("Expected object");
67096709 retval.obj5_typeof = json["typeof"];
6710+ if (!mappingp(json["sealed"])) error("Expected object");
6711+ retval.sealed = json["sealed"];
6712+ if (!mappingp(json["SEL"])) error("Expected object");
6713+ retval.sel = json["SEL"];
6714+ if (!mappingp(json["select"])) error("Expected object");
6715+ retval.select = json["select"];
67106716 if (!mappingp(json["Self"])) error("Expected object");
67116717 retval.self = json["Self"];
67126718 if (!mappingp(json["Sendable"])) error("Expected object");
@@ -6813,12 +6819,6 @@ Obj5 Obj5_from_JSON(mixed json) {
68136819 retval.utf8_json_reader = json["Utf8JsonReader"];
68146820 if (!mappingp(json["Utf8JsonWriter"])) error("Expected object");
68156821 retval.utf8_json_writer = json["Utf8JsonWriter"];
6816- if (!mappingp(json["UUID"])) error("Expected object");
6817- retval.uuid = json["UUID"];
6818- if (!mappingp(json["var"])) error("Expected object");
6819- retval.var = json["var"];
6820- if (!mappingp(json["virtual"])) error("Expected object");
6821- retval.virtual = json["virtual"];
68226822
68236823 return retval;
68246824 }
@@ -6991,6 +6991,69 @@ Typeof Typeof_from_JSON(mixed json) {
69916991 return retval;
69926992 }
69936993
6994+class Sealed {
6995+ int sealed; // json: "sealed"
6996+
6997+ string encode_json() {
6998+ mapping(string:mixed) json = ([
6999+ "sealed" : sealed,
7000+ ]);
7001+
7002+ return Standards.JSON.encode(json);
7003+ }
7004+}
7005+
7006+Sealed Sealed_from_JSON(mixed json) {
7007+ Sealed retval = Sealed();
7008+
7009+ if (!intp(json["sealed"])) error("Expected integer");
7010+ retval.sealed = json["sealed"];
7011+
7012+ return retval;
7013+}
7014+
7015+class Sel {
7016+ int sel; // json: "SEL"
7017+
7018+ string encode_json() {
7019+ mapping(string:mixed) json = ([
7020+ "SEL" : sel,
7021+ ]);
7022+
7023+ return Standards.JSON.encode(json);
7024+ }
7025+}
7026+
7027+Sel Sel_from_JSON(mixed json) {
7028+ Sel retval = Sel();
7029+
7030+ if (!intp(json["SEL"])) error("Expected integer");
7031+ retval.sel = json["SEL"];
7032+
7033+ return retval;
7034+}
7035+
7036+class Select {
7037+ int select; // json: "select"
7038+
7039+ string encode_json() {
7040+ mapping(string:mixed) json = ([
7041+ "select" : select,
7042+ ]);
7043+
7044+ return Standards.JSON.encode(json);
7045+ }
7046+}
7047+
7048+Select Select_from_JSON(mixed json) {
7049+ Select retval = Select();
7050+
7051+ if (!intp(json["select"])) error("Expected integer");
7052+ retval.select = json["select"];
7053+
7054+ return retval;
7055+}
7056+
69947057 class Self {
69957058 int self; // json: "Self"
69967059
@@ -8104,73 +8167,13 @@ Utf8JsonWriter Utf8JsonWriter_from_JSON(mixed json) {
81048167 return retval;
81058168 }
81068169
8107-class Uuid {
8108- int uuid; // json: "UUID"
8109-
8110- string encode_json() {
8111- mapping(string:mixed) json = ([
8112- "UUID" : uuid,
8113- ]);
8114-
8115- return Standards.JSON.encode(json);
8116- }
8117-}
8118-
8119-Uuid Uuid_from_JSON(mixed json) {
8120- Uuid retval = Uuid();
8121-
8122- if (!intp(json["UUID"])) error("Expected integer");
8123- retval.uuid = json["UUID"];
8124-
8125- return retval;
8126-}
8127-
8128-class Var {
8129- int var; // json: "var"
8130-
8131- string encode_json() {
8132- mapping(string:mixed) json = ([
8133- "var" : var,
8134- ]);
8135-
8136- return Standards.JSON.encode(json);
8137- }
8138-}
8139-
8140-Var Var_from_JSON(mixed json) {
8141- Var retval = Var();
8142-
8143- if (!intp(json["var"])) error("Expected integer");
8144- retval.var = json["var"];
8145-
8146- return retval;
8147-}
8148-
8149-class Virtual {
8150- int virtual; // json: "virtual"
8151-
8152- string encode_json() {
8153- mapping(string:mixed) json = ([
8154- "virtual" : virtual,
8155- ]);
8156-
8157- return Standards.JSON.encode(json);
8158- }
8159-}
8160-
8161-Virtual Virtual_from_JSON(mixed json) {
8162- Virtual retval = Virtual();
8163-
8164- if (!intp(json["virtual"])) error("Expected integer");
8165- retval.virtual = json["virtual"];
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+ Uuid uuid; // json: "UUID"
8175+ Var var; // json: "var"
8176+ Virtual virtual; // json: "virtual"
81748177 Volatile volatile; // json: "volatile"
81758178 WcharT wchar_t; // json: "wchar_t"
81768179 Weak weak; // json: "weak"
@@ -8187,6 +8190,9 @@ class Obj6 {
81878190 "dummy" : dummy,
81888191 "void" : obj6_void,
81898192 "while" : obj6_while,
8193+ "UUID" : uuid,
8194+ "var" : var,
8195+ "virtual" : virtual,
81908196 "volatile" : volatile,
81918197 "wchar_t" : wchar_t,
81928198 "weak" : weak,
@@ -8212,6 +8218,12 @@ Obj6 Obj6_from_JSON(mixed json) {
82128218 retval.obj6_void = json["void"];
82138219 if (!mappingp(json["while"])) error("Expected object");
82148220 retval.obj6_while = json["while"];
8221+ if (!mappingp(json["UUID"])) error("Expected object");
8222+ retval.uuid = json["UUID"];
8223+ if (!mappingp(json["var"])) error("Expected object");
8224+ retval.var = json["var"];
8225+ if (!mappingp(json["virtual"])) error("Expected object");
8226+ retval.virtual = json["virtual"];
82158227 if (!mappingp(json["volatile"])) error("Expected object");
82168228 retval.volatile = json["volatile"];
82178229 if (!mappingp(json["wchar_t"])) error("Expected object");
@@ -8278,6 +8290,69 @@ While While_from_JSON(mixed json) {
82788290 return retval;
82798291 }
82808292
8293+class Uuid {
8294+ int uuid; // json: "UUID"
8295+
8296+ string encode_json() {
8297+ mapping(string:mixed) json = ([
8298+ "UUID" : uuid,
8299+ ]);
8300+
8301+ return Standards.JSON.encode(json);
8302+ }
8303+}
8304+
8305+Uuid Uuid_from_JSON(mixed json) {
8306+ Uuid retval = Uuid();
8307+
8308+ if (!intp(json["UUID"])) error("Expected integer");
8309+ retval.uuid = json["UUID"];
8310+
8311+ return retval;
8312+}
8313+
8314+class Var {
8315+ int var; // json: "var"
8316+
8317+ string encode_json() {
8318+ mapping(string:mixed) json = ([
8319+ "var" : var,
8320+ ]);
8321+
8322+ return Standards.JSON.encode(json);
8323+ }
8324+}
8325+
8326+Var Var_from_JSON(mixed json) {
8327+ Var retval = Var();
8328+
8329+ if (!intp(json["var"])) error("Expected integer");
8330+ retval.var = json["var"];
8331+
8332+ return retval;
8333+}
8334+
8335+class Virtual {
8336+ int virtual; // json: "virtual"
8337+
8338+ string encode_json() {
8339+ mapping(string:mixed) json = ([
8340+ "virtual" : virtual,
8341+ ]);
8342+
8343+ return Standards.JSON.encode(json);
8344+ }
8345+}
8346+
8347+Virtual Virtual_from_JSON(mixed json) {
8348+ Virtual retval = Virtual();
8349+
8350+ if (!intp(json["virtual"])) error("Expected integer");
8351+ retval.virtual = json["virtual"];
8352+
8353+ return retval;
8354+}
8355+
82818356 class Volatile {
82828357 int volatile; // json: "volatile"
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
@@ -5052,6 +5052,54 @@ class SelfClass:
50525052 return result
50535053
50545054
5055+@dataclass
5056+class Sealed:
5057+ sealed: int
5058+
5059+ @staticmethod
5060+ def from_dict(obj: Any) -> 'Sealed':
5061+ assert isinstance(obj, dict)
5062+ sealed = from_int(obj["sealed"])
5063+ return Sealed(sealed)
5064+
5065+ def to_dict(self) -> dict:
5066+ result: dict = {}
5067+ result["sealed"] = from_int(self.sealed)
5068+ return result
5069+
5070+
5071+@dataclass
5072+class Sel:
5073+ sel: int
5074+
5075+ @staticmethod
5076+ def from_dict(obj: Any) -> 'Sel':
5077+ assert isinstance(obj, dict)
5078+ sel = from_int(obj["SEL"])
5079+ return Sel(sel)
5080+
5081+ def to_dict(self) -> dict:
5082+ result: dict = {}
5083+ result["SEL"] = from_int(self.sel)
5084+ return result
5085+
5086+
5087+@dataclass
5088+class Select:
5089+ select: int
5090+
5091+ @staticmethod
5092+ def from_dict(obj: Any) -> 'Select':
5093+ assert isinstance(obj, dict)
5094+ select = from_int(obj["select"])
5095+ return Select(select)
5096+
5097+ def to_dict(self) -> dict:
5098+ result: dict = {}
5099+ result["select"] = from_int(self.select)
5100+ return result
5101+
5102+
50555103 @dataclass
50565104 class Sendable:
50575105 sendable: int
@@ -5948,56 +5996,9 @@ class Utf8JSONWriter:
59485996 return result
59495997
59505998
5951-@dataclass
5952-class UUIDClass:
5953- uuid: int
5954-
5955- @staticmethod
5956- def from_dict(obj: Any) -> 'UUIDClass':
5957- assert isinstance(obj, dict)
5958- uuid = from_int(obj["UUID"])
5959- return UUIDClass(uuid)
5960-
5961- def to_dict(self) -> dict:
5962- result: dict = {}
5963- result["UUID"] = from_int(self.uuid)
5964- return result
5965-
5966-
5967-@dataclass
5968-class Var:
5969- var: int
5970-
5971- @staticmethod
5972- def from_dict(obj: Any) -> 'Var':
5973- assert isinstance(obj, dict)
5974- var = from_int(obj["var"])
5975- return Var(var)
5976-
5977- def to_dict(self) -> dict:
5978- result: dict = {}
5979- result["var"] = from_int(self.var)
5980- return result
5981-
5982-
5983-@dataclass
5984-class Virtual:
5985- virtual: int
5986-
5987- @staticmethod
5988- def from_dict(obj: Any) -> 'Virtual':
5989- assert isinstance(obj, dict)
5990- virtual = from_int(obj["virtual"])
5991- return Virtual(virtual)
5992-
5993- def to_dict(self) -> dict:
5994- result: dict = {}
5995- result["virtual"] = from_int(self.virtual)
5996- return result
5997-
5998-
59995999 @dataclass
60006000 class Obj5:
6001+ sel: Sel
60016002 obj5_self: Self
60026003 sendable: Sendable
60036004 serializer_provider: SerializerProvider
@@ -6010,10 +6011,11 @@ class Obj5:
60106011 time_zone: TimeZone
60116012 true: TrueClass
60126013 type: TypeClass
6013- uuid: UUIDClass
60146014 utf8_json_reader: Utf8JSONReader
60156015 utf8_json_writer: Utf8JSONWriter
60166016 dummy: int
6017+ sealed: Sealed
6018+ select: Select
60176019 purple_self: SelfClass
60186020 serialize: Serialize
60196021 set: Set
@@ -6061,12 +6063,11 @@ class Obj5:
60616063 unsigned: Unsigned
60626064 ushort: Ushort
60636065 using: Using
6064- var: Var
6065- virtual: Virtual
60666066
60676067 @staticmethod
60686068 def from_dict(obj: Any) -> 'Obj5':
60696069 assert isinstance(obj, dict)
6070+ sel = Sel.from_dict(obj["SEL"])
60706071 obj5_self = Self.from_dict(obj["Self"])
60716072 sendable = Sendable.from_dict(obj["Sendable"])
60726073 serializer_provider = SerializerProvider.from_dict(obj["SerializerProvider"])
@@ -6079,10 +6080,11 @@ class Obj5:
60796080 time_zone = TimeZone.from_dict(obj["TimeZone"])
60806081 true = TrueClass.from_dict(obj["True"])
60816082 type = TypeClass.from_dict(obj["Type"])
6082- uuid = UUIDClass.from_dict(obj["UUID"])
60836083 utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"])
60846084 utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"])
60856085 dummy = from_int(obj["dummy"])
6086+ sealed = Sealed.from_dict(obj["sealed"])
6087+ select = Select.from_dict(obj["select"])
60866088 purple_self = SelfClass.from_dict(obj["self"])
60876089 serialize = Serialize.from_dict(obj["serialize"])
60886090 set = Set.from_dict(obj["set"])
@@ -6130,12 +6132,11 @@ class Obj5:
61306132 unsigned = Unsigned.from_dict(obj["unsigned"])
61316133 ushort = Ushort.from_dict(obj["ushort"])
61326134 using = Using.from_dict(obj["using"])
6133- var = Var.from_dict(obj["var"])
6134- virtual = Virtual.from_dict(obj["virtual"])
6135- return Obj5(obj5_self, sendable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, uuid, utf8_json_reader, utf8_json_writer, 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, using, var, virtual)
6135+ return Obj5(sel, obj5_self, sendable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, utf8_json_reader, utf8_json_writer, 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, unsafe, unsigned, ushort, using)
61366136
61376137 def to_dict(self) -> dict:
61386138 result: dict = {}
6139+ result["SEL"] = to_class(Sel, self.sel)
61396140 result["Self"] = to_class(Self, self.obj5_self)
61406141 result["Sendable"] = to_class(Sendable, self.sendable)
61416142 result["SerializerProvider"] = to_class(SerializerProvider, self.serializer_provider)
@@ -6148,10 +6149,11 @@ class Obj5:
61486149 result["TimeZone"] = to_class(TimeZone, self.time_zone)
61496150 result["True"] = to_class(TrueClass, self.true)
61506151 result["Type"] = to_class(TypeClass, self.type)
6151- result["UUID"] = to_class(UUIDClass, self.uuid)
61526152 result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader)
61536153 result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer)
61546154 result["dummy"] = from_int(self.dummy)
6155+ result["sealed"] = to_class(Sealed, self.sealed)
6156+ result["select"] = to_class(Select, self.select)
61556157 result["self"] = to_class(SelfClass, self.purple_self)
61566158 result["serialize"] = to_class(Serialize, self.serialize)
61576159 result["set"] = to_class(Set, self.set)
@@ -6199,8 +6201,6 @@ class Obj5:
61996201 result["unsigned"] = to_class(Unsigned, self.unsigned)
62006202 result["ushort"] = to_class(Ushort, self.ushort)
62016203 result["using"] = to_class(Using, self.using)
6202- result["var"] = to_class(Var, self.var)
6203- result["virtual"] = to_class(Virtual, self.virtual)
62046204 return result
62056205
62066206
@@ -6252,6 +6252,54 @@ class Yield:
62526252 return result
62536253
62546254
6255+@dataclass
6256+class UUIDClass:
6257+ uuid: int
6258+
6259+ @staticmethod
6260+ def from_dict(obj: Any) -> 'UUIDClass':
6261+ assert isinstance(obj, dict)
6262+ uuid = from_int(obj["UUID"])
6263+ return UUIDClass(uuid)
6264+
6265+ def to_dict(self) -> dict:
6266+ result: dict = {}
6267+ result["UUID"] = from_int(self.uuid)
6268+ return result
6269+
6270+
6271+@dataclass
6272+class Var:
6273+ var: int
6274+
6275+ @staticmethod
6276+ def from_dict(obj: Any) -> 'Var':
6277+ assert isinstance(obj, dict)
6278+ var = from_int(obj["var"])
6279+ return Var(var)
6280+
6281+ def to_dict(self) -> dict:
6282+ result: dict = {}
6283+ result["var"] = from_int(self.var)
6284+ return result
6285+
6286+
6287+@dataclass
6288+class Virtual:
6289+ virtual: int
6290+
6291+ @staticmethod
6292+ def from_dict(obj: Any) -> 'Virtual':
6293+ assert isinstance(obj, dict)
6294+ virtual = from_int(obj["virtual"])
6295+ return Virtual(virtual)
6296+
6297+ def to_dict(self) -> dict:
6298+ result: dict = {}
6299+ result["virtual"] = from_int(self.virtual)
6300+ return result
6301+
6302+
62556303 @dataclass
62566304 class Void:
62576305 void: int
@@ -6398,8 +6446,11 @@ class Yes:
63986446
63996447 @dataclass
64006448 class Obj6:
6449+ uuid: UUIDClass
64016450 yes: Yes
64026451 dummy: int
6452+ var: Var
6453+ virtual: Virtual
64036454 void: Void
64046455 volatile: Volatile
64056456 wchar_t: WcharT
@@ -6415,8 +6466,11 @@ class Obj6:
64156466 @staticmethod
64166467 def from_dict(obj: Any) -> 'Obj6':
64176468 assert isinstance(obj, dict)
6469+ uuid = UUIDClass.from_dict(obj["UUID"])
64186470 yes = Yes.from_dict(obj["YES"])
64196471 dummy = from_int(obj["dummy"])
6472+ var = Var.from_dict(obj["var"])
6473+ virtual = Virtual.from_dict(obj["virtual"])
64206474 void = Void.from_dict(obj["void"])
64216475 volatile = Volatile.from_dict(obj["volatile"])
64226476 wchar_t = WcharT.from_dict(obj["wchar_t"])
@@ -6428,12 +6482,15 @@ class Obj6:
64286482 xor = Xor.from_dict(obj["xor"])
64296483 xor_eq = XorEq.from_dict(obj["xor_eq"])
64306484 obj6_yield = Yield.from_dict(obj["yield"])
6431- return Obj6(yes, dummy, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
6485+ return Obj6(uuid, yes, dummy, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield)
64326486
64336487 def to_dict(self) -> dict:
64346488 result: dict = {}
6489+ result["UUID"] = to_class(UUIDClass, self.uuid)
64356490 result["YES"] = to_class(Yes, self.yes)
64366491 result["dummy"] = from_int(self.dummy)
6492+ result["var"] = to_class(Var, self.var)
6493+ result["virtual"] = to_class(Virtual, self.virtual)
64376494 result["void"] = to_class(Void, self.void)
64386495 result["volatile"] = to_class(Volatile, self.volatile)
64396496 result["wchar_t"] = to_class(WcharT, self.wchar_t)
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,31 @@ 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,
7290+ }
7291+ end
7292+
7293+ def to_json(options = nil)
7294+ JSON.generate(to_dynamic, options)
7295+ end
7296+end
7297+
7298+class Select < Dry::Struct
7299+ attribute :select_select, Types::Integer
7300+
7301+ def self.from_dynamic!(d)
7302+ d = Types::Hash[d]
7303+ new(
7304+ select_select: d.fetch("select"),
7305+ )
7306+ end
7307+
7308+ def self.from_json!(json)
7309+ from_dynamic!(JSON.parse(json))
7310+ end
7311+
7312+ def to_dynamic
7313+ {
7314+ "select" => select_select,
72907315 }
72917316 end
72927317
@@ -7520,6 +7545,56 @@ class Type < Dry::Struct
75207545 end
75217546 end
75227547
7548+class Sealed < Dry::Struct
7549+ attribute :sealed, Types::Integer
7550+
7551+ def self.from_dynamic!(d)
7552+ d = Types::Hash[d]
7553+ new(
7554+ sealed: d.fetch("sealed"),
7555+ )
7556+ end
7557+
7558+ def self.from_json!(json)
7559+ from_dynamic!(JSON.parse(json))
7560+ end
7561+
7562+ def to_dynamic
7563+ {
7564+ "sealed" => sealed,
7565+ }
7566+ end
7567+
7568+ def to_json(options = nil)
7569+ JSON.generate(to_dynamic, options)
7570+ end
7571+end
7572+
7573+class Sel < Dry::Struct
7574+ attribute :sel, Types::Integer
7575+
7576+ def self.from_dynamic!(d)
7577+ d = Types::Hash[d]
7578+ new(
7579+ sel: d.fetch("SEL"),
7580+ )
7581+ end
7582+
7583+ def self.from_json!(json)
7584+ from_dynamic!(JSON.parse(json))
7585+ end
7586+
7587+ def to_dynamic
7588+ {
7589+ "SEL" => sel,
7590+ }
7591+ end
7592+
7593+ def to_json(options = nil)
7594+ JSON.generate(to_dynamic, options)
7595+ end
7596+end
7597+
75237598 class Obj5Self < Dry::Struct
75247599 attribute :self_self, Types::Integer
75257600
@@ -8820,83 +8895,9 @@ class Utf8JSONWriter < Dry::Struct
88208895 end
88218896 end
88228897
8823-class UUID < Dry::Struct
8824- attribute :uuid, Types::Integer
8825-
8826- def self.from_dynamic!(d)
8827- d = Types::Hash[d]
8828- new(
8829- uuid: d.fetch("UUID"),
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- "UUID" => uuid,
8840- }
8841- end
8842-
8843- def to_json(options = nil)
8844- JSON.generate(to_dynamic, options)
8845- end
8846-end
8847-
8848-class Var < Dry::Struct
8849- attribute :var, Types::Integer
8850-
8851- def self.from_dynamic!(d)
8852- d = Types::Hash[d]
8853- new(
8854- var: d.fetch("var"),
8855- )
8856- end
8857-
8858- def self.from_json!(json)
8859- from_dynamic!(JSON.parse(json))
8860- end
8861-
8862- def to_dynamic
8863- {
8864- "var" => var,
8865- }
8866- end
8867-
8868- def to_json(options = nil)
8869- JSON.generate(to_dynamic, options)
8870- end
8871-end
8872-
8873-class Virtual < Dry::Struct
8874- attribute :virtual, Types::Integer
8875-
8876- def self.from_dynamic!(d)
8877- d = Types::Hash[d]
8878- new(
8879- virtual: d.fetch("virtual"),
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- "virtual" => virtual,
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
8900+ attribute :obj5_select, Select
89008901 attribute :obj5_self, SelfClass
89018902 attribute :obj5_super, Super
89028903 attribute :obj5_system, System
@@ -8906,6 +8907,8 @@ class Obj5 < Dry::Struct
89068907 attribute :obj5_true, True
89078908 attribute :obj5_try, Try
89088909 attribute :obj5_type, Type
8910+ attribute :sealed, Sealed
8911+ attribute :sel, Sel
89098912 attribute :self_1, Obj5Self
89108913 attribute :sendable, Sendable
89118914 attribute :serialize, Serialize
@@ -8958,14 +8961,12 @@ class Obj5 < Dry::Struct
89588961 attribute :using, Using
89598962 attribute :utf8_json_reader, Utf8JSONReader
89608963 attribute :utf8_json_writer, Utf8JSONWriter
8961- attribute :uuid, UUID
8962- attribute :var, Var
8963- attribute :virtual, Virtual
89648964
89658965 def self.from_dynamic!(d)
89668966 d = Types::Hash[d]
89678967 new(
89688968 dummy: d.fetch("dummy"),
8969+ obj5_select: Select.from_dynamic!(d.fetch("select")),
89698970 obj5_self: SelfClass.from_dynamic!(d.fetch("Self")),
89708971 obj5_super: Super.from_dynamic!(d.fetch("super")),
89718972 obj5_system: System.from_dynamic!(d.fetch("system")),
@@ -8975,6 +8976,8 @@ class Obj5 < Dry::Struct
89758976 obj5_true: True.from_dynamic!(d.fetch("True")),
89768977 obj5_try: Try.from_dynamic!(d.fetch("try")),
89778978 obj5_type: Type.from_dynamic!(d.fetch("Type")),
8979+ sealed: Sealed.from_dynamic!(d.fetch("sealed")),
8980+ sel: Sel.from_dynamic!(d.fetch("SEL")),
89788981 self_1: Obj5Self.from_dynamic!(d.fetch("self")),
89798982 sendable: Sendable.from_dynamic!(d.fetch("Sendable")),
89808983 serialize: Serialize.from_dynamic!(d.fetch("serialize")),
@@ -9027,9 +9030,6 @@ class Obj5 < Dry::Struct
90279030 using: Using.from_dynamic!(d.fetch("using")),
90289031 utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")),
90299032 utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")),
9030- uuid: UUID.from_dynamic!(d.fetch("UUID")),
9031- var: Var.from_dynamic!(d.fetch("var")),
9032- virtual: Virtual.from_dynamic!(d.fetch("virtual")),
90339033 )
90349034 end
90359035
@@ -9040,6 +9040,7 @@ class Obj5 < Dry::Struct
90409040 def to_dynamic
90419041 {
90429042 "dummy" => dummy,
9043+ "select" => obj5_select.to_dynamic,
90439044 "Self" => obj5_self.to_dynamic,
90449045 "super" => obj5_super.to_dynamic,
90459046 "system" => obj5_system.to_dynamic,
@@ -9049,6 +9050,8 @@ class Obj5 < Dry::Struct
90499050 "True" => obj5_true.to_dynamic,
90509051 "try" => obj5_try.to_dynamic,
90519052 "Type" => obj5_type.to_dynamic,
9053+ "sealed" => sealed.to_dynamic,
9054+ "SEL" => sel.to_dynamic,
90529055 "self" => self_1.to_dynamic,
90539056 "Sendable" => sendable.to_dynamic,
90549057 "serialize" => serialize.to_dynamic,
@@ -9101,9 +9104,6 @@ class Obj5 < Dry::Struct
91019104 "using" => using.to_dynamic,
91029105 "Utf8JsonReader" => utf8_json_reader.to_dynamic,
91039106 "Utf8JsonWriter" => utf8_json_writer.to_dynamic,
9104- "UUID" => uuid.to_dynamic,
9105- "var" => var.to_dynamic,
9106- "virtual" => virtual.to_dynamic,
91079107 }
91089108 end
91099109
@@ -9187,6 +9187,81 @@ class Yield < Dry::Struct
91879187 end
91889188 end
91899189
9190+class UUID < Dry::Struct
9191+ attribute :uuid, Types::Integer
9192+
9193+ def self.from_dynamic!(d)
9194+ d = Types::Hash[d]
9195+ new(
9196+ uuid: d.fetch("UUID"),
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+ "UUID" => uuid,
9207+ }
9208+ end
9209+
9210+ def to_json(options = nil)
9211+ JSON.generate(to_dynamic, options)
9212+ end
9213+end
9214+
9215+class Var < Dry::Struct
9216+ attribute :var, Types::Integer
9217+
9218+ def self.from_dynamic!(d)
9219+ d = Types::Hash[d]
9220+ new(
9221+ var: d.fetch("var"),
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+ "var" => var,
9232+ }
9233+ end
9234+
9235+ def to_json(options = nil)
9236+ JSON.generate(to_dynamic, options)
9237+ end
9238+end
9239+
9240+class Virtual < Dry::Struct
9241+ attribute :virtual, Types::Integer
9242+
9243+ def self.from_dynamic!(d)
9244+ d = Types::Hash[d]
9245+ new(
9246+ virtual: d.fetch("virtual"),
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+ "virtual" => virtual,
9257+ }
9258+ end
9259+
9260+ def to_json(options = nil)
9261+ JSON.generate(to_dynamic, options)
9262+ end
9263+end
9264+
91909265 class Void < Dry::Struct
91919266 attribute :void, Types::Integer
91929267
@@ -9417,6 +9492,9 @@ class Obj6 < Dry::Struct
94179492 attribute :obj6_while, While
94189493 attribute :obj6_with, With
94199494 attribute :obj6_yield, Yield
9495+ attribute :uuid, UUID
9496+ attribute :var, Var
9497+ attribute :virtual, Virtual
94209498 attribute :void, Void
94219499 attribute :volatile, Volatile
94229500 attribute :wchar_t, WcharT
@@ -9434,6 +9512,9 @@ class Obj6 < Dry::Struct
94349512 obj6_while: While.from_dynamic!(d.fetch("while")),
94359513 obj6_with: With.from_dynamic!(d.fetch("with")),
94369514 obj6_yield: Yield.from_dynamic!(d.fetch("yield")),
9515+ uuid: UUID.from_dynamic!(d.fetch("UUID")),
9516+ var: Var.from_dynamic!(d.fetch("var")),
9517+ virtual: Virtual.from_dynamic!(d.fetch("virtual")),
94379518 void: Void.from_dynamic!(d.fetch("void")),
94389519 volatile: Volatile.from_dynamic!(d.fetch("volatile")),
94399520 wchar_t: WcharT.from_dynamic!(d.fetch("wchar_t")),
@@ -9456,6 +9537,9 @@ class Obj6 < Dry::Struct
94569537 "while" => obj6_while.to_dynamic,
94579538 "with" => obj6_with.to_dynamic,
94589539 "yield" => obj6_yield.to_dynamic,
9540+ "UUID" => uuid.to_dynamic,
9541+ "var" => var.to_dynamic,
9542+ "virtual" => virtual.to_dynamic,
94599543 "void" => void.to_dynamic,
94609544 "volatile" => volatile.to_dynamic,
94619545 "wchar_t" => wchar_t.to_dynamic,
Mrustdefault / module_under_test.rs+82 −55
@@ -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 = "unsafe")]
20602064 pub obj5_unsafe: Unsafe,
20612065
2062- #[serde(rename = "virtual")]
2063- pub obj5_virtual: Virtual,
2064-
20652066 #[serde(rename = "self")]
20662067 pub purple_self: Obj5Self,
20672068
@@ -2071,6 +2072,13 @@ pub struct Obj5 {
20712072 #[serde(rename = "type")]
20722073 pub purple_type: TypeClass,
20732074
2075+ pub sealed: Sealed,
2076+
2077+ #[serde(rename = "SEL")]
2078+ pub sel: Sel,
2079+
2080+ pub select: Select,
2081+
20742082 #[serde(rename = "Sendable")]
20752083 pub sendable: Sendable,
20762084
@@ -2178,11 +2186,6 @@ pub struct Obj5 {
21782186
21792187 #[serde(rename = "Utf8JsonWriter")]
21802188 pub utf8_json_writer: Utf8JsonWriter,
2181-
2182- #[serde(rename = "UUID")]
2183- pub uuid: Uuid,
2184-
2185- pub var: Var,
21862189 }
21872190
21882191 #[derive(Debug, Clone, Serialize, Deserialize)]
@@ -2248,12 +2251,6 @@ pub struct Unsafe {
22482251 pub unsafe_unsafe: i64,
22492252 }
22502253
2251-#[derive(Debug, Clone, Serialize, Deserialize)]
2252-pub struct Virtual {
2253- #[serde(rename = "virtual")]
2254- pub virtual_virtual: i64,
2255-}
2256-
22572254 #[derive(Debug, Clone, Serialize, Deserialize)]
22582255 pub struct Obj5Self {
22592256 #[serde(rename = "self")]
@@ -2272,6 +2269,22 @@ pub struct TypeClass {
22722269 pub type_type: i64,
22732270 }
22742271
2272+#[derive(Debug, Clone, Serialize, Deserialize)]
2273+pub struct Sealed {
2274+ pub sealed: i64,
2275+}
2276+
2277+#[derive(Debug, Clone, Serialize, Deserialize)]
2278+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2279+pub struct Sel {
2280+ pub sel: i64,
2281+}
2282+
2283+#[derive(Debug, Clone, Serialize, Deserialize)]
2284+pub struct Select {
2285+ pub select: i64,
2286+}
2287+
22752288 #[derive(Debug, Clone, Serialize, Deserialize)]
22762289 #[serde(rename_all = "PascalCase")]
22772290 pub struct Sendable {
@@ -2524,21 +2537,13 @@ pub struct Utf8JsonWriter {
25242537 pub utf8_json_writer: i64,
25252538 }
25262539
2527-#[derive(Debug, Clone, Serialize, Deserialize)]
2528-#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2529-pub struct Uuid {
2530- pub uuid: i64,
2531-}
2532-
2533-#[derive(Debug, Clone, Serialize, Deserialize)]
2534-pub struct Var {
2535- pub var: i64,
2536-}
2537-
25382540 #[derive(Debug, Clone, Serialize, Deserialize)]
25392541 pub struct Obj6 {
25402542 pub dummy: i64,
25412543
2544+ #[serde(rename = "virtual")]
2545+ pub obj6_virtual: Virtual,
2546+
25422547 #[serde(rename = "where")]
25432548 pub obj6_where: Where,
25442549
@@ -2548,6 +2553,11 @@ pub struct Obj6 {
25482553 #[serde(rename = "yield")]
25492554 pub obj6_yield: Yield,
25502555
2556+ #[serde(rename = "UUID")]
2557+ pub uuid: Uuid,
2558+
2559+ pub var: Var,
2560+
25512561 pub void: Void,
25522562
25532563 pub volatile: Volatile,
@@ -2569,6 +2579,12 @@ pub struct Obj6 {
25692579 pub yes: Yes,
25702580 }
25712581
2582+#[derive(Debug, Clone, Serialize, Deserialize)]
2583+pub struct Virtual {
2584+ #[serde(rename = "virtual")]
2585+ pub virtual_virtual: i64,
2586+}
2587+
25722588 #[derive(Debug, Clone, Serialize, Deserialize)]
25732589 pub struct Where {
25742590 #[serde(rename = "where")]
@@ -2587,6 +2603,17 @@ pub struct Yield {
25872603 pub yield_yield: i64,
25882604 }
25892605
2606+#[derive(Debug, Clone, Serialize, Deserialize)]
2607+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2608+pub struct Uuid {
2609+ pub uuid: i64,
2610+}
2611+
2612+#[derive(Debug, Clone, Serialize, Deserialize)]
2613+pub struct Var {
2614+ pub var: i64,
2615+}
2616+
25902617 #[derive(Debug, Clone, Serialize, Deserialize)]
25912618 pub struct Void {
25922619 pub void: 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,16 +1406,9 @@ 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,
1411+ val `sealed` : Sealed,
14111412 val self : SelfClass,
14121413 val `super` : Super,
14131414 val `then` : Then,
@@ -1416,9 +1417,10 @@ case class Obj5 (
14161417 val True : True,
14171418 val `try` : Try,
14181419 val Type : Type,
1419- val `var` : Var,
14201420 val `true` : TrueClass,
14211421 val `type` : TypeClass,
1422+ val SEL : Sel,
1423+ val select : Select,
14221424 val Self : Self,
14231425 val Sendable : Sendable,
14241426 val serialize : Serialize,
@@ -1471,9 +1473,11 @@ case class Obj5 (
14711473 val ushort : Ushort,
14721474 val using : Using,
14731475 val Utf8JsonReader : Utf8JSONReader,
1474- val Utf8JsonWriter : Utf8JSONWriter,
1475- val UUID : UUID,
1476- val virtual : Virtual
1476+ val Utf8JsonWriter : Utf8JSONWriter
1477+) derives OptionPickler.ReadWriter
1478+
1479+case class Sealed (
1480+ val `sealed` : Long
14771481 ) derives OptionPickler.ReadWriter
14781482
14791483 case class SelfClass (
@@ -1508,10 +1512,6 @@ case class Type (
15081512 val Type : Long
15091513 ) derives OptionPickler.ReadWriter
15101514
1511-case class Var (
1512- val `var` : Long
1513-) derives OptionPickler.ReadWriter
1514-
15151515 case class TrueClass (
15161516 val `true` : Long
15171517 ) derives OptionPickler.ReadWriter
@@ -1520,6 +1520,14 @@ case class TypeClass (
15201520 val `type` : Long
15211521 ) derives OptionPickler.ReadWriter
15221522
1523+case class Sel (
1524+ val SEL : Long
1525+) derives OptionPickler.ReadWriter
1526+
1527+case class Select (
1528+ val select : Long
1529+) derives OptionPickler.ReadWriter
1530+
15231531 case class Self (
15241532 val Self : Long
15251533 ) derives OptionPickler.ReadWriter
@@ -1726,19 +1734,14 @@ case class Utf8JSONWriter (
17261734 val Utf8JsonWriter : Long
17271735 ) derives OptionPickler.ReadWriter
17281736
1729-case class UUID (
1730- val UUID : Long
1731-) derives OptionPickler.ReadWriter
1732-
1733-case class Virtual (
1734- val virtual : Long
1735-) derives OptionPickler.ReadWriter
1736-
17371737 case class Obj6 (
17381738 val dummy : Long,
1739+ val `var` : Var,
17391740 val `while` : While,
17401741 val `with` : With,
17411742 val `yield` : Yield,
1743+ val UUID : UUID,
1744+ val virtual : Virtual,
17421745 val void : Void,
17431746 val volatile : Volatile,
17441747 val wchar_t : WcharT,
@@ -1750,6 +1753,10 @@ case class Obj6 (
17501753 val YES : Yes
17511754 ) derives OptionPickler.ReadWriter
17521755
1756+case class Var (
1757+ val `var` : Long
1758+) derives OptionPickler.ReadWriter
1759+
17531760 case class While (
17541761 val `while` : Long
17551762 ) derives OptionPickler.ReadWriter
@@ -1762,6 +1769,14 @@ case class Yield (
17621769 val `yield` : Long
17631770 ) derives OptionPickler.ReadWriter
17641771
1772+case class UUID (
1773+ val UUID : Long
1774+) derives OptionPickler.ReadWriter
1775+
1776+case class Virtual (
1777+ val virtual : Long
1778+) derives OptionPickler.ReadWriter
1779+
17651780 case class Void (
17661781 val void : Long
17671782 ) 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,16 +1373,9 @@ 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,
1378+ val `sealed` : Sealed,
13781379 val self : SelfClass,
13791380 val `super` : Super,
13801381 val `then` : Then,
@@ -1383,9 +1384,10 @@ case class Obj5 (
13831384 val True : True,
13841385 val `try` : Try,
13851386 val Type : Type,
1386- val `var` : Var,
13871387 val `true` : TrueClass,
13881388 val `type` : TypeClass,
1389+ val SEL : Sel,
1390+ val select : Select,
13891391 val Self : Self,
13901392 val Sendable : Sendable,
13911393 val serialize : Serialize,
@@ -1436,9 +1438,7 @@ case class Obj5 (
14361438 val ushort : Ushort,
14371439 val using : Using,
14381440 val Utf8JsonReader : Utf8JSONReader,
1439- val Utf8JsonWriter : Utf8JSONWriter,
1440- val UUID : UUID,
1441- val virtual : Virtual
1441+ val Utf8JsonWriter : Utf8JSONWriter
14421442 )
14431443
14441444 object Obj5:
@@ -1451,6 +1451,10 @@ object Obj5:
14511451 )
14521452 given io.circe.Codec.AsObject[Obj5] = io.circe.derivation.ConfiguredCodec.derived
14531453
1454+case class Sealed (
1455+ val `sealed` : Long
1456+) derives Encoder.AsObject, Decoder
1457+
14541458 case class SelfClass (
14551459 val self : Long
14561460 ) derives Encoder.AsObject, Decoder
@@ -1483,10 +1487,6 @@ case class Type (
14831487 val Type : Long
14841488 ) derives Encoder.AsObject, Decoder
14851489
1486-case class Var (
1487- val `var` : Long
1488-) derives Encoder.AsObject, Decoder
1489-
14901490 case class TrueClass (
14911491 val `true` : Long
14921492 ) derives Encoder.AsObject, Decoder
@@ -1495,6 +1495,14 @@ case class TypeClass (
14951495 val `type` : Long
14961496 ) derives Encoder.AsObject, Decoder
14971497
1498+case class Sel (
1499+ val SEL : Long
1500+) derives Encoder.AsObject, Decoder
1501+
1502+case class Select (
1503+ val select : Long
1504+) derives Encoder.AsObject, Decoder
1505+
14981506 case class Self (
14991507 val Self : Long
15001508 ) derives Encoder.AsObject, Decoder
@@ -1717,19 +1725,14 @@ case class Utf8JSONWriter (
17171725 val Utf8JsonWriter : Long
17181726 ) derives Encoder.AsObject, Decoder
17191727
1720-case class UUID (
1721- val UUID : Long
1722-) derives Encoder.AsObject, Decoder
1723-
1724-case class Virtual (
1725- val virtual : Long
1726-) derives Encoder.AsObject, Decoder
1727-
17281728 case class Obj6 (
17291729 val dummy : Long,
1730+ val `var` : Var,
17301731 val `while` : While,
17311732 val `with` : With,
17321733 val `yield` : Yield,
1734+ val UUID : UUID,
1735+ val virtual : Virtual,
17331736 val void : Void,
17341737 val volatile : Volatile,
17351738 val wchar_t : WcharT,
@@ -1741,6 +1744,10 @@ case class Obj6 (
17411744 val YES : Yes
17421745 ) derives Encoder.AsObject, Decoder
17431746
1747+case class Var (
1748+ val `var` : Long
1749+) derives Encoder.AsObject, Decoder
1750+
17441751 case class While (
17451752 val `while` : Long
17461753 ) derives Encoder.AsObject, Decoder
@@ -1753,6 +1760,14 @@ case class Yield (
17531760 val `yield` : Long
17541761 ) derives Encoder.AsObject, Decoder
17551762
1763+case class UUID (
1764+ val UUID : Long
1765+) derives Encoder.AsObject, Decoder
1766+
1767+case class Virtual (
1768+ val virtual : Long
1769+) derives Encoder.AsObject, Decoder
1770+
17561771 case class Void (
17571772 val void : Long
17581773 ) derives Encoder.AsObject, Decoder
Mswiftdefault / quicktype.swift+473 −329
@@ -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
@@ -12559,9 +12559,11 @@ struct Obj5: Codable {
1255912559 let obj5Type: Obj5Type
1256012560 let obj5Typealias: Typealias
1256112561 let obj5Unowned: Unowned
12562- let obj5Var: Var
1256312562 let purpleSelf: Obj5Self
1256412563 let purpleTrue: TrueClass
12564+ let sealed: Sealed
12565+ let sel: Sel
12566+ let select: Select
1256512567 let sendable: Sendable
1256612568 let serialize: Serialize
1256712569 let serializerProvider: SerializerProvider
@@ -12607,8 +12609,6 @@ struct Obj5: Codable {
1260712609 let using: Using
1260812610 let utf8JSONReader: Utf8JSONReader
1260912611 let utf8JSONWriter: Utf8JSONWriter
12610- let uuid: UUIDClass
12611- let virtual: Virtual
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12626,9 +12626,11 @@ struct Obj5: Codable {
1262612626 case obj5Type = "type"
1262712627 case obj5Typealias = "typealias"
1262812628 case obj5Unowned = "unowned"
12629- case obj5Var = "var"
1263012629 case purpleSelf = "self"
1263112630 case purpleTrue = "true"
12631+ case sealed = "sealed"
12632+ case sel = "SEL"
12633+ case select = "select"
1263212634 case sendable = "Sendable"
1263312635 case serialize = "serialize"
1263412636 case serializerProvider = "SerializerProvider"
@@ -12674,8 +12676,6 @@ struct Obj5: Codable {
1267412676 case using = "using"
1267512677 case utf8JSONReader = "Utf8JsonReader"
1267612678 case utf8JSONWriter = "Utf8JsonWriter"
12677- case uuid = "UUID"
12678- case virtual = "virtual"
1267912679 }
1268012680 }
1268112681
@@ -12713,9 +12713,11 @@ extension Obj5 {
1271312713 obj5Type: Obj5Type? = nil,
1271412714 obj5Typealias: Typealias? = nil,
1271512715 obj5Unowned: Unowned? = nil,
12716- obj5Var: Var? = nil,
1271712716 purpleSelf: Obj5Self? = nil,
1271812717 purpleTrue: TrueClass? = nil,
12718+ sealed: Sealed? = nil,
12719+ sel: Sel? = nil,
12720+ select: Select? = nil,
1271912721 sendable: Sendable? = nil,
1272012722 serialize: Serialize? = nil,
1272112723 serializerProvider: SerializerProvider? = nil,
@@ -12760,9 +12762,7 @@ extension Obj5 {
1276012762 ushort: Ushort? = nil,
1276112763 using: Using? = nil,
1276212764 utf8JSONReader: Utf8JSONReader? = nil,
12763- utf8JSONWriter: Utf8JSONWriter? = nil,
12764- uuid: UUIDClass? = nil,
12765- virtual: Virtual? = nil
12765+ utf8JSONWriter: Utf8JSONWriter? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12780,9 +12780,11 @@ extension Obj5 {
1278012780 obj5Type: obj5Type ?? self.obj5Type,
1278112781 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1278212782 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
12783- obj5Var: obj5Var ?? self.obj5Var,
1278412783 purpleSelf: purpleSelf ?? self.purpleSelf,
1278512784 purpleTrue: purpleTrue ?? self.purpleTrue,
12785+ sealed: sealed ?? self.sealed,
12786+ sel: sel ?? self.sel,
12787+ select: select ?? self.select,
1278612788 sendable: sendable ?? self.sendable,
1278712789 serialize: serialize ?? self.serialize,
1278812790 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -12827,9 +12829,7 @@ extension Obj5 {
1282712829 ushort: ushort ?? self.ushort,
1282812830 using: using ?? self.using,
1282912831 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
12830- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
12831- uuid: uuid ?? self.uuid,
12832- virtual: virtual ?? self.virtual
12832+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
1283312833 )
1283412834 }
1283512835
@@ -13458,20 +13458,20 @@ extension Unowned {
1345813458 }
1345913459 }
1346013460
13461-// MARK: - Var
13462-struct Var: Codable {
13463- let varVar: Int
13461+// MARK: - Obj5Self
13462+struct Obj5Self: Codable {
13463+ let selfSelf: Int
1346413464
1346513465 enum CodingKeys: String, CodingKey {
13466- case varVar = "var"
13466+ case selfSelf = "self"
1346713467 }
1346813468 }
1346913469
13470-// MARK: Var convenience initializers and mutators
13470+// MARK: Obj5Self convenience initializers and mutators
1347113471
13472-extension Var {
13472+extension Obj5Self {
1347313473 init(data: Data) throws {
13474- self = try newJSONDecoder().decode(Var.self, from: data)
13474+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1347513475 }
1347613476
1347713477 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13486,10 +13486,10 @@ extension Var {
1348613486 }
1348713487
1348813488 func with(
13489- varVar: Int? = nil
13490- ) -> Var {
13491- return Var(
13492- varVar: varVar ?? self.varVar
13489+ selfSelf: Int? = nil
13490+ ) -> Obj5Self {
13491+ return Obj5Self(
13492+ selfSelf: selfSelf ?? self.selfSelf
1349313493 )
1349413494 }
1349513495
@@ -13502,20 +13502,20 @@ extension Var {
1350213502 }
1350313503 }
1350413504
13505-// MARK: - Obj5Self
13506-struct Obj5Self: Codable {
13507- let selfSelf: Int
13505+// MARK: - TrueClass
13506+struct TrueClass: Codable {
13507+ let trueTrue: Int
1350813508
1350913509 enum CodingKeys: String, CodingKey {
13510- case selfSelf = "self"
13510+ case trueTrue = "true"
1351113511 }
1351213512 }
1351313513
13514-// MARK: Obj5Self convenience initializers and mutators
13514+// MARK: TrueClass convenience initializers and mutators
1351513515
13516-extension Obj5Self {
13516+extension TrueClass {
1351713517 init(data: Data) throws {
13518- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13518+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1351913519 }
1352013520
1352113521 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13530,10 +13530,10 @@ extension Obj5Self {
1353013530 }
1353113531
1353213532 func with(
13533- selfSelf: Int? = nil
13534- ) -> Obj5Self {
13535- return Obj5Self(
13536- selfSelf: selfSelf ?? self.selfSelf
13533+ trueTrue: Int? = nil
13534+ ) -> TrueClass {
13535+ return TrueClass(
13536+ trueTrue: trueTrue ?? self.trueTrue
1353713537 )
1353813538 }
1353913539
@@ -13546,20 +13546,20 @@ extension Obj5Self {
1354613546 }
1354713547 }
1354813548
13549-// MARK: - TrueClass
13550-struct TrueClass: Codable {
13551- let trueTrue: Int
13549+// MARK: - Sealed
13550+struct Sealed: Codable {
13551+ let sealed: Int
1355213552
1355313553 enum CodingKeys: String, CodingKey {
13554- case trueTrue = "true"
13554+ case sealed = "sealed"
1355513555 }
1355613556 }
1355713557
13558-// MARK: TrueClass convenience initializers and mutators
13558+// MARK: Sealed convenience initializers and mutators
1355913559
13560-extension TrueClass {
13560+extension Sealed {
1356113561 init(data: Data) throws {
13562- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13562+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1356313563 }
1356413564
1356513565 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13574,10 +13574,98 @@ extension TrueClass {
1357413574 }
1357513575
1357613576 func with(
13577- trueTrue: Int? = nil
13578- ) -> TrueClass {
13579- return TrueClass(
13580- trueTrue: trueTrue ?? self.trueTrue
13577+ sealed: Int? = nil
13578+ ) -> Sealed {
13579+ return Sealed(
13580+ sealed: sealed ?? self.sealed
13581+ )
13582+ }
13583+
13584+ func jsonData() throws -> Data {
13585+ return try newJSONEncoder().encode(self)
13586+ }
13587+
13588+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13589+ return String(data: try self.jsonData(), encoding: encoding)
13590+ }
13591+}
13592+
13593+// MARK: - Sel
13594+struct Sel: Codable {
13595+ let sel: Int
13596+
13597+ enum CodingKeys: String, CodingKey {
13598+ case sel = "SEL"
13599+ }
13600+}
13601+
13602+// MARK: Sel convenience initializers and mutators
13603+
13604+extension Sel {
13605+ init(data: Data) throws {
13606+ self = try newJSONDecoder().decode(Sel.self, from: data)
13607+ }
13608+
13609+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13610+ guard let data = json.data(using: encoding) else {
13611+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13612+ }
13613+ try self.init(data: data)
13614+ }
13615+
13616+ init(fromURL url: URL) throws {
13617+ try self.init(data: try Data(contentsOf: url))
13618+ }
13619+
13620+ func with(
13621+ sel: Int? = nil
13622+ ) -> Sel {
13623+ return Sel(
13624+ sel: sel ?? self.sel
13625+ )
13626+ }
13627+
13628+ func jsonData() throws -> Data {
13629+ return try newJSONEncoder().encode(self)
13630+ }
13631+
13632+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13633+ return String(data: try self.jsonData(), encoding: encoding)
13634+ }
13635+}
13636+
13637+// MARK: - Select
13638+struct Select: Codable {
13639+ let select: Int
13640+
13641+ enum CodingKeys: String, CodingKey {
13642+ case select = "select"
13643+ }
13644+}
13645+
13646+// MARK: Select convenience initializers and mutators
13647+
13648+extension Select {
13649+ init(data: Data) throws {
13650+ self = try newJSONDecoder().decode(Select.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+ select: Int? = nil
13666+ ) -> Select {
13667+ return Select(
13668+ select: select ?? self.select
1358113669 )
1358213670 }
1358313671
@@ -15570,101 +15658,16 @@ extension Utf8JSONWriter {
1557015658 }
1557115659 }
1557215660
15573-// MARK: - UUIDClass
15574-struct UUIDClass: Codable {
15575- let uuid: Int
15576-
15577- enum CodingKeys: String, CodingKey {
15578- case uuid = "UUID"
15579- }
15580-}
15581-
15582-// MARK: UUIDClass convenience initializers and mutators
15583-
15584-extension UUIDClass {
15585- init(data: Data) throws {
15586- self = try newJSONDecoder().decode(UUIDClass.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- uuid: Int? = nil
15602- ) -> UUIDClass {
15603- return UUIDClass(
15604- uuid: uuid ?? self.uuid
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-// MARK: - Virtual
15618-struct Virtual: Codable {
15619- let virtual: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case virtual = "virtual"
15623- }
15624-}
15625-
15626-// MARK: Virtual convenience initializers and mutators
15627-
15628-extension Virtual {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Virtual.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- virtual: Int? = nil
15646- ) -> Virtual {
15647- return Virtual(
15648- virtual: virtual ?? self.virtual
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
15664+ let obj6Var: Var
1566415665 let obj6Weak: Weak
1566515666 let obj6Where: Where
1566615667 let obj6While: While
1566715668 let obj6WillSet: WillSet
15669+ let uuid: UUIDClass
15670+ let virtual: Virtual
1566815671 let void: Void
1566915672 let volatile: Volatile
1567015673 let wcharT: WcharT
@@ -15676,10 +15679,13 @@ struct Obj6: Codable {
1567615679
1567715680 enum CodingKeys: String, CodingKey {
1567815681 case dummy = "dummy"
15682+ case obj6Var = "var"
1567915683 case obj6Weak = "weak"
1568015684 case obj6Where = "where"
1568115685 case obj6While = "while"
1568215686 case obj6WillSet = "willSet"
15687+ case uuid = "UUID"
15688+ case virtual = "virtual"
1568315689 case void = "void"
1568415690 case volatile = "volatile"
1568515691 case wcharT = "wchar_t"
@@ -15711,10 +15717,13 @@ extension Obj6 {
1571115717
1571215718 func with(
1571315719 dummy: Int? = nil,
15720+ obj6Var: Var? = nil,
1571415721 obj6Weak: Weak? = nil,
1571515722 obj6Where: Where? = nil,
1571615723 obj6While: While? = nil,
1571715724 obj6WillSet: WillSet? = nil,
15725+ uuid: UUIDClass? = nil,
15726+ virtual: Virtual? = nil,
1571815727 void: Void? = nil,
1571915728 volatile: Volatile? = nil,
1572015729 wcharT: WcharT? = nil,
@@ -15726,10 +15735,13 @@ extension Obj6 {
1572615735 ) -> Obj6 {
1572715736 return Obj6(
1572815737 dummy: dummy ?? self.dummy,
15738+ obj6Var: obj6Var ?? self.obj6Var,
1572915739 obj6Weak: obj6Weak ?? self.obj6Weak,
1573015740 obj6Where: obj6Where ?? self.obj6Where,
1573115741 obj6While: obj6While ?? self.obj6While,
1573215742 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15743+ uuid: uuid ?? self.uuid,
15744+ virtual: virtual ?? self.virtual,
1573315745 void: void ?? self.void,
1573415746 volatile: volatile ?? self.volatile,
1573515747 wcharT: wcharT ?? self.wcharT,
@@ -15750,6 +15762,50 @@ extension Obj6 {
1575015762 }
1575115763 }
1575215764
15765+// MARK: - Var
15766+struct Var: Codable {
15767+ let varVar: Int
15768+
15769+ enum CodingKeys: String, CodingKey {
15770+ case varVar = "var"
15771+ }
15772+}
15773+
15774+// MARK: Var convenience initializers and mutators
15775+
15776+extension Var {
15777+ init(data: Data) throws {
15778+ self = try newJSONDecoder().decode(Var.self, from: data)
15779+ }
15780+
15781+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15782+ guard let data = json.data(using: encoding) else {
15783+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15784+ }
15785+ try self.init(data: data)
15786+ }
15787+
15788+ init(fromURL url: URL) throws {
15789+ try self.init(data: try Data(contentsOf: url))
15790+ }
15791+
15792+ func with(
15793+ varVar: Int? = nil
15794+ ) -> Var {
15795+ return Var(
15796+ varVar: varVar ?? self.varVar
15797+ )
15798+ }
15799+
15800+ func jsonData() throws -> Data {
15801+ return try newJSONEncoder().encode(self)
15802+ }
15803+
15804+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15805+ return String(data: try self.jsonData(), encoding: encoding)
15806+ }
15807+}
15808+
1575315809 // MARK: - Weak
1575415810 struct Weak: Codable {
1575515811 let weakWeak: Int
@@ -15926,6 +15982,94 @@ extension WillSet {
1592615982 }
1592715983 }
1592815984
15985+// MARK: - UUIDClass
15986+struct UUIDClass: Codable {
15987+ let uuid: Int
15988+
15989+ enum CodingKeys: String, CodingKey {
15990+ case uuid = "UUID"
15991+ }
15992+}
15993+
15994+// MARK: UUIDClass convenience initializers and mutators
15995+
15996+extension UUIDClass {
15997+ init(data: Data) throws {
15998+ self = try newJSONDecoder().decode(UUIDClass.self, from: data)
15999+ }
16000+
16001+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16002+ guard let data = json.data(using: encoding) else {
16003+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16004+ }
16005+ try self.init(data: data)
16006+ }
16007+
16008+ init(fromURL url: URL) throws {
16009+ try self.init(data: try Data(contentsOf: url))
16010+ }
16011+
16012+ func with(
16013+ uuid: Int? = nil
16014+ ) -> UUIDClass {
16015+ return UUIDClass(
16016+ uuid: uuid ?? self.uuid
16017+ )
16018+ }
16019+
16020+ func jsonData() throws -> Data {
16021+ return try newJSONEncoder().encode(self)
16022+ }
16023+
16024+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16025+ return String(data: try self.jsonData(), encoding: encoding)
16026+ }
16027+}
16028+
16029+// MARK: - Virtual
16030+struct Virtual: Codable {
16031+ let virtual: Int
16032+
16033+ enum CodingKeys: String, CodingKey {
16034+ case virtual = "virtual"
16035+ }
16036+}
16037+
16038+// MARK: Virtual convenience initializers and mutators
16039+
16040+extension Virtual {
16041+ init(data: Data) throws {
16042+ self = try newJSONDecoder().decode(Virtual.self, from: data)
16043+ }
16044+
16045+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16046+ guard let data = json.data(using: encoding) else {
16047+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16048+ }
16049+ try self.init(data: data)
16050+ }
16051+
16052+ init(fromURL url: URL) throws {
16053+ try self.init(data: try Data(contentsOf: url))
16054+ }
16055+
16056+ func with(
16057+ virtual: Int? = nil
16058+ ) -> Virtual {
16059+ return Virtual(
16060+ virtual: virtual ?? self.virtual
16061+ )
16062+ }
16063+
16064+ func jsonData() throws -> Data {
16065+ return try newJSONEncoder().encode(self)
16066+ }
16067+
16068+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16069+ return String(data: try self.jsonData(), encoding: encoding)
16070+ }
16071+}
16072+
1592916073 // MARK: - Void
1593016074 struct Void: Codable {
1593116075 let void: Int
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+545 −383
@@ -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
@@ -14126,9 +14126,11 @@ extension Select {
1412614126 let obj5Type: Obj5Type
1412714127 let obj5Typealias: Typealias
1412814128 let obj5Unowned: Unowned
14129- let obj5Var: Var
1413014129 let purpleSelf: Obj5Self
1413114130 let purpleTrue: TrueClass
14131+ let sealed: Sealed
14132+ let sel: Sel
14133+ let select: Select
1413214134 let sendable: Sendable
1413314135 let serialize: Serialize
1413414136 let serializerProvider: SerializerProvider
@@ -14174,8 +14176,6 @@ extension Select {
1417414176 let using: Using
1417514177 let utf8JSONReader: Utf8JSONReader
1417614178 let utf8JSONWriter: Utf8JSONWriter
14177- let uuid: UUIDClass
14178- let virtual: Virtual
1417914179
1418014180 enum CodingKeys: String, CodingKey {
1418114181 case dummy = "dummy"
@@ -14193,9 +14193,11 @@ extension Select {
1419314193 case obj5Type = "type"
1419414194 case obj5Typealias = "typealias"
1419514195 case obj5Unowned = "unowned"
14196- case obj5Var = "var"
1419714196 case purpleSelf = "self"
1419814197 case purpleTrue = "true"
14198+ case sealed = "sealed"
14199+ case sel = "SEL"
14200+ case select = "select"
1419914201 case sendable = "Sendable"
1420014202 case serialize = "serialize"
1420114203 case serializerProvider = "SerializerProvider"
@@ -14241,11 +14243,9 @@ extension Select {
1424114243 case using = "using"
1424214244 case utf8JSONReader = "Utf8JsonReader"
1424314245 case utf8JSONWriter = "Utf8JsonWriter"
14244- case uuid = "UUID"
14245- case virtual = "virtual"
1424614246 }
1424714247
14248- init(dummy: Int, 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, obj5Var: Var, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, 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, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual) {
14248+ init(dummy: Int, 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, purpleSelf: Obj5Self, purpleTrue: TrueClass, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, 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, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter) {
1424914249 self.dummy = dummy
1425014250 self.obj5Self = obj5Self
1425114251 self.obj5Set = obj5Set
@@ -14261,9 +14261,11 @@ extension Select {
1426114261 self.obj5Type = obj5Type
1426214262 self.obj5Typealias = obj5Typealias
1426314263 self.obj5Unowned = obj5Unowned
14264- self.obj5Var = obj5Var
1426514264 self.purpleSelf = purpleSelf
1426614265 self.purpleTrue = purpleTrue
14266+ self.sealed = sealed
14267+ self.sel = sel
14268+ self.select = select
1426714269 self.sendable = sendable
1426814270 self.serialize = serialize
1426914271 self.serializerProvider = serializerProvider
@@ -14309,8 +14311,6 @@ extension Select {
1430914311 self.using = using
1431014312 self.utf8JSONReader = utf8JSONReader
1431114313 self.utf8JSONWriter = utf8JSONWriter
14312- self.uuid = uuid
14313- self.virtual = virtual
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, 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, obj5Var: me.obj5Var, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, 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, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual)
14322+ self.init(dummy: me.dummy, 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, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, 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, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter)
1432314323 }
1432414324
1432514325 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -14349,9 +14349,11 @@ extension Obj5 {
1434914349 obj5Type: Obj5Type? = nil,
1435014350 obj5Typealias: Typealias? = nil,
1435114351 obj5Unowned: Unowned? = nil,
14352- obj5Var: Var? = nil,
1435314352 purpleSelf: Obj5Self? = nil,
1435414353 purpleTrue: TrueClass? = nil,
14354+ sealed: Sealed? = nil,
14355+ sel: Sel? = nil,
14356+ select: Select? = nil,
1435514357 sendable: Sendable? = nil,
1435614358 serialize: Serialize? = nil,
1435714359 serializerProvider: SerializerProvider? = nil,
@@ -14396,9 +14398,7 @@ extension Obj5 {
1439614398 ushort: Ushort? = nil,
1439714399 using: Using? = nil,
1439814400 utf8JSONReader: Utf8JSONReader? = nil,
14399- utf8JSONWriter: Utf8JSONWriter? = nil,
14400- uuid: UUIDClass? = nil,
14401- virtual: Virtual? = nil
14401+ utf8JSONWriter: Utf8JSONWriter? = nil
1440214402 ) -> Obj5 {
1440314403 return Obj5(
1440414404 dummy: dummy ?? self.dummy,
@@ -14416,9 +14416,11 @@ extension Obj5 {
1441614416 obj5Type: obj5Type ?? self.obj5Type,
1441714417 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1441814418 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
14419- obj5Var: obj5Var ?? self.obj5Var,
1442014419 purpleSelf: purpleSelf ?? self.purpleSelf,
1442114420 purpleTrue: purpleTrue ?? self.purpleTrue,
14421+ sealed: sealed ?? self.sealed,
14422+ sel: sel ?? self.sel,
14423+ select: select ?? self.select,
1442214424 sendable: sendable ?? self.sendable,
1442314425 serialize: serialize ?? self.serialize,
1442414426 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -14463,9 +14465,7 @@ extension Obj5 {
1446314465 ushort: ushort ?? self.ushort,
1446414466 using: using ?? self.using,
1446514467 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
14466- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
14467- uuid: uuid ?? self.uuid,
14468- virtual: virtual ?? self.virtual
14468+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
1446914469 )
1447014470 }
1447114471
@@ -15164,25 +15164,25 @@ extension Unowned {
1516415164 }
1516515165 }
1516615166
15167-// MARK: - Var
15168-@objcMembers class Var: NSObject, Codable {
15169- let varVar: Int
15167+// MARK: - Obj5Self
15168+@objcMembers class Obj5Self: NSObject, Codable {
15169+ let selfSelf: Int
1517015170
1517115171 enum CodingKeys: String, CodingKey {
15172- case varVar = "var"
15172+ case selfSelf = "self"
1517315173 }
1517415174
15175- init(varVar: Int) {
15176- self.varVar = varVar
15175+ init(selfSelf: Int) {
15176+ self.selfSelf = selfSelf
1517715177 }
1517815178 }
1517915179
15180-// MARK: Var convenience initializers and mutators
15180+// MARK: Obj5Self convenience initializers and mutators
1518115181
15182-extension Var {
15182+extension Obj5Self {
1518315183 convenience init(data: Data) throws {
15184- let me = try newJSONDecoder().decode(Var.self, from: data)
15185- self.init(varVar: me.varVar)
15184+ let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15185+ self.init(selfSelf: me.selfSelf)
1518615186 }
1518715187
1518815188 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15197,10 +15197,10 @@ extension Var {
1519715197 }
1519815198
1519915199 func with(
15200- varVar: Int? = nil
15201- ) -> Var {
15202- return Var(
15203- varVar: varVar ?? self.varVar
15200+ selfSelf: Int? = nil
15201+ ) -> Obj5Self {
15202+ return Obj5Self(
15203+ selfSelf: selfSelf ?? self.selfSelf
1520415204 )
1520515205 }
1520615206
@@ -15213,25 +15213,25 @@ extension Var {
1521315213 }
1521415214 }
1521515215
15216-// MARK: - Obj5Self
15217-@objcMembers class Obj5Self: NSObject, Codable {
15218- let selfSelf: Int
15216+// MARK: - TrueClass
15217+@objcMembers class TrueClass: NSObject, Codable {
15218+ let trueTrue: Int
1521915219
1522015220 enum CodingKeys: String, CodingKey {
15221- case selfSelf = "self"
15221+ case trueTrue = "true"
1522215222 }
1522315223
15224- init(selfSelf: Int) {
15225- self.selfSelf = selfSelf
15224+ init(trueTrue: Int) {
15225+ self.trueTrue = trueTrue
1522615226 }
1522715227 }
1522815228
15229-// MARK: Obj5Self convenience initializers and mutators
15229+// MARK: TrueClass convenience initializers and mutators
1523015230
15231-extension Obj5Self {
15231+extension TrueClass {
1523215232 convenience init(data: Data) throws {
15233- let me = try newJSONDecoder().decode(Obj5Self.self, from: data)
15234- self.init(selfSelf: me.selfSelf)
15233+ let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15234+ self.init(trueTrue: me.trueTrue)
1523515235 }
1523615236
1523715237 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15246,10 +15246,10 @@ extension Obj5Self {
1524615246 }
1524715247
1524815248 func with(
15249- selfSelf: Int? = nil
15250- ) -> Obj5Self {
15251- return Obj5Self(
15252- selfSelf: selfSelf ?? self.selfSelf
15249+ trueTrue: Int? = nil
15250+ ) -> TrueClass {
15251+ return TrueClass(
15252+ trueTrue: trueTrue ?? self.trueTrue
1525315253 )
1525415254 }
1525515255
@@ -15262,25 +15262,25 @@ extension Obj5Self {
1526215262 }
1526315263 }
1526415264
15265-// MARK: - TrueClass
15266-@objcMembers class TrueClass: NSObject, Codable {
15267- let trueTrue: Int
15265+// MARK: - Sealed
15266+@objcMembers class Sealed: NSObject, Codable {
15267+ let sealed: Int
1526815268
1526915269 enum CodingKeys: String, CodingKey {
15270- case trueTrue = "true"
15270+ case sealed = "sealed"
1527115271 }
1527215272
15273- init(trueTrue: Int) {
15274- self.trueTrue = trueTrue
15273+ init(sealed: Int) {
15274+ self.sealed = sealed
1527515275 }
1527615276 }
1527715277
15278-// MARK: TrueClass convenience initializers and mutators
15278+// MARK: Sealed convenience initializers and mutators
1527915279
15280-extension TrueClass {
15280+extension Sealed {
1528115281 convenience init(data: Data) throws {
15282- let me = try newJSONDecoder().decode(TrueClass.self, from: data)
15283- self.init(trueTrue: me.trueTrue)
15282+ let me = try newJSONDecoder().decode(Sealed.self, from: data)
15283+ self.init(sealed: me.sealed)
1528415284 }
1528515285
1528615286 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15295,10 +15295,108 @@ extension TrueClass {
1529515295 }
1529615296
1529715297 func with(
15298- trueTrue: Int? = nil
15299- ) -> TrueClass {
15300- return TrueClass(
15301- trueTrue: trueTrue ?? self.trueTrue
15298+ sealed: Int? = nil
15299+ ) -> Sealed {
15300+ return Sealed(
15301+ sealed: sealed ?? self.sealed
15302+ )
15303+ }
15304+
15305+ func jsonData() throws -> Data {
15306+ return try newJSONEncoder().encode(self)
15307+ }
15308+
15309+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15310+ return String(data: try self.jsonData(), encoding: encoding)
15311+ }
15312+}
15313+
15314+// MARK: - Sel
15315+@objcMembers class Sel: NSObject, Codable {
15316+ let sel: Int
15317+
15318+ enum CodingKeys: String, CodingKey {
15319+ case sel = "SEL"
15320+ }
15321+
15322+ init(sel: Int) {
15323+ self.sel = sel
15324+ }
15325+}
15326+
15327+// MARK: Sel convenience initializers and mutators
15328+
15329+extension Sel {
15330+ convenience init(data: Data) throws {
15331+ let me = try newJSONDecoder().decode(Sel.self, from: data)
15332+ self.init(sel: me.sel)
15333+ }
15334+
15335+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15336+ guard let data = json.data(using: encoding) else {
15337+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15338+ }
15339+ try self.init(data: data)
15340+ }
15341+
15342+ convenience init(fromURL url: URL) throws {
15343+ try self.init(data: try Data(contentsOf: url))
15344+ }
15345+
15346+ func with(
15347+ sel: Int? = nil
15348+ ) -> Sel {
15349+ return Sel(
15350+ sel: sel ?? self.sel
15351+ )
15352+ }
15353+
15354+ func jsonData() throws -> Data {
15355+ return try newJSONEncoder().encode(self)
15356+ }
15357+
15358+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15359+ return String(data: try self.jsonData(), encoding: encoding)
15360+ }
15361+}
15362+
15363+// MARK: - Select
15364+@objcMembers class Select: NSObject, Codable {
15365+ let select: Int
15366+
15367+ enum CodingKeys: String, CodingKey {
15368+ case select = "select"
15369+ }
15370+
15371+ init(select: Int) {
15372+ self.select = select
15373+ }
15374+}
15375+
15376+// MARK: Select convenience initializers and mutators
15377+
15378+extension Select {
15379+ convenience init(data: Data) throws {
15380+ let me = try newJSONDecoder().decode(Select.self, from: data)
15381+ self.init(select: me.select)
15382+ }
15383+
15384+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15385+ guard let data = json.data(using: encoding) else {
15386+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15387+ }
15388+ try self.init(data: data)
15389+ }
15390+
15391+ convenience init(fromURL url: URL) throws {
15392+ try self.init(data: try Data(contentsOf: url))
15393+ }
15394+
15395+ func with(
15396+ select: Int? = nil
15397+ ) -> Select {
15398+ return Select(
15399+ select: select ?? self.select
1530215400 )
1530315401 }
1530415402
@@ -17516,111 +17614,16 @@ extension Utf8JSONWriter {
1751617614 }
1751717615 }
1751817616
17519-// MARK: - UUIDClass
17520-@objcMembers class UUIDClass: NSObject, Codable {
17521- let uuid: Int
17522-
17523- enum CodingKeys: String, CodingKey {
17524- case uuid = "UUID"
17525- }
17526-
17527- init(uuid: Int) {
17528- self.uuid = uuid
17529- }
17530-}
17531-
17532-// MARK: UUIDClass convenience initializers and mutators
17533-
17534-extension UUIDClass {
17535- convenience init(data: Data) throws {
17536- let me = try newJSONDecoder().decode(UUIDClass.self, from: data)
17537- self.init(uuid: me.uuid)
17538- }
17539-
17540- convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17541- guard let data = json.data(using: encoding) else {
17542- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17543- }
17544- try self.init(data: data)
17545- }
17546-
17547- convenience init(fromURL url: URL) throws {
17548- try self.init(data: try Data(contentsOf: url))
17549- }
17550-
17551- func with(
17552- uuid: Int? = nil
17553- ) -> UUIDClass {
17554- return UUIDClass(
17555- uuid: uuid ?? self.uuid
17556- )
17557- }
17558-
17559- func jsonData() throws -> Data {
17560- return try newJSONEncoder().encode(self)
17561- }
17562-
17563- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17564- return String(data: try self.jsonData(), encoding: encoding)
17565- }
17566-}
17567-
17568-// MARK: - Virtual
17569-@objcMembers class Virtual: NSObject, Codable {
17570- let virtual: Int
17571-
17572- enum CodingKeys: String, CodingKey {
17573- case virtual = "virtual"
17574- }
17575-
17576- init(virtual: Int) {
17577- self.virtual = virtual
17578- }
17579-}
17580-
17581-// MARK: Virtual convenience initializers and mutators
17582-
17583-extension Virtual {
17584- convenience init(data: Data) throws {
17585- let me = try newJSONDecoder().decode(Virtual.self, from: data)
17586- self.init(virtual: me.virtual)
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- virtual: Int? = nil
17602- ) -> Virtual {
17603- return Virtual(
17604- virtual: virtual ?? self.virtual
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
17620+ let obj6Var: Var
1762017621 let obj6Weak: Weak
1762117622 let obj6Where: Where
1762217623 let obj6While: While
1762317624 let obj6WillSet: WillSet
17625+ let uuid: UUIDClass
17626+ let virtual: Virtual
1762417627 let void: Void
1762517628 let volatile: Volatile
1762617629 let wcharT: WcharT
@@ -17632,10 +17635,13 @@ extension Virtual {
1763217635
1763317636 enum CodingKeys: String, CodingKey {
1763417637 case dummy = "dummy"
17638+ case obj6Var = "var"
1763517639 case obj6Weak = "weak"
1763617640 case obj6Where = "where"
1763717641 case obj6While = "while"
1763817642 case obj6WillSet = "willSet"
17643+ case uuid = "UUID"
17644+ case virtual = "virtual"
1763917645 case void = "void"
1764017646 case volatile = "volatile"
1764117647 case wcharT = "wchar_t"
@@ -17646,12 +17652,15 @@ extension Virtual {
1764617652 case yield = "yield"
1764717653 }
1764817654
17649- init(dummy: Int, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
17655+ init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) {
1765017656 self.dummy = dummy
17657+ self.obj6Var = obj6Var
1765117658 self.obj6Weak = obj6Weak
1765217659 self.obj6Where = obj6Where
1765317660 self.obj6While = obj6While
1765417661 self.obj6WillSet = obj6WillSet
17662+ self.uuid = uuid
17663+ self.virtual = virtual
1765517664 self.void = void
1765617665 self.volatile = volatile
1765717666 self.wcharT = wcharT
@@ -17668,7 +17677,7 @@ extension Virtual {
1766817677 extension Obj6 {
1766917678 convenience init(data: Data) throws {
1767017679 let me = try newJSONDecoder().decode(Obj6.self, from: data)
17671- self.init(dummy: me.dummy, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield)
17680+ self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, 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)
1767217681 }
1767317682
1767417683 convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -17684,10 +17693,13 @@ extension Obj6 {
1768417693
1768517694 func with(
1768617695 dummy: Int? = nil,
17696+ obj6Var: Var? = nil,
1768717697 obj6Weak: Weak? = nil,
1768817698 obj6Where: Where? = nil,
1768917699 obj6While: While? = nil,
1769017700 obj6WillSet: WillSet? = nil,
17701+ uuid: UUIDClass? = nil,
17702+ virtual: Virtual? = nil,
1769117703 void: Void? = nil,
1769217704 volatile: Volatile? = nil,
1769317705 wcharT: WcharT? = nil,
@@ -17699,10 +17711,13 @@ extension Obj6 {
1769917711 ) -> Obj6 {
1770017712 return Obj6(
1770117713 dummy: dummy ?? self.dummy,
17714+ obj6Var: obj6Var ?? self.obj6Var,
1770217715 obj6Weak: obj6Weak ?? self.obj6Weak,
1770317716 obj6Where: obj6Where ?? self.obj6Where,
1770417717 obj6While: obj6While ?? self.obj6While,
1770517718 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17719+ uuid: uuid ?? self.uuid,
17720+ virtual: virtual ?? self.virtual,
1770617721 void: void ?? self.void,
1770717722 volatile: volatile ?? self.volatile,
1770817723 wcharT: wcharT ?? self.wcharT,
@@ -17723,6 +17738,55 @@ extension Obj6 {
1772317738 }
1772417739 }
1772517740
17741+// MARK: - Var
17742+@objcMembers class Var: NSObject, Codable {
17743+ let varVar: Int
17744+
17745+ enum CodingKeys: String, CodingKey {
17746+ case varVar = "var"
17747+ }
17748+
17749+ init(varVar: Int) {
17750+ self.varVar = varVar
17751+ }
17752+}
17753+
17754+// MARK: Var convenience initializers and mutators
17755+
17756+extension Var {
17757+ convenience init(data: Data) throws {
17758+ let me = try newJSONDecoder().decode(Var.self, from: data)
17759+ self.init(varVar: me.varVar)
17760+ }
17761+
17762+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17763+ guard let data = json.data(using: encoding) else {
17764+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17765+ }
17766+ try self.init(data: data)
17767+ }
17768+
17769+ convenience init(fromURL url: URL) throws {
17770+ try self.init(data: try Data(contentsOf: url))
17771+ }
17772+
17773+ func with(
17774+ varVar: Int? = nil
17775+ ) -> Var {
17776+ return Var(
17777+ varVar: varVar ?? self.varVar
17778+ )
17779+ }
17780+
17781+ func jsonData() throws -> Data {
17782+ return try newJSONEncoder().encode(self)
17783+ }
17784+
17785+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17786+ return String(data: try self.jsonData(), encoding: encoding)
17787+ }
17788+}
17789+
1772617790 // MARK: - Weak
1772717791 @objcMembers class Weak: NSObject, Codable {
1772817792 let weakWeak: Int
@@ -17919,6 +17983,104 @@ extension WillSet {
1791917983 }
1792017984 }
1792117985
17986+// MARK: - UUIDClass
17987+@objcMembers class UUIDClass: NSObject, Codable {
17988+ let uuid: Int
17989+
17990+ enum CodingKeys: String, CodingKey {
17991+ case uuid = "UUID"
17992+ }
17993+
17994+ init(uuid: Int) {
17995+ self.uuid = uuid
17996+ }
17997+}
17998+
17999+// MARK: UUIDClass convenience initializers and mutators
18000+
18001+extension UUIDClass {
18002+ convenience init(data: Data) throws {
18003+ let me = try newJSONDecoder().decode(UUIDClass.self, from: data)
18004+ self.init(uuid: me.uuid)
18005+ }
18006+
18007+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18008+ guard let data = json.data(using: encoding) else {
18009+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18010+ }
18011+ try self.init(data: data)
18012+ }
18013+
18014+ convenience init(fromURL url: URL) throws {
18015+ try self.init(data: try Data(contentsOf: url))
18016+ }
18017+
18018+ func with(
18019+ uuid: Int? = nil
18020+ ) -> UUIDClass {
18021+ return UUIDClass(
18022+ uuid: uuid ?? self.uuid
18023+ )
18024+ }
18025+
18026+ func jsonData() throws -> Data {
18027+ return try newJSONEncoder().encode(self)
18028+ }
18029+
18030+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18031+ return String(data: try self.jsonData(), encoding: encoding)
18032+ }
18033+}
18034+
18035+// MARK: - Virtual
18036+@objcMembers class Virtual: NSObject, Codable {
18037+ let virtual: Int
18038+
18039+ enum CodingKeys: String, CodingKey {
18040+ case virtual = "virtual"
18041+ }
18042+
18043+ init(virtual: Int) {
18044+ self.virtual = virtual
18045+ }
18046+}
18047+
18048+// MARK: Virtual convenience initializers and mutators
18049+
18050+extension Virtual {
18051+ convenience init(data: Data) throws {
18052+ let me = try newJSONDecoder().decode(Virtual.self, from: data)
18053+ self.init(virtual: me.virtual)
18054+ }
18055+
18056+ convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18057+ guard let data = json.data(using: encoding) else {
18058+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18059+ }
18060+ try self.init(data: data)
18061+ }
18062+
18063+ convenience init(fromURL url: URL) throws {
18064+ try self.init(data: try Data(contentsOf: url))
18065+ }
18066+
18067+ func with(
18068+ virtual: Int? = nil
18069+ ) -> Virtual {
18070+ return Virtual(
18071+ virtual: virtual ?? self.virtual
18072+ )
18073+ }
18074+
18075+ func jsonData() throws -> Data {
18076+ return try newJSONEncoder().encode(self)
18077+ }
18078+
18079+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18080+ return String(data: try self.jsonData(), encoding: encoding)
18081+ }
18082+}
18083+
1792218084 // MARK: - Void
1792318085 @objcMembers class Void: NSObject, Codable {
1792418086 let void: Int
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+527 −365
@@ -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
@@ -14131,9 +14131,11 @@ struct Obj5: Codable, Equatable {
1413114131 let obj5Type: Obj5Type
1413214132 let obj5Typealias: Typealias
1413314133 let obj5Unowned: Unowned
14134- let obj5Var: Var
1413514134 let purpleSelf: Obj5Self
1413614135 let purpleTrue: TrueClass
14136+ let sealed: Sealed
14137+ let sel: Sel
14138+ let select: Select
1413714139 let sendable: Sendable
1413814140 let serialize: Serialize
1413914141 let serializerProvider: SerializerProvider
@@ -14179,8 +14181,6 @@ struct Obj5: Codable, Equatable {
1417914181 let using: Using
1418014182 let utf8JSONReader: Utf8JSONReader
1418114183 let utf8JSONWriter: Utf8JSONWriter
14182- let uuid: UUIDClass
14183- let virtual: Virtual
1418414184
1418514185 enum CodingKeys: String, CodingKey {
1418614186 case dummy = "dummy"
@@ -14198,9 +14198,11 @@ struct Obj5: Codable, Equatable {
1419814198 case obj5Type = "type"
1419914199 case obj5Typealias = "typealias"
1420014200 case obj5Unowned = "unowned"
14201- case obj5Var = "var"
1420214201 case purpleSelf = "self"
1420314202 case purpleTrue = "true"
14203+ case sealed = "sealed"
14204+ case sel = "SEL"
14205+ case select = "select"
1420414206 case sendable = "Sendable"
1420514207 case serialize = "serialize"
1420614208 case serializerProvider = "SerializerProvider"
@@ -14246,8 +14248,6 @@ struct Obj5: Codable, Equatable {
1424614248 case using = "using"
1424714249 case utf8JSONReader = "Utf8JsonReader"
1424814250 case utf8JSONWriter = "Utf8JsonWriter"
14249- case uuid = "UUID"
14250- case virtual = "virtual"
1425114251 }
1425214252 }
1425314253
@@ -14285,9 +14285,11 @@ extension Obj5 {
1428514285 obj5Type: Obj5Type? = nil,
1428614286 obj5Typealias: Typealias? = nil,
1428714287 obj5Unowned: Unowned? = nil,
14288- obj5Var: Var? = nil,
1428914288 purpleSelf: Obj5Self? = nil,
1429014289 purpleTrue: TrueClass? = nil,
14290+ sealed: Sealed? = nil,
14291+ sel: Sel? = nil,
14292+ select: Select? = nil,
1429114293 sendable: Sendable? = nil,
1429214294 serialize: Serialize? = nil,
1429314295 serializerProvider: SerializerProvider? = nil,
@@ -14332,9 +14334,7 @@ extension Obj5 {
1433214334 ushort: Ushort? = nil,
1433314335 using: Using? = nil,
1433414336 utf8JSONReader: Utf8JSONReader? = nil,
14335- utf8JSONWriter: Utf8JSONWriter? = nil,
14336- uuid: UUIDClass? = nil,
14337- virtual: Virtual? = nil
14337+ utf8JSONWriter: Utf8JSONWriter? = nil
1433814338 ) -> Obj5 {
1433914339 return Obj5(
1434014340 dummy: dummy ?? self.dummy,
@@ -14352,9 +14352,11 @@ extension Obj5 {
1435214352 obj5Type: obj5Type ?? self.obj5Type,
1435314353 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1435414354 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
14355- obj5Var: obj5Var ?? self.obj5Var,
1435614355 purpleSelf: purpleSelf ?? self.purpleSelf,
1435714356 purpleTrue: purpleTrue ?? self.purpleTrue,
14357+ sealed: sealed ?? self.sealed,
14358+ sel: sel ?? self.sel,
14359+ select: select ?? self.select,
1435814360 sendable: sendable ?? self.sendable,
1435914361 serialize: serialize ?? self.serialize,
1436014362 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -14399,9 +14401,7 @@ extension Obj5 {
1439914401 ushort: ushort ?? self.ushort,
1440014402 using: using ?? self.using,
1440114403 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
14402- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
14403- uuid: uuid ?? self.uuid,
14404- virtual: virtual ?? self.virtual
14404+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
1440514405 )
1440614406 }
1440714407
@@ -15120,20 +15120,20 @@ extension Unowned {
1512015120 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1512115121 // synthesized for types that have collections (such as arrays or dictionaries).
1512215122
15123-// MARK: - Var
15124-struct Var: Codable, Equatable {
15125- let varVar: Int
15123+// MARK: - Obj5Self
15124+struct Obj5Self: Codable, Equatable {
15125+ let selfSelf: Int
1512615126
1512715127 enum CodingKeys: String, CodingKey {
15128- case varVar = "var"
15128+ case selfSelf = "self"
1512915129 }
1513015130 }
1513115131
15132-// MARK: Var convenience initializers and mutators
15132+// MARK: Obj5Self convenience initializers and mutators
1513315133
15134-extension Var {
15134+extension Obj5Self {
1513515135 init(data: Data) throws {
15136- self = try newJSONDecoder().decode(Var.self, from: data)
15136+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1513715137 }
1513815138
1513915139 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15148,10 +15148,10 @@ extension Var {
1514815148 }
1514915149
1515015150 func with(
15151- varVar: Int? = nil
15152- ) -> Var {
15153- return Var(
15154- varVar: varVar ?? self.varVar
15151+ selfSelf: Int? = nil
15152+ ) -> Obj5Self {
15153+ return Obj5Self(
15154+ selfSelf: selfSelf ?? self.selfSelf
1515515155 )
1515615156 }
1515715157
@@ -15170,20 +15170,20 @@ extension Var {
1517015170 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1517115171 // synthesized for types that have collections (such as arrays or dictionaries).
1517215172
15173-// MARK: - Obj5Self
15174-struct Obj5Self: Codable, Equatable {
15175- let selfSelf: Int
15173+// MARK: - TrueClass
15174+struct TrueClass: Codable, Equatable {
15175+ let trueTrue: Int
1517615176
1517715177 enum CodingKeys: String, CodingKey {
15178- case selfSelf = "self"
15178+ case trueTrue = "true"
1517915179 }
1518015180 }
1518115181
15182-// MARK: Obj5Self convenience initializers and mutators
15182+// MARK: TrueClass convenience initializers and mutators
1518315183
15184-extension Obj5Self {
15184+extension TrueClass {
1518515185 init(data: Data) throws {
15186- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
15186+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1518715187 }
1518815188
1518915189 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15198,10 +15198,10 @@ extension Obj5Self {
1519815198 }
1519915199
1520015200 func with(
15201- selfSelf: Int? = nil
15202- ) -> Obj5Self {
15203- return Obj5Self(
15204- selfSelf: selfSelf ?? self.selfSelf
15201+ trueTrue: Int? = nil
15202+ ) -> TrueClass {
15203+ return TrueClass(
15204+ trueTrue: trueTrue ?? self.trueTrue
1520515205 )
1520615206 }
1520715207
@@ -15220,20 +15220,20 @@ extension Obj5Self {
1522015220 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1522115221 // synthesized for types that have collections (such as arrays or dictionaries).
1522215222
15223-// MARK: - TrueClass
15224-struct TrueClass: Codable, Equatable {
15225- let trueTrue: Int
15223+// MARK: - Sealed
15224+struct Sealed: Codable, Equatable {
15225+ let sealed: Int
1522615226
1522715227 enum CodingKeys: String, CodingKey {
15228- case trueTrue = "true"
15228+ case sealed = "sealed"
1522915229 }
1523015230 }
1523115231
15232-// MARK: TrueClass convenience initializers and mutators
15232+// MARK: Sealed convenience initializers and mutators
1523315233
15234-extension TrueClass {
15234+extension Sealed {
1523515235 init(data: Data) throws {
15236- self = try newJSONDecoder().decode(TrueClass.self, from: data)
15236+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1523715237 }
1523815238
1523915239 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -15248,10 +15248,110 @@ extension TrueClass {
1524815248 }
1524915249
1525015250 func with(
15251- trueTrue: Int? = nil
15252- ) -> TrueClass {
15253- return TrueClass(
15254- trueTrue: trueTrue ?? self.trueTrue
15251+ sealed: Int? = nil
15252+ ) -> Sealed {
15253+ return Sealed(
15254+ sealed: sealed ?? self.sealed
15255+ )
15256+ }
15257+
15258+ func jsonData() throws -> Data {
15259+ return try newJSONEncoder().encode(self)
15260+ }
15261+
15262+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15263+ return String(data: try self.jsonData(), encoding: encoding)
15264+ }
15265+}
15266+
15267+//
15268+// Hashable or Equatable:
15269+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15270+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15271+// synthesized for types that have collections (such as arrays or dictionaries).
15272+
15273+// MARK: - Sel
15274+struct Sel: Codable, Equatable {
15275+ let sel: Int
15276+
15277+ enum CodingKeys: String, CodingKey {
15278+ case sel = "SEL"
15279+ }
15280+}
15281+
15282+// MARK: Sel convenience initializers and mutators
15283+
15284+extension Sel {
15285+ init(data: Data) throws {
15286+ self = try newJSONDecoder().decode(Sel.self, from: data)
15287+ }
15288+
15289+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15290+ guard let data = json.data(using: encoding) else {
15291+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15292+ }
15293+ try self.init(data: data)
15294+ }
15295+
15296+ init(fromURL url: URL) throws {
15297+ try self.init(data: try Data(contentsOf: url))
15298+ }
15299+
15300+ func with(
15301+ sel: Int? = nil
15302+ ) -> Sel {
15303+ return Sel(
15304+ sel: sel ?? self.sel
15305+ )
15306+ }
15307+
15308+ func jsonData() throws -> Data {
15309+ return try newJSONEncoder().encode(self)
15310+ }
15311+
15312+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15313+ return String(data: try self.jsonData(), encoding: encoding)
15314+ }
15315+}
15316+
15317+//
15318+// Hashable or Equatable:
15319+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
15320+// for types that require the use of JSONAny, nor will the implementation of Hashable be
15321+// synthesized for types that have collections (such as arrays or dictionaries).
15322+
15323+// MARK: - Select
15324+struct Select: Codable, Equatable {
15325+ let select: Int
15326+
15327+ enum CodingKeys: String, CodingKey {
15328+ case select = "select"
15329+ }
15330+}
15331+
15332+// MARK: Select convenience initializers and mutators
15333+
15334+extension Select {
15335+ init(data: Data) throws {
15336+ self = try newJSONDecoder().decode(Select.self, from: data)
15337+ }
15338+
15339+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15340+ guard let data = json.data(using: encoding) else {
15341+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15342+ }
15343+ try self.init(data: data)
15344+ }
15345+
15346+ init(fromURL url: URL) throws {
15347+ try self.init(data: try Data(contentsOf: url))
15348+ }
15349+
15350+ func with(
15351+ select: Int? = nil
15352+ ) -> Select {
15353+ return Select(
15354+ select: select ?? self.select
1525515355 )
1525615356 }
1525715357
@@ -17520,113 +17620,16 @@ extension Utf8JSONWriter {
1752017620 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1752117621 // synthesized for types that have collections (such as arrays or dictionaries).
1752217622
17523-// MARK: - UUIDClass
17524-struct UUIDClass: Codable, Equatable {
17525- let uuid: Int
17526-
17527- enum CodingKeys: String, CodingKey {
17528- case uuid = "UUID"
17529- }
17530-}
17531-
17532-// MARK: UUIDClass convenience initializers and mutators
17533-
17534-extension UUIDClass {
17535- init(data: Data) throws {
17536- self = try newJSONDecoder().decode(UUIDClass.self, from: data)
17537- }
17538-
17539- init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17540- guard let data = json.data(using: encoding) else {
17541- throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17542- }
17543- try self.init(data: data)
17544- }
17545-
17546- init(fromURL url: URL) throws {
17547- try self.init(data: try Data(contentsOf: url))
17548- }
17549-
17550- func with(
17551- uuid: Int? = nil
17552- ) -> UUIDClass {
17553- return UUIDClass(
17554- uuid: uuid ?? self.uuid
17555- )
17556- }
17557-
17558- func jsonData() throws -> Data {
17559- return try newJSONEncoder().encode(self)
17560- }
17561-
17562- func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17563- return String(data: try self.jsonData(), encoding: encoding)
17564- }
17565-}
17566-
17567-//
17568-// Hashable or Equatable:
17569-// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17570-// for types that require the use of JSONAny, nor will the implementation of Hashable be
17571-// synthesized for types that have collections (such as arrays or dictionaries).
17572-
17573-// MARK: - Virtual
17574-struct Virtual: Codable, Equatable {
17575- let virtual: Int
17576-
17577- enum CodingKeys: String, CodingKey {
17578- case virtual = "virtual"
17579- }
17580-}
17581-
17582-// MARK: Virtual convenience initializers and mutators
17583-
17584-extension Virtual {
17585- init(data: Data) throws {
17586- self = try newJSONDecoder().decode(Virtual.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- virtual: Int? = nil
17602- ) -> Virtual {
17603- return Virtual(
17604- virtual: virtual ?? self.virtual
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
17626+ let obj6Var: Var
1762617627 let obj6Weak: Weak
1762717628 let obj6Where: Where
1762817629 let obj6While: While
1762917630 let obj6WillSet: WillSet
17631+ let uuid: UUIDClass
17632+ let virtual: Virtual
1763017633 let void: Void
1763117634 let volatile: Volatile
1763217635 let wcharT: WcharT
@@ -17638,10 +17641,13 @@ struct Obj6: Codable, Equatable {
1763817641
1763917642 enum CodingKeys: String, CodingKey {
1764017643 case dummy = "dummy"
17644+ case obj6Var = "var"
1764117645 case obj6Weak = "weak"
1764217646 case obj6Where = "where"
1764317647 case obj6While = "while"
1764417648 case obj6WillSet = "willSet"
17649+ case uuid = "UUID"
17650+ case virtual = "virtual"
1764517651 case void = "void"
1764617652 case volatile = "volatile"
1764717653 case wcharT = "wchar_t"
@@ -17673,10 +17679,13 @@ extension Obj6 {
1767317679
1767417680 func with(
1767517681 dummy: Int? = nil,
17682+ obj6Var: Var? = nil,
1767617683 obj6Weak: Weak? = nil,
1767717684 obj6Where: Where? = nil,
1767817685 obj6While: While? = nil,
1767917686 obj6WillSet: WillSet? = nil,
17687+ uuid: UUIDClass? = nil,
17688+ virtual: Virtual? = nil,
1768017689 void: Void? = nil,
1768117690 volatile: Volatile? = nil,
1768217691 wcharT: WcharT? = nil,
@@ -17688,10 +17697,13 @@ extension Obj6 {
1768817697 ) -> Obj6 {
1768917698 return Obj6(
1769017699 dummy: dummy ?? self.dummy,
17700+ obj6Var: obj6Var ?? self.obj6Var,
1769117701 obj6Weak: obj6Weak ?? self.obj6Weak,
1769217702 obj6Where: obj6Where ?? self.obj6Where,
1769317703 obj6While: obj6While ?? self.obj6While,
1769417704 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
17705+ uuid: uuid ?? self.uuid,
17706+ virtual: virtual ?? self.virtual,
1769517707 void: void ?? self.void,
1769617708 volatile: volatile ?? self.volatile,
1769717709 wcharT: wcharT ?? self.wcharT,
@@ -17718,6 +17730,56 @@ extension Obj6 {
1771817730 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1771917731 // synthesized for types that have collections (such as arrays or dictionaries).
1772017732
17733+// MARK: - Var
17734+struct Var: Codable, Equatable {
17735+ let varVar: Int
17736+
17737+ enum CodingKeys: String, CodingKey {
17738+ case varVar = "var"
17739+ }
17740+}
17741+
17742+// MARK: Var convenience initializers and mutators
17743+
17744+extension Var {
17745+ init(data: Data) throws {
17746+ self = try newJSONDecoder().decode(Var.self, from: data)
17747+ }
17748+
17749+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
17750+ guard let data = json.data(using: encoding) else {
17751+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
17752+ }
17753+ try self.init(data: data)
17754+ }
17755+
17756+ init(fromURL url: URL) throws {
17757+ try self.init(data: try Data(contentsOf: url))
17758+ }
17759+
17760+ func with(
17761+ varVar: Int? = nil
17762+ ) -> Var {
17763+ return Var(
17764+ varVar: varVar ?? self.varVar
17765+ )
17766+ }
17767+
17768+ func jsonData() throws -> Data {
17769+ return try newJSONEncoder().encode(self)
17770+ }
17771+
17772+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
17773+ return String(data: try self.jsonData(), encoding: encoding)
17774+ }
17775+}
17776+
17777+//
17778+// Hashable or Equatable:
17779+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
17780+// for types that require the use of JSONAny, nor will the implementation of Hashable be
17781+// synthesized for types that have collections (such as arrays or dictionaries).
17782+
1772117783 // MARK: - Weak
1772217784 struct Weak: Codable, Equatable {
1772317785 let weakWeak: Int
@@ -17918,6 +17980,106 @@ extension WillSet {
1791817980 // for types that require the use of JSONAny, nor will the implementation of Hashable be
1791917981 // synthesized for types that have collections (such as arrays or dictionaries).
1792017982
17983+// MARK: - UUIDClass
17984+struct UUIDClass: Codable, Equatable {
17985+ let uuid: Int
17986+
17987+ enum CodingKeys: String, CodingKey {
17988+ case uuid = "UUID"
17989+ }
17990+}
17991+
17992+// MARK: UUIDClass convenience initializers and mutators
17993+
17994+extension UUIDClass {
17995+ init(data: Data) throws {
17996+ self = try newJSONDecoder().decode(UUIDClass.self, from: data)
17997+ }
17998+
17999+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18000+ guard let data = json.data(using: encoding) else {
18001+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18002+ }
18003+ try self.init(data: data)
18004+ }
18005+
18006+ init(fromURL url: URL) throws {
18007+ try self.init(data: try Data(contentsOf: url))
18008+ }
18009+
18010+ func with(
18011+ uuid: Int? = nil
18012+ ) -> UUIDClass {
18013+ return UUIDClass(
18014+ uuid: uuid ?? self.uuid
18015+ )
18016+ }
18017+
18018+ func jsonData() throws -> Data {
18019+ return try newJSONEncoder().encode(self)
18020+ }
18021+
18022+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18023+ return String(data: try self.jsonData(), encoding: encoding)
18024+ }
18025+}
18026+
18027+//
18028+// Hashable or Equatable:
18029+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18030+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18031+// synthesized for types that have collections (such as arrays or dictionaries).
18032+
18033+// MARK: - Virtual
18034+struct Virtual: Codable, Equatable {
18035+ let virtual: Int
18036+
18037+ enum CodingKeys: String, CodingKey {
18038+ case virtual = "virtual"
18039+ }
18040+}
18041+
18042+// MARK: Virtual convenience initializers and mutators
18043+
18044+extension Virtual {
18045+ init(data: Data) throws {
18046+ self = try newJSONDecoder().decode(Virtual.self, from: data)
18047+ }
18048+
18049+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
18050+ guard let data = json.data(using: encoding) else {
18051+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
18052+ }
18053+ try self.init(data: data)
18054+ }
18055+
18056+ init(fromURL url: URL) throws {
18057+ try self.init(data: try Data(contentsOf: url))
18058+ }
18059+
18060+ func with(
18061+ virtual: Int? = nil
18062+ ) -> Virtual {
18063+ return Virtual(
18064+ virtual: virtual ?? self.virtual
18065+ )
18066+ }
18067+
18068+ func jsonData() throws -> Data {
18069+ return try newJSONEncoder().encode(self)
18070+ }
18071+
18072+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
18073+ return String(data: try self.jsonData(), encoding: encoding)
18074+ }
18075+}
18076+
18077+//
18078+// Hashable or Equatable:
18079+// The compiler will not be able to synthesize the implementation of Hashable or Equatable
18080+// for types that require the use of JSONAny, nor will the implementation of Hashable be
18081+// synthesized for types that have collections (such as arrays or dictionaries).
18082+
1792118083 // MARK: - Void
1792218084 struct Void: Codable, Equatable {
1792318085 let void: Int
Mswiftsendable-true--1c3982c78639 / quicktype.swift+473 −329
@@ -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
@@ -12559,9 +12559,11 @@ struct Obj5: Codable, Sendable {
1255912559 let obj5Type: Obj5Type
1256012560 let obj5Typealias: Typealias
1256112561 let obj5Unowned: Unowned
12562- let obj5Var: Var
1256312562 let purpleSelf: Obj5Self
1256412563 let purpleTrue: TrueClass
12564+ let sealed: Sealed
12565+ let sel: Sel
12566+ let select: Select
1256512567 let sendable: SendableClass
1256612568 let serialize: Serialize
1256712569 let serializerProvider: SerializerProvider
@@ -12607,8 +12609,6 @@ struct Obj5: Codable, Sendable {
1260712609 let using: Using
1260812610 let utf8JSONReader: Utf8JSONReader
1260912611 let utf8JSONWriter: Utf8JSONWriter
12610- let uuid: UUIDClass
12611- let virtual: Virtual
1261212612
1261312613 enum CodingKeys: String, CodingKey {
1261412614 case dummy = "dummy"
@@ -12626,9 +12626,11 @@ struct Obj5: Codable, Sendable {
1262612626 case obj5Type = "type"
1262712627 case obj5Typealias = "typealias"
1262812628 case obj5Unowned = "unowned"
12629- case obj5Var = "var"
1263012629 case purpleSelf = "self"
1263112630 case purpleTrue = "true"
12631+ case sealed = "sealed"
12632+ case sel = "SEL"
12633+ case select = "select"
1263212634 case sendable = "Sendable"
1263312635 case serialize = "serialize"
1263412636 case serializerProvider = "SerializerProvider"
@@ -12674,8 +12676,6 @@ struct Obj5: Codable, Sendable {
1267412676 case using = "using"
1267512677 case utf8JSONReader = "Utf8JsonReader"
1267612678 case utf8JSONWriter = "Utf8JsonWriter"
12677- case uuid = "UUID"
12678- case virtual = "virtual"
1267912679 }
1268012680 }
1268112681
@@ -12713,9 +12713,11 @@ extension Obj5 {
1271312713 obj5Type: Obj5Type? = nil,
1271412714 obj5Typealias: Typealias? = nil,
1271512715 obj5Unowned: Unowned? = nil,
12716- obj5Var: Var? = nil,
1271712716 purpleSelf: Obj5Self? = nil,
1271812717 purpleTrue: TrueClass? = nil,
12718+ sealed: Sealed? = nil,
12719+ sel: Sel? = nil,
12720+ select: Select? = nil,
1271912721 sendable: SendableClass? = nil,
1272012722 serialize: Serialize? = nil,
1272112723 serializerProvider: SerializerProvider? = nil,
@@ -12760,9 +12762,7 @@ extension Obj5 {
1276012762 ushort: Ushort? = nil,
1276112763 using: Using? = nil,
1276212764 utf8JSONReader: Utf8JSONReader? = nil,
12763- utf8JSONWriter: Utf8JSONWriter? = nil,
12764- uuid: UUIDClass? = nil,
12765- virtual: Virtual? = nil
12765+ utf8JSONWriter: Utf8JSONWriter? = nil
1276612766 ) -> Obj5 {
1276712767 return Obj5(
1276812768 dummy: dummy ?? self.dummy,
@@ -12780,9 +12780,11 @@ extension Obj5 {
1278012780 obj5Type: obj5Type ?? self.obj5Type,
1278112781 obj5Typealias: obj5Typealias ?? self.obj5Typealias,
1278212782 obj5Unowned: obj5Unowned ?? self.obj5Unowned,
12783- obj5Var: obj5Var ?? self.obj5Var,
1278412783 purpleSelf: purpleSelf ?? self.purpleSelf,
1278512784 purpleTrue: purpleTrue ?? self.purpleTrue,
12785+ sealed: sealed ?? self.sealed,
12786+ sel: sel ?? self.sel,
12787+ select: select ?? self.select,
1278612788 sendable: sendable ?? self.sendable,
1278712789 serialize: serialize ?? self.serialize,
1278812790 serializerProvider: serializerProvider ?? self.serializerProvider,
@@ -12827,9 +12829,7 @@ extension Obj5 {
1282712829 ushort: ushort ?? self.ushort,
1282812830 using: using ?? self.using,
1282912831 utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader,
12830- utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter,
12831- uuid: uuid ?? self.uuid,
12832- virtual: virtual ?? self.virtual
12832+ utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter
1283312833 )
1283412834 }
1283512835
@@ -13458,20 +13458,20 @@ extension Unowned {
1345813458 }
1345913459 }
1346013460
13461-// MARK: - Var
13462-struct Var: Codable, Sendable {
13463- let varVar: Int
13461+// MARK: - Obj5Self
13462+struct Obj5Self: Codable, Sendable {
13463+ let selfSelf: Int
1346413464
1346513465 enum CodingKeys: String, CodingKey {
13466- case varVar = "var"
13466+ case selfSelf = "self"
1346713467 }
1346813468 }
1346913469
13470-// MARK: Var convenience initializers and mutators
13470+// MARK: Obj5Self convenience initializers and mutators
1347113471
13472-extension Var {
13472+extension Obj5Self {
1347313473 init(data: Data) throws {
13474- self = try newJSONDecoder().decode(Var.self, from: data)
13474+ self = try newJSONDecoder().decode(Obj5Self.self, from: data)
1347513475 }
1347613476
1347713477 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13486,10 +13486,10 @@ extension Var {
1348613486 }
1348713487
1348813488 func with(
13489- varVar: Int? = nil
13490- ) -> Var {
13491- return Var(
13492- varVar: varVar ?? self.varVar
13489+ selfSelf: Int? = nil
13490+ ) -> Obj5Self {
13491+ return Obj5Self(
13492+ selfSelf: selfSelf ?? self.selfSelf
1349313493 )
1349413494 }
1349513495
@@ -13502,20 +13502,20 @@ extension Var {
1350213502 }
1350313503 }
1350413504
13505-// MARK: - Obj5Self
13506-struct Obj5Self: Codable, Sendable {
13507- let selfSelf: Int
13505+// MARK: - TrueClass
13506+struct TrueClass: Codable, Sendable {
13507+ let trueTrue: Int
1350813508
1350913509 enum CodingKeys: String, CodingKey {
13510- case selfSelf = "self"
13510+ case trueTrue = "true"
1351113511 }
1351213512 }
1351313513
13514-// MARK: Obj5Self convenience initializers and mutators
13514+// MARK: TrueClass convenience initializers and mutators
1351513515
13516-extension Obj5Self {
13516+extension TrueClass {
1351713517 init(data: Data) throws {
13518- self = try newJSONDecoder().decode(Obj5Self.self, from: data)
13518+ self = try newJSONDecoder().decode(TrueClass.self, from: data)
1351913519 }
1352013520
1352113521 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13530,10 +13530,10 @@ extension Obj5Self {
1353013530 }
1353113531
1353213532 func with(
13533- selfSelf: Int? = nil
13534- ) -> Obj5Self {
13535- return Obj5Self(
13536- selfSelf: selfSelf ?? self.selfSelf
13533+ trueTrue: Int? = nil
13534+ ) -> TrueClass {
13535+ return TrueClass(
13536+ trueTrue: trueTrue ?? self.trueTrue
1353713537 )
1353813538 }
1353913539
@@ -13546,20 +13546,20 @@ extension Obj5Self {
1354613546 }
1354713547 }
1354813548
13549-// MARK: - TrueClass
13550-struct TrueClass: Codable, Sendable {
13551- let trueTrue: Int
13549+// MARK: - Sealed
13550+struct Sealed: Codable, Sendable {
13551+ let sealed: Int
1355213552
1355313553 enum CodingKeys: String, CodingKey {
13554- case trueTrue = "true"
13554+ case sealed = "sealed"
1355513555 }
1355613556 }
1355713557
13558-// MARK: TrueClass convenience initializers and mutators
13558+// MARK: Sealed convenience initializers and mutators
1355913559
13560-extension TrueClass {
13560+extension Sealed {
1356113561 init(data: Data) throws {
13562- self = try newJSONDecoder().decode(TrueClass.self, from: data)
13562+ self = try newJSONDecoder().decode(Sealed.self, from: data)
1356313563 }
1356413564
1356513565 init(_ json: String, using encoding: String.Encoding = .utf8) throws {
@@ -13574,10 +13574,98 @@ extension TrueClass {
1357413574 }
1357513575
1357613576 func with(
13577- trueTrue: Int? = nil
13578- ) -> TrueClass {
13579- return TrueClass(
13580- trueTrue: trueTrue ?? self.trueTrue
13577+ sealed: Int? = nil
13578+ ) -> Sealed {
13579+ return Sealed(
13580+ sealed: sealed ?? self.sealed
13581+ )
13582+ }
13583+
13584+ func jsonData() throws -> Data {
13585+ return try newJSONEncoder().encode(self)
13586+ }
13587+
13588+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13589+ return String(data: try self.jsonData(), encoding: encoding)
13590+ }
13591+}
13592+
13593+// MARK: - Sel
13594+struct Sel: Codable, Sendable {
13595+ let sel: Int
13596+
13597+ enum CodingKeys: String, CodingKey {
13598+ case sel = "SEL"
13599+ }
13600+}
13601+
13602+// MARK: Sel convenience initializers and mutators
13603+
13604+extension Sel {
13605+ init(data: Data) throws {
13606+ self = try newJSONDecoder().decode(Sel.self, from: data)
13607+ }
13608+
13609+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
13610+ guard let data = json.data(using: encoding) else {
13611+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
13612+ }
13613+ try self.init(data: data)
13614+ }
13615+
13616+ init(fromURL url: URL) throws {
13617+ try self.init(data: try Data(contentsOf: url))
13618+ }
13619+
13620+ func with(
13621+ sel: Int? = nil
13622+ ) -> Sel {
13623+ return Sel(
13624+ sel: sel ?? self.sel
13625+ )
13626+ }
13627+
13628+ func jsonData() throws -> Data {
13629+ return try newJSONEncoder().encode(self)
13630+ }
13631+
13632+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
13633+ return String(data: try self.jsonData(), encoding: encoding)
13634+ }
13635+}
13636+
13637+// MARK: - Select
13638+struct Select: Codable, Sendable {
13639+ let select: Int
13640+
13641+ enum CodingKeys: String, CodingKey {
13642+ case select = "select"
13643+ }
13644+}
13645+
13646+// MARK: Select convenience initializers and mutators
13647+
13648+extension Select {
13649+ init(data: Data) throws {
13650+ self = try newJSONDecoder().decode(Select.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+ select: Int? = nil
13666+ ) -> Select {
13667+ return Select(
13668+ select: select ?? self.select
1358113669 )
1358213670 }
1358313671
@@ -15570,101 +15658,16 @@ extension Utf8JSONWriter {
1557015658 }
1557115659 }
1557215660
15573-// MARK: - UUIDClass
15574-struct UUIDClass: Codable, Sendable {
15575- let uuid: Int
15576-
15577- enum CodingKeys: String, CodingKey {
15578- case uuid = "UUID"
15579- }
15580-}
15581-
15582-// MARK: UUIDClass convenience initializers and mutators
15583-
15584-extension UUIDClass {
15585- init(data: Data) throws {
15586- self = try newJSONDecoder().decode(UUIDClass.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- uuid: Int? = nil
15602- ) -> UUIDClass {
15603- return UUIDClass(
15604- uuid: uuid ?? self.uuid
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-// MARK: - Virtual
15618-struct Virtual: Codable, Sendable {
15619- let virtual: Int
15620-
15621- enum CodingKeys: String, CodingKey {
15622- case virtual = "virtual"
15623- }
15624-}
15625-
15626-// MARK: Virtual convenience initializers and mutators
15627-
15628-extension Virtual {
15629- init(data: Data) throws {
15630- self = try newJSONDecoder().decode(Virtual.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- virtual: Int? = nil
15646- ) -> Virtual {
15647- return Virtual(
15648- virtual: virtual ?? self.virtual
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
15664+ let obj6Var: Var
1566415665 let obj6Weak: Weak
1566515666 let obj6Where: Where
1566615667 let obj6While: While
1566715668 let obj6WillSet: WillSet
15669+ let uuid: UUIDClass
15670+ let virtual: Virtual
1566815671 let void: Void
1566915672 let volatile: Volatile
1567015673 let wcharT: WcharT
@@ -15676,10 +15679,13 @@ struct Obj6: Codable, Sendable {
1567615679
1567715680 enum CodingKeys: String, CodingKey {
1567815681 case dummy = "dummy"
15682+ case obj6Var = "var"
1567915683 case obj6Weak = "weak"
1568015684 case obj6Where = "where"
1568115685 case obj6While = "while"
1568215686 case obj6WillSet = "willSet"
15687+ case uuid = "UUID"
15688+ case virtual = "virtual"
1568315689 case void = "void"
1568415690 case volatile = "volatile"
1568515691 case wcharT = "wchar_t"
@@ -15711,10 +15717,13 @@ extension Obj6 {
1571115717
1571215718 func with(
1571315719 dummy: Int? = nil,
15720+ obj6Var: Var? = nil,
1571415721 obj6Weak: Weak? = nil,
1571515722 obj6Where: Where? = nil,
1571615723 obj6While: While? = nil,
1571715724 obj6WillSet: WillSet? = nil,
15725+ uuid: UUIDClass? = nil,
15726+ virtual: Virtual? = nil,
1571815727 void: Void? = nil,
1571915728 volatile: Volatile? = nil,
1572015729 wcharT: WcharT? = nil,
@@ -15726,10 +15735,13 @@ extension Obj6 {
1572615735 ) -> Obj6 {
1572715736 return Obj6(
1572815737 dummy: dummy ?? self.dummy,
15738+ obj6Var: obj6Var ?? self.obj6Var,
1572915739 obj6Weak: obj6Weak ?? self.obj6Weak,
1573015740 obj6Where: obj6Where ?? self.obj6Where,
1573115741 obj6While: obj6While ?? self.obj6While,
1573215742 obj6WillSet: obj6WillSet ?? self.obj6WillSet,
15743+ uuid: uuid ?? self.uuid,
15744+ virtual: virtual ?? self.virtual,
1573315745 void: void ?? self.void,
1573415746 volatile: volatile ?? self.volatile,
1573515747 wcharT: wcharT ?? self.wcharT,
@@ -15750,6 +15762,50 @@ extension Obj6 {
1575015762 }
1575115763 }
1575215764
15765+// MARK: - Var
15766+struct Var: Codable, Sendable {
15767+ let varVar: Int
15768+
15769+ enum CodingKeys: String, CodingKey {
15770+ case varVar = "var"
15771+ }
15772+}
15773+
15774+// MARK: Var convenience initializers and mutators
15775+
15776+extension Var {
15777+ init(data: Data) throws {
15778+ self = try newJSONDecoder().decode(Var.self, from: data)
15779+ }
15780+
15781+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
15782+ guard let data = json.data(using: encoding) else {
15783+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
15784+ }
15785+ try self.init(data: data)
15786+ }
15787+
15788+ init(fromURL url: URL) throws {
15789+ try self.init(data: try Data(contentsOf: url))
15790+ }
15791+
15792+ func with(
15793+ varVar: Int? = nil
15794+ ) -> Var {
15795+ return Var(
15796+ varVar: varVar ?? self.varVar
15797+ )
15798+ }
15799+
15800+ func jsonData() throws -> Data {
15801+ return try newJSONEncoder().encode(self)
15802+ }
15803+
15804+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
15805+ return String(data: try self.jsonData(), encoding: encoding)
15806+ }
15807+}
15808+
1575315809 // MARK: - Weak
1575415810 struct Weak: Codable, Sendable {
1575515811 let weakWeak: Int
@@ -15926,6 +15982,94 @@ extension WillSet {
1592615982 }
1592715983 }
1592815984
15985+// MARK: - UUIDClass
15986+struct UUIDClass: Codable, Sendable {
15987+ let uuid: Int
15988+
15989+ enum CodingKeys: String, CodingKey {
15990+ case uuid = "UUID"
15991+ }
15992+}
15993+
15994+// MARK: UUIDClass convenience initializers and mutators
15995+
15996+extension UUIDClass {
15997+ init(data: Data) throws {
15998+ self = try newJSONDecoder().decode(UUIDClass.self, from: data)
15999+ }
16000+
16001+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16002+ guard let data = json.data(using: encoding) else {
16003+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16004+ }
16005+ try self.init(data: data)
16006+ }
16007+
16008+ init(fromURL url: URL) throws {
16009+ try self.init(data: try Data(contentsOf: url))
16010+ }
16011+
16012+ func with(
16013+ uuid: Int? = nil
16014+ ) -> UUIDClass {
16015+ return UUIDClass(
16016+ uuid: uuid ?? self.uuid
16017+ )
16018+ }
16019+
16020+ func jsonData() throws -> Data {
16021+ return try newJSONEncoder().encode(self)
16022+ }
16023+
16024+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16025+ return String(data: try self.jsonData(), encoding: encoding)
16026+ }
16027+}
16028+
16029+// MARK: - Virtual
16030+struct Virtual: Codable, Sendable {
16031+ let virtual: Int
16032+
16033+ enum CodingKeys: String, CodingKey {
16034+ case virtual = "virtual"
16035+ }
16036+}
16037+
16038+// MARK: Virtual convenience initializers and mutators
16039+
16040+extension Virtual {
16041+ init(data: Data) throws {
16042+ self = try newJSONDecoder().decode(Virtual.self, from: data)
16043+ }
16044+
16045+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
16046+ guard let data = json.data(using: encoding) else {
16047+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
16048+ }
16049+ try self.init(data: data)
16050+ }
16051+
16052+ init(fromURL url: URL) throws {
16053+ try self.init(data: try Data(contentsOf: url))
16054+ }
16055+
16056+ func with(
16057+ virtual: Int? = nil
16058+ ) -> Virtual {
16059+ return Virtual(
16060+ virtual: virtual ?? self.virtual
16061+ )
16062+ }
16063+
16064+ func jsonData() throws -> Data {
16065+ return try newJSONEncoder().encode(self)
16066+ }
16067+
16068+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
16069+ return String(data: try self.jsonData(), encoding: encoding)
16070+ }
16071+}
16072+
1592916073 // MARK: - Void
1593016074 struct Void: Codable, Sendable {
1593116075 let void: Int
Mtypescript-effect-schemadefault / TopLevel.ts+50 −35
@@ -55,8 +55,23 @@ export class Void extends S.Class<Void>("Void")({
5555 "void": S.Int,
5656 }) {}
5757
58+export class Virtual extends S.Class<Virtual>("Virtual")({
59+ "virtual": S.Int,
60+}) {}
61+
62+export class Var extends S.Class<Var>("Var")({
63+ "var": S.Int,
64+}) {}
65+
66+export class Uuid extends S.Class<Uuid>("Uuid")({
67+ "UUID": S.Int,
68+}) {}
69+
5870 export class Obj6 extends S.Class<Obj6>("Obj6")({
5971 "dummy": S.Int,
72+ "UUID": Uuid,
73+ "var": Var,
74+ "virtual": Virtual,
6075 "void": Void,
6176 "volatile": Volatile,
6277 "wchar_t": WcharT,
@@ -71,18 +86,6 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({
7186 "yield": Yield,
7287 }) {}
7388
74-export class Virtual extends S.Class<Virtual>("Virtual")({
75- "virtual": S.Int,
76-}) {}
77-
78-export class Var extends S.Class<Var>("Var")({
79- "var": S.Int,
80-}) {}
81-
82-export class Uuid extends S.Class<Uuid>("Uuid")({
83- "UUID": S.Int,
84-}) {}
85-
8689 export class Utf8JsonWriter extends S.Class<Utf8JsonWriter>("Utf8JsonWriter")({
8790 "Utf8JsonWriter": S.Int,
8891 }) {}
@@ -316,6 +319,18 @@ export class Self extends S.Class<Self>("Self")({
316319 "Self": S.Int,
317320 }) {}
318321
322+export class Select extends S.Class<Select>("Select")({
323+ "select": S.Int,
324+}) {}
325+
326+export class Sel extends S.Class<Sel>("Sel")({
327+ "SEL": S.Int,
328+}) {}
329+
330+export class Sealed extends S.Class<Sealed>("Sealed")({
331+ "sealed": S.Int,
332+}) {}
333+
319334 export class TypeClass extends S.Class<TypeClass>("TypeClass")({
320335 "type": S.Int,
321336 }) {}
@@ -333,6 +348,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
333348 "self": SelfClass,
334349 "true": TrueClass,
335350 "type": TypeClass,
351+ "sealed": Sealed,
352+ "SEL": Sel,
353+ "select": Select,
336354 "Self": Self,
337355 "Sendable": Sendable,
338356 "serialize": Serialize,
@@ -391,24 +409,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({
391409 "using": Using,
392410 "Utf8JsonReader": Utf8JsonReader,
393411 "Utf8JsonWriter": Utf8JsonWriter,
394- "UUID": Uuid,
395- "var": Var,
396- "virtual": Virtual,
397412 }) {}
398413 Object.defineProperty(Obj5.prototype, "toString", { writable: true });
399414
400-export class Select extends S.Class<Select>("Select")({
401- "select": S.Int,
402-}) {}
403-
404-export class Sel extends S.Class<Sel>("Sel")({
405- "SEL": S.Int,
406-}) {}
407-
408-export class Sealed extends S.Class<Sealed>("Sealed")({
409- "sealed": S.Int,
410-}) {}
411-
412415 export class Sbyte extends S.Class<Sbyte>("Sbyte")({
413416 "sbyte": S.Int,
414417 }) {}
@@ -577,6 +580,14 @@ export class Oneway extends S.Class<Oneway>("Oneway")({
577580 "oneway": S.Int,
578581 }) {}
579582
583+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")({
584+ "OffsetTime": S.Int,
585+}) {}
586+
587+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")({
588+ "OffsetDateTime": S.Int,
589+}) {}
590+
580591 export class Of extends S.Class<Of>("Of")({
581592 "of": S.Int,
582593 }) {}
@@ -649,6 +660,10 @@ export class Nonatomic extends S.Class<Nonatomic>("Nonatomic")({
649660 "nonatomic": S.Int,
650661 }) {}
651662
663+export class Noexcept extends S.Class<Noexcept>("Noexcept")({
664+ "noexcept": S.Int,
665+}) {}
666+
652667 export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
653668 "noSuchMethod": S.Int,
654669 }) {}
@@ -656,6 +671,7 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({
656671 export class Obj4 extends S.Class<Obj4>("Obj4")({
657672 "dummy": S.Int,
658673 "noSuchMethod": NoSuchMethod,
674+ "noexcept": Noexcept,
659675 "nonatomic": Nonatomic,
660676 "None": None,
661677 "nonlocal": Nonlocal,
@@ -674,6 +690,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
674690 "object": ObjectClass,
675691 "ObjectMapper": ObjectMapper,
676692 "of": Of,
693+ "OffsetDateTime": OffsetDateTime,
694+ "OffsetTime": OffsetTime,
677695 "oneway": Oneway,
678696 "open": Open,
679697 "operator": Operator,
@@ -716,13 +734,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({
716734 "runtimeType": RuntimeType,
717735 "s": SClass,
718736 "sbyte": Sbyte,
719- "sealed": Sealed,
720- "SEL": Sel,
721- "select": Select,
722-}) {}
723-
724-export class Noexcept extends S.Class<Noexcept>("Noexcept")({
725- "noexcept": S.Int,
726737 }) {}
727738
728739 export class No extends S.Class<No>("No")({
@@ -785,6 +796,10 @@ export class Locale extends S.Class<Locale>("Locale")({
785796 "Locale": S.Int,
786797 }) {}
787798
799+export class LocalDate extends S.Class<LocalDate>("LocalDate")({
800+ "LocalDate": S.Int,
801+}) {}
802+
788803 export class List extends S.Class<List>("List")({
789804 "list": S.Int,
790805 }) {}
@@ -1027,6 +1042,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10271042 "left": Left,
10281043 "let": Let,
10291044 "list": List,
1045+ "LocalDate": LocalDate,
10301046 "Locale": Locale,
10311047 "lock": Lock,
10321048 "long": Long,
@@ -1042,7 +1058,6 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({
10421058 "newtonsoft": Newtonsoft,
10431059 "nil": Nil,
10441060 "NO": No,
1045- "noexcept": Noexcept,
10461061 }) {}
10471062
10481063 export class FalseClass extends S.Class<FalseClass>("FalseClass")({
Mtypescript-zoddefault / TopLevel.ts+45 −27
@@ -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 SelfClassSchema = z.object({
12911291 "self": z.number().int(),
12921292 });
@@ -1302,6 +1302,21 @@ export const TypeClassSchema = z.object({
13021302 });
13031303 export type TypeClass = z.infer<typeof TypeClassSchema>;
13041304
1305+export const SealedSchema = z.object({
1306+ "sealed": z.number().int(),
1307+});
1308+export type Sealed = z.infer<typeof SealedSchema>;
1309+
1310+export const SelSchema = z.object({
1311+ "SEL": z.number().int(),
1312+});
1313+export type Sel = z.infer<typeof SelSchema>;
1314+
1315+export const SelectSchema = z.object({
1316+ "select": z.number().int(),
1317+});
1318+export type Select = z.infer<typeof SelectSchema>;
1319+
13051320 export const SelfSchema = z.object({
13061321 "Self": z.number().int(),
13071322 });
@@ -1855,6 +1870,7 @@ export const Obj3Schema = z.object({
18551870 "left": LeftSchema,
18561871 "let": LetSchema,
18571872 "list": ListSchema,
1873+ "LocalDate": LocalDateSchema,
18581874 "Locale": LocaleSchema,
18591875 "lock": LockSchema,
18601876 "long": LongSchema,
@@ -1870,13 +1886,13 @@ export const Obj3Schema = z.object({
18701886 "newtonsoft": NewtonsoftSchema,
18711887 "nil": NilSchema,
18721888 "NO": NoSchema,
1873- "noexcept": NoexceptSchema,
18741889 });
18751890 export type Obj3 = z.infer<typeof Obj3Schema>;
18761891
18771892 export const Obj4Schema = z.object({
18781893 "dummy": z.number().int(),
18791894 "noSuchMethod": NoSuchMethodSchema,
1895+ "noexcept": NoexceptSchema,
18801896 "nonatomic": NonatomicSchema,
18811897 "None": NoneSchema,
18821898 "nonlocal": NonlocalSchema,
@@ -1895,6 +1911,8 @@ export const Obj4Schema = z.object({
18951911 "object": ObjectClassSchema,
18961912 "ObjectMapper": ObjectMapperSchema,
18971913 "of": OfSchema,
1914+ "OffsetDateTime": OffsetDateTimeSchema,
1915+ "OffsetTime": OffsetTimeSchema,
18981916 "oneway": OnewaySchema,
18991917 "open": OpenSchema,
19001918 "operator": OperatorSchema,
@@ -1937,9 +1955,6 @@ export const Obj4Schema = z.object({
19371955 "runtimeType": RuntimeTypeSchema,
19381956 "s": SSchema,
19391957 "sbyte": SbyteSchema,
1940- "sealed": SealedSchema,
1941- "SEL": SelSchema,
1942- "select": SelectSchema,
19431958 });
19441959 export type Obj4 = z.infer<typeof Obj4Schema>;
19451960
@@ -1948,6 +1963,9 @@ export const Obj5Schema = z.object({
19481963 "self": SelfClassSchema,
19491964 "true": TrueClassSchema,
19501965 "type": TypeClassSchema,
1966+ "sealed": SealedSchema,
1967+ "SEL": SelSchema,
1968+ "select": SelectSchema,
19511969 "Self": SelfSchema,
19521970 "Sendable": SendableSchema,
19531971 "serialize": SerializeSchema,
@@ -2006,14 +2024,14 @@ export const Obj5Schema = z.object({
20062024 "using": UsingSchema,
20072025 "Utf8JsonReader": Utf8JsonReaderSchema,
20082026 "Utf8JsonWriter": Utf8JsonWriterSchema,
2009- "UUID": UuidSchema,
2010- "var": VarSchema,
2011- "virtual": VirtualSchema,
20122027 });
20132028 export type Obj5 = z.infer<typeof Obj5Schema>;
20142029
20152030 export const Obj6Schema = z.object({
20162031 "dummy": z.number().int(),
2032+ "UUID": UuidSchema,
2033+ "var": VarSchema,
2034+ "virtual": VirtualSchema,
20172035 "void": VoidSchema,
20182036 "volatile": VolatileSchema,
20192037 "wchar_t": WcharTSchema,
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,15 +1315,8 @@ 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 {
1319+ SEL: Sel;
13191320 Self: Self;
13201321 Sendable: Sendable;
13211322 SerializerProvider: SerializerProvider;
@@ -1328,10 +1329,11 @@ export interface Obj5 {
13281329 TimeZone: TimeZone;
13291330 True: True;
13301331 Type: Type;
1331- UUID: UUID;
13321332 Utf8JsonReader: Utf8JSONReader;
13331333 Utf8JsonWriter: Utf8JSONWriter;
13341334 dummy: number;
1335+ sealed: Sealed;
1336+ select: Select;
13351337 self: SelfClass;
13361338 serialize: Serialize;
13371339 set: Set;
@@ -1379,8 +1381,10 @@ export interface Obj5 {
13791381 unsigned: Unsigned;
13801382 ushort: Ushort;
13811383 using: Using;
1382- var: Var;
1383- virtual: Virtual;
1384+}
1385+
1386+export interface Sel {
1387+ SEL: number;
13841388 }
13851389
13861390 export interface Self {
@@ -1431,10 +1435,6 @@ export interface Type {
14311435 Type: number;
14321436 }
14331437
1434-export interface UUID {
1435- UUID: number;
1436-}
1437-
14381438 export interface Utf8JSONReader {
14391439 Utf8JsonReader: number;
14401440 }
@@ -1443,6 +1443,14 @@ export interface Utf8JSONWriter {
14431443 Utf8JsonWriter: number;
14441444 }
14451445
1446+export interface Sealed {
1447+ sealed: number;
1448+}
1449+
1450+export interface Select {
1451+ select: number;
1452+}
1453+
14461454 export interface SelfClass {
14471455 self: number;
14481456 }
@@ -1631,17 +1639,12 @@ export interface Using {
16311639 using: number;
16321640 }
16331641
1634-export interface Var {
1635- var: number;
1636-}
1637-
1638-export interface Virtual {
1639- virtual: number;
1640-}
1641-
16421642 export interface Obj6 {
1643+ UUID: UUID;
16431644 YES: Yes;
16441645 dummy: number;
1646+ var: Var;
1647+ virtual: Virtual;
16451648 void: Void;
16461649 volatile: Volatile;
16471650 wchar_t: WcharT;
@@ -1655,10 +1658,22 @@ export interface Obj6 {
16551658 yield: Yield;
16561659 }
16571660
1661+export interface UUID {
1662+ UUID: number;
1663+}
1664+
16581665 export interface Yes {
16591666 YES: number;
16601667 }
16611668
1669+export interface Var {
1670+ var: number;
1671+}
1672+
1673+export interface Virtual {
1674+ virtual: number;
1675+}
1676+
16621677 export interface Void {
16631678 void: number;
16641679 }
@@ -2434,6 +2449,7 @@ const typeMap: any = {
24342449 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24352450 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24362451 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2452+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24372453 { json: "Locale", js: "Locale", typ: r("Locale") },
24382454 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24392455 { json: "NO", js: "NO", typ: r("No") },
@@ -2483,7 +2499,6 @@ const typeMap: any = {
24832499 { json: "new", js: "new", typ: r("New") },
24842500 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
24852501 { json: "nil", js: "nil", typ: r("Nil") },
2486- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
24872502 ], false),
24882503 "Hashable": o([
24892504 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2530,6 +2545,9 @@ const typeMap: any = {
25302545 "JSONTokenType": o([
25312546 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25322547 ], false),
2548+ "LocalDate": o([
2549+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2550+ ], false),
25332551 "Locale": o([
25342552 { json: "Locale", js: "Locale", typ: i(0) },
25352553 ], false),
@@ -2674,9 +2692,6 @@ const typeMap: any = {
26742692 "Nil": o([
26752693 { json: "nil", js: "nil", typ: i(0) },
26762694 ], false),
2677- "Noexcept": o([
2678- { json: "noexcept", js: "noexcept", typ: i(0) },
2679- ], false),
26802695 "Obj4": o([
26812696 { json: "NSError", js: "NSError", typ: r("NSError") },
26822697 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2684,11 +2699,13 @@ const typeMap: any = {
26842699 { json: "NULL", js: "NULL", typ: r("Null") },
26852700 { json: "None", js: "None", typ: r("None") },
26862701 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2702+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2703+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
26872704 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
26882705 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
2689- { json: "SEL", js: "SEL", typ: r("Sel") },
26902706 { json: "dummy", js: "dummy", typ: i(0) },
26912707 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2708+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
26922709 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
26932710 { json: "none", js: "none", typ: r("NoneClass") },
26942711 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2741,8 +2758,6 @@ const typeMap: any = {
27412758 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
27422759 { json: "s", js: "s", typ: r("S") },
27432760 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2744- { json: "sealed", js: "sealed", typ: r("Sealed") },
2745- { json: "select", js: "select", typ: r("Select") },
27462761 ], false),
27472762 "NSError": o([
27482763 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2762,18 +2777,24 @@ const typeMap: any = {
27622777 "ObjectMapper": o([
27632778 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
27642779 ], false),
2780+ "OffsetDateTime": o([
2781+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2782+ ], false),
2783+ "OffsetTime": o([
2784+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2785+ ], false),
27652786 "Protocol": o([
27662787 { json: "Protocol", js: "Protocol", typ: i(0) },
27672788 ], false),
27682789 "RegExp": o([
27692790 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
27702791 ], false),
2771- "Sel": o([
2772- { json: "SEL", js: "SEL", typ: i(0) },
2773- ], false),
27742792 "NoSuchMethod": o([
27752793 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
27762794 ], false),
2795+ "Noexcept": o([
2796+ { json: "noexcept", js: "noexcept", typ: i(0) },
2797+ ], false),
27772798 "Nonatomic": o([
27782799 { json: "nonatomic", js: "nonatomic", typ: i(0) },
27792800 ], false),
@@ -2930,13 +2951,8 @@ const typeMap: any = {
29302951 "Sbyte": o([
29312952 { json: "sbyte", js: "sbyte", typ: i(0) },
29322953 ], false),
2933- "Sealed": o([
2934- { json: "sealed", js: "sealed", typ: i(0) },
2935- ], false),
2936- "Select": o([
2937- { json: "select", js: "select", typ: i(0) },
2938- ], false),
29392954 "Obj5": o([
2955+ { json: "SEL", js: "SEL", typ: r("Sel") },
29402956 { json: "Self", js: "Self", typ: r("Self") },
29412957 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29422958 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
@@ -2949,10 +2965,11 @@ const typeMap: any = {
29492965 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
29502966 { json: "True", js: "True", typ: r("True") },
29512967 { json: "Type", js: "Type", typ: r("Type") },
2952- { json: "UUID", js: "UUID", typ: r("UUID") },
29532968 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
29542969 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
29552970 { json: "dummy", js: "dummy", typ: i(0) },
2971+ { json: "sealed", js: "sealed", typ: r("Sealed") },
2972+ { json: "select", js: "select", typ: r("Select") },
29562973 { json: "self", js: "self", typ: r("SelfClass") },
29572974 { json: "serialize", js: "serialize", typ: r("Serialize") },
29582975 { json: "set", js: "set", typ: r("Set") },
@@ -3000,8 +3017,9 @@ const typeMap: any = {
30003017 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30013018 { json: "ushort", js: "ushort", typ: r("Ushort") },
30023019 { json: "using", js: "using", typ: r("Using") },
3003- { json: "var", js: "var", typ: r("Var") },
3004- { json: "virtual", js: "virtual", typ: r("Virtual") },
3020+ ], false),
3021+ "Sel": o([
3022+ { json: "SEL", js: "SEL", typ: i(0) },
30053023 ], false),
30063024 "Self": o([
30073025 { json: "Self", js: "Self", typ: i(0) },
@@ -3039,15 +3057,18 @@ const typeMap: any = {
30393057 "Type": o([
30403058 { json: "Type", js: "Type", typ: i(0) },
30413059 ], false),
3042- "UUID": o([
3043- { json: "UUID", js: "UUID", typ: i(0) },
3044- ], false),
30453060 "Utf8JSONReader": o([
30463061 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
30473062 ], false),
30483063 "Utf8JSONWriter": o([
30493064 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
30503065 ], false),
3066+ "Sealed": o([
3067+ { json: "sealed", js: "sealed", typ: i(0) },
3068+ ], false),
3069+ "Select": o([
3070+ { json: "select", js: "select", typ: i(0) },
3071+ ], false),
30513072 "SelfClass": o([
30523073 { json: "self", js: "self", typ: i(0) },
30533074 ], false),
@@ -3189,15 +3210,12 @@ const typeMap: any = {
31893210 "Using": o([
31903211 { json: "using", js: "using", typ: i(0) },
31913212 ], false),
3192- "Var": o([
3193- { json: "var", js: "var", typ: i(0) },
3194- ], false),
3195- "Virtual": o([
3196- { json: "virtual", js: "virtual", typ: i(0) },
3197- ], false),
31983213 "Obj6": o([
3214+ { json: "UUID", js: "UUID", typ: r("UUID") },
31993215 { json: "YES", js: "YES", typ: r("Yes") },
32003216 { json: "dummy", js: "dummy", typ: i(0) },
3217+ { json: "var", js: "var", typ: r("Var") },
3218+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32013219 { json: "void", js: "void", typ: r("Void") },
32023220 { json: "volatile", js: "volatile", typ: r("Volatile") },
32033221 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3210,9 +3228,18 @@ const typeMap: any = {
32103228 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
32113229 { json: "yield", js: "yield", typ: r("Yield") },
32123230 ], false),
3231+ "UUID": o([
3232+ { json: "UUID", js: "UUID", typ: i(0) },
3233+ ], false),
32133234 "Yes": o([
32143235 { json: "YES", js: "YES", typ: i(0) },
32153236 ], false),
3237+ "Var": o([
3238+ { json: "var", js: "var", typ: i(0) },
3239+ ], false),
3240+ "Virtual": o([
3241+ { json: "virtual", js: "virtual", typ: i(0) },
3242+ ], false),
32163243 "Void": o([
32173244 { json: "void", js: "void", typ: i(0) },
32183245 ], 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,15 +1315,8 @@ 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 = {
1319+ SEL: Sel;
13191320 Self: Self;
13201321 Sendable: Sendable;
13211322 SerializerProvider: SerializerProvider;
@@ -1328,10 +1329,11 @@ export type Obj5 = {
13281329 TimeZone: TimeZone;
13291330 True: True;
13301331 Type: Type;
1331- UUID: UUID;
13321332 Utf8JsonReader: Utf8JSONReader;
13331333 Utf8JsonWriter: Utf8JSONWriter;
13341334 dummy: number;
1335+ sealed: Sealed;
1336+ select: Select;
13351337 self: SelfClass;
13361338 serialize: Serialize;
13371339 set: Set;
@@ -1379,8 +1381,10 @@ export type Obj5 = {
13791381 unsigned: Unsigned;
13801382 ushort: Ushort;
13811383 using: Using;
1382- var: Var;
1383- virtual: Virtual;
1384+}
1385+
1386+export type Sel = {
1387+ SEL: number;
13841388 }
13851389
13861390 export type Self = {
@@ -1431,10 +1435,6 @@ export type Type = {
14311435 Type: number;
14321436 }
14331437
1434-export type UUID = {
1435- UUID: number;
1436-}
1437-
14381438 export type Utf8JSONReader = {
14391439 Utf8JsonReader: number;
14401440 }
@@ -1443,6 +1443,14 @@ export type Utf8JSONWriter = {
14431443 Utf8JsonWriter: number;
14441444 }
14451445
1446+export type Sealed = {
1447+ sealed: number;
1448+}
1449+
1450+export type Select = {
1451+ select: number;
1452+}
1453+
14461454 export type SelfClass = {
14471455 self: number;
14481456 }
@@ -1631,17 +1639,12 @@ export type Using = {
16311639 using: number;
16321640 }
16331641
1634-export type Var = {
1635- var: number;
1636-}
1637-
1638-export type Virtual = {
1639- virtual: number;
1640-}
1641-
16421642 export type Obj6 = {
1643+ UUID: UUID;
16431644 YES: Yes;
16441645 dummy: number;
1646+ var: Var;
1647+ virtual: Virtual;
16451648 void: Void;
16461649 volatile: Volatile;
16471650 wchar_t: WcharT;
@@ -1655,10 +1658,22 @@ export type Obj6 = {
16551658 yield: Yield;
16561659 }
16571660
1661+export type UUID = {
1662+ UUID: number;
1663+}
1664+
16581665 export type Yes = {
16591666 YES: number;
16601667 }
16611668
1669+export type Var = {
1670+ var: number;
1671+}
1672+
1673+export type Virtual = {
1674+ virtual: number;
1675+}
1676+
16621677 export type Void = {
16631678 void: number;
16641679 }
@@ -2434,6 +2449,7 @@ const typeMap: any = {
24342449 { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") },
24352450 { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") },
24362451 { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") },
2452+ { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") },
24372453 { json: "Locale", js: "Locale", typ: r("Locale") },
24382454 { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") },
24392455 { json: "NO", js: "NO", typ: r("No") },
@@ -2483,7 +2499,6 @@ const typeMap: any = {
24832499 { json: "new", js: "new", typ: r("New") },
24842500 { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") },
24852501 { json: "nil", js: "nil", typ: r("Nil") },
2486- { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
24872502 ], false),
24882503 "Hashable": o([
24892504 { json: "Hashable", js: "Hashable", typ: i(0) },
@@ -2530,6 +2545,9 @@ const typeMap: any = {
25302545 "JSONTokenType": o([
25312546 { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) },
25322547 ], false),
2548+ "LocalDate": o([
2549+ { json: "LocalDate", js: "LocalDate", typ: i(0) },
2550+ ], false),
25332551 "Locale": o([
25342552 { json: "Locale", js: "Locale", typ: i(0) },
25352553 ], false),
@@ -2674,9 +2692,6 @@ const typeMap: any = {
26742692 "Nil": o([
26752693 { json: "nil", js: "nil", typ: i(0) },
26762694 ], false),
2677- "Noexcept": o([
2678- { json: "noexcept", js: "noexcept", typ: i(0) },
2679- ], false),
26802695 "Obj4": o([
26812696 { json: "NSError", js: "NSError", typ: r("NSError") },
26822697 { json: "NSObject", js: "NSObject", typ: r("NSObject") },
@@ -2684,11 +2699,13 @@ const typeMap: any = {
26842699 { json: "NULL", js: "NULL", typ: r("Null") },
26852700 { json: "None", js: "None", typ: r("None") },
26862701 { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") },
2702+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") },
2703+ { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") },
26872704 { json: "Protocol", js: "Protocol", typ: r("Protocol") },
26882705 { json: "RegExp", js: "RegExp", typ: r("RegExp") },
2689- { json: "SEL", js: "SEL", typ: r("Sel") },
26902706 { json: "dummy", js: "dummy", typ: i(0) },
26912707 { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") },
2708+ { json: "noexcept", js: "noexcept", typ: r("Noexcept") },
26922709 { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") },
26932710 { json: "none", js: "none", typ: r("NoneClass") },
26942711 { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") },
@@ -2741,8 +2758,6 @@ const typeMap: any = {
27412758 { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") },
27422759 { json: "s", js: "s", typ: r("S") },
27432760 { json: "sbyte", js: "sbyte", typ: r("Sbyte") },
2744- { json: "sealed", js: "sealed", typ: r("Sealed") },
2745- { json: "select", js: "select", typ: r("Select") },
27462761 ], false),
27472762 "NSError": o([
27482763 { json: "NSError", js: "NSError", typ: i(0) },
@@ -2762,18 +2777,24 @@ const typeMap: any = {
27622777 "ObjectMapper": o([
27632778 { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) },
27642779 ], false),
2780+ "OffsetDateTime": o([
2781+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) },
2782+ ], false),
2783+ "OffsetTime": o([
2784+ { json: "OffsetTime", js: "OffsetTime", typ: i(0) },
2785+ ], false),
27652786 "Protocol": o([
27662787 { json: "Protocol", js: "Protocol", typ: i(0) },
27672788 ], false),
27682789 "RegExp": o([
27692790 { json: "RegExp", js: "RegExp", typ: { uuid: "" } },
27702791 ], false),
2771- "Sel": o([
2772- { json: "SEL", js: "SEL", typ: i(0) },
2773- ], false),
27742792 "NoSuchMethod": o([
27752793 { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) },
27762794 ], false),
2795+ "Noexcept": o([
2796+ { json: "noexcept", js: "noexcept", typ: i(0) },
2797+ ], false),
27772798 "Nonatomic": o([
27782799 { json: "nonatomic", js: "nonatomic", typ: i(0) },
27792800 ], false),
@@ -2930,13 +2951,8 @@ const typeMap: any = {
29302951 "Sbyte": o([
29312952 { json: "sbyte", js: "sbyte", typ: i(0) },
29322953 ], false),
2933- "Sealed": o([
2934- { json: "sealed", js: "sealed", typ: i(0) },
2935- ], false),
2936- "Select": o([
2937- { json: "select", js: "select", typ: i(0) },
2938- ], false),
29392954 "Obj5": o([
2955+ { json: "SEL", js: "SEL", typ: r("Sel") },
29402956 { json: "Self", js: "Self", typ: r("Self") },
29412957 { json: "Sendable", js: "Sendable", typ: r("Sendable") },
29422958 { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") },
@@ -2949,10 +2965,11 @@ const typeMap: any = {
29492965 { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") },
29502966 { json: "True", js: "True", typ: r("True") },
29512967 { json: "Type", js: "Type", typ: r("Type") },
2952- { json: "UUID", js: "UUID", typ: r("UUID") },
29532968 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") },
29542969 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") },
29552970 { json: "dummy", js: "dummy", typ: i(0) },
2971+ { json: "sealed", js: "sealed", typ: r("Sealed") },
2972+ { json: "select", js: "select", typ: r("Select") },
29562973 { json: "self", js: "self", typ: r("SelfClass") },
29572974 { json: "serialize", js: "serialize", typ: r("Serialize") },
29582975 { json: "set", js: "set", typ: r("Set") },
@@ -3000,8 +3017,9 @@ const typeMap: any = {
30003017 { json: "unsigned", js: "unsigned", typ: r("Unsigned") },
30013018 { json: "ushort", js: "ushort", typ: r("Ushort") },
30023019 { json: "using", js: "using", typ: r("Using") },
3003- { json: "var", js: "var", typ: r("Var") },
3004- { json: "virtual", js: "virtual", typ: r("Virtual") },
3020+ ], false),
3021+ "Sel": o([
3022+ { json: "SEL", js: "SEL", typ: i(0) },
30053023 ], false),
30063024 "Self": o([
30073025 { json: "Self", js: "Self", typ: i(0) },
@@ -3039,15 +3057,18 @@ const typeMap: any = {
30393057 "Type": o([
30403058 { json: "Type", js: "Type", typ: i(0) },
30413059 ], false),
3042- "UUID": o([
3043- { json: "UUID", js: "UUID", typ: i(0) },
3044- ], false),
30453060 "Utf8JSONReader": o([
30463061 { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) },
30473062 ], false),
30483063 "Utf8JSONWriter": o([
30493064 { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) },
30503065 ], false),
3066+ "Sealed": o([
3067+ { json: "sealed", js: "sealed", typ: i(0) },
3068+ ], false),
3069+ "Select": o([
3070+ { json: "select", js: "select", typ: i(0) },
3071+ ], false),
30513072 "SelfClass": o([
30523073 { json: "self", js: "self", typ: i(0) },
30533074 ], false),
@@ -3189,15 +3210,12 @@ const typeMap: any = {
31893210 "Using": o([
31903211 { json: "using", js: "using", typ: i(0) },
31913212 ], false),
3192- "Var": o([
3193- { json: "var", js: "var", typ: i(0) },
3194- ], false),
3195- "Virtual": o([
3196- { json: "virtual", js: "virtual", typ: i(0) },
3197- ], false),
31983213 "Obj6": o([
3214+ { json: "UUID", js: "UUID", typ: r("UUID") },
31993215 { json: "YES", js: "YES", typ: r("Yes") },
32003216 { json: "dummy", js: "dummy", typ: i(0) },
3217+ { json: "var", js: "var", typ: r("Var") },
3218+ { json: "virtual", js: "virtual", typ: r("Virtual") },
32013219 { json: "void", js: "void", typ: r("Void") },
32023220 { json: "volatile", js: "volatile", typ: r("Volatile") },
32033221 { json: "wchar_t", js: "wchar_t", typ: r("WcharT") },
@@ -3210,9 +3228,18 @@ const typeMap: any = {
32103228 { json: "xor_eq", js: "xor_eq", typ: r("XorEq") },
32113229 { json: "yield", js: "yield", typ: r("Yield") },
32123230 ], false),
3231+ "UUID": o([
3232+ { json: "UUID", js: "UUID", typ: i(0) },
3233+ ], false),
32133234 "Yes": o([
32143235 { json: "YES", js: "YES", typ: i(0) },
32153236 ], false),
3237+ "Var": o([
3238+ { json: "var", js: "var", typ: i(0) },
3239+ ], false),
3240+ "Virtual": o([
3241+ { json: "virtual", js: "virtual", typ: i(0) },
3242+ ], false),
32163243 "Void": o([
32173244 { json: "void", js: "void", typ: i(0) },
32183245 ], 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;
@@ -524,6 +527,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
524527 case ENUM_LEFT: j = cJSON_CreateString("left"); break;
525528 case ENUM_LET: j = cJSON_CreateString("let"); break;
526529 case ENUM_LIST: j = cJSON_CreateString("list"); break;
530+ case ENUM_LOCAL_DATE: j = cJSON_CreateString("LocalDate"); break;
527531 case ENUM_LOCALE: j = cJSON_CreateString("Locale"); break;
528532 case ENUM_LOCK: j = cJSON_CreateString("lock"); break;
529533 case ENUM_LONG: j = cJSON_CreateString("long"); break;
@@ -556,6 +560,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) {
556560 case ENUM_NULLPTR: j = cJSON_CreateString("nullptr"); break;
557561 case ENUM_NUMBER: j = cJSON_CreateString("number"); break;
558562 case ENUM_OBJECT: j = cJSON_CreateString("object"); break;
563+ case ENUM_OFFSET_DATE_TIME: j = cJSON_CreateString("OffsetDateTime"); break;
564+ case ENUM_OFFSET_TIME: j = cJSON_CreateString("OffsetTime"); break;
559565 case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break;
560566 case ENUM_OF: j = cJSON_CreateString("of"); break;
561567 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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},
@@ -645,6 +648,7 @@ namespace quicktype {
645648 case Enum::LEFT: j = "left"; break;
646649 case Enum::LET: j = "let"; break;
647650 case Enum::LIST: j = "list"; break;
651+ case Enum::LOCAL_DATE: j = "LocalDate"; break;
648652 case Enum::LOCALE: j = "Locale"; break;
649653 case Enum::LOCK: j = "lock"; break;
650654 case Enum::LONG: j = "long"; break;
@@ -677,6 +681,8 @@ namespace quicktype {
677681 case Enum::NULLPTR: j = "nullptr"; break;
678682 case Enum::NUMBER: j = "number"; break;
679683 case Enum::OBJECT: j = "object"; break;
684+ case Enum::OFFSET_DATE_TIME: j = "OffsetDateTime"; break;
685+ case Enum::OFFSET_TIME: j = "OffsetTime"; break;
680686 case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break;
681687 case Enum::OF: j = "of"; break;
682688 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, EnumSelf, Sendable, Serialize, 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, 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, EnumSelf, Sendable, Serialize, 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, 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":
@@ -1273,6 +1279,9 @@ namespace QuickType
12731279 case Enum.List:
12741280 serializer.Serialize(writer, "list");
12751281 return;
1282+ case Enum.LocalDate:
1283+ serializer.Serialize(writer, "LocalDate");
1284+ return;
12761285 case Enum.Locale:
12771286 serializer.Serialize(writer, "Locale");
12781287 return;
@@ -1369,6 +1378,12 @@ namespace QuickType
13691378 case Enum.Object:
13701379 serializer.Serialize(writer, "object");
13711380 return;
1381+ case Enum.OffsetDateTime:
1382+ serializer.Serialize(writer, "OffsetDateTime");
1383+ return;
1384+ case Enum.OffsetTime:
1385+ serializer.Serialize(writer, "OffsetTime");
1386+ return;
13721387 case Enum.ObjectMapper:
13731388 serializer.Serialize(writer, "ObjectMapper");
13741389 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, EnumSelf, Sendable, Serialize, 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, 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, EnumSelf, Sendable, Serialize, 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, 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":
@@ -1264,6 +1270,9 @@ namespace QuickType
12641270 case Enum.List:
12651271 JsonSerializer.Serialize(writer, "list", options);
12661272 return;
1273+ case Enum.LocalDate:
1274+ JsonSerializer.Serialize(writer, "LocalDate", options);
1275+ return;
12671276 case Enum.Locale:
12681277 JsonSerializer.Serialize(writer, "Locale", options);
12691278 return;
@@ -1360,6 +1369,12 @@ namespace QuickType
13601369 case Enum.Object:
13611370 JsonSerializer.Serialize(writer, "object", options);
13621371 return;
1372+ case Enum.OffsetDateTime:
1373+ JsonSerializer.Serialize(writer, "OffsetDateTime", options);
1374+ return;
1375+ case Enum.OffsetTime:
1376+ JsonSerializer.Serialize(writer, "OffsetTime", options);
1377+ return;
13631378 case Enum.ObjectMapper:
13641379 JsonSerializer.Serialize(writer, "ObjectMapper", options);
13651380 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, EnumSelf, Sendable, Serialize, 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, 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, EnumSelf, Sendable, Serialize, 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, 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":
@@ -1273,6 +1279,9 @@ namespace QuickType
12731279 case Enum.List:
12741280 serializer.Serialize(writer, "list");
12751281 return;
1282+ case Enum.LocalDate:
1283+ serializer.Serialize(writer, "LocalDate");
1284+ return;
12761285 case Enum.Locale:
12771286 serializer.Serialize(writer, "Locale");
12781287 return;
@@ -1369,6 +1378,12 @@ namespace QuickType
13691378 case Enum.Object:
13701379 serializer.Serialize(writer, "object");
13711380 return;
1381+ case Enum.OffsetDateTime:
1382+ serializer.Serialize(writer, "OffsetDateTime");
1383+ return;
1384+ case Enum.OffsetTime:
1385+ serializer.Serialize(writer, "OffsetTime");
1386+ return;
13721387 case Enum.ObjectMapper:
13731388 serializer.Serialize(writer, "ObjectMapper");
13741389 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,
@@ -537,6 +540,7 @@ final enumValues = EnumValues({
537540 "left": Enum.LEFT,
538541 "let": Enum.LET,
539542 "list": Enum.LIST,
543+ "LocalDate": Enum.LOCAL_DATE,
540544 "Locale": Enum.LOCALE,
541545 "lock": Enum.LOCK,
542546 "long": Enum.LONG,
@@ -569,6 +573,8 @@ final enumValues = EnumValues({
569573 "nullptr": Enum.NULLPTR,
570574 "number": Enum.NUMBER,
571575 "object": Enum.OBJECT,
576+ "OffsetDateTime": Enum.OFFSET_DATE_TIME,
577+ "OffsetTime": Enum.OFFSET_TIME,
572578 "ObjectMapper": Enum.OBJECT_MAPPER,
573579 "of": Enum.OF,
574580 "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
@@ -565,6 +568,7 @@ enumEnum =
565568 "left" -> Jdec.succeed Left
566569 "let" -> Jdec.succeed Let
567570 "list" -> Jdec.succeed EnumList
571+ "LocalDate" -> Jdec.succeed LocalDate
568572 "Locale" -> Jdec.succeed Locale
569573 "lock" -> Jdec.succeed Lock
570574 "long" -> Jdec.succeed Long
@@ -597,6 +601,8 @@ enumEnum =
597601 "nullptr" -> Jdec.succeed Nullptr
598602 "number" -> Jdec.succeed Number
599603 "object" -> Jdec.succeed Object
604+ "OffsetDateTime" -> Jdec.succeed OffsetDateTime
605+ "OffsetTime" -> Jdec.succeed OffsetTime
600606 "ObjectMapper" -> Jdec.succeed ObjectMapper
601607 "of" -> Jdec.succeed Of
602608 "oneway" -> Jdec.succeed Oneway
@@ -903,6 +909,7 @@ encodeEnumEnum x = case x of
903909 Left -> Jenc.string "left"
904910 Let -> Jenc.string "let"
905911 EnumList -> Jenc.string "list"
912+ LocalDate -> Jenc.string "LocalDate"
906913 Locale -> Jenc.string "Locale"
907914 Lock -> Jenc.string "lock"
908915 Long -> Jenc.string "long"
@@ -935,6 +942,8 @@ encodeEnumEnum x = case x of
935942 Nullptr -> Jenc.string "nullptr"
936943 Number -> Jenc.string "number"
937944 Object -> Jenc.string "object"
945+ OffsetDateTime -> Jenc.string "OffsetDateTime"
946+ OffsetTime -> Jenc.string "OffsetTime"
938947 ObjectMapper -> Jenc.string "ObjectMapper"
939948 Of -> Jenc.string "of"
940949 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"
@@ -714,6 +717,7 @@ const typeMap: any = {
714717 "left",
715718 "let",
716719 "list",
720+ "LocalDate",
717721 "Locale",
718722 "lock",
719723 "long",
@@ -746,6 +750,8 @@ const typeMap: any = {
746750 "nullptr",
747751 "number",
748752 "object",
753+ "OffsetDateTime",
754+ "OffsetTime",
749755 "ObjectMapper",
750756 "of",
751757 "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"
@@ -367,7 +370,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error {
367370 var value string
368371 if err := json.Unmarshal(data, &value); err != nil { return err }
369372 switch EnumEnum(value) {
370- 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, EnumSelf, Sendable, Serialize, 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, 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
373+ 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, EnumSelf, Sendable, Serialize, 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, 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
371374 }
372375 return invalidEnumEnum(value)
373376 }
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
@@ -543,6 +546,7 @@ instance ToJSON EnumEnum where
543546 toJSON LeftEnumEnum = "left"
544547 toJSON LetEnumEnum = "let"
545548 toJSON ListEnumEnum = "list"
549+ toJSON LocalDateEnumEnum = "LocalDate"
546550 toJSON LocaleEnumEnum = "Locale"
547551 toJSON LockEnumEnum = "lock"
548552 toJSON LongEnumEnum = "long"
@@ -575,6 +579,8 @@ instance ToJSON EnumEnum where
575579 toJSON NullptrEnumEnum = "nullptr"
576580 toJSON NumberEnumEnum = "number"
577581 toJSON ObjectEnumEnum = "object"
582+ toJSON OffsetDateTimeEnumEnum = "OffsetDateTime"
583+ toJSON OffsetTimeEnumEnum = "OffsetTime"
578584 toJSON ObjectMapperEnumEnum = "ObjectMapper"
579585 toJSON OfEnumEnum = "of"
580586 toJSON OnewayEnumEnum = "oneway"
@@ -880,6 +886,7 @@ instance FromJSON EnumEnum where
880886 parseText "left" = return LeftEnumEnum
881887 parseText "let" = return LetEnumEnum
882888 parseText "list" = return ListEnumEnum
889+ parseText "LocalDate" = return LocalDateEnumEnum
883890 parseText "Locale" = return LocaleEnumEnum
884891 parseText "lock" = return LockEnumEnum
885892 parseText "long" = return LongEnumEnum
@@ -912,6 +919,8 @@ instance FromJSON EnumEnum where
912919 parseText "nullptr" = return NullptrEnumEnum
913920 parseText "number" = return NumberEnumEnum
914921 parseText "object" = return ObjectEnumEnum
922+ parseText "OffsetDateTime" = return OffsetDateTimeEnumEnum
923+ parseText "OffsetTime" = return OffsetTimeEnumEnum
915924 parseText "ObjectMapper" = return ObjectMapperEnumEnum
916925 parseText "of" = return OfEnumEnum
917926 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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";
@@ -524,6 +527,7 @@ public enum Enum {
524527 if (value.equals("left")) return LEFT;
525528 if (value.equals("let")) return LET;
526529 if (value.equals("list")) return LIST;
530+ if (value.equals("LocalDate")) return LOCAL_DATE;
527531 if (value.equals("Locale")) return LOCALE;
528532 if (value.equals("lock")) return LOCK;
529533 if (value.equals("long")) return LONG;
@@ -556,6 +560,8 @@ public enum Enum {
556560 if (value.equals("nullptr")) return NULLPTR;
557561 if (value.equals("number")) return NUMBER;
558562 if (value.equals("object")) return OBJECT;
563+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
564+ if (value.equals("OffsetTime")) return OFFSET_TIME;
559565 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
560566 if (value.equals("of")) return OF;
561567 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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";
@@ -524,6 +527,7 @@ public enum Enum {
524527 if (value.equals("left")) return LEFT;
525528 if (value.equals("let")) return LET;
526529 if (value.equals("list")) return LIST;
530+ if (value.equals("LocalDate")) return LOCAL_DATE;
527531 if (value.equals("Locale")) return LOCALE;
528532 if (value.equals("lock")) return LOCK;
529533 if (value.equals("long")) return LONG;
@@ -556,6 +560,8 @@ public enum Enum {
556560 if (value.equals("nullptr")) return NULLPTR;
557561 if (value.equals("number")) return NUMBER;
558562 if (value.equals("object")) return OBJECT;
563+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
564+ if (value.equals("OffsetTime")) return OFFSET_TIME;
559565 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
560566 if (value.equals("of")) return OF;
561567 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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, ENUM_SELF, SENDABLE, 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, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, 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";
@@ -524,6 +527,7 @@ public enum Enum {
524527 if (value.equals("left")) return LEFT;
525528 if (value.equals("let")) return LET;
526529 if (value.equals("list")) return LIST;
530+ if (value.equals("LocalDate")) return LOCAL_DATE;
527531 if (value.equals("Locale")) return LOCALE;
528532 if (value.equals("lock")) return LOCK;
529533 if (value.equals("long")) return LONG;
@@ -556,6 +560,8 @@ public enum Enum {
556560 if (value.equals("nullptr")) return NULLPTR;
557561 if (value.equals("number")) return NUMBER;
558562 if (value.equals("object")) return OBJECT;
563+ if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME;
564+ if (value.equals("OffsetTime")) return OFFSET_TIME;
559565 if (value.equals("ObjectMapper")) return OBJECT_MAPPER;
560566 if (value.equals("of")) return OF;
561567 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', 'self', 'Sendable', 'serialize', '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', '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', 'self', 'Sendable', 'serialize', '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', '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"),
@@ -553,6 +556,7 @@ enum class EnumEnum(val value: String) {
553556 "left" -> Left
554557 "let" -> Let
555558 "list" -> EnumList
559+ "LocalDate" -> LocalDate
556560 "Locale" -> Locale
557561 "lock" -> Lock
558562 "long" -> EnumLong
@@ -585,6 +589,8 @@ enum class EnumEnum(val value: String) {
585589 "nullptr" -> Nullptr
586590 "number" -> Number
587591 "object" -> Object
592+ "OffsetDateTime" -> OffsetDateTime
593+ "OffsetTime" -> OffsetTime
588594 "ObjectMapper" -> EnumObjectMapper
589595 "of" -> Of
590596 "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"),
@@ -540,6 +543,7 @@ enum class EnumEnum(val value: String) {
540543 "left" -> Left
541544 "let" -> Let
542545 "list" -> EnumList
546+ "LocalDate" -> LocalDate
543547 "Locale" -> Locale
544548 "lock" -> Lock
545549 "long" -> EnumLong
@@ -572,6 +576,8 @@ enum class EnumEnum(val value: String) {
572576 "nullptr" -> Nullptr
573577 "number" -> Number
574578 "object" -> Object
579+ "OffsetDateTime" -> OffsetDateTime
580+ "OffsetTime" -> OffsetTime
575581 "ObjectMapper" -> ObjectMapper
576582 "of" -> Of
577583 "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"],
@@ -530,6 +533,7 @@ NS_ASSUME_NONNULL_BEGIN
530533 + (QTEnum *)left { return QTEnum.values[@"left"]; }
531534 + (QTEnum *)let { return QTEnum.values[@"let"]; }
532535 + (QTEnum *)list { return QTEnum.values[@"list"]; }
536++ (QTEnum *)localDate { return QTEnum.values[@"LocalDate"]; }
533537 + (QTEnum *)locale { return QTEnum.values[@"Locale"]; }
534538 + (QTEnum *)lock { return QTEnum.values[@"lock"]; }
535539 + (QTEnum *)enumLong { return QTEnum.values[@"long"]; }
@@ -562,6 +566,8 @@ NS_ASSUME_NONNULL_BEGIN
562566 + (QTEnum *)nullptr { return QTEnum.values[@"nullptr"]; }
563567 + (QTEnum *)number { return QTEnum.values[@"number"]; }
564568 + (QTEnum *)object { return QTEnum.values[@"object"]; }
569++ (QTEnum *)offsetDateTime { return QTEnum.values[@"OffsetDateTime"]; }
570++ (QTEnum *)offsetTime { return QTEnum.values[@"OffsetTime"]; }
565571 + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; }
566572 + (QTEnum *)of { return QTEnum.values[@"of"]; }
567573 + (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;
@@ -623,6 +626,7 @@ class EnumEnum {
623626 EnumEnum::$LEFT = new EnumEnum('left');
624627 EnumEnum::$LET = new EnumEnum('let');
625628 EnumEnum::$LIST = new EnumEnum('list');
629+ EnumEnum::$LOCAL_DATE = new EnumEnum('LocalDate');
626630 EnumEnum::$LOCALE = new EnumEnum('Locale');
627631 EnumEnum::$LOCK = new EnumEnum('lock');
628632 EnumEnum::$LONG = new EnumEnum('long');
@@ -655,6 +659,8 @@ class EnumEnum {
655659 EnumEnum::$NULLPTR = new EnumEnum('nullptr');
656660 EnumEnum::$NUMBER = new EnumEnum('number');
657661 EnumEnum::$OBJECT = new EnumEnum('object');
662+ EnumEnum::$OFFSET_DATE_TIME = new EnumEnum('OffsetDateTime');
663+ EnumEnum::$OFFSET_TIME = new EnumEnum('OffsetTime');
658664 EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper');
659665 EnumEnum::$OF = new EnumEnum('of');
660666 EnumEnum::$ONEWAY = new EnumEnum('oneway');
@@ -969,6 +975,7 @@ class EnumEnum {
969975 case EnumEnum::$LEFT->enum: return 'left';
970976 case EnumEnum::$LET->enum: return 'let';
971977 case EnumEnum::$LIST->enum: return 'list';
978+ case EnumEnum::$LOCAL_DATE->enum: return 'LocalDate';
972979 case EnumEnum::$LOCALE->enum: return 'Locale';
973980 case EnumEnum::$LOCK->enum: return 'lock';
974981 case EnumEnum::$LONG->enum: return 'long';
@@ -1001,6 +1008,8 @@ class EnumEnum {
10011008 case EnumEnum::$NULLPTR->enum: return 'nullptr';
10021009 case EnumEnum::$NUMBER->enum: return 'number';
10031010 case EnumEnum::$OBJECT->enum: return 'object';
1011+ case EnumEnum::$OFFSET_DATE_TIME->enum: return 'OffsetDateTime';
1012+ case EnumEnum::$OFFSET_TIME->enum: return 'OffsetTime';
10041013 case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper';
10051014 case EnumEnum::$OF->enum: return 'of';
10061015 case EnumEnum::$ONEWAY->enum: return 'oneway';
@@ -1313,6 +1322,7 @@ class EnumEnum {
13131322 case 'left': return EnumEnum::$LEFT;
13141323 case 'let': return EnumEnum::$LET;
13151324 case 'list': return EnumEnum::$LIST;
1325+ case 'LocalDate': return EnumEnum::$LOCAL_DATE;
13161326 case 'Locale': return EnumEnum::$LOCALE;
13171327 case 'lock': return EnumEnum::$LOCK;
13181328 case 'long': return EnumEnum::$LONG;
@@ -1345,6 +1355,8 @@ class EnumEnum {
13451355 case 'nullptr': return EnumEnum::$NULLPTR;
13461356 case 'number': return EnumEnum::$NUMBER;
13471357 case 'object': return EnumEnum::$OBJECT;
1358+ case 'OffsetDateTime': return EnumEnum::$OFFSET_DATE_TIME;
1359+ case 'OffsetTime': return EnumEnum::$OFFSET_TIME;
13481360 case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER;
13491361 case 'of': return EnumEnum::$OF;
13501362 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"
@@ -369,5 +372,5 @@ enum Enum {
369372 }
370373
371374 Enum Enum_from_JSON(mixed json) {
372- 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 != "self"&&json != "Sendable"&&json != "serialize"&&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 != "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;
375+ 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 != "self"&&json != "Sendable"&&json != "serialize"&&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 != "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;
373376 }
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", "self", "Sendable", "serialize", "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", "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", "self", "Sendable", "serialize", "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", "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
@@ -595,6 +598,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
595598 case EnumEnum.Left => "left"
596599 case EnumEnum.Let => "let"
597600 case EnumEnum.EnumList => "list"
601+ case EnumEnum.LocalDate => "LocalDate"
598602 case EnumEnum.Locale => "Locale"
599603 case EnumEnum.Lock => "lock"
600604 case EnumEnum.EnumLong => "long"
@@ -627,6 +631,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
627631 case EnumEnum.Nullptr => "nullptr"
628632 case EnumEnum.Number => "number"
629633 case EnumEnum.Object => "object"
634+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
635+ case EnumEnum.OffsetTime => "OffsetTime"
630636 case EnumEnum.ObjectMapper => "ObjectMapper"
631637 case EnumEnum.Of => "of"
632638 case EnumEnum.Oneway => "oneway"
@@ -930,6 +936,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
930936 case "left" => EnumEnum.Left
931937 case "let" => EnumEnum.Let
932938 case "list" => EnumEnum.EnumList
939+ case "LocalDate" => EnumEnum.LocalDate
933940 case "Locale" => EnumEnum.Locale
934941 case "lock" => EnumEnum.Lock
935942 case "long" => EnumEnum.EnumLong
@@ -962,6 +969,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima
962969 case "nullptr" => EnumEnum.Nullptr
963970 case "number" => EnumEnum.Number
964971 case "object" => EnumEnum.Object
972+ case "OffsetDateTime" => EnumEnum.OffsetDateTime
973+ case "OffsetTime" => EnumEnum.OffsetTime
965974 case "ObjectMapper" => EnumEnum.ObjectMapper
966975 case "of" => EnumEnum.Of
967976 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
@@ -523,6 +526,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
523526 case "left" => scala.Right(EnumEnum.Left)
524527 case "let" => scala.Right(EnumEnum.Let)
525528 case "list" => scala.Right(EnumEnum.EnumList)
529+ case "LocalDate" => scala.Right(EnumEnum.LocalDate)
526530 case "Locale" => scala.Right(EnumEnum.Locale)
527531 case "lock" => scala.Right(EnumEnum.Lock)
528532 case "long" => scala.Right(EnumEnum.EnumLong)
@@ -555,6 +559,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap {
555559 case "nullptr" => scala.Right(EnumEnum.Nullptr)
556560 case "number" => scala.Right(EnumEnum.Number)
557561 case "object" => scala.Right(EnumEnum.Object)
562+ case "OffsetDateTime" => scala.Right(EnumEnum.OffsetDateTime)
563+ case "OffsetTime" => scala.Right(EnumEnum.OffsetTime)
558564 case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper)
559565 case "of" => scala.Right(EnumEnum.Of)
560566 case "oneway" => scala.Right(EnumEnum.Oneway)
@@ -859,6 +865,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
859865 case EnumEnum.Left => "left"
860866 case EnumEnum.Let => "let"
861867 case EnumEnum.EnumList => "list"
868+ case EnumEnum.LocalDate => "LocalDate"
862869 case EnumEnum.Locale => "Locale"
863870 case EnumEnum.Lock => "lock"
864871 case EnumEnum.EnumLong => "long"
@@ -891,6 +898,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap {
891898 case EnumEnum.Nullptr => "nullptr"
892899 case EnumEnum.Number => "number"
893900 case EnumEnum.Object => "object"
901+ case EnumEnum.OffsetDateTime => "OffsetDateTime"
902+ case EnumEnum.OffsetTime => "OffsetTime"
894903 case EnumEnum.ObjectMapper => "ObjectMapper"
895904 case EnumEnum.Of => "of"
896905 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" | "self" | "Sendable" | "serialize" | "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" | "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" | "self" | "Sendable" | "serialize" | "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" | "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,697 −160
Mschema-cjsondefault / TopLevel.c+312 −0
@@ -5417,6 +5417,50 @@ void cJSON_DeleteUnionList(struct UnionList * x) {
54175417 }
54185418 }
54195419
5420+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j) {
5421+ struct UnionLocalDate * x = cJSON_malloc(sizeof(struct UnionLocalDate));
5422+ if (NULL != x) {
5423+ memset(x, 0, sizeof(struct UnionLocalDate));
5424+ if (cJSON_IsNumber(j)) {
5425+ x->type = cJSON_Number;
5426+ x->value.number = cJSON_GetNumberValue(j);
5427+ }
5428+ else if (cJSON_IsObject(j)) {
5429+ x->type = cJSON_Object;
5430+ x->value.local_date = cJSON_GetLocalDateValue(j);
5431+ if (NULL == x->value.local_date) x->type = 0;
5432+ }
5433+ if (0 == x->type) { cJSON_free(x); return NULL; }
5434+ }
5435+ return x;
5436+}
5437+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; }
5438+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x) { cJSON * j = cJSON_CreateUnionLocalDate(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
5439+
5440+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x) {
5441+ cJSON * j = NULL;
5442+ if (NULL != x) {
5443+ if (cJSON_Number == x->type) {
5444+ j = cJSON_CreateNumber(x->value.number);
5445+ }
5446+ else if (cJSON_Object == x->type) {
5447+ j = cJSON_CreateLocalDate(x->value.local_date);
5448+ }
5449+ }
5450+ return j;
5451+}
5452+
5453+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x) {
5454+ if (NULL != x) {
5455+ if (cJSON_Number == x->type) {
5456+ }
5457+ else if (cJSON_Object == x->type) {
5458+ cJSON_DeleteLocalDate(x->value.local_date);
5459+ }
5460+ cJSON_free(x);
5461+ }
5462+}
5463+
54205464 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j) {
54215465 struct UnionLocale * x = cJSON_malloc(sizeof(struct UnionLocale));
54225466 if (NULL != x) {
@@ -6429,6 +6473,94 @@ void cJSON_DeleteUnionOf(struct UnionOf * x) {
64296473 }
64306474 }
64316475
6476+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j) {
6477+ struct UnionOffsetDateTime * x = cJSON_malloc(sizeof(struct UnionOffsetDateTime));
6478+ if (NULL != x) {
6479+ memset(x, 0, sizeof(struct UnionOffsetDateTime));
6480+ if (cJSON_IsNumber(j)) {
6481+ x->type = cJSON_Number;
6482+ x->value.number = cJSON_GetNumberValue(j);
6483+ }
6484+ else if (cJSON_IsObject(j)) {
6485+ x->type = cJSON_Object;
6486+ x->value.offset_date_time = cJSON_GetOffsetDateTimeValue(j);
6487+ if (NULL == x->value.offset_date_time) x->type = 0;
6488+ }
6489+ if (0 == x->type) { cJSON_free(x); return NULL; }
6490+ }
6491+ return x;
6492+}
6493+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; }
6494+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { cJSON * j = cJSON_CreateUnionOffsetDateTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6495+
6496+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x) {
6497+ cJSON * j = NULL;
6498+ if (NULL != x) {
6499+ if (cJSON_Number == x->type) {
6500+ j = cJSON_CreateNumber(x->value.number);
6501+ }
6502+ else if (cJSON_Object == x->type) {
6503+ j = cJSON_CreateOffsetDateTime(x->value.offset_date_time);
6504+ }
6505+ }
6506+ return j;
6507+}
6508+
6509+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x) {
6510+ if (NULL != x) {
6511+ if (cJSON_Number == x->type) {
6512+ }
6513+ else if (cJSON_Object == x->type) {
6514+ cJSON_DeleteOffsetDateTime(x->value.offset_date_time);
6515+ }
6516+ cJSON_free(x);
6517+ }
6518+}
6519+
6520+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j) {
6521+ struct UnionOffsetTime * x = cJSON_malloc(sizeof(struct UnionOffsetTime));
6522+ if (NULL != x) {
6523+ memset(x, 0, sizeof(struct UnionOffsetTime));
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_time = cJSON_GetOffsetTimeValue(j);
6531+ if (NULL == x->value.offset_time) x->type = 0;
6532+ }
6533+ if (0 == x->type) { cJSON_free(x); return NULL; }
6534+ }
6535+ return x;
6536+}
6537+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; }
6538+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x) { cJSON * j = cJSON_CreateUnionOffsetTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; }
6539+
6540+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * 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_CreateOffsetTime(x->value.offset_time);
6548+ }
6549+ }
6550+ return j;
6551+}
6552+
6553+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x) {
6554+ if (NULL != x) {
6555+ if (cJSON_Number == x->type) {
6556+ }
6557+ else if (cJSON_Object == x->type) {
6558+ cJSON_DeleteOffsetTime(x->value.offset_time);
6559+ }
6560+ cJSON_free(x);
6561+ }
6562+}
6563+
64326564 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j) {
64336565 struct UnionOneway * x = cJSON_malloc(sizeof(struct UnionOneway));
64346566 if (NULL != x) {
@@ -20640,6 +20772,55 @@ void cJSON_DeleteList(struct List * x) {
2064020772 }
2064120773 }
2064220774
20775+struct LocalDate * cJSON_ParseLocalDate(const char * s) {
20776+ struct LocalDate * x = NULL;
20777+ if (NULL != s) {
20778+ cJSON * j = cJSON_Parse(s);
20779+ if (NULL != j) {
20780+ x = cJSON_GetLocalDateValue(j);
20781+ cJSON_Delete(j);
20782+ }
20783+ }
20784+ return x;
20785+}
20786+
20787+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) {
20788+ struct LocalDate * x = NULL;
20789+ if (NULL != j) {
20790+ if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) {
20791+ memset(x, 0, sizeof(struct LocalDate));
20792+ }
20793+ }
20794+ return x;
20795+}
20796+
20797+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) {
20798+ cJSON * j = NULL;
20799+ if (NULL != x) {
20800+ if (NULL != (j = cJSON_CreateObject())) {
20801+ }
20802+ }
20803+ return j;
20804+}
20805+
20806+char * cJSON_PrintLocalDate(const struct LocalDate * x) {
20807+ char * s = NULL;
20808+ if (NULL != x) {
20809+ cJSON * j = cJSON_CreateLocalDate(x);
20810+ if (NULL != j) {
20811+ s = cJSON_Print(j);
20812+ cJSON_Delete(j);
20813+ }
20814+ }
20815+ return s;
20816+}
20817+
20818+void cJSON_DeleteLocalDate(struct LocalDate * x) {
20819+ if (NULL != x) {
20820+ cJSON_free(x);
20821+ }
20822+}
20823+
2064320824 struct Locale * cJSON_ParseLocale(const char * s) {
2064420825 struct Locale * x = NULL;
2064520826 if (NULL != s) {
@@ -21767,6 +21948,104 @@ void cJSON_DeleteOf(struct Of * x) {
2176721948 }
2176821949 }
2176921950
21951+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) {
21952+ struct OffsetDateTime * x = NULL;
21953+ if (NULL != s) {
21954+ cJSON * j = cJSON_Parse(s);
21955+ if (NULL != j) {
21956+ x = cJSON_GetOffsetDateTimeValue(j);
21957+ cJSON_Delete(j);
21958+ }
21959+ }
21960+ return x;
21961+}
21962+
21963+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) {
21964+ struct OffsetDateTime * x = NULL;
21965+ if (NULL != j) {
21966+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) {
21967+ memset(x, 0, sizeof(struct OffsetDateTime));
21968+ }
21969+ }
21970+ return x;
21971+}
21972+
21973+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) {
21974+ cJSON * j = NULL;
21975+ if (NULL != x) {
21976+ if (NULL != (j = cJSON_CreateObject())) {
21977+ }
21978+ }
21979+ return j;
21980+}
21981+
21982+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) {
21983+ char * s = NULL;
21984+ if (NULL != x) {
21985+ cJSON * j = cJSON_CreateOffsetDateTime(x);
21986+ if (NULL != j) {
21987+ s = cJSON_Print(j);
21988+ cJSON_Delete(j);
21989+ }
21990+ }
21991+ return s;
21992+}
21993+
21994+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) {
21995+ if (NULL != x) {
21996+ cJSON_free(x);
21997+ }
21998+}
21999+
22000+struct OffsetTime * cJSON_ParseOffsetTime(const char * s) {
22001+ struct OffsetTime * x = NULL;
22002+ if (NULL != s) {
22003+ cJSON * j = cJSON_Parse(s);
22004+ if (NULL != j) {
22005+ x = cJSON_GetOffsetTimeValue(j);
22006+ cJSON_Delete(j);
22007+ }
22008+ }
22009+ return x;
22010+}
22011+
22012+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) {
22013+ struct OffsetTime * x = NULL;
22014+ if (NULL != j) {
22015+ if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) {
22016+ memset(x, 0, sizeof(struct OffsetTime));
22017+ }
22018+ }
22019+ return x;
22020+}
22021+
22022+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) {
22023+ cJSON * j = NULL;
22024+ if (NULL != x) {
22025+ if (NULL != (j = cJSON_CreateObject())) {
22026+ }
22027+ }
22028+ return j;
22029+}
22030+
22031+char * cJSON_PrintOffsetTime(const struct OffsetTime * x) {
22032+ char * s = NULL;
22033+ if (NULL != x) {
22034+ cJSON * j = cJSON_CreateOffsetTime(x);
22035+ if (NULL != j) {
22036+ s = cJSON_Print(j);
22037+ cJSON_Delete(j);
22038+ }
22039+ }
22040+ return s;
22041+}
22042+
22043+void cJSON_DeleteOffsetTime(struct OffsetTime * x) {
22044+ if (NULL != x) {
22045+ cJSON_free(x);
22046+ }
22047+}
22048+
2177022049 struct Oneway * cJSON_ParseOneway(const char * s) {
2177122050 struct Oneway * x = NULL;
2177222051 if (NULL != s) {
@@ -31784,6 +32063,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3178432063 x->list = cJSON_GetUnionListValue(cJSON_GetObjectItemCaseSensitive(j, "list"));
3178532064 if (NULL == x->list) { cJSON_DeleteTopLevel(x); return NULL; }
3178632065 }
32066+ if (cJSON_HasObjectItem(j, "LocalDate")) {
32067+ if (!cJSON_IsUnionLocalDate(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteTopLevel(x); return NULL; }
32068+ x->local_date = cJSON_GetUnionLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"));
32069+ if (NULL == x->local_date) { cJSON_DeleteTopLevel(x); return NULL; }
32070+ }
3178732071 if (cJSON_HasObjectItem(j, "Locale")) {
3178832072 if (!cJSON_IsUnionLocale(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteTopLevel(x); return NULL; }
3178932073 x->locale = cJSON_GetUnionLocaleValue(cJSON_GetObjectItemCaseSensitive(j, "Locale"));
@@ -31954,6 +32238,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) {
3195432238 x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of"));
3195532239 if (NULL == x->of) { cJSON_DeleteTopLevel(x); return NULL; }
3195632240 }
32241+ if (cJSON_HasObjectItem(j, "OffsetDateTime")) {
32242+ if (!cJSON_IsUnionOffsetDateTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
32243+ x->offset_date_time = cJSON_GetUnionOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"));
32244+ if (NULL == x->offset_date_time) { cJSON_DeleteTopLevel(x); return NULL; }
32245+ }
32246+ if (cJSON_HasObjectItem(j, "OffsetTime")) {
32247+ if (!cJSON_IsUnionOffsetTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteTopLevel(x); return NULL; }
32248+ x->offset_time = cJSON_GetUnionOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"));
32249+ if (NULL == x->offset_time) { cJSON_DeleteTopLevel(x); return NULL; }
32250+ }
3195732251 if (cJSON_HasObjectItem(j, "oneway")) {
3195832252 if (!cJSON_IsUnionOneway(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteTopLevel(x); return NULL; }
3195932253 x->oneway = cJSON_GetUnionOnewayValue(cJSON_GetObjectItemCaseSensitive(j, "oneway"));
@@ -33104,6 +33398,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3310433398 if (NULL != x->list) {
3310533399 cJSON_AddItemToObject(j, "list", cJSON_CreateUnionList(x->list));
3310633400 }
33401+ if (NULL != x->local_date) {
33402+ cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateUnionLocalDate(x->local_date));
33403+ }
3310733404 if (NULL != x->locale) {
3310833405 cJSON_AddItemToObject(j, "Locale", cJSON_CreateUnionLocale(x->locale));
3310933406 }
@@ -33206,6 +33503,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) {
3320633503 if (NULL != x->of) {
3320733504 cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of));
3320833505 }
33506+ if (NULL != x->offset_date_time) {
33507+ cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateUnionOffsetDateTime(x->offset_date_time));
33508+ }
33509+ if (NULL != x->offset_time) {
33510+ cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateUnionOffsetTime(x->offset_time));
33511+ }
3320933512 if (NULL != x->oneway) {
3321033513 cJSON_AddItemToObject(j, "oneway", cJSON_CreateUnionOneway(x->oneway));
3321133514 }
@@ -34122,6 +34425,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3412234425 if (NULL != x->list) {
3412334426 cJSON_DeleteUnionList(x->list);
3412434427 }
34428+ if (NULL != x->local_date) {
34429+ cJSON_DeleteUnionLocalDate(x->local_date);
34430+ }
3412534431 if (NULL != x->locale) {
3412634432 cJSON_DeleteUnionLocale(x->locale);
3412734433 }
@@ -34224,6 +34530,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) {
3422434530 if (NULL != x->of) {
3422534531 cJSON_DeleteUnionOf(x->of);
3422634532 }
34533+ if (NULL != x->offset_date_time) {
34534+ cJSON_DeleteUnionOffsetDateTime(x->offset_date_time);
34535+ }
34536+ if (NULL != x->offset_time) {
34537+ cJSON_DeleteUnionOffsetTime(x->offset_time);
34538+ }
3422734539 if (NULL != x->oneway) {
3422834540 cJSON_DeleteUnionOneway(x->oneway);
3422934541 }
Mschema-cjsondefault / TopLevel.h+75 −0
@@ -1401,6 +1401,17 @@ struct UnionList {
14011401 } value;
14021402 };
14031403
1404+struct LocalDate {
1405+};
1406+
1407+struct UnionLocalDate {
1408+ int type;
1409+ union {
1410+ double number;
1411+ struct LocalDate * local_date;
1412+ } value;
1413+};
1414+
14041415 struct Locale {
14051416 };
14061417
@@ -1654,6 +1665,28 @@ struct UnionOf {
16541665 } value;
16551666 };
16561667
1668+struct OffsetDateTime {
1669+};
1670+
1671+struct UnionOffsetDateTime {
1672+ int type;
1673+ union {
1674+ double number;
1675+ struct OffsetDateTime * offset_date_time;
1676+ } value;
1677+};
1678+
1679+struct OffsetTime {
1680+};
1681+
1682+struct UnionOffsetTime {
1683+ int type;
1684+ union {
1685+ double number;
1686+ struct OffsetTime * offset_time;
1687+ } value;
1688+};
1689+
16571690 struct Oneway {
16581691 };
16591692
@@ -3878,6 +3911,7 @@ struct TopLevel {
38783911 struct UnionLeft * left;
38793912 struct UnionLet * let;
38803913 struct UnionList * list;
3914+ struct UnionLocalDate * local_date;
38813915 struct UnionLocale * locale;
38823916 struct UnionLock * lock;
38833917 struct UnionLong * top_level_long;
@@ -3912,6 +3946,8 @@ struct TopLevel {
39123946 struct UnionObject * object;
39133947 struct UnionObjectMapper * object_mapper;
39143948 struct UnionOf * of;
3949+ struct UnionOffsetDateTime * offset_date_time;
3950+ struct UnionOffsetTime * offset_time;
39153951 struct UnionOneway * oneway;
39163952 struct UnionOpen * open;
39173953 struct UnionOperator * top_level_operator;
@@ -4897,6 +4933,13 @@ void cJSON_DeleteUnionList(struct UnionList * x);
48974933 struct UnionList * cJSON_ParseUnionList(const char * s);
48984934 char * cJSON_PrintUnionList(const struct UnionList * x);
48994935
4936+#define cJSON_IsUnionLocalDate(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
4937+struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j);
4938+cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x);
4939+void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x);
4940+struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s);
4941+char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x);
4942+
49004943 #define cJSON_IsUnionLocale(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
49014944 struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j);
49024945 cJSON * cJSON_CreateUnionLocale(const struct UnionLocale * x);
@@ -5058,6 +5101,20 @@ void cJSON_DeleteUnionOf(struct UnionOf * x);
50585101 struct UnionOf * cJSON_ParseUnionOf(const char * s);
50595102 char * cJSON_PrintUnionOf(const struct UnionOf * x);
50605103
5104+#define cJSON_IsUnionOffsetDateTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5105+struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j);
5106+cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5107+void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x);
5108+struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s);
5109+char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x);
5110+
5111+#define cJSON_IsUnionOffsetTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
5112+struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j);
5113+cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x);
5114+void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x);
5115+struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s);
5116+char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x);
5117+
50615118 #define cJSON_IsUnionOneway(j) (cJSON_IsNumber(j) || cJSON_IsObject(j))
50625119 struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j);
50635120 cJSON * cJSON_CreateUnionOneway(const struct UnionOneway * x);
@@ -7098,6 +7155,12 @@ cJSON * cJSON_CreateList(const struct List * x);
70987155 char * cJSON_PrintList(const struct List * x);
70997156 void cJSON_DeleteList(struct List * x);
71007157
7158+struct LocalDate * cJSON_ParseLocalDate(const char * s);
7159+struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j);
7160+cJSON * cJSON_CreateLocalDate(const struct LocalDate * x);
7161+char * cJSON_PrintLocalDate(const struct LocalDate * x);
7162+void cJSON_DeleteLocalDate(struct LocalDate * x);
7163+
71017164 struct Locale * cJSON_ParseLocale(const char * s);
71027165 struct Locale * cJSON_GetLocaleValue(const cJSON * j);
71037166 cJSON * cJSON_CreateLocale(const struct Locale * x);
@@ -7236,6 +7299,18 @@ cJSON * cJSON_CreateOf(const struct Of * x);
72367299 char * cJSON_PrintOf(const struct Of * x);
72377300 void cJSON_DeleteOf(struct Of * x);
72387301
7302+struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s);
7303+struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j);
7304+cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x);
7305+char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x);
7306+void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x);
7307+
7308+struct OffsetTime * cJSON_ParseOffsetTime(const char * s);
7309+struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j);
7310+cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x);
7311+char * cJSON_PrintOffsetTime(const struct OffsetTime * x);
7312+void cJSON_DeleteOffsetTime(struct OffsetTime * x);
7313+
72397314 struct Oneway * cJSON_ParseOneway(const char * s);
72407315 struct Oneway * cJSON_GetOnewayValue(const cJSON * j);
72417316 cJSON * cJSON_CreateOneway(const struct Oneway * x);
Mschema-cplusplusdefault / quicktype.hpp+180 −0
@@ -1565,6 +1565,18 @@ namespace quicktype {
15651565
15661566 using UnionList = std::variant<List, double>;
15671567
1568+ class LocalDate {
1569+ public:
1570+ LocalDate() = default;
1571+ virtual ~LocalDate() = default;
1572+
1573+ private:
1574+
1575+ public:
1576+ };
1577+
1578+ using UnionLocalDate = std::variant<LocalDate, double>;
1579+
15681580 class Locale {
15691581 public:
15701582 Locale() = default;
@@ -1841,6 +1853,30 @@ namespace quicktype {
18411853
18421854 using UnionOf = std::variant<Of, double>;
18431855
1856+ class OffsetDateTime {
1857+ public:
1858+ OffsetDateTime() = default;
1859+ virtual ~OffsetDateTime() = default;
1860+
1861+ private:
1862+
1863+ public:
1864+ };
1865+
1866+ using UnionOffsetDateTime = std::variant<OffsetDateTime, double>;
1867+
1868+ class OffsetTime {
1869+ public:
1870+ OffsetTime() = default;
1871+ virtual ~OffsetTime() = default;
1872+
1873+ private:
1874+
1875+ public:
1876+ };
1877+
1878+ using UnionOffsetTime = std::variant<OffsetTime, double>;
1879+
18441880 class Oneway {
18451881 public:
18461882 Oneway() = default;
@@ -4256,6 +4292,7 @@ namespace quicktype {
42564292 std::optional<UnionLeft> left;
42574293 std::optional<UnionLet> let;
42584294 std::optional<UnionList> list;
4295+ std::optional<UnionLocalDate> local_date;
42594296 std::optional<UnionLocale> locale;
42604297 std::optional<UnionLock> lock;
42614298 std::optional<UnionLong> top_level_long;
@@ -4290,6 +4327,8 @@ namespace quicktype {
42904327 std::optional<UnionObject> object;
42914328 std::optional<UnionObjectMapper> object_mapper;
42924329 std::optional<UnionOf> of;
4330+ std::optional<UnionOffsetDateTime> offset_date_time;
4331+ std::optional<UnionOffsetTime> offset_time;
42934332 std::optional<UnionOneway> oneway;
42944333 std::optional<UnionOpen> open;
42954334 std::optional<UnionOperator> top_level_operator;
@@ -5122,6 +5161,10 @@ namespace quicktype {
51225161 std::optional<UnionList> & get_mutable_list() { return list; }
51235162 void set_list(const std::optional<UnionList> & value) { this->list = value; }
51245163
5164+ const std::optional<UnionLocalDate> & get_local_date() const { return local_date; }
5165+ std::optional<UnionLocalDate> & get_mutable_local_date() { return local_date; }
5166+ void set_local_date(const std::optional<UnionLocalDate> & value) { this->local_date = value; }
5167+
51255168 const std::optional<UnionLocale> & get_locale() const { return locale; }
51265169 std::optional<UnionLocale> & get_mutable_locale() { return locale; }
51275170 void set_locale(const std::optional<UnionLocale> & value) { this->locale = value; }
@@ -5258,6 +5301,14 @@ namespace quicktype {
52585301 std::optional<UnionOf> & get_mutable_of() { return of; }
52595302 void set_of(const std::optional<UnionOf> & value) { this->of = value; }
52605303
5304+ const std::optional<UnionOffsetDateTime> & get_offset_date_time() const { return offset_date_time; }
5305+ std::optional<UnionOffsetDateTime> & get_mutable_offset_date_time() { return offset_date_time; }
5306+ void set_offset_date_time(const std::optional<UnionOffsetDateTime> & value) { this->offset_date_time = value; }
5307+
5308+ const std::optional<UnionOffsetTime> & get_offset_time() const { return offset_time; }
5309+ std::optional<UnionOffsetTime> & get_mutable_offset_time() { return offset_time; }
5310+ void set_offset_time(const std::optional<UnionOffsetTime> & value) { this->offset_time = value; }
5311+
52615312 const std::optional<UnionOneway> & get_oneway() const { return oneway; }
52625313 std::optional<UnionOneway> & get_mutable_oneway() { return oneway; }
52635314 void set_oneway(const std::optional<UnionOneway> & value) { this->oneway = value; }
@@ -6118,6 +6169,9 @@ void to_json(json & j, const Let & x);
61186169 void from_json(const json & j, List & x);
61196170 void to_json(json & j, const List & x);
61206171
6172+void from_json(const json & j, LocalDate & x);
6173+void to_json(json & j, const LocalDate & x);
6174+
61216175 void from_json(const json & j, Locale & x);
61226176 void to_json(json & j, const Locale & x);
61236177
@@ -6187,6 +6241,12 @@ void to_json(json & j, const ObjectMapper & x);
61876241 void from_json(const json & j, Of & x);
61886242 void to_json(json & j, const Of & x);
61896243
6244+void from_json(const json & j, OffsetDateTime & x);
6245+void to_json(json & j, const OffsetDateTime & x);
6246+
6247+void from_json(const json & j, OffsetTime & x);
6248+void to_json(json & j, const OffsetTime & x);
6249+
61906250 void from_json(const json & j, Oneway & x);
61916251 void to_json(json & j, const Oneway & x);
61926252
@@ -7487,6 +7547,12 @@ struct adl_serializer<std::variant<quicktype::List, double>> {
74877547 static void to_json(json & j, const std::variant<quicktype::List, double> & x);
74887548 };
74897549
7550+template <>
7551+struct adl_serializer<std::variant<quicktype::LocalDate, double>> {
7552+ static void from_json(const json & j, std::variant<quicktype::LocalDate, double> & x);
7553+ static void to_json(json & j, const std::variant<quicktype::LocalDate, double> & x);
7554+};
7555+
74907556 template <>
74917557 struct adl_serializer<std::variant<quicktype::Locale, double>> {
74927558 static void from_json(const json & j, std::variant<quicktype::Locale, double> & x);
@@ -7625,6 +7691,18 @@ struct adl_serializer<std::variant<quicktype::Of, double>> {
76257691 static void to_json(json & j, const std::variant<quicktype::Of, double> & x);
76267692 };
76277693
7694+template <>
7695+struct adl_serializer<std::variant<quicktype::OffsetDateTime, double>> {
7696+ static void from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x);
7697+ static void to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x);
7698+};
7699+
7700+template <>
7701+struct adl_serializer<std::variant<quicktype::OffsetTime, double>> {
7702+ static void from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x);
7703+ static void to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x);
7704+};
7705+
76287706 template <>
76297707 struct adl_serializer<std::variant<quicktype::Oneway, double>> {
76307708 static void from_json(const json & j, std::variant<quicktype::Oneway, double> & x);
@@ -10095,6 +10173,17 @@ namespace quicktype {
1009510173 (void)x;
1009610174 }
1009710175
10176+ inline void from_json(const json & j, LocalDate& x) {
10177+ if (!j.is_object()) throw std::runtime_error("Expected object");
10178+ (void)j;
10179+ (void)x;
10180+ }
10181+
10182+ inline void to_json(json & j, const LocalDate & x) {
10183+ j = json::object();
10184+ (void)x;
10185+ }
10186+
1009810187 inline void from_json(const json & j, Locale& x) {
1009910188 if (!j.is_object()) throw std::runtime_error("Expected object");
1010010189 (void)j;
@@ -10348,6 +10437,28 @@ namespace quicktype {
1034810437 (void)x;
1034910438 }
1035010439
10440+ inline void from_json(const json & j, OffsetDateTime& x) {
10441+ if (!j.is_object()) throw std::runtime_error("Expected object");
10442+ (void)j;
10443+ (void)x;
10444+ }
10445+
10446+ inline void to_json(json & j, const OffsetDateTime & x) {
10447+ j = json::object();
10448+ (void)x;
10449+ }
10450+
10451+ inline void from_json(const json & j, OffsetTime& x) {
10452+ if (!j.is_object()) throw std::runtime_error("Expected object");
10453+ (void)j;
10454+ (void)x;
10455+ }
10456+
10457+ inline void to_json(json & j, const OffsetTime & x) {
10458+ j = json::object();
10459+ (void)x;
10460+ }
10461+
1035110462 inline void from_json(const json & j, Oneway& x) {
1035210463 if (!j.is_object()) throw std::runtime_error("Expected object");
1035310464 (void)j;
@@ -12750,6 +12861,8 @@ namespace quicktype {
1275012861 x.set_let(get_stack_optional<std::variant<Let, double>>(j, "let"));
1275112862 if (j.find("list") != j.end() && j.at("list").is_null()) throw std::runtime_error("Unexpected null");
1275212863 x.set_list(get_stack_optional<std::variant<List, double>>(j, "list"));
12864+ if (j.find("LocalDate") != j.end() && j.at("LocalDate").is_null()) throw std::runtime_error("Unexpected null");
12865+ x.set_local_date(get_stack_optional<std::variant<LocalDate, double>>(j, "LocalDate"));
1275312866 if (j.find("Locale") != j.end() && j.at("Locale").is_null()) throw std::runtime_error("Unexpected null");
1275412867 x.set_locale(get_stack_optional<std::variant<Locale, double>>(j, "Locale"));
1275512868 if (j.find("lock") != j.end() && j.at("lock").is_null()) throw std::runtime_error("Unexpected null");
@@ -12818,6 +12931,10 @@ namespace quicktype {
1281812931 x.set_object_mapper(get_stack_optional<std::variant<ObjectMapper, double>>(j, "ObjectMapper"));
1281912932 if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null");
1282012933 x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of"));
12934+ if (j.find("OffsetDateTime") != j.end() && j.at("OffsetDateTime").is_null()) throw std::runtime_error("Unexpected null");
12935+ x.set_offset_date_time(get_stack_optional<std::variant<OffsetDateTime, double>>(j, "OffsetDateTime"));
12936+ if (j.find("OffsetTime") != j.end() && j.at("OffsetTime").is_null()) throw std::runtime_error("Unexpected null");
12937+ x.set_offset_time(get_stack_optional<std::variant<OffsetTime, double>>(j, "OffsetTime"));
1282112938 if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null");
1282212939 x.set_oneway(get_stack_optional<std::variant<Oneway, double>>(j, "oneway"));
1282312940 if (j.find("open") != j.end() && j.at("open").is_null()) throw std::runtime_error("Unexpected null");
@@ -13243,6 +13360,7 @@ namespace quicktype {
1324313360 j["left"] = x.get_left();
1324413361 j["let"] = x.get_let();
1324513362 j["list"] = x.get_list();
13363+ j["LocalDate"] = x.get_local_date();
1324613364 j["Locale"] = x.get_locale();
1324713365 j["lock"] = x.get_lock();
1324813366 j["long"] = x.get_top_level_long();
@@ -13277,6 +13395,8 @@ namespace quicktype {
1327713395 j["object"] = x.get_object();
1327813396 j["ObjectMapper"] = x.get_object_mapper();
1327913397 j["of"] = x.get_of();
13398+ j["OffsetDateTime"] = x.get_offset_date_time();
13399+ j["OffsetTime"] = x.get_offset_time();
1328013400 j["oneway"] = x.get_oneway();
1328113401 j["open"] = x.get_open();
1328213402 j["operator"] = x.get_top_level_operator();
@@ -15862,6 +15982,26 @@ namespace nlohmann {
1586215982 }
1586315983 }
1586415984
15985+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::from_json(const json & j, std::variant<quicktype::LocalDate, double> & x) {
15986+ if (j.is_number())
15987+ x = j.get<double>();
15988+ else if (j.is_object())
15989+ x = j.get<quicktype::LocalDate>();
15990+ else throw std::runtime_error("Could not deserialise!");
15991+ }
15992+
15993+ inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::to_json(json & j, const std::variant<quicktype::LocalDate, double> & x) {
15994+ switch (x.index()) {
15995+ case 0:
15996+ j = std::get<quicktype::LocalDate>(x);
15997+ break;
15998+ case 1:
15999+ j = std::get<double>(x);
16000+ break;
16001+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16002+ }
16003+ }
16004+
1586516005 inline void adl_serializer<std::variant<quicktype::Locale, double>>::from_json(const json & j, std::variant<quicktype::Locale, double> & x) {
1586616006 if (j.is_number())
1586716007 x = j.get<double>();
@@ -16322,6 +16462,46 @@ namespace nlohmann {
1632216462 }
1632316463 }
1632416464
16465+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x) {
16466+ if (j.is_number())
16467+ x = j.get<double>();
16468+ else if (j.is_object())
16469+ x = j.get<quicktype::OffsetDateTime>();
16470+ else throw std::runtime_error("Could not deserialise!");
16471+ }
16472+
16473+ inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x) {
16474+ switch (x.index()) {
16475+ case 0:
16476+ j = std::get<quicktype::OffsetDateTime>(x);
16477+ break;
16478+ case 1:
16479+ j = std::get<double>(x);
16480+ break;
16481+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16482+ }
16483+ }
16484+
16485+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x) {
16486+ if (j.is_number())
16487+ x = j.get<double>();
16488+ else if (j.is_object())
16489+ x = j.get<quicktype::OffsetTime>();
16490+ else throw std::runtime_error("Could not deserialise!");
16491+ }
16492+
16493+ inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x) {
16494+ switch (x.index()) {
16495+ case 0:
16496+ j = std::get<quicktype::OffsetTime>(x);
16497+ break;
16498+ case 1:
16499+ j = std::get<double>(x);
16500+ break;
16501+ default: throw std::runtime_error("Input JSON does not conform to schema!");
16502+ }
16503+ }
16504+
1632516505 inline void adl_serializer<std::variant<quicktype::Oneway, double>>::from_json(const json & j, std::variant<quicktype::Oneway, double> & x) {
1632616506 if (j.is_number())
1632716507 x = j.get<double>();
Mschema-crystaldefault / TopLevel.cr+30 −0
@@ -416,6 +416,9 @@ class TopLevel
416416
417417 property list : UnionList?
418418
419+ @[JSON::Field(key: "LocalDate")]
420+ property local_date : UnionLocalDate?
421+
419422 @[JSON::Field(key: "Locale")]
420423 property locale : UnionLocale?
421424
@@ -499,6 +502,12 @@ class TopLevel
499502 @[JSON::Field(key: "of")]
500503 property top_level_of : UnionOf?
501504
505+ @[JSON::Field(key: "OffsetDateTime")]
506+ property offset_date_time : UnionOffsetDateTime?
507+
508+ @[JSON::Field(key: "OffsetTime")]
509+ property offset_time : UnionOffsetTime?
510+
502511 property oneway : UnionOneway?
503512
504513 property open : UnionOpen?
@@ -1572,6 +1581,11 @@ class List
15721581
15731582 end
15741583
1584+class LocalDate
1585+ include JSON::Serializable
1586+
1587+end
1588+
15751589 class Locale
15761590 include JSON::Serializable
15771591
@@ -1717,6 +1731,16 @@ class ObjectMapper
17171731
17181732 end
17191733
1734+class OffsetDateTime
1735+ include JSON::Serializable
1736+
1737+end
1738+
1739+class OffsetTime
1740+ include JSON::Serializable
1741+
1742+end
1743+
17201744 class Oneway
17211745 include JSON::Serializable
17221746
@@ -2761,6 +2785,8 @@ alias UnionLet = Float64 | Let
27612785
27622786 alias UnionList = Float64 | List
27632787
2788+alias UnionLocalDate = Float64 | LocalDate
2789+
27642790 alias UnionLocale = Float64 | Locale
27652791
27662792 alias UnionLock = Float64 | Lock
@@ -2819,6 +2845,10 @@ alias UnionObject = Float64 | ObjectClass
28192845
28202846 alias UnionObjectMapper = Float64 | ObjectMapper
28212847
2848+alias UnionOffsetDateTime = Float64 | OffsetDateTime
2849+
2850+alias UnionOffsetTime = Float64 | OffsetTime
2851+
28222852 alias UnionOneway = Float64 | Oneway
28232853
28242854 alias UnionOpen = Float64 | Open
Mschema-csharp-recordsdefault / QuickType.cs+165 −0
@@ -556,6 +556,9 @@ namespace QuickType
556556 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
557557 public UnionList? List { get; set; }
558558
559+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
560+ public UnionLocalDate? LocalDate { get; set; }
561+
559562 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
560563 public UnionLocale? Locale { get; set; }
561564
@@ -658,6 +661,12 @@ namespace QuickType
658661 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
659662 public UnionOf? Of { get; set; }
660663
664+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
665+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
666+
667+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
668+ public UnionOffsetTime? OffsetTime { get; set; }
669+
661670 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
662671 public UnionOneway? Oneway { get; set; }
663672
@@ -1697,6 +1706,10 @@ namespace QuickType
16971706 {
16981707 }
16991708
1709+ public partial record LocalDate
1710+ {
1711+ }
1712+
17001713 public partial record Locale
17011714 {
17021715 }
@@ -1825,6 +1838,14 @@ namespace QuickType
18251838 {
18261839 }
18271840
1841+ public partial record OffsetDateTime
1842+ {
1843+ }
1844+
1845+ public partial record OffsetTime
1846+ {
1847+ }
1848+
18281849 public partial record Oneway
18291850 {
18301851 }
@@ -3865,6 +3886,15 @@ namespace QuickType
38653886 public static implicit operator UnionList(List List) => new UnionList { List = List };
38663887 }
38673888
3889+ public partial struct UnionLocalDate
3890+ {
3891+ public double? Double;
3892+ public LocalDate? LocalDate;
3893+
3894+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
3895+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
3896+ }
3897+
38683898 public partial struct UnionLocale
38693899 {
38703900 public double? Double;
@@ -4153,6 +4183,24 @@ namespace QuickType
41534183 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
41544184 }
41554185
4186+ public partial struct UnionOffsetDateTime
4187+ {
4188+ public double? Double;
4189+ public OffsetDateTime? OffsetDateTime;
4190+
4191+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4192+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4193+ }
4194+
4195+ public partial struct UnionOffsetTime
4196+ {
4197+ public double? Double;
4198+ public OffsetTime? OffsetTime;
4199+
4200+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4201+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4202+ }
4203+
41564204 public partial struct UnionOneway
41574205 {
41584206 public double? Double;
@@ -5394,6 +5442,7 @@ namespace QuickType
53945442 UnionJsonParserConverter.Singleton,
53955443 UnionJsonReaderConverter.Singleton,
53965444 UnionJsonTokenTypeConverter.Singleton,
5445+ UnionLocalDateConverter.Singleton,
53975446 UnionLocaleConverter.Singleton,
53985447 UnionMapEntryConverter.Singleton,
53995448 UnionNoConverter.Singleton,
@@ -5403,6 +5452,8 @@ namespace QuickType
54035452 UnionNullConverter.Singleton,
54045453 UnionNoneConverter.Singleton,
54055454 UnionObjectMapperConverter.Singleton,
5455+ UnionOffsetDateTimeConverter.Singleton,
5456+ UnionOffsetTimeConverter.Singleton,
54065457 UnionProtocolConverter.Singleton,
54075458 UnionRegExpConverter.Singleton,
54085459 UnionSelConverter.Singleton,
@@ -7026,6 +7077,44 @@ namespace QuickType
70267077 public static readonly UnionJsonTokenTypeConverter Singleton = new UnionJsonTokenTypeConverter();
70277078 }
70287079
7080+ internal class UnionLocalDateConverter : JsonConverter
7081+ {
7082+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7083+
7084+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7085+ {
7086+ switch (reader.TokenType)
7087+ {
7088+ case JsonToken.Integer:
7089+ case JsonToken.Float:
7090+ var doubleValue = serializer.Deserialize<double>(reader);
7091+ return new UnionLocalDate { Double = doubleValue };
7092+ case JsonToken.StartObject:
7093+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7094+ return new UnionLocalDate { LocalDate = objectValue };
7095+ }
7096+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7097+ }
7098+
7099+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7100+ {
7101+ var value = (UnionLocalDate)untypedValue;
7102+ if (value.Double != null)
7103+ {
7104+ serializer.Serialize(writer, value.Double.Value);
7105+ return;
7106+ }
7107+ if (value.LocalDate != null)
7108+ {
7109+ serializer.Serialize(writer, value.LocalDate);
7110+ return;
7111+ }
7112+ throw new Exception("Cannot marshal type UnionLocalDate");
7113+ }
7114+
7115+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7116+ }
7117+
70297118 internal class UnionLocaleConverter : JsonConverter
70307119 {
70317120 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7368,6 +7457,82 @@ namespace QuickType
73687457 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
73697458 }
73707459
7460+ internal class UnionOffsetDateTimeConverter : JsonConverter
7461+ {
7462+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
7463+
7464+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7465+ {
7466+ switch (reader.TokenType)
7467+ {
7468+ case JsonToken.Integer:
7469+ case JsonToken.Float:
7470+ var doubleValue = serializer.Deserialize<double>(reader);
7471+ return new UnionOffsetDateTime { Double = doubleValue };
7472+ case JsonToken.StartObject:
7473+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
7474+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7475+ }
7476+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
7477+ }
7478+
7479+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7480+ {
7481+ var value = (UnionOffsetDateTime)untypedValue;
7482+ if (value.Double != null)
7483+ {
7484+ serializer.Serialize(writer, value.Double.Value);
7485+ return;
7486+ }
7487+ if (value.OffsetDateTime != null)
7488+ {
7489+ serializer.Serialize(writer, value.OffsetDateTime);
7490+ return;
7491+ }
7492+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
7493+ }
7494+
7495+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7496+ }
7497+
7498+ internal class UnionOffsetTimeConverter : JsonConverter
7499+ {
7500+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
7501+
7502+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7503+ {
7504+ switch (reader.TokenType)
7505+ {
7506+ case JsonToken.Integer:
7507+ case JsonToken.Float:
7508+ var doubleValue = serializer.Deserialize<double>(reader);
7509+ return new UnionOffsetTime { Double = doubleValue };
7510+ case JsonToken.StartObject:
7511+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
7512+ return new UnionOffsetTime { OffsetTime = objectValue };
7513+ }
7514+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
7515+ }
7516+
7517+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7518+ {
7519+ var value = (UnionOffsetTime)untypedValue;
7520+ if (value.Double != null)
7521+ {
7522+ serializer.Serialize(writer, value.Double.Value);
7523+ return;
7524+ }
7525+ if (value.OffsetTime != null)
7526+ {
7527+ serializer.Serialize(writer, value.OffsetTime);
7528+ return;
7529+ }
7530+ throw new Exception("Cannot marshal type UnionOffsetTime");
7531+ }
7532+
7533+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7534+ }
7535+
73717536 internal class UnionProtocolConverter : JsonConverter
73727537 {
73737538 public override bool CanConvert(Type t) => t == typeof(UnionProtocol) || t == typeof(UnionProtocol?);
Mschema-csharp-SystemTextJsondefault / QuickType.cs+162 −0
@@ -730,6 +730,10 @@ namespace QuickType
730730 [JsonPropertyName("list")]
731731 public UnionList? List { get; set; }
732732
733+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
734+ [JsonPropertyName("LocalDate")]
735+ public UnionLocalDate? LocalDate { get; set; }
736+
733737 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
734738 [JsonPropertyName("Locale")]
735739 public UnionLocale? Locale { get; set; }
@@ -866,6 +870,14 @@ namespace QuickType
866870 [JsonPropertyName("of")]
867871 public UnionOf? Of { get; set; }
868872
873+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
874+ [JsonPropertyName("OffsetDateTime")]
875+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
876+
877+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
878+ [JsonPropertyName("OffsetTime")]
879+ public UnionOffsetTime? OffsetTime { get; set; }
880+
869881 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
870882 [JsonPropertyName("oneway")]
871883 public UnionOneway? Oneway { get; set; }
@@ -2035,6 +2047,10 @@ namespace QuickType
20352047 {
20362048 }
20372049
2050+ public partial class LocalDate
2051+ {
2052+ }
2053+
20382054 public partial class Locale
20392055 {
20402056 }
@@ -2163,6 +2179,14 @@ namespace QuickType
21632179 {
21642180 }
21652181
2182+ public partial class OffsetDateTime
2183+ {
2184+ }
2185+
2186+ public partial class OffsetTime
2187+ {
2188+ }
2189+
21662190 public partial class Oneway
21672191 {
21682192 }
@@ -4213,6 +4237,15 @@ namespace QuickType
42134237 public static implicit operator UnionList(List List) => new UnionList { List = List };
42144238 }
42154239
4240+ public partial struct UnionLocalDate
4241+ {
4242+ public double? Double;
4243+ public LocalDate? LocalDate;
4244+
4245+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
4246+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
4247+ }
4248+
42164249 public partial struct UnionLocale
42174250 {
42184251 public double? Double;
@@ -4501,6 +4534,24 @@ namespace QuickType
45014534 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
45024535 }
45034536
4537+ public partial struct UnionOffsetDateTime
4538+ {
4539+ public double? Double;
4540+ public OffsetDateTime? OffsetDateTime;
4541+
4542+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4543+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4544+ }
4545+
4546+ public partial struct UnionOffsetTime
4547+ {
4548+ public double? Double;
4549+ public OffsetTime? OffsetTime;
4550+
4551+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4552+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4553+ }
4554+
45044555 public partial struct UnionOneway
45054556 {
45064557 public double? Double;
@@ -5722,6 +5773,7 @@ namespace QuickType
57225773 UnionJsonParserConverter.Singleton,
57235774 UnionJsonReaderConverter.Singleton,
57245775 UnionJsonTokenTypeConverter.Singleton,
5776+ UnionLocalDateConverter.Singleton,
57255777 UnionLocaleConverter.Singleton,
57265778 UnionMapEntryConverter.Singleton,
57275779 UnionNoConverter.Singleton,
@@ -5731,6 +5783,8 @@ namespace QuickType
57315783 UnionNullConverter.Singleton,
57325784 UnionNoneConverter.Singleton,
57335785 UnionObjectMapperConverter.Singleton,
5786+ UnionOffsetDateTimeConverter.Singleton,
5787+ UnionOffsetTimeConverter.Singleton,
57345788 UnionProtocolConverter.Singleton,
57355789 UnionRegExpConverter.Singleton,
57365790 UnionSelConverter.Singleton,
@@ -7286,6 +7340,42 @@ namespace QuickType
72867340 public static readonly UnionJsonTokenTypeConverter Singleton = new UnionJsonTokenTypeConverter();
72877341 }
72887342
7343+ internal class UnionLocalDateConverter : JsonConverter<UnionLocalDate>
7344+ {
7345+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate);
7346+
7347+ public override UnionLocalDate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7348+ {
7349+ switch (reader.TokenType)
7350+ {
7351+ case JsonTokenType.Number:
7352+ var doubleValue1 = reader.GetDouble();
7353+ return new UnionLocalDate { Double = doubleValue1 };
7354+ case JsonTokenType.StartObject:
7355+ var objectValue = JsonSerializer.Deserialize<LocalDate>(ref reader, options);
7356+ return new UnionLocalDate { LocalDate = objectValue };
7357+ }
7358+ throw new JsonException("Cannot unmarshal type UnionLocalDate");
7359+ }
7360+
7361+ public override void Write(Utf8JsonWriter writer, UnionLocalDate value, JsonSerializerOptions options)
7362+ {
7363+ if (value.Double != null)
7364+ {
7365+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7366+ return;
7367+ }
7368+ if (value.LocalDate != null)
7369+ {
7370+ JsonSerializer.Serialize(writer, value.LocalDate, options);
7371+ return;
7372+ }
7373+ throw new NotSupportedException("Cannot marshal type UnionLocalDate");
7374+ }
7375+
7376+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7377+ }
7378+
72897379 internal class UnionLocaleConverter : JsonConverter<UnionLocale>
72907380 {
72917381 public override bool CanConvert(Type t) => t == typeof(UnionLocale);
@@ -7610,6 +7700,78 @@ namespace QuickType
76107700 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
76117701 }
76127702
7703+ internal class UnionOffsetDateTimeConverter : JsonConverter<UnionOffsetDateTime>
7704+ {
7705+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime);
7706+
7707+ public override UnionOffsetDateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7708+ {
7709+ switch (reader.TokenType)
7710+ {
7711+ case JsonTokenType.Number:
7712+ var doubleValue1 = reader.GetDouble();
7713+ return new UnionOffsetDateTime { Double = doubleValue1 };
7714+ case JsonTokenType.StartObject:
7715+ var objectValue = JsonSerializer.Deserialize<OffsetDateTime>(ref reader, options);
7716+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7717+ }
7718+ throw new JsonException("Cannot unmarshal type UnionOffsetDateTime");
7719+ }
7720+
7721+ public override void Write(Utf8JsonWriter writer, UnionOffsetDateTime value, JsonSerializerOptions options)
7722+ {
7723+ if (value.Double != null)
7724+ {
7725+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7726+ return;
7727+ }
7728+ if (value.OffsetDateTime != null)
7729+ {
7730+ JsonSerializer.Serialize(writer, value.OffsetDateTime, options);
7731+ return;
7732+ }
7733+ throw new NotSupportedException("Cannot marshal type UnionOffsetDateTime");
7734+ }
7735+
7736+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7737+ }
7738+
7739+ internal class UnionOffsetTimeConverter : JsonConverter<UnionOffsetTime>
7740+ {
7741+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime);
7742+
7743+ public override UnionOffsetTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7744+ {
7745+ switch (reader.TokenType)
7746+ {
7747+ case JsonTokenType.Number:
7748+ var doubleValue1 = reader.GetDouble();
7749+ return new UnionOffsetTime { Double = doubleValue1 };
7750+ case JsonTokenType.StartObject:
7751+ var objectValue = JsonSerializer.Deserialize<OffsetTime>(ref reader, options);
7752+ return new UnionOffsetTime { OffsetTime = objectValue };
7753+ }
7754+ throw new JsonException("Cannot unmarshal type UnionOffsetTime");
7755+ }
7756+
7757+ public override void Write(Utf8JsonWriter writer, UnionOffsetTime value, JsonSerializerOptions options)
7758+ {
7759+ if (value.Double != null)
7760+ {
7761+ JsonSerializer.Serialize(writer, value.Double.Value, options);
7762+ return;
7763+ }
7764+ if (value.OffsetTime != null)
7765+ {
7766+ JsonSerializer.Serialize(writer, value.OffsetTime, options);
7767+ return;
7768+ }
7769+ throw new NotSupportedException("Cannot marshal type UnionOffsetTime");
7770+ }
7771+
7772+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7773+ }
7774+
76137775 internal class UnionProtocolConverter : JsonConverter<UnionProtocol>
76147776 {
76157777 public override bool CanConvert(Type t) => t == typeof(UnionProtocol);
Mschema-csharpdefault / QuickType.cs+165 −0
@@ -556,6 +556,9 @@ namespace QuickType
556556 [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
557557 public UnionList? List { get; set; }
558558
559+ [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
560+ public UnionLocalDate? LocalDate { get; set; }
561+
559562 [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
560563 public UnionLocale? Locale { get; set; }
561564
@@ -658,6 +661,12 @@ namespace QuickType
658661 [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
659662 public UnionOf? Of { get; set; }
660663
664+ [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
665+ public UnionOffsetDateTime? OffsetDateTime { get; set; }
666+
667+ [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
668+ public UnionOffsetTime? OffsetTime { get; set; }
669+
661670 [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
662671 public UnionOneway? Oneway { get; set; }
663672
@@ -1705,6 +1714,10 @@ namespace QuickType
17051714 {
17061715 }
17071716
1717+ public partial class LocalDate
1718+ {
1719+ }
1720+
17081721 public partial class Locale
17091722 {
17101723 }
@@ -1833,6 +1846,14 @@ namespace QuickType
18331846 {
18341847 }
18351848
1849+ public partial class OffsetDateTime
1850+ {
1851+ }
1852+
1853+ public partial class OffsetTime
1854+ {
1855+ }
1856+
18361857 public partial class Oneway
18371858 {
18381859 }
@@ -3883,6 +3904,15 @@ namespace QuickType
38833904 public static implicit operator UnionList(List List) => new UnionList { List = List };
38843905 }
38853906
3907+ public partial struct UnionLocalDate
3908+ {
3909+ public double? Double;
3910+ public LocalDate? LocalDate;
3911+
3912+ public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double };
3913+ public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate };
3914+ }
3915+
38863916 public partial struct UnionLocale
38873917 {
38883918 public double? Double;
@@ -4171,6 +4201,24 @@ namespace QuickType
41714201 public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of };
41724202 }
41734203
4204+ public partial struct UnionOffsetDateTime
4205+ {
4206+ public double? Double;
4207+ public OffsetDateTime? OffsetDateTime;
4208+
4209+ public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double };
4210+ public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime };
4211+ }
4212+
4213+ public partial struct UnionOffsetTime
4214+ {
4215+ public double? Double;
4216+ public OffsetTime? OffsetTime;
4217+
4218+ public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double };
4219+ public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime };
4220+ }
4221+
41744222 public partial struct UnionOneway
41754223 {
41764224 public double? Double;
@@ -5394,6 +5442,7 @@ namespace QuickType
53945442 UnionJsonParserConverter.Singleton,
53955443 UnionJsonReaderConverter.Singleton,
53965444 UnionJsonTokenTypeConverter.Singleton,
5445+ UnionLocalDateConverter.Singleton,
53975446 UnionLocaleConverter.Singleton,
53985447 UnionMapEntryConverter.Singleton,
53995448 UnionNoConverter.Singleton,
@@ -5403,6 +5452,8 @@ namespace QuickType
54035452 UnionNullConverter.Singleton,
54045453 UnionNoneConverter.Singleton,
54055454 UnionObjectMapperConverter.Singleton,
5455+ UnionOffsetDateTimeConverter.Singleton,
5456+ UnionOffsetTimeConverter.Singleton,
54065457 UnionProtocolConverter.Singleton,
54075458 UnionRegExpConverter.Singleton,
54085459 UnionSelConverter.Singleton,
@@ -7026,6 +7077,44 @@ namespace QuickType
70267077 public static readonly UnionJsonTokenTypeConverter Singleton = new UnionJsonTokenTypeConverter();
70277078 }
70287079
7080+ internal class UnionLocalDateConverter : JsonConverter
7081+ {
7082+ public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?);
7083+
7084+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7085+ {
7086+ switch (reader.TokenType)
7087+ {
7088+ case JsonToken.Integer:
7089+ case JsonToken.Float:
7090+ var doubleValue = serializer.Deserialize<double>(reader);
7091+ return new UnionLocalDate { Double = doubleValue };
7092+ case JsonToken.StartObject:
7093+ var objectValue = serializer.Deserialize<LocalDate>(reader);
7094+ return new UnionLocalDate { LocalDate = objectValue };
7095+ }
7096+ throw new Exception("Cannot unmarshal type UnionLocalDate");
7097+ }
7098+
7099+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7100+ {
7101+ var value = (UnionLocalDate)untypedValue;
7102+ if (value.Double != null)
7103+ {
7104+ serializer.Serialize(writer, value.Double.Value);
7105+ return;
7106+ }
7107+ if (value.LocalDate != null)
7108+ {
7109+ serializer.Serialize(writer, value.LocalDate);
7110+ return;
7111+ }
7112+ throw new Exception("Cannot marshal type UnionLocalDate");
7113+ }
7114+
7115+ public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter();
7116+ }
7117+
70297118 internal class UnionLocaleConverter : JsonConverter
70307119 {
70317120 public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?);
@@ -7368,6 +7457,82 @@ namespace QuickType
73687457 public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter();
73697458 }
73707459
7460+ internal class UnionOffsetDateTimeConverter : JsonConverter
7461+ {
7462+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?);
7463+
7464+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7465+ {
7466+ switch (reader.TokenType)
7467+ {
7468+ case JsonToken.Integer:
7469+ case JsonToken.Float:
7470+ var doubleValue = serializer.Deserialize<double>(reader);
7471+ return new UnionOffsetDateTime { Double = doubleValue };
7472+ case JsonToken.StartObject:
7473+ var objectValue = serializer.Deserialize<OffsetDateTime>(reader);
7474+ return new UnionOffsetDateTime { OffsetDateTime = objectValue };
7475+ }
7476+ throw new Exception("Cannot unmarshal type UnionOffsetDateTime");
7477+ }
7478+
7479+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7480+ {
7481+ var value = (UnionOffsetDateTime)untypedValue;
7482+ if (value.Double != null)
7483+ {
7484+ serializer.Serialize(writer, value.Double.Value);
7485+ return;
7486+ }
7487+ if (value.OffsetDateTime != null)
7488+ {
7489+ serializer.Serialize(writer, value.OffsetDateTime);
7490+ return;
7491+ }
7492+ throw new Exception("Cannot marshal type UnionOffsetDateTime");
7493+ }
7494+
7495+ public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter();
7496+ }
7497+
7498+ internal class UnionOffsetTimeConverter : JsonConverter
7499+ {
7500+ public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?);
7501+
7502+ public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
7503+ {
7504+ switch (reader.TokenType)
7505+ {
7506+ case JsonToken.Integer:
7507+ case JsonToken.Float:
7508+ var doubleValue = serializer.Deserialize<double>(reader);
7509+ return new UnionOffsetTime { Double = doubleValue };
7510+ case JsonToken.StartObject:
7511+ var objectValue = serializer.Deserialize<OffsetTime>(reader);
7512+ return new UnionOffsetTime { OffsetTime = objectValue };
7513+ }
7514+ throw new Exception("Cannot unmarshal type UnionOffsetTime");
7515+ }
7516+
7517+ public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
7518+ {
7519+ var value = (UnionOffsetTime)untypedValue;
7520+ if (value.Double != null)
7521+ {
7522+ serializer.Serialize(writer, value.Double.Value);
7523+ return;
7524+ }
7525+ if (value.OffsetTime != null)
7526+ {
7527+ serializer.Serialize(writer, value.OffsetTime);
7528+ return;
7529+ }
7530+ throw new Exception("Cannot marshal type UnionOffsetTime");
7531+ }
7532+
7533+ public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter();
7534+ }
7535+
73717536 internal class UnionProtocolConverter : JsonConverter
73727537 {
73737538 public override bool CanConvert(Type t) => t == typeof(UnionProtocol) || t == typeof(UnionProtocol?);
Mschema-dartdefault / TopLevel.dart+42 −0
@@ -186,6 +186,7 @@ class TopLevel {
186186 final dynamic left;
187187 final dynamic let;
188188 final dynamic list;
189+ final dynamic localDate;
189190 final dynamic locale;
190191 final dynamic lock;
191192 final dynamic long;
@@ -220,6 +221,8 @@ class TopLevel {
220221 final dynamic object;
221222 final dynamic objectMapper;
222223 final dynamic of;
224+ final dynamic offsetDateTime;
225+ final dynamic offsetTime;
223226 final dynamic oneway;
224227 final dynamic open;
225228 final dynamic topLevelOperator;
@@ -521,6 +524,7 @@ class TopLevel {
521524 this.left,
522525 this.let,
523526 this.list,
527+ this.localDate,
524528 this.locale,
525529 this.lock,
526530 this.long,
@@ -555,6 +559,8 @@ class TopLevel {
555559 this.object,
556560 this.objectMapper,
557561 this.of,
562+ this.offsetDateTime,
563+ this.offsetTime,
558564 this.oneway,
559565 this.open,
560566 this.topLevelOperator,
@@ -857,6 +863,7 @@ class TopLevel {
857863 left: json["left"],
858864 let: json["let"],
859865 list: json["list"],
866+ localDate: json["LocalDate"],
860867 locale: json["Locale"],
861868 lock: json["lock"],
862869 long: json["long"],
@@ -891,6 +898,8 @@ class TopLevel {
891898 object: json["object"],
892899 objectMapper: json["ObjectMapper"],
893900 of: json["of"],
901+ offsetDateTime: json["OffsetDateTime"],
902+ offsetTime: json["OffsetTime"],
894903 oneway: json["oneway"],
895904 open: json["open"],
896905 topLevelOperator: json["operator"],
@@ -1193,6 +1202,7 @@ class TopLevel {
11931202 "left": left,
11941203 "let": let,
11951204 "list": list,
1205+ "LocalDate": localDate,
11961206 "Locale": locale,
11971207 "lock": lock,
11981208 "long": long,
@@ -1227,6 +1237,8 @@ class TopLevel {
12271237 "object": object,
12281238 "ObjectMapper": objectMapper,
12291239 "of": of,
1240+ "OffsetDateTime": offsetDateTime,
1241+ "OffsetTime": offsetTime,
12301242 "oneway": oneway,
12311243 "open": open,
12321244 "operator": topLevelOperator,
@@ -2732,6 +2744,16 @@ class ListClass {
27322744 };
27332745 }
27342746
2747+class LocalDate {
2748+ LocalDate();
2749+
2750+ factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate(
2751+ );
2752+
2753+ Map<String, dynamic> toJson() => {
2754+ };
2755+}
2756+
27352757 class Locale {
27362758 Locale();
27372759
@@ -3022,6 +3044,26 @@ class Of {
30223044 };
30233045 }
30243046
3047+class OffsetDateTime {
3048+ OffsetDateTime();
3049+
3050+ factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime(
3051+ );
3052+
3053+ Map<String, dynamic> toJson() => {
3054+ };
3055+}
3056+
3057+class OffsetTime {
3058+ OffsetTime();
3059+
3060+ factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime(
3061+ );
3062+
3063+ Map<String, dynamic> toJson() => {
3064+ };
3065+}
3066+
30253067 class Oneway {
30263068 Oneway();
Mschema-elixirdefault / QuickType.ex+133 −1
@@ -4790,6 +4790,35 @@ defmodule ListClass do
47904790 end
47914791 end
47924792
4793+defmodule LocalDate do
4794+ defstruct []
4795+
4796+ @type t :: %__MODULE__{
4797+ }
4798+
4799+ def from_map(m) when is_map(m) do
4800+ %LocalDate{
4801+ }
4802+ end
4803+
4804+ def from_json(json) do
4805+ json
4806+ |> Jason.decode!()
4807+ |> from_map()
4808+ end
4809+
4810+ def to_map(_struct) do
4811+ %{
4812+ }
4813+ end
4814+
4815+ def to_json(struct) do
4816+ struct
4817+ |> to_map()
4818+ |> Jason.encode!()
4819+ end
4820+end
4821+
47934822 defmodule Locale do
47944823 defstruct []
47954824
@@ -5660,6 +5689,64 @@ defmodule Of do
56605689 end
56615690 end
56625691
5692+defmodule OffsetDateTime do
5693+ defstruct []
5694+
5695+ @type t :: %__MODULE__{
5696+ }
5697+
5698+ def from_map(m) when is_map(m) do
5699+ %OffsetDateTime{
5700+ }
5701+ end
5702+
5703+ def from_json(json) do
5704+ json
5705+ |> Jason.decode!()
5706+ |> from_map()
5707+ end
5708+
5709+ def to_map(_struct) do
5710+ %{
5711+ }
5712+ end
5713+
5714+ def to_json(struct) do
5715+ struct
5716+ |> to_map()
5717+ |> Jason.encode!()
5718+ end
5719+end
5720+
5721+defmodule OffsetTime do
5722+ defstruct []
5723+
5724+ @type t :: %__MODULE__{
5725+ }
5726+
5727+ def from_map(m) when is_map(m) do
5728+ %OffsetTime{
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+
56635750 defmodule Oneway do
56645751 defstruct []
56655752
@@ -9634,7 +9721,7 @@ defmodule Yield do
96349721 end
96359722
96369723 defmodule TopLevel do
9637- 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, :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, :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, :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, :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, :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]
9724+ 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, :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, :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, :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, :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, :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]
96389725
96399726 @type t :: %__MODULE__{
96409727 empty: Empty.t() | float() | nil,
@@ -9814,6 +9901,7 @@ defmodule TopLevel do
98149901 left: Left.t() | float() | nil,
98159902 let: Let.t() | float() | nil,
98169903 list: ListClass.t() | float() | nil,
9904+ local_date: LocalDate.t() | float() | nil,
98179905 locale: Locale.t() | float() | nil,
98189906 lock: Lock.t() | float() | nil,
98199907 long: Long.t() | float() | nil,
@@ -9848,6 +9936,8 @@ defmodule TopLevel do
98489936 object: Object.t() | float() | nil,
98499937 object_mapper: ObjectMapper.t() | float() | nil,
98509938 of: Of.t() | float() | nil,
9939+ offset_date_time: OffsetDateTime.t() | float() | nil,
9940+ offset_time: OffsetTime.t() | float() | nil,
98519941 oneway: Oneway.t() | float() | nil,
98529942 open: Open.t() | float() | nil,
98539943 operator: Operator.t() | float() | nil,
@@ -12092,6 +12182,18 @@ defmodule TopLevel do
1209212182 def encode_list(value) when is_nil(value), do: value
1209312183 def encode_list(_), do: {:error, "Unexpected type when encoding TopLevel.list"}
1209412184
12185+ def decode_local_date(%{} = value), do: LocalDate.from_map(value)
12186+ def decode_local_date(value) when is_float(value), do: value
12187+ def decode_local_date(value) when is_integer(value), do: value
12188+ def decode_local_date(value) when is_nil(value), do: value
12189+ def decode_local_date(_), do: {:error, "Unexpected type when decoding TopLevel.local_date"}
12190+
12191+ def encode_local_date(%LocalDate{} = value), do: LocalDate.to_map(value)
12192+ def encode_local_date(value) when is_float(value), do: value
12193+ def encode_local_date(value) when is_integer(value), do: value
12194+ def encode_local_date(value) when is_nil(value), do: value
12195+ def encode_local_date(_), do: {:error, "Unexpected type when encoding TopLevel.local_date"}
12196+
1209512197 def decode_locale(%{} = value), do: Locale.from_map(value)
1209612198 def decode_locale(value) when is_float(value), do: value
1209712199 def decode_locale(value) when is_integer(value), do: value
@@ -12500,6 +12602,30 @@ defmodule TopLevel do
1250012602 def encode_of(value) when is_nil(value), do: value
1250112603 def encode_of(_), do: {:error, "Unexpected type when encoding TopLevel.of"}
1250212604
12605+ def decode_offset_date_time(%{} = value), do: OffsetDateTime.from_map(value)
12606+ def decode_offset_date_time(value) when is_float(value), do: value
12607+ def decode_offset_date_time(value) when is_integer(value), do: value
12608+ def decode_offset_date_time(value) when is_nil(value), do: value
12609+ def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_date_time"}
12610+
12611+ def encode_offset_date_time(%OffsetDateTime{} = value), do: OffsetDateTime.to_map(value)
12612+ def encode_offset_date_time(value) when is_float(value), do: value
12613+ def encode_offset_date_time(value) when is_integer(value), do: value
12614+ def encode_offset_date_time(value) when is_nil(value), do: value
12615+ def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_date_time"}
12616+
12617+ def decode_offset_time(%{} = value), do: OffsetTime.from_map(value)
12618+ def decode_offset_time(value) when is_float(value), do: value
12619+ def decode_offset_time(value) when is_integer(value), do: value
12620+ def decode_offset_time(value) when is_nil(value), do: value
12621+ def decode_offset_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_time"}
12622+
12623+ def encode_offset_time(%OffsetTime{} = value), do: OffsetTime.to_map(value)
12624+ def encode_offset_time(value) when is_float(value), do: value
12625+ def encode_offset_time(value) when is_integer(value), do: value
12626+ def encode_offset_time(value) when is_nil(value), do: value
12627+ def encode_offset_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_time"}
12628+
1250312629 def decode_oneway(%{} = value), do: Oneway.from_map(value)
1250412630 def decode_oneway(value) when is_float(value), do: value
1250512631 def decode_oneway(value) when is_integer(value), do: value
@@ -14143,6 +14269,7 @@ defmodule TopLevel do
1414314269 left: decode_left(m["left"]),
1414414270 let: decode_let(m["let"]),
1414514271 list: decode_list(m["list"]),
14272+ local_date: decode_local_date(m["LocalDate"]),
1414614273 locale: decode_locale(m["Locale"]),
1414714274 lock: decode_lock(m["lock"]),
1414814275 long: decode_long(m["long"]),
@@ -14177,6 +14304,8 @@ defmodule TopLevel do
1417714304 object: decode_object(m["object"]),
1417814305 object_mapper: decode_object_mapper(m["ObjectMapper"]),
1417914306 of: decode_of(m["of"]),
14307+ offset_date_time: decode_offset_date_time(m["OffsetDateTime"]),
14308+ offset_time: decode_offset_time(m["OffsetTime"]),
1418014309 oneway: decode_oneway(m["oneway"]),
1418114310 open: decode_open(m["open"]),
1418214311 operator: decode_operator(m["operator"]),
@@ -14487,6 +14616,7 @@ defmodule TopLevel do
1448714616 "left" => encode_left(struct.left),
1448814617 "let" => encode_let(struct.let),
1448914618 "list" => encode_list(struct.list),
14619+ "LocalDate" => encode_local_date(struct.local_date),
1449014620 "Locale" => encode_locale(struct.locale),
1449114621 "lock" => encode_lock(struct.lock),
1449214622 "long" => encode_long(struct.long),
@@ -14521,6 +14651,8 @@ defmodule TopLevel do
1452114651 "object" => encode_object(struct.object),
1452214652 "ObjectMapper" => encode_object_mapper(struct.object_mapper),
1452314653 "of" => encode_of(struct.of),
14654+ "OffsetDateTime" => encode_offset_date_time(struct.offset_date_time),
14655+ "OffsetTime" => encode_offset_time(struct.offset_time),
1452414656 "oneway" => encode_oneway(struct.oneway),
1452514657 "open" => encode_open(struct.open),
1452614658 "operator" => encode_operator(struct.operator),
Mschema-elmdefault / QuickType.elm+105 −0
@@ -173,6 +173,7 @@ module QuickType exposing
173173 , Lazy
174174 , Left
175175 , ListClass
176+ , LocalDate
176177 , Locale
177178 , Lock
178179 , Long
@@ -203,6 +204,8 @@ module QuickType exposing
203204 , Number
204205 , Object
205206 , ObjectMapper
207+ , OffsetDateTime
208+ , OffsetTime
206209 , Oneway
207210 , Open
208211 , Operator
@@ -505,6 +508,7 @@ module QuickType exposing
505508 , UnionLazy(..)
506509 , UnionLeft(..)
507510 , UnionList(..)
511+ , UnionLocalDate(..)
508512 , UnionLocale(..)
509513 , UnionLock(..)
510514 , UnionLong(..)
@@ -535,6 +539,8 @@ module QuickType exposing
535539 , UnionNumber(..)
536540 , UnionObject(..)
537541 , UnionObjectMapper(..)
542+ , UnionOffsetDateTime(..)
543+ , UnionOffsetTime(..)
538544 , UnionOneway(..)
539545 , UnionOpen(..)
540546 , UnionOperator(..)
@@ -864,6 +870,7 @@ type alias QuickType =
864870 , left : Maybe UnionLeft
865871 , quickTypeLet : Maybe UnionLet
866872 , list : Maybe UnionList
873+ , localDate : Maybe UnionLocalDate
867874 , locale : Maybe UnionLocale
868875 , lock : Maybe UnionLock
869876 , long : Maybe UnionLong
@@ -898,6 +905,8 @@ type alias QuickType =
898905 , object : Maybe UnionObject
899906 , objectMapper : Maybe UnionObjectMapper
900907 , quickTypeOf : Maybe UnionOf
908+ , offsetDateTime : Maybe UnionOffsetDateTime
909+ , offsetTime : Maybe UnionOffsetTime
901910 , oneway : Maybe UnionOneway
902911 , open : Maybe UnionOpen
903912 , operator : Maybe UnionOperator
@@ -2286,6 +2295,14 @@ type alias ListClass =
22862295 {
22872296 }
22882297
2298+type UnionLocalDate
2299+ = DoubleInUnionLocalDate Float
2300+ | LocalDateInUnionLocalDate LocalDate
2301+
2302+type alias LocalDate =
2303+ {
2304+ }
2305+
22892306 type UnionLocale
22902307 = DoubleInUnionLocale Float
22912308 | LocaleInUnionLocale Locale
@@ -2526,6 +2543,22 @@ type alias ObjectMapper =
25262543 {
25272544 }
25282545
2546+type UnionOffsetDateTime
2547+ = DoubleInUnionOffsetDateTime Float
2548+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2549+
2550+type alias OffsetDateTime =
2551+ {
2552+ }
2553+
2554+type UnionOffsetTime
2555+ = DoubleInUnionOffsetTime Float
2556+ | OffsetTimeInUnionOffsetTime OffsetTime
2557+
2558+type alias OffsetTime =
2559+ {
2560+ }
2561+
25292562 type UnionOneway
25302563 = DoubleInUnionOneway Float
25312564 | OnewayInUnionOneway Oneway
@@ -3869,6 +3902,7 @@ quickType =
38693902 |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing)
38703903 |> Jpipe.custom (optionalField "let" (Jdec.map Just unionLet) Nothing)
38713904 |> Jpipe.custom (optionalField "list" (Jdec.map Just unionList) Nothing)
3905+ |> Jpipe.custom (optionalField "LocalDate" (Jdec.map Just unionLocalDate) Nothing)
38723906 |> Jpipe.custom (optionalField "Locale" (Jdec.map Just unionLocale) Nothing)
38733907 |> Jpipe.custom (optionalField "lock" (Jdec.map Just unionLock) Nothing)
38743908 |> Jpipe.custom (optionalField "long" (Jdec.map Just unionLong) Nothing)
@@ -3903,6 +3937,8 @@ quickType =
39033937 |> Jpipe.custom (optionalField "object" (Jdec.map Just unionObject) Nothing)
39043938 |> Jpipe.custom (optionalField "ObjectMapper" (Jdec.map Just unionObjectMapper) Nothing)
39053939 |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing)
3940+ |> Jpipe.custom (optionalField "OffsetDateTime" (Jdec.map Just unionOffsetDateTime) Nothing)
3941+ |> Jpipe.custom (optionalField "OffsetTime" (Jdec.map Just unionOffsetTime) Nothing)
39063942 |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing)
39073943 |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing)
39083944 |> Jpipe.custom (optionalField "operator" (Jdec.map Just unionOperator) Nothing)
@@ -4206,6 +4242,7 @@ encodeQuickType x =
42064242 , ("left", makeNullableEncoder encodeUnionLeft x.left)
42074243 , ("let", makeNullableEncoder encodeUnionLet x.quickTypeLet)
42084244 , ("list", makeNullableEncoder encodeUnionList x.list)
4245+ , ("LocalDate", makeNullableEncoder encodeUnionLocalDate x.localDate)
42094246 , ("Locale", makeNullableEncoder encodeUnionLocale x.locale)
42104247 , ("lock", makeNullableEncoder encodeUnionLock x.lock)
42114248 , ("long", makeNullableEncoder encodeUnionLong x.long)
@@ -4240,6 +4277,8 @@ encodeQuickType x =
42404277 , ("object", makeNullableEncoder encodeUnionObject x.object)
42414278 , ("ObjectMapper", makeNullableEncoder encodeUnionObjectMapper x.objectMapper)
42424279 , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf)
4280+ , ("OffsetDateTime", makeNullableEncoder encodeUnionOffsetDateTime x.offsetDateTime)
4281+ , ("OffsetTime", makeNullableEncoder encodeUnionOffsetTime x.offsetTime)
42434282 , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway)
42444283 , ("open", makeNullableEncoder encodeUnionOpen x.open)
42454284 , ("operator", makeNullableEncoder encodeUnionOperator x.operator)
@@ -7840,6 +7879,28 @@ encodeListClass x =
78407879 [
78417880 ]
78427881
7882+unionLocalDate : Jdec.Decoder UnionLocalDate
7883+unionLocalDate =
7884+ Jdec.oneOf
7885+ [ Jdec.map DoubleInUnionLocalDate Jdec.float
7886+ , Jdec.map LocalDateInUnionLocalDate localDate
7887+ ]
7888+
7889+encodeUnionLocalDate : UnionLocalDate -> Jenc.Value
7890+encodeUnionLocalDate x = case x of
7891+ DoubleInUnionLocalDate y -> Jenc.float y
7892+ LocalDateInUnionLocalDate y -> encodeLocalDate y
7893+
7894+localDate : Jdec.Decoder LocalDate
7895+localDate =
7896+ Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate)
7897+
7898+encodeLocalDate : LocalDate -> Jenc.Value
7899+encodeLocalDate x =
7900+ Jenc.object
7901+ [
7902+ ]
7903+
78437904 unionLocale : Jdec.Decoder UnionLocale
78447905 unionLocale =
78457906 Jdec.oneOf
@@ -8500,6 +8561,50 @@ encodeObjectMapper x =
85008561 [
85018562 ]
85028563
8564+unionOffsetDateTime : Jdec.Decoder UnionOffsetDateTime
8565+unionOffsetDateTime =
8566+ Jdec.oneOf
8567+ [ Jdec.map DoubleInUnionOffsetDateTime Jdec.float
8568+ , Jdec.map OffsetDateTimeInUnionOffsetDateTime offsetDateTime
8569+ ]
8570+
8571+encodeUnionOffsetDateTime : UnionOffsetDateTime -> Jenc.Value
8572+encodeUnionOffsetDateTime x = case x of
8573+ DoubleInUnionOffsetDateTime y -> Jenc.float y
8574+ OffsetDateTimeInUnionOffsetDateTime y -> encodeOffsetDateTime y
8575+
8576+offsetDateTime : Jdec.Decoder OffsetDateTime
8577+offsetDateTime =
8578+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime)
8579+
8580+encodeOffsetDateTime : OffsetDateTime -> Jenc.Value
8581+encodeOffsetDateTime x =
8582+ Jenc.object
8583+ [
8584+ ]
8585+
8586+unionOffsetTime : Jdec.Decoder UnionOffsetTime
8587+unionOffsetTime =
8588+ Jdec.oneOf
8589+ [ Jdec.map DoubleInUnionOffsetTime Jdec.float
8590+ , Jdec.map OffsetTimeInUnionOffsetTime offsetTime
8591+ ]
8592+
8593+encodeUnionOffsetTime : UnionOffsetTime -> Jenc.Value
8594+encodeUnionOffsetTime x = case x of
8595+ DoubleInUnionOffsetTime y -> Jenc.float y
8596+ OffsetTimeInUnionOffsetTime y -> encodeOffsetTime y
8597+
8598+offsetTime : Jdec.Decoder OffsetTime
8599+offsetTime =
8600+ Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime)
8601+
8602+encodeOffsetTime : OffsetTime -> Jenc.Value
8603+encodeOffsetTime x =
8604+ Jenc.object
8605+ [
8606+ ]
8607+
85038608 unionOneway : Jdec.Decoder UnionOneway
85048609 unionOneway =
85058610 Jdec.oneOf
Mschema-flowdefault / TopLevel.js+27 −0
@@ -187,6 +187,7 @@ export type TopLevel = {
187187 left?: UnionLeft;
188188 let?: UnionLet;
189189 list?: UnionList;
190+ LocalDate?: UnionLocalDate;
190191 Locale?: UnionLocale;
191192 lock?: UnionLock;
192193 long?: UnionLong;
@@ -221,6 +222,8 @@ export type TopLevel = {
221222 object?: UnionObject;
222223 ObjectMapper?: UnionObjectMapper;
223224 of?: UnionOf;
225+ OffsetDateTime?: UnionOffsetDateTime;
226+ OffsetTime?: UnionOffsetTime;
224227 oneway?: UnionOneway;
225228 open?: UnionOpen;
226229 operator?: UnionOperator;
@@ -521,6 +524,11 @@ export type UnionJSONTokenType = JSONTokenType | number;
521524 export type JSONTokenType = {
522525 };
523526
527+export type UnionLocalDate = LocalDate | number;
528+
529+export type LocalDate = {
530+};
531+
524532 export type UnionLocale = Locale | number;
525533
526534 export type Locale = {
@@ -566,6 +574,16 @@ export type UnionObjectMapper = ObjectMapper | number;
566574 export type ObjectMapper = {
567575 };
568576
577+export type UnionOffsetDateTime = OffsetDateTime | number;
578+
579+export type OffsetDateTime = {
580+};
581+
582+export type UnionOffsetTime = OffsetTime | number;
583+
584+export type OffsetTime = {
585+};
586+
569587 export type UnionProtocol = Protocol | number;
570588
571589 export type Protocol = {
@@ -2369,6 +2387,7 @@ const typeMap: any = {
23692387 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
23702388 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
23712389 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
2390+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
23722391 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
23732392 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
23742393 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -2403,6 +2422,8 @@ const typeMap: any = {
24032422 { json: "object", js: "object", typ: u(undefined, u(r("ObjectClass"), 3.14)) },
24042423 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) },
24052424 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
2425+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
2426+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
24062427 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
24072428 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
24082429 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -2596,6 +2617,8 @@ const typeMap: any = {
25962617 ], false),
25972618 "JSONTokenType": o([
25982619 ], false),
2620+ "LocalDate": o([
2621+ ], false),
25992622 "Locale": o([
26002623 ], false),
26012624 "MapEntry": o([
@@ -2614,6 +2637,10 @@ const typeMap: any = {
26142637 ], false),
26152638 "ObjectMapper": o([
26162639 ], false),
2640+ "OffsetDateTime": o([
2641+ ], false),
2642+ "OffsetTime": o([
2643+ ], false),
26172644 "Protocol": o([
26182645 ], false),
26192646 "RegExpClass": o([
Mschema-golangdefault / quicktype.go+78 −0
@@ -199,6 +199,7 @@ type TopLevel struct {
199199 Left *UnionLeft `json:"left"`
200200 Let *UnionLet `json:"let"`
201201 List *UnionList `json:"list"`
202+ LocalDate *UnionLocalDate `json:"LocalDate"`
202203 Locale *UnionLocale `json:"Locale"`
203204 Lock *UnionLock `json:"lock"`
204205 Long *UnionLong `json:"long"`
@@ -233,6 +234,8 @@ type TopLevel struct {
233234 Object *UnionObject `json:"object"`
234235 ObjectMapper *UnionObjectMapper `json:"ObjectMapper"`
235236 Of *UnionOf `json:"of"`
237+ OffsetDateTime *UnionOffsetDateTime `json:"OffsetDateTime"`
238+ OffsetTime *UnionOffsetTime `json:"OffsetTime"`
236239 Oneway *UnionOneway `json:"oneway"`
237240 Open *UnionOpen `json:"open"`
238241 Operator *UnionOperator `json:"operator"`
@@ -870,6 +873,9 @@ type Let struct {
870873 type List struct {
871874 }
872875
876+type LocalDate struct {
877+}
878+
873879 type Locale struct {
874880 }
875881
@@ -966,6 +972,12 @@ type ObjectMapper struct {
966972 type Of struct {
967973 }
968974
975+type OffsetDateTime struct {
976+}
977+
978+type OffsetTime struct {
979+}
980+
969981 type Oneway struct {
970982 }
971983
@@ -5115,6 +5127,28 @@ func (x *UnionList) MarshalJSON() ([]byte, error) {
51155127 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.List != nil, x.List, false, nil, false, nil, false)
51165128 }
51175129
5130+type UnionLocalDate struct {
5131+ Double *float64
5132+ LocalDate *LocalDate
5133+}
5134+
5135+func (x *UnionLocalDate) UnmarshalJSON(data []byte) error {
5136+ x.LocalDate = nil
5137+ var c LocalDate
5138+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5139+ if err != nil {
5140+ return err
5141+ }
5142+ if object {
5143+ x.LocalDate = &c
5144+ }
5145+ return nil
5146+}
5147+
5148+func (x *UnionLocalDate) MarshalJSON() ([]byte, error) {
5149+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.LocalDate != nil, x.LocalDate, false, nil, false, nil, false)
5150+}
5151+
51185152 type UnionLocale struct {
51195153 Double *float64
51205154 Locale *Locale
@@ -5819,6 +5853,50 @@ func (x *UnionOf) MarshalJSON() ([]byte, error) {
58195853 return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Of != nil, x.Of, false, nil, false, nil, false)
58205854 }
58215855
5856+type UnionOffsetDateTime struct {
5857+ Double *float64
5858+ OffsetDateTime *OffsetDateTime
5859+}
5860+
5861+func (x *UnionOffsetDateTime) UnmarshalJSON(data []byte) error {
5862+ x.OffsetDateTime = nil
5863+ var c OffsetDateTime
5864+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5865+ if err != nil {
5866+ return err
5867+ }
5868+ if object {
5869+ x.OffsetDateTime = &c
5870+ }
5871+ return nil
5872+}
5873+
5874+func (x *UnionOffsetDateTime) MarshalJSON() ([]byte, error) {
5875+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetDateTime != nil, x.OffsetDateTime, false, nil, false, nil, false)
5876+}
5877+
5878+type UnionOffsetTime struct {
5879+ Double *float64
5880+ OffsetTime *OffsetTime
5881+}
5882+
5883+func (x *UnionOffsetTime) UnmarshalJSON(data []byte) error {
5884+ x.OffsetTime = nil
5885+ var c OffsetTime
5886+ object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false)
5887+ if err != nil {
5888+ return err
5889+ }
5890+ if object {
5891+ x.OffsetTime = &c
5892+ }
5893+ return nil
5894+}
5895+
5896+func (x *UnionOffsetTime) MarshalJSON() ([]byte, error) {
5897+ return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetTime != nil, x.OffsetTime, false, nil, false, nil, false)
5898+}
5899+
58225900 type UnionOneway struct {
58235901 Double *float64
58245902 Oneway *Oneway
Mschema-haskelldefault / QuickType.hs+85 −1
@@ -162,6 +162,7 @@ module QuickType
162162 , Lazy (..)
163163 , LeftClass (..)
164164 , List (..)
165+ , LocalDate (..)
165166 , Locale (..)
166167 , Lock (..)
167168 , Long (..)
@@ -192,6 +193,8 @@ module QuickType
192193 , NumberClass (..)
193194 , ObjectClass (..)
194195 , ObjectMapper (..)
196+ , OffsetDateTime (..)
197+ , OffsetTime (..)
195198 , Oneway (..)
196199 , Open (..)
197200 , Operator (..)
@@ -494,6 +497,7 @@ module QuickType
494497 , UnionLazy (..)
495498 , UnionLeft (..)
496499 , UnionList (..)
500+ , UnionLocalDate (..)
497501 , UnionLocale (..)
498502 , UnionLock (..)
499503 , UnionLong (..)
@@ -524,6 +528,8 @@ module QuickType
524528 , UnionNumber (..)
525529 , UnionObject (..)
526530 , UnionObjectMapper (..)
531+ , UnionOffsetDateTime (..)
532+ , UnionOffsetTime (..)
527533 , UnionOneway (..)
528534 , UnionOpen (..)
529535 , UnionOperator (..)
@@ -854,6 +860,7 @@ data QuickType = QuickType
854860 , leftQuickType :: Maybe UnionLeft
855861 , quickTypeLetQuickType :: Maybe UnionLet
856862 , listQuickType :: Maybe UnionList
863+ , localDateQuickType :: Maybe UnionLocalDate
857864 , localeQuickType :: Maybe UnionLocale
858865 , lockQuickType :: Maybe UnionLock
859866 , longQuickType :: Maybe UnionLong
@@ -888,6 +895,8 @@ data QuickType = QuickType
888895 , objectQuickType :: Maybe UnionObject
889896 , objectMapperQuickType :: Maybe UnionObjectMapper
890897 , quickTypeOfQuickType :: Maybe UnionOf
898+ , offsetDateTimeQuickType :: Maybe UnionOffsetDateTime
899+ , offsetTimeQuickType :: Maybe UnionOffsetTime
891900 , onewayQuickType :: Maybe UnionOneway
892901 , openQuickType :: Maybe UnionOpen
893902 , operatorQuickType :: Maybe UnionOperator
@@ -2443,6 +2452,15 @@ data List = List
24432452 {
24442453 } deriving (Show)
24452454
2455+data UnionLocalDate
2456+ = DoubleInUnionLocalDate Double
2457+ | LocalDateInUnionLocalDate LocalDate
2458+ deriving (Show)
2459+
2460+data LocalDate = LocalDate
2461+ {
2462+ } deriving (Show)
2463+
24462464 data UnionLocale
24472465 = DoubleInUnionLocale Double
24482466 | LocaleInUnionLocale Locale
@@ -2713,6 +2731,24 @@ data ObjectMapper = ObjectMapper
27132731 {
27142732 } deriving (Show)
27152733
2734+data UnionOffsetDateTime
2735+ = DoubleInUnionOffsetDateTime Double
2736+ | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime
2737+ deriving (Show)
2738+
2739+data OffsetDateTime = OffsetDateTime
2740+ {
2741+ } deriving (Show)
2742+
2743+data UnionOffsetTime
2744+ = DoubleInUnionOffsetTime Double
2745+ | OffsetTimeInUnionOffsetTime OffsetTime
2746+ deriving (Show)
2747+
2748+data OffsetTime = OffsetTime
2749+ {
2750+ } deriving (Show)
2751+
27162752 data UnionOneway
27172753 = DoubleInUnionOneway Double
27182754 | OnewayInUnionOneway Oneway
@@ -4004,7 +4040,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType
40044040 decodeTopLevel = decode
40054041
40064042 instance ToJSON QuickType where
4007- 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 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 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 serializeQuickType serializerProviderQuickType 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 ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
4043+ 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 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 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 serializeQuickType serializerProviderQuickType 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 ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) =
40084044 object $ foldMap (maybe [] pure)
40094045 [ ("_" .=) <$> emptyQuickType
40104046 , ("_Bool" .=) <$> quickTypeBoolQuickType
@@ -4183,6 +4219,7 @@ instance ToJSON QuickType where
41834219 , ("left" .=) <$> leftQuickType
41844220 , ("let" .=) <$> quickTypeLetQuickType
41854221 , ("list" .=) <$> listQuickType
4222+ , ("LocalDate" .=) <$> localDateQuickType
41864223 , ("Locale" .=) <$> localeQuickType
41874224 , ("lock" .=) <$> lockQuickType
41884225 , ("long" .=) <$> longQuickType
@@ -4217,6 +4254,8 @@ instance ToJSON QuickType where
42174254 , ("object" .=) <$> objectQuickType
42184255 , ("ObjectMapper" .=) <$> objectMapperQuickType
42194256 , ("of" .=) <$> quickTypeOfQuickType
4257+ , ("OffsetDateTime" .=) <$> offsetDateTimeQuickType
4258+ , ("OffsetTime" .=) <$> offsetTimeQuickType
42204259 , ("oneway" .=) <$> onewayQuickType
42214260 , ("open" .=) <$> openQuickType
42224261 , ("operator" .=) <$> operatorQuickType
@@ -4520,6 +4559,7 @@ instance FromJSON QuickType where
45204559 <*> v .:! "left"
45214560 <*> v .:! "let"
45224561 <*> v .:! "list"
4562+ <*> v .:! "LocalDate"
45234563 <*> v .:! "Locale"
45244564 <*> v .:! "lock"
45254565 <*> v .:! "long"
@@ -4554,6 +4594,8 @@ instance FromJSON QuickType where
45544594 <*> v .:! "object"
45554595 <*> v .:! "ObjectMapper"
45564596 <*> v .:! "of"
4597+ <*> v .:! "OffsetDateTime"
4598+ <*> v .:! "OffsetTime"
45574599 <*> v .:! "oneway"
45584600 <*> v .:! "open"
45594601 <*> v .:! "operator"
@@ -6903,6 +6945,20 @@ instance ToJSON List where
69036945 instance FromJSON List where
69046946 parseJSON (Object _) = return List
69056947
6948+instance ToJSON UnionLocalDate where
6949+ toJSON (DoubleInUnionLocalDate x) = toJSON x
6950+ toJSON (LocalDateInUnionLocalDate x) = toJSON x
6951+
6952+instance FromJSON UnionLocalDate where
6953+ parseJSON xs@(Number _) = (fmap DoubleInUnionLocalDate . parseJSON) xs
6954+ parseJSON xs@(Object _) = (fmap LocalDateInUnionLocalDate . parseJSON) xs
6955+
6956+instance ToJSON LocalDate where
6957+ toJSON = \_ -> emptyObject
6958+
6959+instance FromJSON LocalDate where
6960+ parseJSON (Object _) = return LocalDate
6961+
69066962 instance ToJSON UnionLocale where
69076963 toJSON (DoubleInUnionLocale x) = toJSON x
69086964 toJSON (LocaleInUnionLocale x) = toJSON x
@@ -7323,6 +7379,34 @@ instance ToJSON ObjectMapper where
73237379 instance FromJSON ObjectMapper where
73247380 parseJSON (Object _) = return ObjectMapper
73257381
7382+instance ToJSON UnionOffsetDateTime where
7383+ toJSON (DoubleInUnionOffsetDateTime x) = toJSON x
7384+ toJSON (OffsetDateTimeInUnionOffsetDateTime x) = toJSON x
7385+
7386+instance FromJSON UnionOffsetDateTime where
7387+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetDateTime . parseJSON) xs
7388+ parseJSON xs@(Object _) = (fmap OffsetDateTimeInUnionOffsetDateTime . parseJSON) xs
7389+
7390+instance ToJSON OffsetDateTime where
7391+ toJSON = \_ -> emptyObject
7392+
7393+instance FromJSON OffsetDateTime where
7394+ parseJSON (Object _) = return OffsetDateTime
7395+
7396+instance ToJSON UnionOffsetTime where
7397+ toJSON (DoubleInUnionOffsetTime x) = toJSON x
7398+ toJSON (OffsetTimeInUnionOffsetTime x) = toJSON x
7399+
7400+instance FromJSON UnionOffsetTime where
7401+ parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetTime . parseJSON) xs
7402+ parseJSON xs@(Object _) = (fmap OffsetTimeInUnionOffsetTime . parseJSON) xs
7403+
7404+instance ToJSON OffsetTime where
7405+ toJSON = \_ -> emptyObject
7406+
7407+instance FromJSON OffsetTime where
7408+ parseJSON (Object _) = return OffsetTime
7409+
73267410 instance ToJSON UnionOneway where
73277411 toJSON (DoubleInUnionOneway x) = toJSON x
73287412 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
@@ -180,6 +180,7 @@ public class TopLevel {
180180 private UnionLeft left;
181181 private UnionLet let;
182182 private UnionList list;
183+ private UnionLocalDate localDate;
183184 private UnionLocale locale;
184185 private UnionLock lock;
185186 private UnionLong topLevelLong;
@@ -214,6 +215,8 @@ public class TopLevel {
214215 private UnionObject object;
215216 private UnionObjectMapper objectMapper;
216217 private UnionOf of;
218+ private UnionOffsetDateTime offsetDateTime;
219+ private UnionOffsetTime offsetTime;
217220 private UnionOneway oneway;
218221 private UnionOpen open;
219222 private UnionOperator operator;
@@ -1222,6 +1225,11 @@ public class TopLevel {
12221225 @JsonProperty("list")
12231226 public void setList(UnionList value) { this.list = value; }
12241227
1228+ @JsonProperty("LocalDate")
1229+ public UnionLocalDate getLocalDate() { return localDate; }
1230+ @JsonProperty("LocalDate")
1231+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1232+
12251233 @JsonProperty("Locale")
12261234 public UnionLocale getLocale() { return locale; }
12271235 @JsonProperty("Locale")
@@ -1392,6 +1400,16 @@ public class TopLevel {
13921400 @JsonProperty("of")
13931401 public void setOf(UnionOf value) { this.of = value; }
13941402
1403+ @JsonProperty("OffsetDateTime")
1404+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1405+ @JsonProperty("OffsetDateTime")
1406+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1407+
1408+ @JsonProperty("OffsetTime")
1409+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1410+ @JsonProperty("OffsetTime")
1411+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1412+
13951413 @JsonProperty("oneway")
13961414 public UnionOneway getOneway() { return oneway; }
13971415 @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
@@ -180,6 +180,7 @@ public class TopLevel {
180180 private UnionLeft left;
181181 private UnionLet let;
182182 private UnionList list;
183+ private UnionLocalDate localDate;
183184 private UnionLocale locale;
184185 private UnionLock lock;
185186 private UnionLong topLevelLong;
@@ -214,6 +215,8 @@ public class TopLevel {
214215 private UnionObject object;
215216 private UnionObjectMapper objectMapper;
216217 private UnionOf of;
218+ private UnionOffsetDateTime offsetDateTime;
219+ private UnionOffsetTime offsetTime;
217220 private UnionOneway oneway;
218221 private UnionOpen open;
219222 private UnionOperator operator;
@@ -1222,6 +1225,11 @@ public class TopLevel {
12221225 @JsonProperty("list")
12231226 public void setList(UnionList value) { this.list = value; }
12241227
1228+ @JsonProperty("LocalDate")
1229+ public UnionLocalDate getLocalDate() { return localDate; }
1230+ @JsonProperty("LocalDate")
1231+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1232+
12251233 @JsonProperty("Locale")
12261234 public UnionLocale getLocale() { return locale; }
12271235 @JsonProperty("Locale")
@@ -1392,6 +1400,16 @@ public class TopLevel {
13921400 @JsonProperty("of")
13931401 public void setOf(UnionOf value) { this.of = value; }
13941402
1403+ @JsonProperty("OffsetDateTime")
1404+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1405+ @JsonProperty("OffsetDateTime")
1406+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1407+
1408+ @JsonProperty("OffsetTime")
1409+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1410+ @JsonProperty("OffsetTime")
1411+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1412+
13951413 @JsonProperty("oneway")
13961414 public UnionOneway getOneway() { return oneway; }
13971415 @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
@@ -180,6 +180,7 @@ public class TopLevel {
180180 private UnionLeft left;
181181 private UnionLet let;
182182 private UnionList list;
183+ private UnionLocalDate localDate;
183184 private UnionLocale locale;
184185 private UnionLock lock;
185186 private UnionLong topLevelLong;
@@ -214,6 +215,8 @@ public class TopLevel {
214215 private UnionObject object;
215216 private UnionObjectMapper objectMapper;
216217 private UnionOf of;
218+ private UnionOffsetDateTime offsetDateTime;
219+ private UnionOffsetTime offsetTime;
217220 private UnionOneway oneway;
218221 private UnionOpen open;
219222 private UnionOperator operator;
@@ -1222,6 +1225,11 @@ public class TopLevel {
12221225 @JsonProperty("list")
12231226 public void setList(UnionList value) { this.list = value; }
12241227
1228+ @JsonProperty("LocalDate")
1229+ public UnionLocalDate getLocalDate() { return localDate; }
1230+ @JsonProperty("LocalDate")
1231+ public void setLocalDate(UnionLocalDate value) { this.localDate = value; }
1232+
12251233 @JsonProperty("Locale")
12261234 public UnionLocale getLocale() { return locale; }
12271235 @JsonProperty("Locale")
@@ -1392,6 +1400,16 @@ public class TopLevel {
13921400 @JsonProperty("of")
13931401 public void setOf(UnionOf value) { this.of = value; }
13941402
1403+ @JsonProperty("OffsetDateTime")
1404+ public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; }
1405+ @JsonProperty("OffsetDateTime")
1406+ public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; }
1407+
1408+ @JsonProperty("OffsetTime")
1409+ public UnionOffsetTime getOffsetTime() { return offsetTime; }
1410+ @JsonProperty("OffsetTime")
1411+ public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; }
1412+
13951413 @JsonProperty("oneway")
13961414 public UnionOneway getOneway() { return oneway; }
13971415 @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
@@ -48,6 +48,7 @@ let _JSONNode;
4848 let _JSONParser;
4949 let _JSONReader;
5050 let _JSONTokenType;
51+let _LocalDate;
5152 let _Locale;
5253 let _MapEntry;
5354 let _No;
@@ -57,6 +58,8 @@ let _NSString;
5758 let _Null;
5859 let _None;
5960 let _ObjectMapper;
61+let _OffsetDateTime;
62+let _OffsetTime;
6063 let _Protocol;
6164 let _RegExp;
6265 let _Sel;
@@ -415,6 +418,8 @@ _JSONReader = PropTypes.shape({
415418 });
416419 _JSONTokenType = PropTypes.shape({
417420 });
421+_LocalDate = PropTypes.shape({
422+});
418423 _Locale = PropTypes.shape({
419424 });
420425 _MapEntry = PropTypes.shape({
@@ -433,6 +438,10 @@ _None = PropTypes.shape({
433438 });
434439 _ObjectMapper = PropTypes.shape({
435440 });
441+_OffsetDateTime = PropTypes.shape({
442+});
443+_OffsetTime = PropTypes.shape({
444+});
436445 _Protocol = PropTypes.shape({
437446 });
438447 _RegExp = PropTypes.shape({
@@ -1187,6 +1196,7 @@ _TopLevel = PropTypes.shape({
11871196 "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]),
11881197 "let": PropTypes.oneOfType([_Let, PropTypes.number, PropTypes.oneOf([null])]),
11891198 "list": PropTypes.oneOfType([_List, PropTypes.number, PropTypes.oneOf([null])]),
1199+ "LocalDate": PropTypes.oneOfType([_LocalDate, PropTypes.number, PropTypes.oneOf([null])]),
11901200 "Locale": PropTypes.oneOfType([_Locale, PropTypes.number, PropTypes.oneOf([null])]),
11911201 "lock": PropTypes.oneOfType([_Lock, PropTypes.number, PropTypes.oneOf([null])]),
11921202 "long": PropTypes.oneOfType([_Long, PropTypes.number, PropTypes.oneOf([null])]),
@@ -1221,6 +1231,8 @@ _TopLevel = PropTypes.shape({
12211231 "object": PropTypes.oneOfType([_Object, PropTypes.number, PropTypes.oneOf([null])]),
12221232 "ObjectMapper": PropTypes.oneOfType([_ObjectMapper, PropTypes.number, PropTypes.oneOf([null])]),
12231233 "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]),
1234+ "OffsetDateTime": PropTypes.oneOfType([_OffsetDateTime, PropTypes.number, PropTypes.oneOf([null])]),
1235+ "OffsetTime": PropTypes.oneOfType([_OffsetTime, PropTypes.number, PropTypes.oneOf([null])]),
12241236 "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]),
12251237 "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]),
12261238 "operator": PropTypes.oneOfType([_Operator, PropTypes.number, PropTypes.oneOf([null])]),
Mschema-javascriptdefault / TopLevel.js+9 −0
@@ -370,6 +370,7 @@ const typeMap = {
370370 { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) },
371371 { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) },
372372 { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) },
373+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) },
373374 { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) },
374375 { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) },
375376 { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) },
@@ -404,6 +405,8 @@ const typeMap = {
404405 { json: "object", js: "object", typ: u(undefined, u(r("Object"), 3.14)) },
405406 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) },
406407 { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) },
408+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) },
409+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) },
407410 { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) },
408411 { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) },
409412 { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) },
@@ -597,6 +600,8 @@ const typeMap = {
597600 ], false),
598601 "JSONTokenType": o([
599602 ], false),
603+ "LocalDate": o([
604+ ], false),
600605 "Locale": o([
601606 ], false),
602607 "MapEntry": o([
@@ -615,6 +620,10 @@ const typeMap = {
615620 ], false),
616621 "ObjectMapper": o([
617622 ], false),
623+ "OffsetDateTime": o([
624+ ], false),
625+ "OffsetTime": o([
626+ ], false),
618627 "Protocol": o([
619628 ], false),
620629 "RegExp": o([
Mschema-objective-cdefault / QTTopLevel.h+15 −0
@@ -153,6 +153,7 @@
153153 @class QTLeft;
154154 @class QTLet;
155155 @class QTList;
156+@class QTLocalDate;
156157 @class QTLocale;
157158 @class QTLock;
158159 @class QTMap;
@@ -181,6 +182,8 @@
181182 @class QTObject;
182183 @class QTObjectMapper;
183184 @class QTOf;
185+@class QTOffsetDateTime;
186+@class QTOffsetTime;
184187 @class QTOneway;
185188 @class QTOpen;
186189 @class QTOperator;
@@ -528,6 +531,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
528531 @property (nonatomic, nullable, copy) id left;
529532 @property (nonatomic, nullable, copy) id let;
530533 @property (nonatomic, nullable, copy) id list;
534+@property (nonatomic, nullable, copy) id localDate;
531535 @property (nonatomic, nullable, copy) id locale;
532536 @property (nonatomic, nullable, copy) id lock;
533537 @property (nonatomic, nullable, copy) id qtTopLevelLong;
@@ -562,6 +566,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
562566 @property (nonatomic, nullable, copy) id object;
563567 @property (nonatomic, nullable, copy) id objectMapper;
564568 @property (nonatomic, nullable, copy) id of;
569+@property (nonatomic, nullable, copy) id offsetDateTime;
570+@property (nonatomic, nullable, copy) id offsetTime;
565571 @property (nonatomic, nullable, copy) id oneway;
566572 @property (nonatomic, nullable, copy) id open;
567573 @property (nonatomic, nullable, copy) id operator;
@@ -1132,6 +1138,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
11321138 @interface QTList : NSObject
11331139 @end
11341140
1141+@interface QTLocalDate : NSObject
1142+@end
1143+
11351144 @interface QTLocale : NSObject
11361145 @end
11371146
@@ -1216,6 +1225,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en
12161225 @interface QTOf : NSObject
12171226 @end
12181227
1228+@interface QTOffsetDateTime : NSObject
1229+@end
1230+
1231+@interface QTOffsetTime : NSObject
1232+@end
1233+
12191234 @interface QTOneway : NSObject
12201235 @end
Mschema-objective-cdefault / QTTopLevel.m+135 −0
@@ -748,6 +748,11 @@ NS_ASSUME_NONNULL_BEGIN
748748 - (NSDictionary *)JSONDictionary;
749749 @end
750750
751+@interface QTLocalDate (JSONConversion)
752++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
753+- (NSDictionary *)JSONDictionary;
754+@end
755+
751756 @interface QTLocale (JSONConversion)
752757 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
753758 - (NSDictionary *)JSONDictionary;
@@ -888,6 +893,16 @@ NS_ASSUME_NONNULL_BEGIN
888893 - (NSDictionary *)JSONDictionary;
889894 @end
890895
896+@interface QTOffsetDateTime (JSONConversion)
897++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
898+- (NSDictionary *)JSONDictionary;
899+@end
900+
901+@interface QTOffsetTime (JSONConversion)
902++ (instancetype)fromJSONDictionary:(NSDictionary *)dict;
903+- (NSDictionary *)JSONDictionary;
904+@end
905+
891906 @interface QTOneway (JSONConversion)
892907 + (instancetype)fromJSONDictionary:(NSDictionary *)dict;
893908 - (NSDictionary *)JSONDictionary;
@@ -1891,6 +1906,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
18911906 @"left": @"left",
18921907 @"let": @"let",
18931908 @"list": @"list",
1909+ @"LocalDate": @"localDate",
18941910 @"Locale": @"locale",
18951911 @"lock": @"lock",
18961912 @"long": @"qtTopLevelLong",
@@ -1925,6 +1941,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
19251941 @"object": @"object",
19261942 @"ObjectMapper": @"objectMapper",
19271943 @"of": @"of",
1944+ @"OffsetDateTime": @"offsetDateTime",
1945+ @"OffsetTime": @"offsetTime",
19281946 @"oneway": @"oneway",
19291947 @"open": @"open",
19301948 @"operator": @"operator",
@@ -7844,6 +7862,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
78447862 }
78457863 @end
78467864
7865+@implementation QTLocalDate
7866++ (NSDictionary<NSString *, NSString *> *)properties
7867+{
7868+ static NSDictionary<NSString *, NSString *> *properties;
7869+ return properties = properties ? properties : @{
7870+ };
7871+}
7872+
7873++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
7874+{
7875+ return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil;
7876+}
7877+
7878+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
7879+{
7880+ if (self = [super init]) {
7881+ [self setValuesForKeysWithDictionary:dict];
7882+ }
7883+ return self;
7884+}
7885+
7886+- (void)setValue:(nullable id)value forKey:(NSString *)key
7887+{
7888+ id resolved = QTLocalDate.properties[key];
7889+ if (resolved) [super setValue:value forKey:resolved];
7890+}
7891+
7892+- (void)setNilValueForKey:(NSString *)key
7893+{
7894+ id resolved = QTLocalDate.properties[key];
7895+ if (resolved) [super setValue:@(0) forKey:resolved];
7896+}
7897+
7898+- (NSDictionary *)JSONDictionary
7899+{
7900+ return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues];
7901+}
7902+@end
7903+
78477904 @implementation QTLocale
78487905 + (NSDictionary<NSString *, NSString *> *)properties
78497906 {
@@ -8936,6 +8993,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
89368993 }
89378994 @end
89388995
8996+@implementation QTOffsetDateTime
8997++ (NSDictionary<NSString *, NSString *> *)properties
8998+{
8999+ static NSDictionary<NSString *, NSString *> *properties;
9000+ return properties = properties ? properties : @{
9001+ };
9002+}
9003+
9004++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9005+{
9006+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil;
9007+}
9008+
9009+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9010+{
9011+ if (self = [super init]) {
9012+ [self setValuesForKeysWithDictionary:dict];
9013+ }
9014+ return self;
9015+}
9016+
9017+- (void)setValue:(nullable id)value forKey:(NSString *)key
9018+{
9019+ id resolved = QTOffsetDateTime.properties[key];
9020+ if (resolved) [super setValue:value forKey:resolved];
9021+}
9022+
9023+- (void)setNilValueForKey:(NSString *)key
9024+{
9025+ id resolved = QTOffsetDateTime.properties[key];
9026+ if (resolved) [super setValue:@(0) forKey:resolved];
9027+}
9028+
9029+- (NSDictionary *)JSONDictionary
9030+{
9031+ return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues];
9032+}
9033+@end
9034+
9035+@implementation QTOffsetTime
9036++ (NSDictionary<NSString *, NSString *> *)properties
9037+{
9038+ static NSDictionary<NSString *, NSString *> *properties;
9039+ return properties = properties ? properties : @{
9040+ };
9041+}
9042+
9043++ (instancetype)fromJSONDictionary:(NSDictionary *)dict
9044+{
9045+ return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil;
9046+}
9047+
9048+- (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9049+{
9050+ if (self = [super init]) {
9051+ [self setValuesForKeysWithDictionary:dict];
9052+ }
9053+ return self;
9054+}
9055+
9056+- (void)setValue:(nullable id)value forKey:(NSString *)key
9057+{
9058+ id resolved = QTOffsetTime.properties[key];
9059+ if (resolved) [super setValue:value forKey:resolved];
9060+}
9061+
9062+- (void)setNilValueForKey:(NSString *)key
9063+{
9064+ id resolved = QTOffsetTime.properties[key];
9065+ if (resolved) [super setValue:@(0) forKey:resolved];
9066+}
9067+
9068+- (NSDictionary *)JSONDictionary
9069+{
9070+ return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues];
9071+}
9072+@end
9073+
89399074 @implementation QTOneway
89409075 + (NSDictionary<NSString *, NSString *> *)properties
89419076 {
Mschema-phpdefault / TopLevel.php+541 −157
@@ -181,6 +181,7 @@ class TopLevel {
181181 private Left|float|null $left; // json:left Optional
182182 private Let|float|null $let; // json:let Optional
183183 private ListClass|float|null $list; // json:list Optional
184+ private LocalDate|float|null $localDate; // json:LocalDate Optional
184185 private LocaleClass|float|null $locale; // json:Locale Optional
185186 private Lock|float|null $lock; // json:lock Optional
186187 private Long|float|null $long; // json:long Optional
@@ -215,6 +216,8 @@ class TopLevel {
215216 private ObjectClass|float|null $object; // json:object Optional
216217 private ObjectMapper|float|null $objectMapper; // json:ObjectMapper Optional
217218 private Of|float|null $of; // json:of Optional
219+ private OffsetDateTime|float|null $offsetDateTime; // json:OffsetDateTime Optional
220+ private OffsetTime|float|null $offsetTime; // json:OffsetTime Optional
218221 private Oneway|float|null $oneway; // json:oneway Optional
219222 private Open|float|null $open; // json:open Optional
220223 private Operator|float|null $operator; // json:operator Optional
@@ -516,6 +519,7 @@ class TopLevel {
516519 * @param Left|float|null $left
517520 * @param Let|float|null $let
518521 * @param ListClass|float|null $list
522+ * @param LocalDate|float|null $localDate
519523 * @param LocaleClass|float|null $locale
520524 * @param Lock|float|null $lock
521525 * @param Long|float|null $long
@@ -550,6 +554,8 @@ class TopLevel {
550554 * @param ObjectClass|float|null $object
551555 * @param ObjectMapper|float|null $objectMapper
552556 * @param Of|float|null $of
557+ * @param OffsetDateTime|float|null $offsetDateTime
558+ * @param OffsetTime|float|null $offsetTime
553559 * @param Oneway|float|null $oneway
554560 * @param Open|float|null $open
555561 * @param Operator|float|null $operator
@@ -673,7 +679,7 @@ class TopLevel {
673679 * @param Yes|float|null $yes
674680 * @param YieldClass|float|null $yield
675681 */
676- 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, 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, 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, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, 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, 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) {
682+ 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, 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, 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, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, 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, 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) {
677683 $this->empty = $empty;
678684 $this->topLevelBool = $topLevelBool;
679685 $this->complex = $complex;
@@ -851,6 +857,7 @@ class TopLevel {
851857 $this->left = $left;
852858 $this->let = $let;
853859 $this->list = $list;
860+ $this->localDate = $localDate;
854861 $this->locale = $locale;
855862 $this->lock = $lock;
856863 $this->long = $long;
@@ -885,6 +892,8 @@ class TopLevel {
885892 $this->object = $object;
886893 $this->objectMapper = $objectMapper;
887894 $this->of = $of;
895+ $this->offsetDateTime = $offsetDateTime;
896+ $this->offsetTime = $offsetTime;
888897 $this->oneway = $oneway;
889898 $this->open = $open;
890899 $this->operator = $operator;
@@ -14442,6 +14451,82 @@ class TopLevel {
1444214451 return ListClass::sample(); /*207:list*/
1444314452 }
1444414453
14454+ /**
14455+ * @param stdClass|float|null $value
14456+ * @throws Exception
14457+ * @return LocalDate|float|null
14458+ */
14459+ public static function fromLocalDate(stdClass|float|null $value): LocalDate|float|null {
14460+ if (is_null($value)) {
14461+ return $value; /*null*/
14462+ } elseif (is_object($value)) {
14463+ return LocalDate::from($value); /*class*/
14464+ } elseif (is_float($value) || is_int($value)) {
14465+ return $value; /*float*/
14466+ } else {
14467+ throw new Exception('Cannot deserialize union value in TopLevel');
14468+ }
14469+ }
14470+
14471+ /**
14472+ * @throws Exception
14473+ * @return stdClass|float|null
14474+ */
14475+ public function toLocalDate(): stdClass|float|null {
14476+ if (TopLevel::validateLocalDate($this->localDate)) {
14477+ if (is_null($this->localDate)) {
14478+ return $this->localDate; /*null*/
14479+ } elseif ($this->localDate instanceof LocalDate) {
14480+ return $this->localDate->to(); /*class*/
14481+ } elseif (is_float($this->localDate) || is_int($this->localDate)) {
14482+ return $this->localDate; /*float*/
14483+ } else {
14484+ throw new Exception('Union value has no matching member in TopLevel');
14485+ }
14486+ }
14487+ throw new Exception('never get to this TopLevel::localDate');
14488+ }
14489+
14490+ /**
14491+ * @param LocalDate|float|null
14492+ * @return bool
14493+ * @throws Exception
14494+ */
14495+ public static function validateLocalDate(LocalDate|float|null $value): bool {
14496+ if (is_null($value)) {
14497+ if (!is_null($value)) {
14498+ throw new Exception("Attribute Error:TopLevel::localDate");
14499+ }
14500+ } elseif ($value instanceof LocalDate) {
14501+ $value->validate();
14502+ } elseif (is_float($value) || is_int($value)) {
14503+ if (!is_float($value) && !is_int($value)) {
14504+ throw new Exception("Attribute Error:TopLevel::localDate");
14505+ }
14506+ } else {
14507+ throw new Exception("Attribute Error:TopLevel::localDate");
14508+ }
14509+ return true;
14510+ }
14511+
14512+ /**
14513+ * @throws Exception
14514+ * @return LocalDate|float|null
14515+ */
14516+ public function getLocalDate(): LocalDate|float|null {
14517+ if (TopLevel::validateLocalDate($this->localDate)) {
14518+ return $this->localDate;
14519+ }
14520+ throw new Exception('never get to getLocalDate TopLevel::localDate');
14521+ }
14522+
14523+ /**
14524+ * @return LocalDate|float|null
14525+ */
14526+ public static function sampleLocalDate(): LocalDate|float|null {
14527+ return LocalDate::sample(); /*208:localDate*/
14528+ }
14529+
1444514530 /**
1444614531 * @param stdClass|float|null $value
1444714532 * @throws Exception
@@ -14515,7 +14600,7 @@ class TopLevel {
1451514600 * @return LocaleClass|float|null
1451614601 */
1451714602 public static function sampleLocale(): LocaleClass|float|null {
14518- return LocaleClass::sample(); /*208:locale*/
14603+ return LocaleClass::sample(); /*209:locale*/
1451914604 }
1452014605
1452114606 /**
@@ -14591,7 +14676,7 @@ class TopLevel {
1459114676 * @return Lock|float|null
1459214677 */
1459314678 public static function sampleLock(): Lock|float|null {
14594- return Lock::sample(); /*209:lock*/
14679+ return Lock::sample(); /*210:lock*/
1459514680 }
1459614681
1459714682 /**
@@ -14667,7 +14752,7 @@ class TopLevel {
1466714752 * @return Long|float|null
1466814753 */
1466914754 public static function sampleLong(): Long|float|null {
14670- return Long::sample(); /*210:long*/
14755+ return Long::sample(); /*211:long*/
1467114756 }
1467214757
1467314758 /**
@@ -14743,7 +14828,7 @@ class TopLevel {
1474314828 * @return Map|float|null
1474414829 */
1474514830 public static function sampleMap(): Map|float|null {
14746- return Map::sample(); /*211:map*/
14831+ return Map::sample(); /*212:map*/
1474714832 }
1474814833
1474914834 /**
@@ -14819,7 +14904,7 @@ class TopLevel {
1481914904 * @return MapEntry|float|null
1482014905 */
1482114906 public static function sampleMapEntry(): MapEntry|float|null {
14822- return MapEntry::sample(); /*212:mapEntry*/
14907+ return MapEntry::sample(); /*213:mapEntry*/
1482314908 }
1482414909
1482514910 /**
@@ -14895,7 +14980,7 @@ class TopLevel {
1489514980 * @return MetadataPropertyHandling|float|null
1489614981 */
1489714982 public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null {
14898- return MetadataPropertyHandling::sample(); /*213:metadataPropertyHandling*/
14983+ return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/
1489914984 }
1490014985
1490114986 /**
@@ -14971,7 +15056,7 @@ class TopLevel {
1497115056 * @return Module|float|null
1497215057 */
1497315058 public static function sampleModule(): Module|float|null {
14974- return Module::sample(); /*214:module*/
15059+ return Module::sample(); /*215:module*/
1497515060 }
1497615061
1497715062 /**
@@ -15047,7 +15132,7 @@ class TopLevel {
1504715132 * @return Mutable|float|null
1504815133 */
1504915134 public static function sampleMutable(): Mutable|float|null {
15050- return Mutable::sample(); /*215:mutable*/
15135+ return Mutable::sample(); /*216:mutable*/
1505115136 }
1505215137
1505315138 /**
@@ -15123,7 +15208,7 @@ class TopLevel {
1512315208 * @return Mutating|float|null
1512415209 */
1512515210 public static function sampleMutating(): Mutating|float|null {
15126- return Mutating::sample(); /*216:mutating*/
15211+ return Mutating::sample(); /*217:mutating*/
1512715212 }
1512815213
1512915214 /**
@@ -15199,7 +15284,7 @@ class TopLevel {
1519915284 * @return NamespaceClass|float|null
1520015285 */
1520115286 public static function sampleNamespace(): NamespaceClass|float|null {
15202- return NamespaceClass::sample(); /*217:namespace*/
15287+ return NamespaceClass::sample(); /*218:namespace*/
1520315288 }
1520415289
1520515290 /**
@@ -15275,7 +15360,7 @@ class TopLevel {
1527515360 * @return Native|float|null
1527615361 */
1527715362 public static function sampleNative(): Native|float|null {
15278- return Native::sample(); /*218:native*/
15363+ return Native::sample(); /*219:native*/
1527915364 }
1528015365
1528115366 /**
@@ -15351,7 +15436,7 @@ class TopLevel {
1535115436 * @return NewClass|float|null
1535215437 */
1535315438 public static function sampleNew(): NewClass|float|null {
15354- return NewClass::sample(); /*219:new*/
15439+ return NewClass::sample(); /*220:new*/
1535515440 }
1535615441
1535715442 /**
@@ -15427,7 +15512,7 @@ class TopLevel {
1542715512 * @return Newtonsoft|float|null
1542815513 */
1542915514 public static function sampleNewtonsoft(): Newtonsoft|float|null {
15430- return Newtonsoft::sample(); /*220:newtonsoft*/
15515+ return Newtonsoft::sample(); /*221:newtonsoft*/
1543115516 }
1543215517
1543315518 /**
@@ -15503,7 +15588,7 @@ class TopLevel {
1550315588 * @return Nil|float|null
1550415589 */
1550515590 public static function sampleNil(): Nil|float|null {
15506- return Nil::sample(); /*221:nil*/
15591+ return Nil::sample(); /*222:nil*/
1550715592 }
1550815593
1550915594 /**
@@ -15579,7 +15664,7 @@ class TopLevel {
1557915664 * @return No|float|null
1558015665 */
1558115666 public static function sampleNo(): No|float|null {
15582- return No::sample(); /*222:no*/
15667+ return No::sample(); /*223:no*/
1558315668 }
1558415669
1558515670 /**
@@ -15655,7 +15740,7 @@ class TopLevel {
1565515740 * @return Noexcept|float|null
1565615741 */
1565715742 public static function sampleNoexcept(): Noexcept|float|null {
15658- return Noexcept::sample(); /*223:noexcept*/
15743+ return Noexcept::sample(); /*224:noexcept*/
1565915744 }
1566015745
1566115746 /**
@@ -15731,7 +15816,7 @@ class TopLevel {
1573115816 * @return Nonatomic|float|null
1573215817 */
1573315818 public static function sampleNonatomic(): Nonatomic|float|null {
15734- return Nonatomic::sample(); /*224:nonatomic*/
15819+ return Nonatomic::sample(); /*225:nonatomic*/
1573515820 }
1573615821
1573715822 /**
@@ -15807,7 +15892,7 @@ class TopLevel {
1580715892 * @return NoneClass|float|null
1580815893 */
1580915894 public static function sampleTopLevelNone(): NoneClass|float|null {
15810- return NoneClass::sample(); /*225:topLevelNone*/
15895+ return NoneClass::sample(); /*226:topLevelNone*/
1581115896 }
1581215897
1581315898 /**
@@ -15883,7 +15968,7 @@ class TopLevel {
1588315968 * @return None|float|null
1588415969 */
1588515970 public static function sampleNone(): None|float|null {
15886- return None::sample(); /*226:none*/
15971+ return None::sample(); /*227:none*/
1588715972 }
1588815973
1588915974 /**
@@ -15959,7 +16044,7 @@ class TopLevel {
1595916044 * @return Nonlocal|float|null
1596016045 */
1596116046 public static function sampleNonlocal(): Nonlocal|float|null {
15962- return Nonlocal::sample(); /*227:nonlocal*/
16047+ return Nonlocal::sample(); /*228:nonlocal*/
1596316048 }
1596416049
1596516050 /**
@@ -16035,7 +16120,7 @@ class TopLevel {
1603516120 * @return Nonmutating|float|null
1603616121 */
1603716122 public static function sampleNonmutating(): Nonmutating|float|null {
16038- return Nonmutating::sample(); /*228:nonmutating*/
16123+ return Nonmutating::sample(); /*229:nonmutating*/
1603916124 }
1604016125
1604116126 /**
@@ -16111,7 +16196,7 @@ class TopLevel {
1611116196 * @return NoSuchMethod|float|null
1611216197 */
1611316198 public static function sampleNoSuchMethod(): NoSuchMethod|float|null {
16114- return NoSuchMethod::sample(); /*229:noSuchMethod*/
16199+ return NoSuchMethod::sample(); /*230:noSuchMethod*/
1611516200 }
1611616201
1611716202 /**
@@ -16187,7 +16272,7 @@ class TopLevel {
1618716272 * @return Not|float|null
1618816273 */
1618916274 public static function sampleNot(): Not|float|null {
16190- return Not::sample(); /*230:not*/
16275+ return Not::sample(); /*231:not*/
1619116276 }
1619216277
1619316278 /**
@@ -16263,7 +16348,7 @@ class TopLevel {
1626316348 * @return NotEq|float|null
1626416349 */
1626516350 public static function sampleNotEq(): NotEq|float|null {
16266- return NotEq::sample(); /*231:notEq*/
16351+ return NotEq::sample(); /*232:notEq*/
1626716352 }
1626816353
1626916354 /**
@@ -16339,7 +16424,7 @@ class TopLevel {
1633916424 * @return NSError|float|null
1634016425 */
1634116426 public static function sampleNSError(): NSError|float|null {
16342- return NSError::sample(); /*232:nsError*/
16427+ return NSError::sample(); /*233:nsError*/
1634316428 }
1634416429
1634516430 /**
@@ -16415,7 +16500,7 @@ class TopLevel {
1641516500 * @return NSObject|float|null
1641616501 */
1641716502 public static function sampleNSObject(): NSObject|float|null {
16418- return NSObject::sample(); /*233:nsObject*/
16503+ return NSObject::sample(); /*234:nsObject*/
1641916504 }
1642016505
1642116506 /**
@@ -16491,7 +16576,7 @@ class TopLevel {
1649116576 * @return NSString|float|null
1649216577 */
1649316578 public static function sampleNSString(): NSString|float|null {
16494- return NSString::sample(); /*234:nsString*/
16579+ return NSString::sample(); /*235:nsString*/
1649516580 }
1649616581
1649716582 /**
@@ -16567,7 +16652,7 @@ class TopLevel {
1656716652 * @return NULLClass|float|null
1656816653 */
1656916654 public static function sampleNull(): NULLClass|float|null {
16570- return NULLClass::sample(); /*235:null*/
16655+ return NULLClass::sample(); /*236:null*/
1657116656 }
1657216657
1657316658 /**
@@ -16643,7 +16728,7 @@ class TopLevel {
1664316728 * @return UnionNullNull|float|null
1664416729 */
1664516730 public static function sampleTopLevelNull(): UnionNullNull|float|null {
16646- return UnionNullNull::sample(); /*236:topLevelNull*/
16731+ return UnionNullNull::sample(); /*237:topLevelNull*/
1664716732 }
1664816733
1664916734 /**
@@ -16719,7 +16804,7 @@ class TopLevel {
1671916804 * @return Nullptr|float|null
1672016805 */
1672116806 public static function sampleNullptr(): Nullptr|float|null {
16722- return Nullptr::sample(); /*237:nullptr*/
16807+ return Nullptr::sample(); /*238:nullptr*/
1672316808 }
1672416809
1672516810 /**
@@ -16795,7 +16880,7 @@ class TopLevel {
1679516880 * @return Number|float|null
1679616881 */
1679716882 public static function sampleNumber(): Number|float|null {
16798- return Number::sample(); /*238:number*/
16883+ return Number::sample(); /*239:number*/
1679916884 }
1680016885
1680116886 /**
@@ -16871,7 +16956,7 @@ class TopLevel {
1687116956 * @return ObjectClass|float|null
1687216957 */
1687316958 public static function sampleObject(): ObjectClass|float|null {
16874- return ObjectClass::sample(); /*239:object*/
16959+ return ObjectClass::sample(); /*240:object*/
1687516960 }
1687616961
1687716962 /**
@@ -16947,7 +17032,7 @@ class TopLevel {
1694717032 * @return ObjectMapper|float|null
1694817033 */
1694917034 public static function sampleObjectMapper(): ObjectMapper|float|null {
16950- return ObjectMapper::sample(); /*240:objectMapper*/
17035+ return ObjectMapper::sample(); /*241:objectMapper*/
1695117036 }
1695217037
1695317038 /**
@@ -17023,7 +17108,159 @@ class TopLevel {
1702317108 * @return Of|float|null
1702417109 */
1702517110 public static function sampleOf(): Of|float|null {
17026- return Of::sample(); /*241:of*/
17111+ return Of::sample(); /*242:of*/
17112+ }
17113+
17114+ /**
17115+ * @param stdClass|float|null $value
17116+ * @throws Exception
17117+ * @return OffsetDateTime|float|null
17118+ */
17119+ public static function fromOffsetDateTime(stdClass|float|null $value): OffsetDateTime|float|null {
17120+ if (is_null($value)) {
17121+ return $value; /*null*/
17122+ } elseif (is_object($value)) {
17123+ return OffsetDateTime::from($value); /*class*/
17124+ } elseif (is_float($value) || is_int($value)) {
17125+ return $value; /*float*/
17126+ } else {
17127+ throw new Exception('Cannot deserialize union value in TopLevel');
17128+ }
17129+ }
17130+
17131+ /**
17132+ * @throws Exception
17133+ * @return stdClass|float|null
17134+ */
17135+ public function toOffsetDateTime(): stdClass|float|null {
17136+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
17137+ if (is_null($this->offsetDateTime)) {
17138+ return $this->offsetDateTime; /*null*/
17139+ } elseif ($this->offsetDateTime instanceof OffsetDateTime) {
17140+ return $this->offsetDateTime->to(); /*class*/
17141+ } elseif (is_float($this->offsetDateTime) || is_int($this->offsetDateTime)) {
17142+ return $this->offsetDateTime; /*float*/
17143+ } else {
17144+ throw new Exception('Union value has no matching member in TopLevel');
17145+ }
17146+ }
17147+ throw new Exception('never get to this TopLevel::offsetDateTime');
17148+ }
17149+
17150+ /**
17151+ * @param OffsetDateTime|float|null
17152+ * @return bool
17153+ * @throws Exception
17154+ */
17155+ public static function validateOffsetDateTime(OffsetDateTime|float|null $value): bool {
17156+ if (is_null($value)) {
17157+ if (!is_null($value)) {
17158+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17159+ }
17160+ } elseif ($value instanceof OffsetDateTime) {
17161+ $value->validate();
17162+ } elseif (is_float($value) || is_int($value)) {
17163+ if (!is_float($value) && !is_int($value)) {
17164+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17165+ }
17166+ } else {
17167+ throw new Exception("Attribute Error:TopLevel::offsetDateTime");
17168+ }
17169+ return true;
17170+ }
17171+
17172+ /**
17173+ * @throws Exception
17174+ * @return OffsetDateTime|float|null
17175+ */
17176+ public function getOffsetDateTime(): OffsetDateTime|float|null {
17177+ if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) {
17178+ return $this->offsetDateTime;
17179+ }
17180+ throw new Exception('never get to getOffsetDateTime TopLevel::offsetDateTime');
17181+ }
17182+
17183+ /**
17184+ * @return OffsetDateTime|float|null
17185+ */
17186+ public static function sampleOffsetDateTime(): OffsetDateTime|float|null {
17187+ return OffsetDateTime::sample(); /*243:offsetDateTime*/
17188+ }
17189+
17190+ /**
17191+ * @param stdClass|float|null $value
17192+ * @throws Exception
17193+ * @return OffsetTime|float|null
17194+ */
17195+ public static function fromOffsetTime(stdClass|float|null $value): OffsetTime|float|null {
17196+ if (is_null($value)) {
17197+ return $value; /*null*/
17198+ } elseif (is_object($value)) {
17199+ return OffsetTime::from($value); /*class*/
17200+ } elseif (is_float($value) || is_int($value)) {
17201+ return $value; /*float*/
17202+ } else {
17203+ throw new Exception('Cannot deserialize union value in TopLevel');
17204+ }
17205+ }
17206+
17207+ /**
17208+ * @throws Exception
17209+ * @return stdClass|float|null
17210+ */
17211+ public function toOffsetTime(): stdClass|float|null {
17212+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
17213+ if (is_null($this->offsetTime)) {
17214+ return $this->offsetTime; /*null*/
17215+ } elseif ($this->offsetTime instanceof OffsetTime) {
17216+ return $this->offsetTime->to(); /*class*/
17217+ } elseif (is_float($this->offsetTime) || is_int($this->offsetTime)) {
17218+ return $this->offsetTime; /*float*/
17219+ } else {
17220+ throw new Exception('Union value has no matching member in TopLevel');
17221+ }
17222+ }
17223+ throw new Exception('never get to this TopLevel::offsetTime');
17224+ }
17225+
17226+ /**
17227+ * @param OffsetTime|float|null
17228+ * @return bool
17229+ * @throws Exception
17230+ */
17231+ public static function validateOffsetTime(OffsetTime|float|null $value): bool {
17232+ if (is_null($value)) {
17233+ if (!is_null($value)) {
17234+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17235+ }
17236+ } elseif ($value instanceof OffsetTime) {
17237+ $value->validate();
17238+ } elseif (is_float($value) || is_int($value)) {
17239+ if (!is_float($value) && !is_int($value)) {
17240+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17241+ }
17242+ } else {
17243+ throw new Exception("Attribute Error:TopLevel::offsetTime");
17244+ }
17245+ return true;
17246+ }
17247+
17248+ /**
17249+ * @throws Exception
17250+ * @return OffsetTime|float|null
17251+ */
17252+ public function getOffsetTime(): OffsetTime|float|null {
17253+ if (TopLevel::validateOffsetTime($this->offsetTime)) {
17254+ return $this->offsetTime;
17255+ }
17256+ throw new Exception('never get to getOffsetTime TopLevel::offsetTime');
17257+ }
17258+
17259+ /**
17260+ * @return OffsetTime|float|null
17261+ */
17262+ public static function sampleOffsetTime(): OffsetTime|float|null {
17263+ return OffsetTime::sample(); /*244:offsetTime*/
1702717264 }
1702817265
1702917266 /**
@@ -17099,7 +17336,7 @@ class TopLevel {
1709917336 * @return Oneway|float|null
1710017337 */
1710117338 public static function sampleOneway(): Oneway|float|null {
17102- return Oneway::sample(); /*242:oneway*/
17339+ return Oneway::sample(); /*245:oneway*/
1710317340 }
1710417341
1710517342 /**
@@ -17175,7 +17412,7 @@ class TopLevel {
1717517412 * @return Open|float|null
1717617413 */
1717717414 public static function sampleOpen(): Open|float|null {
17178- return Open::sample(); /*243:open*/
17415+ return Open::sample(); /*246:open*/
1717917416 }
1718017417
1718117418 /**
@@ -17251,7 +17488,7 @@ class TopLevel {
1725117488 * @return Operator|float|null
1725217489 */
1725317490 public static function sampleOperator(): Operator|float|null {
17254- return Operator::sample(); /*244:operator*/
17491+ return Operator::sample(); /*247:operator*/
1725517492 }
1725617493
1725717494 /**
@@ -17327,7 +17564,7 @@ class TopLevel {
1732717564 * @return Optional|float|null
1732817565 */
1732917566 public static function sampleOptional(): Optional|float|null {
17330- return Optional::sample(); /*245:optional*/
17567+ return Optional::sample(); /*248:optional*/
1733117568 }
1733217569
1733317570 /**
@@ -17403,7 +17640,7 @@ class TopLevel {
1740317640 * @return OrClass|float|null
1740417641 */
1740517642 public static function sampleOr(): OrClass|float|null {
17406- return OrClass::sample(); /*246:or*/
17643+ return OrClass::sample(); /*249:or*/
1740717644 }
1740817645
1740917646 /**
@@ -17479,7 +17716,7 @@ class TopLevel {
1747917716 * @return OrEq|float|null
1748017717 */
1748117718 public static function sampleOrEq(): OrEq|float|null {
17482- return OrEq::sample(); /*247:orEq*/
17719+ return OrEq::sample(); /*250:orEq*/
1748317720 }
1748417721
1748517722 /**
@@ -17555,7 +17792,7 @@ class TopLevel {
1755517792 * @return Out|float|null
1755617793 */
1755717794 public static function sampleOut(): Out|float|null {
17558- return Out::sample(); /*248:out*/
17795+ return Out::sample(); /*251:out*/
1755917796 }
1756017797
1756117798 /**
@@ -17631,7 +17868,7 @@ class TopLevel {
1763117868 * @return OverrideClass|float|null
1763217869 */
1763317870 public static function sampleOverride(): OverrideClass|float|null {
17634- return OverrideClass::sample(); /*249:override*/
17871+ return OverrideClass::sample(); /*252:override*/
1763517872 }
1763617873
1763717874 /**
@@ -17707,7 +17944,7 @@ class TopLevel {
1770717944 * @return Package|float|null
1770817945 */
1770917946 public static function samplePackage(): Package|float|null {
17710- return Package::sample(); /*250:package*/
17947+ return Package::sample(); /*253:package*/
1771117948 }
1771217949
1771317950 /**
@@ -17783,7 +18020,7 @@ class TopLevel {
1778318020 * @return Params|float|null
1778418021 */
1778518022 public static function sampleParams(): Params|float|null {
17786- return Params::sample(); /*251:params*/
18023+ return Params::sample(); /*254:params*/
1778718024 }
1778818025
1778918026 /**
@@ -17859,7 +18096,7 @@ class TopLevel {
1785918096 * @return Pass|float|null
1786018097 */
1786118098 public static function samplePass(): Pass|float|null {
17862- return Pass::sample(); /*252:pass*/
18099+ return Pass::sample(); /*255:pass*/
1786318100 }
1786418101
1786518102 /**
@@ -17935,7 +18172,7 @@ class TopLevel {
1793518172 * @return Port|float|null
1793618173 */
1793718174 public static function samplePort(): Port|float|null {
17938- return Port::sample(); /*253:port*/
18175+ return Port::sample(); /*256:port*/
1793918176 }
1794018177
1794118178 /**
@@ -18011,7 +18248,7 @@ class TopLevel {
1801118248 * @return Postfix|float|null
1801218249 */
1801318250 public static function samplePostfix(): Postfix|float|null {
18014- return Postfix::sample(); /*254:postfix*/
18251+ return Postfix::sample(); /*257:postfix*/
1801518252 }
1801618253
1801718254 /**
@@ -18087,7 +18324,7 @@ class TopLevel {
1808718324 * @return Precedence|float|null
1808818325 */
1808918326 public static function samplePrecedence(): Precedence|float|null {
18090- return Precedence::sample(); /*255:precedence*/
18327+ return Precedence::sample(); /*258:precedence*/
1809118328 }
1809218329
1809318330 /**
@@ -18163,7 +18400,7 @@ class TopLevel {
1816318400 * @return Prefix|float|null
1816418401 */
1816518402 public static function samplePrefix(): Prefix|float|null {
18166- return Prefix::sample(); /*256:prefix*/
18403+ return Prefix::sample(); /*259:prefix*/
1816718404 }
1816818405
1816918406 /**
@@ -18239,7 +18476,7 @@ class TopLevel {
1823918476 * @return PrintClass|float|null
1824018477 */
1824118478 public static function samplePrint(): PrintClass|float|null {
18242- return PrintClass::sample(); /*257:print*/
18479+ return PrintClass::sample(); /*260:print*/
1824318480 }
1824418481
1824518482 /**
@@ -18315,7 +18552,7 @@ class TopLevel {
1831518552 * @return Printf|float|null
1831618553 */
1831718554 public static function samplePrintf(): Printf|float|null {
18318- return Printf::sample(); /*258:printf*/
18555+ return Printf::sample(); /*261:printf*/
1831918556 }
1832018557
1832118558 /**
@@ -18391,7 +18628,7 @@ class TopLevel {
1839118628 * @return PrintMembers|float|null
1839218629 */
1839318630 public static function samplePrintMembers(): PrintMembers|float|null {
18394- return PrintMembers::sample(); /*259:printMembers*/
18631+ return PrintMembers::sample(); /*262:printMembers*/
1839518632 }
1839618633
1839718634 /**
@@ -18467,7 +18704,7 @@ class TopLevel {
1846718704 * @return PrivateClass|float|null
1846818705 */
1846918706 public static function samplePrivate(): PrivateClass|float|null {
18470- return PrivateClass::sample(); /*260:private*/
18707+ return PrivateClass::sample(); /*263:private*/
1847118708 }
1847218709
1847318710 /**
@@ -18543,7 +18780,7 @@ class TopLevel {
1854318780 * @return ProtectedClass|float|null
1854418781 */
1854518782 public static function sampleProtected(): ProtectedClass|float|null {
18546- return ProtectedClass::sample(); /*261:protected*/
18783+ return ProtectedClass::sample(); /*264:protected*/
1854718784 }
1854818785
1854918786 /**
@@ -18619,7 +18856,7 @@ class TopLevel {
1861918856 * @return Protocol|float|null
1862018857 */
1862118858 public static function sampleProtocol(): Protocol|float|null {
18622- return Protocol::sample(); /*262:protocol*/
18859+ return Protocol::sample(); /*265:protocol*/
1862318860 }
1862418861
1862518862 /**
@@ -18695,7 +18932,7 @@ class TopLevel {
1869518932 * @return ProtocolClass|float|null
1869618933 */
1869718934 public static function sampleTopLevelProtocol(): ProtocolClass|float|null {
18698- return ProtocolClass::sample(); /*263:topLevelProtocol*/
18935+ return ProtocolClass::sample(); /*266:topLevelProtocol*/
1869918936 }
1870018937
1870118938 /**
@@ -18771,7 +19008,7 @@ class TopLevel {
1877119008 * @return PublicClass|float|null
1877219009 */
1877319010 public static function samplePublic(): PublicClass|float|null {
18774- return PublicClass::sample(); /*264:public*/
19011+ return PublicClass::sample(); /*267:public*/
1877519012 }
1877619013
1877719014 /**
@@ -18847,7 +19084,7 @@ class TopLevel {
1884719084 * @return Quicktype|float|null
1884819085 */
1884919086 public static function sampleQuicktype(): Quicktype|float|null {
18850- return Quicktype::sample(); /*265:quicktype*/
19087+ return Quicktype::sample(); /*268:quicktype*/
1885119088 }
1885219089
1885319090 /**
@@ -18923,7 +19160,7 @@ class TopLevel {
1892319160 * @return Raise|float|null
1892419161 */
1892519162 public static function sampleRaise(): Raise|float|null {
18926- return Raise::sample(); /*266:raise*/
19163+ return Raise::sample(); /*269:raise*/
1892719164 }
1892819165
1892919166 /**
@@ -18999,7 +19236,7 @@ class TopLevel {
1899919236 * @return Range|float|null
1900019237 */
1900119238 public static function sampleRange(): Range|float|null {
19002- return Range::sample(); /*267:range*/
19239+ return Range::sample(); /*270:range*/
1900319240 }
1900419241
1900519242 /**
@@ -19075,7 +19312,7 @@ class TopLevel {
1907519312 * @return ReadonlyClass|float|null
1907619313 */
1907719314 public static function sampleReadonly(): ReadonlyClass|float|null {
19078- return ReadonlyClass::sample(); /*268:readonly*/
19315+ return ReadonlyClass::sample(); /*271:readonly*/
1907919316 }
1908019317
1908119318 /**
@@ -19151,7 +19388,7 @@ class TopLevel {
1915119388 * @return Ref|float|null
1915219389 */
1915319390 public static function sampleRef(): Ref|float|null {
19154- return Ref::sample(); /*269:ref*/
19391+ return Ref::sample(); /*272:ref*/
1915519392 }
1915619393
1915719394 /**
@@ -19227,7 +19464,7 @@ class TopLevel {
1922719464 * @return RegExp|float|null
1922819465 */
1922919466 public static function sampleRegExp(): RegExp|float|null {
19230- return RegExp::sample(); /*270:regExp*/
19467+ return RegExp::sample(); /*273:regExp*/
1923119468 }
1923219469
1923319470 /**
@@ -19303,7 +19540,7 @@ class TopLevel {
1930319540 * @return Register|float|null
1930419541 */
1930519542 public static function sampleRegister(): Register|float|null {
19306- return Register::sample(); /*271:register*/
19543+ return Register::sample(); /*274:register*/
1930719544 }
1930819545
1930919546 /**
@@ -19379,7 +19616,7 @@ class TopLevel {
1937919616 * @return ReinterpretCast|float|null
1938019617 */
1938119618 public static function sampleReinterpretCast(): ReinterpretCast|float|null {
19382- return ReinterpretCast::sample(); /*272:reinterpretCast*/
19619+ return ReinterpretCast::sample(); /*275:reinterpretCast*/
1938319620 }
1938419621
1938519622 /**
@@ -19455,7 +19692,7 @@ class TopLevel {
1945519692 * @return Repeat|float|null
1945619693 */
1945719694 public static function sampleRepeat(): Repeat|float|null {
19458- return Repeat::sample(); /*273:repeat*/
19695+ return Repeat::sample(); /*276:repeat*/
1945919696 }
1946019697
1946119698 /**
@@ -19531,7 +19768,7 @@ class TopLevel {
1953119768 * @return RequireClass|float|null
1953219769 */
1953319770 public static function sampleRequire(): RequireClass|float|null {
19534- return RequireClass::sample(); /*274:require*/
19771+ return RequireClass::sample(); /*277:require*/
1953519772 }
1953619773
1953719774 /**
@@ -19607,7 +19844,7 @@ class TopLevel {
1960719844 * @return Required|float|null
1960819845 */
1960919846 public static function sampleRequired(): Required|float|null {
19610- return Required::sample(); /*275:required*/
19847+ return Required::sample(); /*278:required*/
1961119848 }
1961219849
1961319850 /**
@@ -19683,7 +19920,7 @@ class TopLevel {
1968319920 * @return Requires|float|null
1968419921 */
1968519922 public static function sampleRequires(): Requires|float|null {
19686- return Requires::sample(); /*276:requires*/
19923+ return Requires::sample(); /*279:requires*/
1968719924 }
1968819925
1968919926 /**
@@ -19759,7 +19996,7 @@ class TopLevel {
1975919996 * @return Restrict|float|null
1976019997 */
1976119998 public static function sampleRestrict(): Restrict|float|null {
19762- return Restrict::sample(); /*277:restrict*/
19999+ return Restrict::sample(); /*280:restrict*/
1976320000 }
1976420001
1976520002 /**
@@ -19835,7 +20072,7 @@ class TopLevel {
1983520072 * @return Retain|float|null
1983620073 */
1983720074 public static function sampleRetain(): Retain|float|null {
19838- return Retain::sample(); /*278:retain*/
20075+ return Retain::sample(); /*281:retain*/
1983920076 }
1984020077
1984120078 /**
@@ -19911,7 +20148,7 @@ class TopLevel {
1991120148 * @return Rethrows|float|null
1991220149 */
1991320150 public static function sampleRethrows(): Rethrows|float|null {
19914- return Rethrows::sample(); /*279:rethrows*/
20151+ return Rethrows::sample(); /*282:rethrows*/
1991520152 }
1991620153
1991720154 /**
@@ -19987,7 +20224,7 @@ class TopLevel {
1998720224 * @return ReturnClass|float|null
1998820225 */
1998920226 public static function sampleReturn(): ReturnClass|float|null {
19990- return ReturnClass::sample(); /*280:return*/
20227+ return ReturnClass::sample(); /*283:return*/
1999120228 }
1999220229
1999320230 /**
@@ -20063,7 +20300,7 @@ class TopLevel {
2006320300 * @return Right|float|null
2006420301 */
2006520302 public static function sampleRight(): Right|float|null {
20066- return Right::sample(); /*281:right*/
20303+ return Right::sample(); /*284:right*/
2006720304 }
2006820305
2006920306 /**
@@ -20139,7 +20376,7 @@ class TopLevel {
2013920376 * @return RuntimeType|float|null
2014020377 */
2014120378 public static function sampleRuntimeType(): RuntimeType|float|null {
20142- return RuntimeType::sample(); /*282:runtimeType*/
20379+ return RuntimeType::sample(); /*285:runtimeType*/
2014320380 }
2014420381
2014520382 /**
@@ -20215,7 +20452,7 @@ class TopLevel {
2021520452 * @return S|float|null
2021620453 */
2021720454 public static function sampleS(): S|float|null {
20218- return S::sample(); /*283:s*/
20455+ return S::sample(); /*286:s*/
2021920456 }
2022020457
2022120458 /**
@@ -20291,7 +20528,7 @@ class TopLevel {
2029120528 * @return Sbyte|float|null
2029220529 */
2029320530 public static function sampleSbyte(): Sbyte|float|null {
20294- return Sbyte::sample(); /*284:sbyte*/
20531+ return Sbyte::sample(); /*287:sbyte*/
2029520532 }
2029620533
2029720534 /**
@@ -20367,7 +20604,7 @@ class TopLevel {
2036720604 * @return Sealed|float|null
2036820605 */
2036920606 public static function sampleSealed(): Sealed|float|null {
20370- return Sealed::sample(); /*285:sealed*/
20607+ return Sealed::sample(); /*288:sealed*/
2037120608 }
2037220609
2037320610 /**
@@ -20443,7 +20680,7 @@ class TopLevel {
2044320680 * @return Sel|float|null
2044420681 */
2044520682 public static function sampleSel(): Sel|float|null {
20446- return Sel::sample(); /*286:sel*/
20683+ return Sel::sample(); /*289:sel*/
2044720684 }
2044820685
2044920686 /**
@@ -20519,7 +20756,7 @@ class TopLevel {
2051920756 * @return Select|float|null
2052020757 */
2052120758 public static function sampleSelect(): Select|float|null {
20522- return Select::sample(); /*287:select*/
20759+ return Select::sample(); /*290:select*/
2052320760 }
2052420761
2052520762 /**
@@ -20595,7 +20832,7 @@ class TopLevel {
2059520832 * @return SelfClass|float|null
2059620833 */
2059720834 public static function sampleSelf(): SelfClass|float|null {
20598- return SelfClass::sample(); /*288:self*/
20835+ return SelfClass::sample(); /*291:self*/
2059920836 }
2060020837
2060120838 /**
@@ -20671,7 +20908,7 @@ class TopLevel {
2067120908 * @return UnionSelfSelf|float|null
2067220909 */
2067320910 public static function sampleTopLevelSelf(): UnionSelfSelf|float|null {
20674- return UnionSelfSelf::sample(); /*289:topLevelSelf*/
20911+ return UnionSelfSelf::sample(); /*292:topLevelSelf*/
2067520912 }
2067620913
2067720914 /**
@@ -20747,7 +20984,7 @@ class TopLevel {
2074720984 * @return Sendable|float|null
2074820985 */
2074920986 public static function sampleSendable(): Sendable|float|null {
20750- return Sendable::sample(); /*290:sendable*/
20987+ return Sendable::sample(); /*293:sendable*/
2075120988 }
2075220989
2075320990 /**
@@ -20823,7 +21060,7 @@ class TopLevel {
2082321060 * @return Serialize|float|null
2082421061 */
2082521062 public static function sampleSerialize(): Serialize|float|null {
20826- return Serialize::sample(); /*291:serialize*/
21063+ return Serialize::sample(); /*294:serialize*/
2082721064 }
2082821065
2082921066 /**
@@ -20899,7 +21136,7 @@ class TopLevel {
2089921136 * @return SerializerProvider|float|null
2090021137 */
2090121138 public static function sampleSerializerProvider(): SerializerProvider|float|null {
20902- return SerializerProvider::sample(); /*292:serializerProvider*/
21139+ return SerializerProvider::sample(); /*295:serializerProvider*/
2090321140 }
2090421141
2090521142 /**
@@ -20975,7 +21212,7 @@ class TopLevel {
2097521212 * @return Set|float|null
2097621213 */
2097721214 public static function sampleSet(): Set|float|null {
20978- return Set::sample(); /*293:set*/
21215+ return Set::sample(); /*296:set*/
2097921216 }
2098021217
2098121218 /**
@@ -21051,7 +21288,7 @@ class TopLevel {
2105121288 * @return Short|float|null
2105221289 */
2105321290 public static function sampleShort(): Short|float|null {
21054- return Short::sample(); /*294:short*/
21291+ return Short::sample(); /*297:short*/
2105521292 }
2105621293
2105721294 /**
@@ -21127,7 +21364,7 @@ class TopLevel {
2112721364 * @return Signed|float|null
2112821365 */
2112921366 public static function sampleSigned(): Signed|float|null {
21130- return Signed::sample(); /*295:signed*/
21367+ return Signed::sample(); /*298:signed*/
2113121368 }
2113221369
2113321370 /**
@@ -21203,7 +21440,7 @@ class TopLevel {
2120321440 * @return SimpleModule|float|null
2120421441 */
2120521442 public static function sampleSimpleModule(): SimpleModule|float|null {
21206- return SimpleModule::sample(); /*296:simpleModule*/
21443+ return SimpleModule::sample(); /*299:simpleModule*/
2120721444 }
2120821445
2120921446 /**
@@ -21279,7 +21516,7 @@ class TopLevel {
2127921516 * @return Sizeof|float|null
2128021517 */
2128121518 public static function sampleSizeof(): Sizeof|float|null {
21282- return Sizeof::sample(); /*297:sizeof*/
21519+ return Sizeof::sample(); /*300:sizeof*/
2128321520 }
2128421521
2128521522 /**
@@ -21355,7 +21592,7 @@ class TopLevel {
2135521592 * @return Stackalloc|float|null
2135621593 */
2135721594 public static function sampleStackalloc(): Stackalloc|float|null {
21358- return Stackalloc::sample(); /*298:stackalloc*/
21595+ return Stackalloc::sample(); /*301:stackalloc*/
2135921596 }
2136021597
2136121598 /**
@@ -21431,7 +21668,7 @@ class TopLevel {
2143121668 * @return Standards|float|null
2143221669 */
2143321670 public static function sampleStandards(): Standards|float|null {
21434- return Standards::sample(); /*299:standards*/
21671+ return Standards::sample(); /*302:standards*/
2143521672 }
2143621673
2143721674 /**
@@ -21507,7 +21744,7 @@ class TopLevel {
2150721744 * @return StaticClass|float|null
2150821745 */
2150921746 public static function sampleStatic(): StaticClass|float|null {
21510- return StaticClass::sample(); /*300:static*/
21747+ return StaticClass::sample(); /*303:static*/
2151121748 }
2151221749
2151321750 /**
@@ -21583,7 +21820,7 @@ class TopLevel {
2158321820 * @return StaticAssert|float|null
2158421821 */
2158521822 public static function sampleStaticAssert(): StaticAssert|float|null {
21586- return StaticAssert::sample(); /*301:staticAssert*/
21823+ return StaticAssert::sample(); /*304:staticAssert*/
2158721824 }
2158821825
2158921826 /**
@@ -21659,7 +21896,7 @@ class TopLevel {
2165921896 * @return StaticCast|float|null
2166021897 */
2166121898 public static function sampleStaticCast(): StaticCast|float|null {
21662- return StaticCast::sample(); /*302:staticCast*/
21899+ return StaticCast::sample(); /*305:staticCast*/
2166321900 }
2166421901
2166521902 /**
@@ -21735,7 +21972,7 @@ class TopLevel {
2173521972 * @return StdDeserializer|float|null
2173621973 */
2173721974 public static function sampleStdDeserializer(): StdDeserializer|float|null {
21738- return StdDeserializer::sample(); /*303:stdDeserializer*/
21975+ return StdDeserializer::sample(); /*306:stdDeserializer*/
2173921976 }
2174021977
2174121978 /**
@@ -21811,7 +22048,7 @@ class TopLevel {
2181122048 * @return StdSerializer|float|null
2181222049 */
2181322050 public static function sampleStdSerializer(): StdSerializer|float|null {
21814- return StdSerializer::sample(); /*304:stdSerializer*/
22051+ return StdSerializer::sample(); /*307:stdSerializer*/
2181522052 }
2181622053
2181722054 /**
@@ -21887,7 +22124,7 @@ class TopLevel {
2188722124 * @return Strictfp|float|null
2188822125 */
2188922126 public static function sampleStrictfp(): Strictfp|float|null {
21890- return Strictfp::sample(); /*305:strictfp*/
22127+ return Strictfp::sample(); /*308:strictfp*/
2189122128 }
2189222129
2189322130 /**
@@ -21963,7 +22200,7 @@ class TopLevel {
2196322200 * @return StringClass|float|null
2196422201 */
2196522202 public static function sampleString(): StringClass|float|null {
21966- return StringClass::sample(); /*306:string*/
22203+ return StringClass::sample(); /*309:string*/
2196722204 }
2196822205
2196922206 /**
@@ -22039,7 +22276,7 @@ class TopLevel {
2203922276 * @return Struct|float|null
2204022277 */
2204122278 public static function sampleStruct(): Struct|float|null {
22042- return Struct::sample(); /*307:struct*/
22279+ return Struct::sample(); /*310:struct*/
2204322280 }
2204422281
2204522282 /**
@@ -22115,7 +22352,7 @@ class TopLevel {
2211522352 * @return Subscript|float|null
2211622353 */
2211722354 public static function sampleSubscript(): Subscript|float|null {
22118- return Subscript::sample(); /*308:subscript*/
22355+ return Subscript::sample(); /*311:subscript*/
2211922356 }
2212022357
2212122358 /**
@@ -22191,7 +22428,7 @@ class TopLevel {
2219122428 * @return Super|float|null
2219222429 */
2219322430 public static function sampleSuper(): Super|float|null {
22194- return Super::sample(); /*309:super*/
22431+ return Super::sample(); /*312:super*/
2219522432 }
2219622433
2219722434 /**
@@ -22267,7 +22504,7 @@ class TopLevel {
2226722504 * @return SwitchClass|float|null
2226822505 */
2226922506 public static function sampleSwitch(): SwitchClass|float|null {
22270- return SwitchClass::sample(); /*310:switch*/
22507+ return SwitchClass::sample(); /*313:switch*/
2227122508 }
2227222509
2227322510 /**
@@ -22343,7 +22580,7 @@ class TopLevel {
2234322580 * @return Symbol|float|null
2234422581 */
2234522582 public static function sampleSymbol(): Symbol|float|null {
22346- return Symbol::sample(); /*311:symbol*/
22583+ return Symbol::sample(); /*314:symbol*/
2234722584 }
2234822585
2234922586 /**
@@ -22419,7 +22656,7 @@ class TopLevel {
2241922656 * @return Synchronized|float|null
2242022657 */
2242122658 public static function sampleSynchronized(): Synchronized|float|null {
22422- return Synchronized::sample(); /*312:synchronized*/
22659+ return Synchronized::sample(); /*315:synchronized*/
2242322660 }
2242422661
2242522662 /**
@@ -22495,7 +22732,7 @@ class TopLevel {
2249522732 * @return System|float|null
2249622733 */
2249722734 public static function sampleSystem(): System|float|null {
22498- return System::sample(); /*313:system*/
22735+ return System::sample(); /*316:system*/
2249922736 }
2250022737
2250122738 /**
@@ -22571,7 +22808,7 @@ class TopLevel {
2257122808 * @return Template|float|null
2257222809 */
2257322810 public static function sampleTemplate(): Template|float|null {
22574- return Template::sample(); /*314:template*/
22811+ return Template::sample(); /*317:template*/
2257522812 }
2257622813
2257722814 /**
@@ -22647,7 +22884,7 @@ class TopLevel {
2264722884 * @return Then|float|null
2264822885 */
2264922886 public static function sampleThen(): Then|float|null {
22650- return Then::sample(); /*315:then*/
22887+ return Then::sample(); /*318:then*/
2265122888 }
2265222889
2265322890 /**
@@ -22723,7 +22960,7 @@ class TopLevel {
2272322960 * @return This|float|null
2272422961 */
2272522962 public static function sampleTopLevelThis(): This|float|null {
22726- return This::sample(); /*316:topLevelThis*/
22963+ return This::sample(); /*319:topLevelThis*/
2272722964 }
2272822965
2272922966 /**
@@ -22799,7 +23036,7 @@ class TopLevel {
2279923036 * @return ThreadLocal|float|null
2280023037 */
2280123038 public static function sampleThreadLocal(): ThreadLocal|float|null {
22802- return ThreadLocal::sample(); /*317:threadLocal*/
23039+ return ThreadLocal::sample(); /*320:threadLocal*/
2280323040 }
2280423041
2280523042 /**
@@ -22875,7 +23112,7 @@ class TopLevel {
2287523112 * @return ThrowClass|float|null
2287623113 */
2287723114 public static function sampleThrow(): ThrowClass|float|null {
22878- return ThrowClass::sample(); /*318:throw*/
23115+ return ThrowClass::sample(); /*321:throw*/
2287923116 }
2288023117
2288123118 /**
@@ -22951,7 +23188,7 @@ class TopLevel {
2295123188 * @return Throws|float|null
2295223189 */
2295323190 public static function sampleThrows(): Throws|float|null {
22954- return Throws::sample(); /*319:throws*/
23191+ return Throws::sample(); /*322:throws*/
2295523192 }
2295623193
2295723194 /**
@@ -23027,7 +23264,7 @@ class TopLevel {
2302723264 * @return TimeOnly|float|null
2302823265 */
2302923266 public static function sampleTimeOnly(): TimeOnly|float|null {
23030- return TimeOnly::sample(); /*320:timeOnly*/
23267+ return TimeOnly::sample(); /*323:timeOnly*/
2303123268 }
2303223269
2303323270 /**
@@ -23103,7 +23340,7 @@ class TopLevel {
2310323340 * @return TimeOnlyConverter|float|null
2310423341 */
2310523342 public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null {
23106- return TimeOnlyConverter::sample(); /*321:timeOnlyConverter*/
23343+ return TimeOnlyConverter::sample(); /*324:timeOnlyConverter*/
2310723344 }
2310823345
2310923346 /**
@@ -23179,7 +23416,7 @@ class TopLevel {
2317923416 * @return TimeZone|float|null
2318023417 */
2318123418 public static function sampleTimeZone(): TimeZone|float|null {
23182- return TimeZone::sample(); /*322:timeZone*/
23419+ return TimeZone::sample(); /*325:timeZone*/
2318323420 }
2318423421
2318523422 /**
@@ -23255,7 +23492,7 @@ class TopLevel {
2325523492 * @return ToJSON|float|null
2325623493 */
2325723494 public static function sampleToJSON(): ToJSON|float|null {
23258- return ToJSON::sample(); /*323:toJSON*/
23495+ return ToJSON::sample(); /*326:toJSON*/
2325923496 }
2326023497
2326123498 /**
@@ -23331,7 +23568,7 @@ class TopLevel {
2333123568 * @return TopLevelClass|float|null
2333223569 */
2333323570 public static function sampleTopLevel(): TopLevelClass|float|null {
23334- return TopLevelClass::sample(); /*324:topLevel*/
23571+ return TopLevelClass::sample(); /*327:topLevel*/
2333523572 }
2333623573
2333723574 /**
@@ -23407,7 +23644,7 @@ class TopLevel {
2340723644 * @return ToString|float|null
2340823645 */
2340923646 public static function sampleToString(): ToString|float|null {
23410- return ToString::sample(); /*325:toString*/
23647+ return ToString::sample(); /*328:toString*/
2341123648 }
2341223649
2341323650 /**
@@ -23483,7 +23720,7 @@ class TopLevel {
2348323720 * @return Transient|float|null
2348423721 */
2348523722 public static function sampleTransient(): Transient|float|null {
23486- return Transient::sample(); /*326:transient*/
23723+ return Transient::sample(); /*329:transient*/
2348723724 }
2348823725
2348923726 /**
@@ -23559,7 +23796,7 @@ class TopLevel {
2355923796 * @return TrueClass|float|null
2356023797 */
2356123798 public static function sampleTrue(): TrueClass|float|null {
23562- return TrueClass::sample(); /*327:true*/
23799+ return TrueClass::sample(); /*330:true*/
2356323800 }
2356423801
2356523802 /**
@@ -23635,7 +23872,7 @@ class TopLevel {
2363523872 * @return UnionTrueTrue|float|null
2363623873 */
2363723874 public static function sampleTopLevelTrue(): UnionTrueTrue|float|null {
23638- return UnionTrueTrue::sample(); /*328:topLevelTrue*/
23875+ return UnionTrueTrue::sample(); /*331:topLevelTrue*/
2363923876 }
2364023877
2364123878 /**
@@ -23711,7 +23948,7 @@ class TopLevel {
2371123948 * @return TryClass|float|null
2371223949 */
2371323950 public static function sampleTry(): TryClass|float|null {
23714- return TryClass::sample(); /*329:try*/
23951+ return TryClass::sample(); /*332:try*/
2371523952 }
2371623953
2371723954 /**
@@ -23787,7 +24024,7 @@ class TopLevel {
2378724024 * @return Type|float|null
2378824025 */
2378924026 public static function sampleType(): Type|float|null {
23790- return Type::sample(); /*330:type*/
24027+ return Type::sample(); /*333:type*/
2379124028 }
2379224029
2379324030 /**
@@ -23863,7 +24100,7 @@ class TopLevel {
2386324100 * @return TypeClass|float|null
2386424101 */
2386524102 public static function sampleTopLevelType(): TypeClass|float|null {
23866- return TypeClass::sample(); /*331:topLevelType*/
24103+ return TypeClass::sample(); /*334:topLevelType*/
2386724104 }
2386824105
2386924106 /**
@@ -23939,7 +24176,7 @@ class TopLevel {
2393924176 * @return Typealias|float|null
2394024177 */
2394124178 public static function sampleTypealias(): Typealias|float|null {
23942- return Typealias::sample(); /*332:typealias*/
24179+ return Typealias::sample(); /*335:typealias*/
2394324180 }
2394424181
2394524182 /**
@@ -24015,7 +24252,7 @@ class TopLevel {
2401524252 * @return Typedef|float|null
2401624253 */
2401724254 public static function sampleTypedef(): Typedef|float|null {
24018- return Typedef::sample(); /*333:typedef*/
24255+ return Typedef::sample(); /*336:typedef*/
2401924256 }
2402024257
2402124258 /**
@@ -24091,7 +24328,7 @@ class TopLevel {
2409124328 * @return Typeid|float|null
2409224329 */
2409324330 public static function sampleTypeid(): Typeid|float|null {
24094- return Typeid::sample(); /*334:typeid*/
24331+ return Typeid::sample(); /*337:typeid*/
2409524332 }
2409624333
2409724334 /**
@@ -24167,7 +24404,7 @@ class TopLevel {
2416724404 * @return Typename|float|null
2416824405 */
2416924406 public static function sampleTypename(): Typename|float|null {
24170- return Typename::sample(); /*335:typename*/
24407+ return Typename::sample(); /*338:typename*/
2417124408 }
2417224409
2417324410 /**
@@ -24243,7 +24480,7 @@ class TopLevel {
2424324480 * @return Typeof|float|null
2424424481 */
2424524482 public static function sampleTypeof(): Typeof|float|null {
24246- return Typeof::sample(); /*336:typeof*/
24483+ return Typeof::sample(); /*339:typeof*/
2424724484 }
2424824485
2424924486 /**
@@ -24319,7 +24556,7 @@ class TopLevel {
2431924556 * @return Uint|float|null
2432024557 */
2432124558 public static function sampleUint(): Uint|float|null {
24322- return Uint::sample(); /*337:uint*/
24559+ return Uint::sample(); /*340:uint*/
2432324560 }
2432424561
2432524562 /**
@@ -24395,7 +24632,7 @@ class TopLevel {
2439524632 * @return Ulong|float|null
2439624633 */
2439724634 public static function sampleUlong(): Ulong|float|null {
24398- return Ulong::sample(); /*338:ulong*/
24635+ return Ulong::sample(); /*341:ulong*/
2439924636 }
2440024637
2440124638 /**
@@ -24471,7 +24708,7 @@ class TopLevel {
2447124708 * @return Unchecked|float|null
2447224709 */
2447324710 public static function sampleUnchecked(): Unchecked|float|null {
24474- return Unchecked::sample(); /*339:unchecked*/
24711+ return Unchecked::sample(); /*342:unchecked*/
2447524712 }
2447624713
2447724714 /**
@@ -24547,7 +24784,7 @@ class TopLevel {
2454724784 * @return Undefined|float|null
2454824785 */
2454924786 public static function sampleUndefined(): Undefined|float|null {
24550- return Undefined::sample(); /*340:undefined*/
24787+ return Undefined::sample(); /*343:undefined*/
2455124788 }
2455224789
2455324790 /**
@@ -24623,7 +24860,7 @@ class TopLevel {
2462324860 * @return UnionClass|float|null
2462424861 */
2462524862 public static function sampleUnion(): UnionClass|float|null {
24626- return UnionClass::sample(); /*341:union*/
24863+ return UnionClass::sample(); /*344:union*/
2462724864 }
2462824865
2462924866 /**
@@ -24699,7 +24936,7 @@ class TopLevel {
2469924936 * @return Unowned|float|null
2470024937 */
2470124938 public static function sampleUnowned(): Unowned|float|null {
24702- return Unowned::sample(); /*342:unowned*/
24939+ return Unowned::sample(); /*345:unowned*/
2470324940 }
2470424941
2470524942 /**
@@ -24775,7 +25012,7 @@ class TopLevel {
2477525012 * @return Unsafe|float|null
2477625013 */
2477725014 public static function sampleUnsafe(): Unsafe|float|null {
24778- return Unsafe::sample(); /*343:unsafe*/
25015+ return Unsafe::sample(); /*346:unsafe*/
2477925016 }
2478025017
2478125018 /**
@@ -24851,7 +25088,7 @@ class TopLevel {
2485125088 * @return Unsigned|float|null
2485225089 */
2485325090 public static function sampleUnsigned(): Unsigned|float|null {
24854- return Unsigned::sample(); /*344:unsigned*/
25091+ return Unsigned::sample(); /*347:unsigned*/
2485525092 }
2485625093
2485725094 /**
@@ -24927,7 +25164,7 @@ class TopLevel {
2492725164 * @return Ushort|float|null
2492825165 */
2492925166 public static function sampleUshort(): Ushort|float|null {
24930- return Ushort::sample(); /*345:ushort*/
25167+ return Ushort::sample(); /*348:ushort*/
2493125168 }
2493225169
2493325170 /**
@@ -25003,7 +25240,7 @@ class TopLevel {
2500325240 * @return Using|float|null
2500425241 */
2500525242 public static function sampleUsing(): Using|float|null {
25006- return Using::sample(); /*346:using*/
25243+ return Using::sample(); /*349:using*/
2500725244 }
2500825245
2500925246 /**
@@ -25079,7 +25316,7 @@ class TopLevel {
2507925316 * @return Utf8JSONReader|float|null
2508025317 */
2508125318 public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null {
25082- return Utf8JSONReader::sample(); /*347:utf8JSONReader*/
25319+ return Utf8JSONReader::sample(); /*350:utf8JSONReader*/
2508325320 }
2508425321
2508525322 /**
@@ -25155,7 +25392,7 @@ class TopLevel {
2515525392 * @return Utf8JSONWriter|float|null
2515625393 */
2515725394 public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null {
25158- return Utf8JSONWriter::sample(); /*348:utf8JSONWriter*/
25395+ return Utf8JSONWriter::sample(); /*351:utf8JSONWriter*/
2515925396 }
2516025397
2516125398 /**
@@ -25231,7 +25468,7 @@ class TopLevel {
2523125468 * @return UUID|float|null
2523225469 */
2523325470 public static function sampleUUID(): UUID|float|null {
25234- return UUID::sample(); /*349:uuid*/
25471+ return UUID::sample(); /*352:uuid*/
2523525472 }
2523625473
2523725474 /**
@@ -25307,7 +25544,7 @@ class TopLevel {
2530725544 * @return VarClass|float|null
2530825545 */
2530925546 public static function sampleVar(): VarClass|float|null {
25310- return VarClass::sample(); /*350:var*/
25547+ return VarClass::sample(); /*353:var*/
2531125548 }
2531225549
2531325550 /**
@@ -25383,7 +25620,7 @@ class TopLevel {
2538325620 * @return Virtual|float|null
2538425621 */
2538525622 public static function sampleVirtual(): Virtual|float|null {
25386- return Virtual::sample(); /*351:virtual*/
25623+ return Virtual::sample(); /*354:virtual*/
2538725624 }
2538825625
2538925626 /**
@@ -25459,7 +25696,7 @@ class TopLevel {
2545925696 * @return VoidClass|float|null
2546025697 */
2546125698 public static function sampleVoid(): VoidClass|float|null {
25462- return VoidClass::sample(); /*352:void*/
25699+ return VoidClass::sample(); /*355:void*/
2546325700 }
2546425701
2546525702 /**
@@ -25535,7 +25772,7 @@ class TopLevel {
2553525772 * @return Volatile|float|null
2553625773 */
2553725774 public static function sampleVolatile(): Volatile|float|null {
25538- return Volatile::sample(); /*353:volatile*/
25775+ return Volatile::sample(); /*356:volatile*/
2553925776 }
2554025777
2554125778 /**
@@ -25611,7 +25848,7 @@ class TopLevel {
2561125848 * @return WcharT|float|null
2561225849 */
2561325850 public static function sampleWcharT(): WcharT|float|null {
25614- return WcharT::sample(); /*354:wcharT*/
25851+ return WcharT::sample(); /*357:wcharT*/
2561525852 }
2561625853
2561725854 /**
@@ -25687,7 +25924,7 @@ class TopLevel {
2568725924 * @return Weak|float|null
2568825925 */
2568925926 public static function sampleWeak(): Weak|float|null {
25690- return Weak::sample(); /*355:weak*/
25927+ return Weak::sample(); /*358:weak*/
2569125928 }
2569225929
2569325930 /**
@@ -25763,7 +26000,7 @@ class TopLevel {
2576326000 * @return Where|float|null
2576426001 */
2576526002 public static function sampleWhere(): Where|float|null {
25766- return Where::sample(); /*356:where*/
26003+ return Where::sample(); /*359:where*/
2576726004 }
2576826005
2576926006 /**
@@ -25839,7 +26076,7 @@ class TopLevel {
2583926076 * @return WhileClass|float|null
2584026077 */
2584126078 public static function sampleWhile(): WhileClass|float|null {
25842- return WhileClass::sample(); /*357:while*/
26079+ return WhileClass::sample(); /*360:while*/
2584326080 }
2584426081
2584526082 /**
@@ -25915,7 +26152,7 @@ class TopLevel {
2591526152 * @return WillSet|float|null
2591626153 */
2591726154 public static function sampleWillSet(): WillSet|float|null {
25918- return WillSet::sample(); /*358:willSet*/
26155+ return WillSet::sample(); /*361:willSet*/
2591926156 }
2592026157
2592126158 /**
@@ -25991,7 +26228,7 @@ class TopLevel {
2599126228 * @return With|float|null
2599226229 */
2599326230 public static function sampleWith(): With|float|null {
25994- return With::sample(); /*359:with*/
26231+ return With::sample(); /*362:with*/
2599526232 }
2599626233
2599726234 /**
@@ -26067,7 +26304,7 @@ class TopLevel {
2606726304 * @return XorClass|float|null
2606826305 */
2606926306 public static function sampleXor(): XorClass|float|null {
26070- return XorClass::sample(); /*360:xor*/
26307+ return XorClass::sample(); /*363:xor*/
2607126308 }
2607226309
2607326310 /**
@@ -26143,7 +26380,7 @@ class TopLevel {
2614326380 * @return XorEq|float|null
2614426381 */
2614526382 public static function sampleXorEq(): XorEq|float|null {
26146- return XorEq::sample(); /*361:xorEq*/
26383+ return XorEq::sample(); /*364:xorEq*/
2614726384 }
2614826385
2614926386 /**
@@ -26219,7 +26456,7 @@ class TopLevel {
2621926456 * @return Yes|float|null
2622026457 */
2622126458 public static function sampleYes(): Yes|float|null {
26222- return Yes::sample(); /*362:yes*/
26459+ return Yes::sample(); /*365:yes*/
2622326460 }
2622426461
2622526462 /**
@@ -26295,7 +26532,7 @@ class TopLevel {
2629526532 * @return YieldClass|float|null
2629626533 */
2629726534 public static function sampleYield(): YieldClass|float|null {
26298- return YieldClass::sample(); /*363:yield*/
26535+ return YieldClass::sample(); /*366:yield*/
2629926536 }
2630026537
2630126538 /**
@@ -26480,6 +26717,7 @@ class TopLevel {
2648026717 || TopLevel::validateLeft($this->left)
2648126718 || TopLevel::validateLet($this->let)
2648226719 || TopLevel::validateList($this->list)
26720+ || TopLevel::validateLocalDate($this->localDate)
2648326721 || TopLevel::validateLocale($this->locale)
2648426722 || TopLevel::validateLock($this->lock)
2648526723 || TopLevel::validateLong($this->long)
@@ -26514,6 +26752,8 @@ class TopLevel {
2651426752 || TopLevel::validateObject($this->object)
2651526753 || TopLevel::validateObjectMapper($this->objectMapper)
2651626754 || TopLevel::validateOf($this->of)
26755+ || TopLevel::validateOffsetDateTime($this->offsetDateTime)
26756+ || TopLevel::validateOffsetTime($this->offsetTime)
2651726757 || TopLevel::validateOneway($this->oneway)
2651826758 || TopLevel::validateOpen($this->open)
2651926759 || TopLevel::validateOperator($this->operator)
@@ -26821,6 +27061,7 @@ class TopLevel {
2682127061 $out->{'left'} = $this->toLeft();
2682227062 $out->{'let'} = $this->toLet();
2682327063 $out->{'list'} = $this->toList();
27064+ $out->{'LocalDate'} = $this->toLocalDate();
2682427065 $out->{'Locale'} = $this->toLocale();
2682527066 $out->{'lock'} = $this->toLock();
2682627067 $out->{'long'} = $this->toLong();
@@ -26855,6 +27096,8 @@ class TopLevel {
2685527096 $out->{'object'} = $this->toObject();
2685627097 $out->{'ObjectMapper'} = $this->toObjectMapper();
2685727098 $out->{'of'} = $this->toOf();
27099+ $out->{'OffsetDateTime'} = $this->toOffsetDateTime();
27100+ $out->{'OffsetTime'} = $this->toOffsetTime();
2685827101 $out->{'oneway'} = $this->toOneway();
2685927102 $out->{'open'} = $this->toOpen();
2686027103 $out->{'operator'} = $this->toOperator();
@@ -27164,6 +27407,7 @@ class TopLevel {
2716427407 ,TopLevel::fromLeft($obj->{'left'})
2716527408 ,TopLevel::fromLet($obj->{'let'})
2716627409 ,TopLevel::fromList($obj->{'list'})
27410+ ,TopLevel::fromLocalDate($obj->{'LocalDate'})
2716727411 ,TopLevel::fromLocale($obj->{'Locale'})
2716827412 ,TopLevel::fromLock($obj->{'lock'})
2716927413 ,TopLevel::fromLong($obj->{'long'})
@@ -27198,6 +27442,8 @@ class TopLevel {
2719827442 ,TopLevel::fromObject($obj->{'object'})
2719927443 ,TopLevel::fromObjectMapper($obj->{'ObjectMapper'})
2720027444 ,TopLevel::fromOf($obj->{'of'})
27445+ ,TopLevel::fromOffsetDateTime($obj->{'OffsetDateTime'})
27446+ ,TopLevel::fromOffsetTime($obj->{'OffsetTime'})
2720127447 ,TopLevel::fromOneway($obj->{'oneway'})
2720227448 ,TopLevel::fromOpen($obj->{'open'})
2720327449 ,TopLevel::fromOperator($obj->{'operator'})
@@ -27505,6 +27751,7 @@ class TopLevel {
2750527751 ,TopLevel::sampleLeft()
2750627752 ,TopLevel::sampleLet()
2750727753 ,TopLevel::sampleList()
27754+ ,TopLevel::sampleLocalDate()
2750827755 ,TopLevel::sampleLocale()
2750927756 ,TopLevel::sampleLock()
2751027757 ,TopLevel::sampleLong()
@@ -27539,6 +27786,8 @@ class TopLevel {
2753927786 ,TopLevel::sampleObject()
2754027787 ,TopLevel::sampleObjectMapper()
2754127788 ,TopLevel::sampleOf()
27789+ ,TopLevel::sampleOffsetDateTime()
27790+ ,TopLevel::sampleOffsetTime()
2754227791 ,TopLevel::sampleOneway()
2754327792 ,TopLevel::sampleOpen()
2754427793 ,TopLevel::sampleOperator()
@@ -35360,6 +35609,51 @@ class ListClass {
3536035609 }
3536135610 }
3536235611
35612+// This is an autogenerated file:LocalDate
35613+
35614+class LocalDate {
35615+
35616+ /**
35617+ */
35618+ public function __construct() {
35619+ }
35620+
35621+ /**
35622+ * @throws Exception
35623+ * @return bool
35624+ */
35625+ public function validate(): bool {
35626+ return true;
35627+ }
35628+
35629+ /**
35630+ * @return stdClass
35631+ * @throws Exception
35632+ */
35633+ public function to(): stdClass {
35634+ $out = new stdClass();
35635+ return $out;
35636+ }
35637+
35638+ /**
35639+ * @param stdClass $obj
35640+ * @return LocalDate
35641+ * @throws Exception
35642+ */
35643+ public static function from(stdClass $obj): LocalDate {
35644+ return new LocalDate(
35645+ );
35646+ }
35647+
35648+ /**
35649+ * @return LocalDate
35650+ */
35651+ public static function sample(): LocalDate {
35652+ return new LocalDate(
35653+ );
35654+ }
35655+}
35656+
3536335657 // This is an autogenerated file:LocaleClass
3536435658
3536535659 class LocaleClass {
@@ -36800,6 +37094,96 @@ class Of {
3680037094 }
3680137095 }
3680237096
37097+// This is an autogenerated file:OffsetDateTime
37098+
37099+class OffsetDateTime {
37100+
37101+ /**
37102+ */
37103+ public function __construct() {
37104+ }
37105+
37106+ /**
37107+ * @throws Exception
37108+ * @return bool
37109+ */
37110+ public function validate(): bool {
37111+ return true;
37112+ }
37113+
37114+ /**
37115+ * @return stdClass
37116+ * @throws Exception
37117+ */
37118+ public function to(): stdClass {
37119+ $out = new stdClass();
37120+ return $out;
37121+ }
37122+
37123+ /**
37124+ * @param stdClass $obj
37125+ * @return OffsetDateTime
37126+ * @throws Exception
37127+ */
37128+ public static function from(stdClass $obj): OffsetDateTime {
37129+ return new OffsetDateTime(
37130+ );
37131+ }
37132+
37133+ /**
37134+ * @return OffsetDateTime
37135+ */
37136+ public static function sample(): OffsetDateTime {
37137+ return new OffsetDateTime(
37138+ );
37139+ }
37140+}
37141+
37142+// This is an autogenerated file:OffsetTime
37143+
37144+class OffsetTime {
37145+
37146+ /**
37147+ */
37148+ public function __construct() {
37149+ }
37150+
37151+ /**
37152+ * @throws Exception
37153+ * @return bool
37154+ */
37155+ public function validate(): bool {
37156+ return true;
37157+ }
37158+
37159+ /**
37160+ * @return stdClass
37161+ * @throws Exception
37162+ */
37163+ public function to(): stdClass {
37164+ $out = new stdClass();
37165+ return $out;
37166+ }
37167+
37168+ /**
37169+ * @param stdClass $obj
37170+ * @return OffsetTime
37171+ * @throws Exception
37172+ */
37173+ public static function from(stdClass $obj): OffsetTime {
37174+ return new OffsetTime(
37175+ );
37176+ }
37177+
37178+ /**
37179+ * @return OffsetTime
37180+ */
37181+ public static function sample(): OffsetTime {
37182+ return new OffsetTime(
37183+ );
37184+ }
37185+}
37186+
3680337187 // This is an autogenerated file:Oneway
3680437188
3680537189 class Oneway {
Mschema-pikedefault / TopLevel.pmod+78 −0
@@ -190,6 +190,7 @@ class TopLevel {
190190 UnionLeft left; // json: "left"
191191 UnionLet let; // json: "let"
192192 UnionList list; // json: "list"
193+ UnionLocalDate local_date; // json: "LocalDate"
193194 UnionLocale locale; // json: "Locale"
194195 UnionLock lock; // json: "lock"
195196 UnionLong long; // json: "long"
@@ -224,6 +225,8 @@ class TopLevel {
224225 UnionObject top_level_object; // json: "object"
225226 UnionObjectMapper object_mapper; // json: "ObjectMapper"
226227 UnionOf of; // json: "of"
228+ UnionOffsetDateTime offset_date_time; // json: "OffsetDateTime"
229+ UnionOffsetTime offset_time; // json: "OffsetTime"
227230 UnionOneway oneway; // json: "oneway"
228231 UnionOpen open; // json: "open"
229232 UnionOperator operator; // json: "operator"
@@ -526,6 +529,7 @@ class TopLevel {
526529 "left" : left,
527530 "let" : let,
528531 "list" : list,
532+ "LocalDate" : local_date,
529533 "Locale" : locale,
530534 "lock" : lock,
531535 "long" : long,
@@ -560,6 +564,8 @@ class TopLevel {
560564 "object" : top_level_object,
561565 "ObjectMapper" : object_mapper,
562566 "of" : of,
567+ "OffsetDateTime" : offset_date_time,
568+ "OffsetTime" : offset_time,
563569 "oneway" : oneway,
564570 "open" : open,
565571 "operator" : operator,
@@ -1044,6 +1050,8 @@ TopLevel TopLevel_from_JSON(mixed json) {
10441050 retval.let = json["let"];
10451051 if (arrayp(json["list"])) error("Unexpected array");
10461052 retval.list = json["list"];
1053+ if (arrayp(json["LocalDate"])) error("Unexpected array");
1054+ retval.local_date = json["LocalDate"];
10471055 if (arrayp(json["Locale"])) error("Unexpected array");
10481056 retval.locale = json["Locale"];
10491057 if (arrayp(json["lock"])) error("Unexpected array");
@@ -1112,6 +1120,10 @@ TopLevel TopLevel_from_JSON(mixed json) {
11121120 retval.object_mapper = json["ObjectMapper"];
11131121 if (arrayp(json["of"])) error("Unexpected array");
11141122 retval.of = json["of"];
1123+ if (arrayp(json["OffsetDateTime"])) error("Unexpected array");
1124+ retval.offset_date_time = json["OffsetDateTime"];
1125+ if (arrayp(json["OffsetTime"])) error("Unexpected array");
1126+ retval.offset_time = json["OffsetTime"];
11151127 if (arrayp(json["oneway"])) error("Unexpected array");
11161128 retval.oneway = json["oneway"];
11171129 if (arrayp(json["open"])) error("Unexpected array");
@@ -4594,6 +4606,28 @@ List List_from_JSON(mixed json) {
45944606 return retval;
45954607 }
45964608
4609+typedef float|LocalDate UnionLocalDate;
4610+
4611+UnionLocalDate UnionLocalDate_from_JSON(mixed json) {
4612+ return json;
4613+}
4614+
4615+class LocalDate {
4616+
4617+ string encode_json() {
4618+ mapping(string:mixed) json = ([
4619+ ]);
4620+
4621+ return Standards.JSON.encode(json);
4622+ }
4623+}
4624+
4625+LocalDate LocalDate_from_JSON(mixed json) {
4626+ LocalDate retval = LocalDate();
4627+
4628+ return retval;
4629+}
4630+
45974631 typedef float|Locale UnionLocale;
45984632
45994633 UnionLocale UnionLocale_from_JSON(mixed json) {
@@ -5276,6 +5310,50 @@ Of Of_from_JSON(mixed json) {
52765310 return retval;
52775311 }
52785312
5313+typedef float|OffsetDateTime UnionOffsetDateTime;
5314+
5315+UnionOffsetDateTime UnionOffsetDateTime_from_JSON(mixed json) {
5316+ return json;
5317+}
5318+
5319+class OffsetDateTime {
5320+
5321+ string encode_json() {
5322+ mapping(string:mixed) json = ([
5323+ ]);
5324+
5325+ return Standards.JSON.encode(json);
5326+ }
5327+}
5328+
5329+OffsetDateTime OffsetDateTime_from_JSON(mixed json) {
5330+ OffsetDateTime retval = OffsetDateTime();
5331+
5332+ return retval;
5333+}
5334+
5335+typedef float|OffsetTime UnionOffsetTime;
5336+
5337+UnionOffsetTime UnionOffsetTime_from_JSON(mixed json) {
5338+ return json;
5339+}
5340+
5341+class OffsetTime {
5342+
5343+ string encode_json() {
5344+ mapping(string:mixed) json = ([
5345+ ]);
5346+
5347+ return Standards.JSON.encode(json);
5348+ }
5349+}
5350+
5351+OffsetTime OffsetTime_from_JSON(mixed json) {
5352+ OffsetTime retval = OffsetTime();
5353+
5354+ return retval;
5355+}
5356+
52795357 typedef float|Oneway UnionOneway;
52805358
52815359 UnionOneway UnionOneway_from_JSON(mixed json) {
Mschema-pythondefault / quicktype.py+55 −1
@@ -2078,6 +2078,20 @@ class ListClass:
20782078 return result
20792079
20802080
2081+@dataclass
2082+class LocalDate:
2083+ pass
2084+
2085+ @staticmethod
2086+ def from_dict(obj: Any) -> 'LocalDate':
2087+ assert isinstance(obj, dict)
2088+ return LocalDate()
2089+
2090+ def to_dict(self) -> dict:
2091+ result: dict = {}
2092+ return result
2093+
2094+
20812095 @dataclass
20822096 class Locale:
20832097 pass
@@ -2498,6 +2512,34 @@ class Of:
24982512 return result
24992513
25002514
2515+@dataclass
2516+class OffsetDateTime:
2517+ pass
2518+
2519+ @staticmethod
2520+ def from_dict(obj: Any) -> 'OffsetDateTime':
2521+ assert isinstance(obj, dict)
2522+ return OffsetDateTime()
2523+
2524+ def to_dict(self) -> dict:
2525+ result: dict = {}
2526+ return result
2527+
2528+
2529+@dataclass
2530+class OffsetTime:
2531+ pass
2532+
2533+ @staticmethod
2534+ def from_dict(obj: Any) -> 'OffsetTime':
2535+ assert isinstance(obj, dict)
2536+ return OffsetTime()
2537+
2538+ def to_dict(self) -> dict:
2539+ result: dict = {}
2540+ return result
2541+
2542+
25012543 @dataclass
25022544 class Oneway:
25032545 pass
@@ -4861,6 +4903,7 @@ class TopLevel:
48614903 left: float | Left | None = None
48624904 let: float | Let | None = None
48634905 list: float | ListClass | None = None
4906+ local_date: float | LocalDate | None = None
48644907 locale: float | Locale | None = None
48654908 lock: float | Lock | None = None
48664909 long: float | Long | None = None
@@ -4895,6 +4938,8 @@ class TopLevel:
48954938 object: float | Object | None = None
48964939 object_mapper: float | ObjectMapper | None = None
48974940 of: float | Of | None = None
4941+ offset_date_time: float | OffsetDateTime | None = None
4942+ offset_time: float | OffsetTime | None = None
48984943 oneway: float | Oneway | None = None
48994944 open: float | Open | None = None
49004945 operator: float | Operator | None = None
@@ -5198,6 +5243,7 @@ class TopLevel:
51985243 left = from_union([from_float, Left.from_dict, from_none], obj.get("left"))
51995244 let = from_union([from_float, Let.from_dict, from_none], obj.get("let"))
52005245 list = from_union([from_float, ListClass.from_dict, from_none], obj.get("list"))
5246+ local_date = from_union([from_float, LocalDate.from_dict, from_none], obj.get("LocalDate"))
52015247 locale = from_union([from_float, Locale.from_dict, from_none], obj.get("Locale"))
52025248 lock = from_union([from_float, Lock.from_dict, from_none], obj.get("lock"))
52035249 long = from_union([from_float, Long.from_dict, from_none], obj.get("long"))
@@ -5232,6 +5278,8 @@ class TopLevel:
52325278 object = from_union([from_float, Object.from_dict, from_none], obj.get("object"))
52335279 object_mapper = from_union([from_float, ObjectMapper.from_dict, from_none], obj.get("ObjectMapper"))
52345280 of = from_union([from_float, Of.from_dict, from_none], obj.get("of"))
5281+ offset_date_time = from_union([from_float, OffsetDateTime.from_dict, from_none], obj.get("OffsetDateTime"))
5282+ offset_time = from_union([from_float, OffsetTime.from_dict, from_none], obj.get("OffsetTime"))
52355283 oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway"))
52365284 open = from_union([from_float, Open.from_dict, from_none], obj.get("open"))
52375285 operator = from_union([from_float, Operator.from_dict, from_none], obj.get("operator"))
@@ -5354,7 +5402,7 @@ class TopLevel:
53545402 xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq"))
53555403 yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES"))
53565404 top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield"))
5357- 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, 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, 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, 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, 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, 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)
5405+ 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, 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, 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, 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, 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, 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)
53585406
53595407 def to_dict(self) -> dict:
53605408 result: dict = {}
@@ -5712,6 +5760,8 @@ class TopLevel:
57125760 result["let"] = from_union([to_float, lambda x: to_class(Let, x), from_none], self.let)
57135761 if self.list is not None:
57145762 result["list"] = from_union([to_float, lambda x: to_class(ListClass, x), from_none], self.list)
5763+ if self.local_date is not None:
5764+ result["LocalDate"] = from_union([to_float, lambda x: to_class(LocalDate, x), from_none], self.local_date)
57155765 if self.locale is not None:
57165766 result["Locale"] = from_union([to_float, lambda x: to_class(Locale, x), from_none], self.locale)
57175767 if self.lock is not None:
@@ -5780,6 +5830,10 @@ class TopLevel:
57805830 result["ObjectMapper"] = from_union([to_float, lambda x: to_class(ObjectMapper, x), from_none], self.object_mapper)
57815831 if self.of is not None:
57825832 result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of)
5833+ if self.offset_date_time is not None:
5834+ result["OffsetDateTime"] = from_union([to_float, lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time)
5835+ if self.offset_time is not None:
5836+ result["OffsetTime"] = from_union([to_float, lambda x: to_class(OffsetTime, x), from_none], self.offset_time)
57835837 if self.oneway is not None:
57845838 result["oneway"] = from_union([to_float, lambda x: to_class(Oneway, x), from_none], self.oneway)
57855839 if self.open is not None:
Mschema-ruby-syntaxdefault / TopLevel.rb+180 −0
@@ -8968,6 +8968,63 @@ class UnionList < Dry::Struct
89688968 end
89698969 end
89708970
8971+class LocalDate < Dry::Struct
8972+
8973+ def self.from_dynamic!(d)
8974+ d = Types::Hash[d]
8975+ new(
8976+ )
8977+ end
8978+
8979+ def self.from_json!(json)
8980+ from_dynamic!(JSON.parse(json))
8981+ end
8982+
8983+ def to_dynamic
8984+ {
8985+ }
8986+ end
8987+
8988+ def to_json(options = nil)
8989+ JSON.generate(to_dynamic, options)
8990+ end
8991+end
8992+
8993+class UnionLocalDate < Dry::Struct
8994+ attribute :double, Types::Double.optional
8995+ attribute :local_date, LocalDate.optional
8996+
8997+ def self.from_dynamic!(d)
8998+ if schema.key(:double).type.right.valid? d
8999+ return new(double: d, local_date: nil)
9000+ end
9001+ begin
9002+ value = LocalDate.from_dynamic!(d)
9003+ if schema.key(:local_date).type.right.valid? value
9004+ return new(local_date: value, double: nil)
9005+ end
9006+ rescue
9007+ end
9008+ raise "Invalid union"
9009+ end
9010+
9011+ def self.from_json!(json)
9012+ from_dynamic!(JSON.parse(json))
9013+ end
9014+
9015+ def to_dynamic
9016+ if double != nil
9017+ double
9018+ elsif local_date != nil
9019+ local_date.to_dynamic
9020+ end
9021+ end
9022+
9023+ def to_json(options = nil)
9024+ JSON.generate(to_dynamic, options)
9025+ end
9026+end
9027+
89719028 class Locale < Dry::Struct
89729029
89739030 def self.from_dynamic!(d)
@@ -10564,6 +10621,120 @@ class UnionOf < Dry::Struct
1056410621 end
1056510622 end
1056610623
10624+class OffsetDateTime < Dry::Struct
10625+
10626+ def self.from_dynamic!(d)
10627+ d = Types::Hash[d]
10628+ new(
10629+ )
10630+ end
10631+
10632+ def self.from_json!(json)
10633+ from_dynamic!(JSON.parse(json))
10634+ end
10635+
10636+ def to_dynamic
10637+ {
10638+ }
10639+ end
10640+
10641+ def to_json(options = nil)
10642+ JSON.generate(to_dynamic, options)
10643+ end
10644+end
10645+
10646+class UnionOffsetDateTime < Dry::Struct
10647+ attribute :double, Types::Double.optional
10648+ attribute :offset_date_time, OffsetDateTime.optional
10649+
10650+ def self.from_dynamic!(d)
10651+ if schema.key(:double).type.right.valid? d
10652+ return new(double: d, offset_date_time: nil)
10653+ end
10654+ begin
10655+ value = OffsetDateTime.from_dynamic!(d)
10656+ if schema.key(:offset_date_time).type.right.valid? value
10657+ return new(offset_date_time: value, double: nil)
10658+ end
10659+ rescue
10660+ end
10661+ raise "Invalid union"
10662+ end
10663+
10664+ def self.from_json!(json)
10665+ from_dynamic!(JSON.parse(json))
10666+ end
10667+
10668+ def to_dynamic
10669+ if double != nil
10670+ double
10671+ elsif offset_date_time != nil
10672+ offset_date_time.to_dynamic
10673+ end
10674+ end
10675+
10676+ def to_json(options = nil)
10677+ JSON.generate(to_dynamic, options)
10678+ end
10679+end
10680+
10681+class OffsetTime < 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 UnionOffsetTime < Dry::Struct
10704+ attribute :double, Types::Double.optional
10705+ attribute :offset_time, OffsetTime.optional
10706+
10707+ def self.from_dynamic!(d)
10708+ if schema.key(:double).type.right.valid? d
10709+ return new(double: d, offset_time: nil)
10710+ end
10711+ begin
10712+ value = OffsetTime.from_dynamic!(d)
10713+ if schema.key(:offset_time).type.right.valid? value
10714+ return new(offset_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_time != nil
10729+ offset_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+
1056710738 class Oneway < Dry::Struct
1056810739
1056910740 def self.from_dynamic!(d)
@@ -19121,6 +19292,7 @@ class TopLevel < Dry::Struct
1912119292 attribute :left, Types.Instance(UnionLeft).optional
1912219293 attribute :let, Types.Instance(UnionLet).optional
1912319294 attribute :list, Types.Instance(UnionList).optional
19295+ attribute :local_date, Types.Instance(UnionLocalDate).optional
1912419296 attribute :locale, Types.Instance(UnionLocale).optional
1912519297 attribute :lock, Types.Instance(UnionLock).optional
1912619298 attribute :long, Types.Instance(UnionLong).optional
@@ -19155,6 +19327,8 @@ class TopLevel < Dry::Struct
1915519327 attribute :object, Types.Instance(UnionObject).optional
1915619328 attribute :object_mapper, Types.Instance(UnionObjectMapper).optional
1915719329 attribute :of, Types.Instance(UnionOf).optional
19330+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
19331+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
1915819332 attribute :oneway, Types.Instance(UnionOneway).optional
1915919333 attribute :top_level_open, Types.Instance(UnionOpen).optional
1916019334 attribute :operator, Types.Instance(UnionOperator).optional
@@ -19458,6 +19632,7 @@ class TopLevel < Dry::Struct
1945819632 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
1945919633 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
1946019634 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
19635+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
1946119636 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
1946219637 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
1946319638 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -19492,6 +19667,8 @@ class TopLevel < Dry::Struct
1949219667 object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil,
1949319668 object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil,
1949419669 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
19670+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
19671+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
1949519672 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
1949619673 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
1949719674 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -19800,6 +19977,7 @@ class TopLevel < Dry::Struct
1980019977 "left" => left&.to_dynamic,
1980119978 "let" => let&.to_dynamic,
1980219979 "list" => list&.to_dynamic,
19980+ "LocalDate" => local_date&.to_dynamic,
1980319981 "Locale" => locale&.to_dynamic,
1980419982 "lock" => lock&.to_dynamic,
1980519983 "long" => long&.to_dynamic,
@@ -19834,6 +20012,8 @@ class TopLevel < Dry::Struct
1983420012 "object" => object&.to_dynamic,
1983520013 "ObjectMapper" => object_mapper&.to_dynamic,
1983620014 "of" => of&.to_dynamic,
20015+ "OffsetDateTime" => offset_date_time&.to_dynamic,
20016+ "OffsetTime" => offset_time&.to_dynamic,
1983720017 "oneway" => oneway&.to_dynamic,
1983820018 "open" => top_level_open&.to_dynamic,
1983920019 "operator" => operator&.to_dynamic,
Mschema-rubydefault / TopLevel.rb+180 −0
@@ -8968,6 +8968,63 @@ class UnionList < Dry::Struct
89688968 end
89698969 end
89708970
8971+class LocalDate < Dry::Struct
8972+
8973+ def self.from_dynamic!(d)
8974+ d = Types::Hash[d]
8975+ new(
8976+ )
8977+ end
8978+
8979+ def self.from_json!(json)
8980+ from_dynamic!(JSON.parse(json))
8981+ end
8982+
8983+ def to_dynamic
8984+ {
8985+ }
8986+ end
8987+
8988+ def to_json(options = nil)
8989+ JSON.generate(to_dynamic, options)
8990+ end
8991+end
8992+
8993+class UnionLocalDate < Dry::Struct
8994+ attribute :double, Types::Double.optional
8995+ attribute :local_date, LocalDate.optional
8996+
8997+ def self.from_dynamic!(d)
8998+ if schema.key(:double).type.right.valid? d
8999+ return new(double: d, local_date: nil)
9000+ end
9001+ begin
9002+ value = LocalDate.from_dynamic!(d)
9003+ if schema.key(:local_date).type.right.valid? value
9004+ return new(local_date: value, double: nil)
9005+ end
9006+ rescue
9007+ end
9008+ raise "Invalid union"
9009+ end
9010+
9011+ def self.from_json!(json)
9012+ from_dynamic!(JSON.parse(json))
9013+ end
9014+
9015+ def to_dynamic
9016+ if double != nil
9017+ double
9018+ elsif local_date != nil
9019+ local_date.to_dynamic
9020+ end
9021+ end
9022+
9023+ def to_json(options = nil)
9024+ JSON.generate(to_dynamic, options)
9025+ end
9026+end
9027+
89719028 class Locale < Dry::Struct
89729029
89739030 def self.from_dynamic!(d)
@@ -10564,6 +10621,120 @@ class UnionOf < Dry::Struct
1056410621 end
1056510622 end
1056610623
10624+class OffsetDateTime < Dry::Struct
10625+
10626+ def self.from_dynamic!(d)
10627+ d = Types::Hash[d]
10628+ new(
10629+ )
10630+ end
10631+
10632+ def self.from_json!(json)
10633+ from_dynamic!(JSON.parse(json))
10634+ end
10635+
10636+ def to_dynamic
10637+ {
10638+ }
10639+ end
10640+
10641+ def to_json(options = nil)
10642+ JSON.generate(to_dynamic, options)
10643+ end
10644+end
10645+
10646+class UnionOffsetDateTime < Dry::Struct
10647+ attribute :double, Types::Double.optional
10648+ attribute :offset_date_time, OffsetDateTime.optional
10649+
10650+ def self.from_dynamic!(d)
10651+ if schema.key(:double).type.right.valid? d
10652+ return new(double: d, offset_date_time: nil)
10653+ end
10654+ begin
10655+ value = OffsetDateTime.from_dynamic!(d)
10656+ if schema.key(:offset_date_time).type.right.valid? value
10657+ return new(offset_date_time: value, double: nil)
10658+ end
10659+ rescue
10660+ end
10661+ raise "Invalid union"
10662+ end
10663+
10664+ def self.from_json!(json)
10665+ from_dynamic!(JSON.parse(json))
10666+ end
10667+
10668+ def to_dynamic
10669+ if double != nil
10670+ double
10671+ elsif offset_date_time != nil
10672+ offset_date_time.to_dynamic
10673+ end
10674+ end
10675+
10676+ def to_json(options = nil)
10677+ JSON.generate(to_dynamic, options)
10678+ end
10679+end
10680+
10681+class OffsetTime < 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 UnionOffsetTime < Dry::Struct
10704+ attribute :double, Types::Double.optional
10705+ attribute :offset_time, OffsetTime.optional
10706+
10707+ def self.from_dynamic!(d)
10708+ if schema.key(:double).type.right.valid? d
10709+ return new(double: d, offset_time: nil)
10710+ end
10711+ begin
10712+ value = OffsetTime.from_dynamic!(d)
10713+ if schema.key(:offset_time).type.right.valid? value
10714+ return new(offset_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_time != nil
10729+ offset_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+
1056710738 class Oneway < Dry::Struct
1056810739
1056910740 def self.from_dynamic!(d)
@@ -19121,6 +19292,7 @@ class TopLevel < Dry::Struct
1912119292 attribute :left, Types.Instance(UnionLeft).optional
1912219293 attribute :let, Types.Instance(UnionLet).optional
1912319294 attribute :list, Types.Instance(UnionList).optional
19295+ attribute :local_date, Types.Instance(UnionLocalDate).optional
1912419296 attribute :locale, Types.Instance(UnionLocale).optional
1912519297 attribute :lock, Types.Instance(UnionLock).optional
1912619298 attribute :long, Types.Instance(UnionLong).optional
@@ -19155,6 +19327,8 @@ class TopLevel < Dry::Struct
1915519327 attribute :object, Types.Instance(UnionObject).optional
1915619328 attribute :object_mapper, Types.Instance(UnionObjectMapper).optional
1915719329 attribute :of, Types.Instance(UnionOf).optional
19330+ attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional
19331+ attribute :offset_time, Types.Instance(UnionOffsetTime).optional
1915819332 attribute :oneway, Types.Instance(UnionOneway).optional
1915919333 attribute :top_level_open, Types.Instance(UnionOpen).optional
1916019334 attribute :operator, Types.Instance(UnionOperator).optional
@@ -19458,6 +19632,7 @@ class TopLevel < Dry::Struct
1945819632 left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil,
1945919633 let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil,
1946019634 list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil,
19635+ local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil,
1946119636 locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil,
1946219637 lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil,
1946319638 long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil,
@@ -19492,6 +19667,8 @@ class TopLevel < Dry::Struct
1949219667 object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil,
1949319668 object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil,
1949419669 of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil,
19670+ offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil,
19671+ offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil,
1949519672 oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil,
1949619673 top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil,
1949719674 operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil,
@@ -19800,6 +19977,7 @@ class TopLevel < Dry::Struct
1980019977 "left" => left&.to_dynamic,
1980119978 "let" => let&.to_dynamic,
1980219979 "list" => list&.to_dynamic,
19980+ "LocalDate" => local_date&.to_dynamic,
1980319981 "Locale" => locale&.to_dynamic,
1980419982 "lock" => lock&.to_dynamic,
1980519983 "long" => long&.to_dynamic,
@@ -19834,6 +20012,8 @@ class TopLevel < Dry::Struct
1983420012 "object" => object&.to_dynamic,
1983520013 "ObjectMapper" => object_mapper&.to_dynamic,
1983620014 "of" => of&.to_dynamic,
20015+ "OffsetDateTime" => offset_date_time&.to_dynamic,
20016+ "OffsetTime" => offset_time&.to_dynamic,
1983720017 "oneway" => oneway&.to_dynamic,
1983820018 "open" => top_level_open&.to_dynamic,
1983920019 "operator" => operator&.to_dynamic,
Mschema-rustdefault / module_under_test.rs+45 −0
@@ -434,6 +434,9 @@ pub struct TopLevel {
434434
435435 pub list: Option<UnionList>,
436436
437+ #[serde(rename = "LocalDate")]
438+ pub local_date: Option<UnionLocalDate>,
439+
437440 #[serde(rename = "Locale")]
438441 pub locale: Option<UnionLocale>,
439442
@@ -514,6 +517,12 @@ pub struct TopLevel {
514517
515518 pub of: Option<UnionOf>,
516519
520+ #[serde(rename = "OffsetDateTime")]
521+ pub offset_date_time: Option<UnionOffsetDateTime>,
522+
523+ #[serde(rename = "OffsetTime")]
524+ pub offset_time: Option<UnionOffsetTime>,
525+
517526 pub oneway: Option<UnionOneway>,
518527
519528 pub open: Option<UnionOpen>,
@@ -2624,6 +2633,18 @@ pub enum UnionList {
26242633 pub struct List {
26252634 }
26262635
2636+#[derive(Debug, Clone, Serialize, Deserialize)]
2637+#[serde(untagged)]
2638+pub enum UnionLocalDate {
2639+ Double(f64),
2640+
2641+ LocalDate(LocalDate),
2642+}
2643+
2644+#[derive(Debug, Clone, Serialize, Deserialize)]
2645+pub struct LocalDate {
2646+}
2647+
26272648 #[derive(Debug, Clone, Serialize, Deserialize)]
26282649 #[serde(untagged)]
26292650 pub enum UnionLocale {
@@ -3008,6 +3029,30 @@ pub enum UnionOf {
30083029 pub struct Of {
30093030 }
30103031
3032+#[derive(Debug, Clone, Serialize, Deserialize)]
3033+#[serde(untagged)]
3034+pub enum UnionOffsetDateTime {
3035+ Double(f64),
3036+
3037+ OffsetDateTime(OffsetDateTime),
3038+}
3039+
3040+#[derive(Debug, Clone, Serialize, Deserialize)]
3041+pub struct OffsetDateTime {
3042+}
3043+
3044+#[derive(Debug, Clone, Serialize, Deserialize)]
3045+#[serde(untagged)]
3046+pub enum UnionOffsetTime {
3047+ Double(f64),
3048+
3049+ OffsetTime(OffsetTime),
3050+}
3051+
3052+#[derive(Debug, Clone, Serialize, Deserialize)]
3053+pub struct OffsetTime {
3054+}
3055+
30113056 #[derive(Debug, Clone, Serialize, Deserialize)]
30123057 #[serde(untagged)]
30133058 pub enum UnionOneway {
Mschema-schemadefault / TopLevel.schema+57 −0
@@ -537,6 +537,9 @@
537537 "list": {
538538 "$ref": "#/definitions/UnionList"
539539 },
540+ "LocalDate": {
541+ "$ref": "#/definitions/UnionLocalDate"
542+ },
540543 "Locale": {
541544 "$ref": "#/definitions/UnionLocale"
542545 },
@@ -639,6 +642,12 @@
639642 "of": {
640643 "$ref": "#/definitions/UnionOf"
641644 },
645+ "OffsetDateTime": {
646+ "$ref": "#/definitions/UnionOffsetDateTime"
647+ },
648+ "OffsetTime": {
649+ "$ref": "#/definitions/UnionOffsetTime"
650+ },
642651 "oneway": {
643652 "$ref": "#/definitions/UnionOneway"
644653 },
@@ -1184,6 +1193,11 @@
11841193 "additionalProperties": false,
11851194 "title": "JSONTokenType"
11861195 },
1196+ "LocalDate": {
1197+ "type": "object",
1198+ "additionalProperties": false,
1199+ "title": "LocalDate"
1200+ },
11871201 "Locale": {
11881202 "type": "object",
11891203 "additionalProperties": false,
@@ -1229,6 +1243,16 @@
12291243 "additionalProperties": false,
12301244 "title": "ObjectMapper"
12311245 },
1246+ "OffsetDateTime": {
1247+ "type": "object",
1248+ "additionalProperties": false,
1249+ "title": "OffsetDateTime"
1250+ },
1251+ "OffsetTime": {
1252+ "type": "object",
1253+ "additionalProperties": false,
1254+ "title": "OffsetTime"
1255+ },
12321256 "Protocol": {
12331257 "type": "object",
12341258 "additionalProperties": false,
@@ -3054,6 +3078,17 @@
30543078 ],
30553079 "title": "UnionJSONTokenType"
30563080 },
3081+ "UnionLocalDate": {
3082+ "anyOf": [
3083+ {
3084+ "$ref": "#/definitions/LocalDate"
3085+ },
3086+ {
3087+ "type": "number"
3088+ }
3089+ ],
3090+ "title": "UnionLocalDate"
3091+ },
30573092 "UnionLocale": {
30583093 "anyOf": [
30593094 {
@@ -3153,6 +3188,28 @@
31533188 ],
31543189 "title": "UnionObjectMapper"
31553190 },
3191+ "UnionOffsetDateTime": {
3192+ "anyOf": [
3193+ {
3194+ "$ref": "#/definitions/OffsetDateTime"
3195+ },
3196+ {
3197+ "type": "number"
3198+ }
3199+ ],
3200+ "title": "UnionOffsetDateTime"
3201+ },
3202+ "UnionOffsetTime": {
3203+ "anyOf": [
3204+ {
3205+ "$ref": "#/definitions/OffsetTime"
3206+ },
3207+ {
3208+ "type": "number"
3209+ }
3210+ ],
3211+ "title": "UnionOffsetTime"
3212+ },
31563213 "UnionProtocol": {
31573214 "anyOf": [
31583215 {
Mschema-swiftdefault / quicktype.swift+225 −0
@@ -184,6 +184,7 @@ struct TopLevel: Codable {
184184 let topLevelLeft: UnionLeft?
185185 let topLevelLet: UnionLet?
186186 let list: UnionList?
187+ let localDate: UnionLocalDate?
187188 let locale: UnionLocale?
188189 let lock: UnionLock?
189190 let long: UnionLong?
@@ -218,6 +219,8 @@ struct TopLevel: Codable {
218219 let object: UnionObject?
219220 let objectMapper: UnionObjectMapper?
220221 let of: UnionOf?
222+ let offsetDateTime: UnionOffsetDateTime?
223+ let offsetTime: UnionOffsetTime?
221224 let oneway: UnionOneway?
222225 let topLevelOpen: UnionOpen?
223226 let topLevelOperator: UnionOperator?
@@ -519,6 +522,7 @@ struct TopLevel: Codable {
519522 case topLevelLeft = "left"
520523 case topLevelLet = "let"
521524 case list = "list"
525+ case localDate = "LocalDate"
522526 case locale = "Locale"
523527 case lock = "lock"
524528 case long = "long"
@@ -553,6 +557,8 @@ struct TopLevel: Codable {
553557 case object = "object"
554558 case objectMapper = "ObjectMapper"
555559 case of = "of"
560+ case offsetDateTime = "OffsetDateTime"
561+ case offsetTime = "OffsetTime"
556562 case oneway = "oneway"
557563 case topLevelOpen = "open"
558564 case topLevelOperator = "operator"
@@ -874,6 +880,7 @@ extension TopLevel {
874880 topLevelLeft: UnionLeft?? = nil,
875881 topLevelLet: UnionLet?? = nil,
876882 list: UnionList?? = nil,
883+ localDate: UnionLocalDate?? = nil,
877884 locale: UnionLocale?? = nil,
878885 lock: UnionLock?? = nil,
879886 long: UnionLong?? = nil,
@@ -908,6 +915,8 @@ extension TopLevel {
908915 object: UnionObject?? = nil,
909916 objectMapper: UnionObjectMapper?? = nil,
910917 of: UnionOf?? = nil,
918+ offsetDateTime: UnionOffsetDateTime?? = nil,
919+ offsetTime: UnionOffsetTime?? = nil,
911920 oneway: UnionOneway?? = nil,
912921 topLevelOpen: UnionOpen?? = nil,
913922 topLevelOperator: UnionOperator?? = nil,
@@ -1209,6 +1218,7 @@ extension TopLevel {
12091218 topLevelLeft: topLevelLeft ?? self.topLevelLeft,
12101219 topLevelLet: topLevelLet ?? self.topLevelLet,
12111220 list: list ?? self.list,
1221+ localDate: localDate ?? self.localDate,
12121222 locale: locale ?? self.locale,
12131223 lock: lock ?? self.lock,
12141224 long: long ?? self.long,
@@ -1243,6 +1253,8 @@ extension TopLevel {
12431253 object: object ?? self.object,
12441254 objectMapper: objectMapper ?? self.objectMapper,
12451255 of: of ?? self.of,
1256+ offsetDateTime: offsetDateTime ?? self.offsetDateTime,
1257+ offsetTime: offsetTime ?? self.offsetTime,
12461258 oneway: oneway ?? self.oneway,
12471259 topLevelOpen: topLevelOpen ?? self.topLevelOpen,
12481260 topLevelOperator: topLevelOperator ?? self.topLevelOperator,
@@ -10678,6 +10690,77 @@ extension List {
1067810690 }
1067910691 }
1068010692
10693+enum UnionLocalDate: Codable {
10694+ case double(Double)
10695+ case localDate(LocalDate)
10696+
10697+ init(from decoder: Decoder) throws {
10698+ let container = try decoder.singleValueContainer()
10699+ if let x = try? container.decode(Double.self) {
10700+ self = .double(x)
10701+ return
10702+ }
10703+ if let x = try? container.decode(LocalDate.self) {
10704+ self = .localDate(x)
10705+ return
10706+ }
10707+ throw DecodingError.typeMismatch(UnionLocalDate.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionLocalDate"))
10708+ }
10709+
10710+ func encode(to encoder: Encoder) throws {
10711+ var container = encoder.singleValueContainer()
10712+ switch self {
10713+ case .double(let x):
10714+ try container.encode(x)
10715+ case .localDate(let x):
10716+ try container.encode(x)
10717+ }
10718+ }
10719+}
10720+
10721+// MARK: - LocalDate
10722+struct LocalDate: Codable {
10723+ private enum K: String, CodingKey { case unused }
10724+ init(from decoder: Decoder) throws {
10725+ _ = try decoder.container(keyedBy: K.self)
10726+ }
10727+ init() {
10728+ }
10729+}
10730+
10731+// MARK: LocalDate convenience initializers and mutators
10732+
10733+extension LocalDate {
10734+ init(data: Data) throws {
10735+ self = try newJSONDecoder().decode(LocalDate.self, from: data)
10736+ }
10737+
10738+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
10739+ guard let data = json.data(using: encoding) else {
10740+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
10741+ }
10742+ try self.init(data: data)
10743+ }
10744+
10745+ init(fromURL url: URL) throws {
10746+ try self.init(data: try Data(contentsOf: url))
10747+ }
10748+
10749+ func with(
10750+ ) -> LocalDate {
10751+ return LocalDate(
10752+ )
10753+ }
10754+
10755+ func jsonData() throws -> Data {
10756+ return try newJSONEncoder().encode(self)
10757+ }
10758+
10759+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
10760+ return String(data: try self.jsonData(), encoding: encoding)
10761+ }
10762+}
10763+
1068110764 enum UnionLocale: Codable {
1068210765 case double(Double)
1068310766 case localeClass(LocaleClass)
@@ -12737,6 +12820,148 @@ extension Of {
1273712820 }
1273812821 }
1273912822
12823+enum UnionOffsetDateTime: Codable {
12824+ case double(Double)
12825+ case offsetDateTime(OffsetDateTime)
12826+
12827+ init(from decoder: Decoder) throws {
12828+ let container = try decoder.singleValueContainer()
12829+ if let x = try? container.decode(Double.self) {
12830+ self = .double(x)
12831+ return
12832+ }
12833+ if let x = try? container.decode(OffsetDateTime.self) {
12834+ self = .offsetDateTime(x)
12835+ return
12836+ }
12837+ throw DecodingError.typeMismatch(UnionOffsetDateTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetDateTime"))
12838+ }
12839+
12840+ func encode(to encoder: Encoder) throws {
12841+ var container = encoder.singleValueContainer()
12842+ switch self {
12843+ case .double(let x):
12844+ try container.encode(x)
12845+ case .offsetDateTime(let x):
12846+ try container.encode(x)
12847+ }
12848+ }
12849+}
12850+
12851+// MARK: - OffsetDateTime
12852+struct OffsetDateTime: Codable {
12853+ private enum K: String, CodingKey { case unused }
12854+ init(from decoder: Decoder) throws {
12855+ _ = try decoder.container(keyedBy: K.self)
12856+ }
12857+ init() {
12858+ }
12859+}
12860+
12861+// MARK: OffsetDateTime convenience initializers and mutators
12862+
12863+extension OffsetDateTime {
12864+ init(data: Data) throws {
12865+ self = try newJSONDecoder().decode(OffsetDateTime.self, from: data)
12866+ }
12867+
12868+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12869+ guard let data = json.data(using: encoding) else {
12870+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12871+ }
12872+ try self.init(data: data)
12873+ }
12874+
12875+ init(fromURL url: URL) throws {
12876+ try self.init(data: try Data(contentsOf: url))
12877+ }
12878+
12879+ func with(
12880+ ) -> OffsetDateTime {
12881+ return OffsetDateTime(
12882+ )
12883+ }
12884+
12885+ func jsonData() throws -> Data {
12886+ return try newJSONEncoder().encode(self)
12887+ }
12888+
12889+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12890+ return String(data: try self.jsonData(), encoding: encoding)
12891+ }
12892+}
12893+
12894+enum UnionOffsetTime: Codable {
12895+ case double(Double)
12896+ case offsetTime(OffsetTime)
12897+
12898+ init(from decoder: Decoder) throws {
12899+ let container = try decoder.singleValueContainer()
12900+ if let x = try? container.decode(Double.self) {
12901+ self = .double(x)
12902+ return
12903+ }
12904+ if let x = try? container.decode(OffsetTime.self) {
12905+ self = .offsetTime(x)
12906+ return
12907+ }
12908+ throw DecodingError.typeMismatch(UnionOffsetTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetTime"))
12909+ }
12910+
12911+ func encode(to encoder: Encoder) throws {
12912+ var container = encoder.singleValueContainer()
12913+ switch self {
12914+ case .double(let x):
12915+ try container.encode(x)
12916+ case .offsetTime(let x):
12917+ try container.encode(x)
12918+ }
12919+ }
12920+}
12921+
12922+// MARK: - OffsetTime
12923+struct OffsetTime: Codable {
12924+ private enum K: String, CodingKey { case unused }
12925+ init(from decoder: Decoder) throws {
12926+ _ = try decoder.container(keyedBy: K.self)
12927+ }
12928+ init() {
12929+ }
12930+}
12931+
12932+// MARK: OffsetTime convenience initializers and mutators
12933+
12934+extension OffsetTime {
12935+ init(data: Data) throws {
12936+ self = try newJSONDecoder().decode(OffsetTime.self, from: data)
12937+ }
12938+
12939+ init(_ json: String, using encoding: String.Encoding = .utf8) throws {
12940+ guard let data = json.data(using: encoding) else {
12941+ throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil)
12942+ }
12943+ try self.init(data: data)
12944+ }
12945+
12946+ init(fromURL url: URL) throws {
12947+ try self.init(data: try Data(contentsOf: url))
12948+ }
12949+
12950+ func with(
12951+ ) -> OffsetTime {
12952+ return OffsetTime(
12953+ )
12954+ }
12955+
12956+ func jsonData() throws -> Data {
12957+ return try newJSONEncoder().encode(self)
12958+ }
12959+
12960+ func jsonString(encoding: String.Encoding = .utf8) throws -> String? {
12961+ return String(data: try self.jsonData(), encoding: encoding)
12962+ }
12963+}
12964+
1274012965 enum UnionOneway: Codable {
1274112966 case double(Double)
1274212967 case oneway(Oneway)
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
@@ -388,6 +388,12 @@ export class Open extends S.Class<Open>("Open")(S.Struct({}).pipe(S.filter(value
388388 export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
389389 ) {}
390390
391+export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
392+) {}
393+
394+export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
395+) {}
396+
391397 export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
392398 ) {}
393399
@@ -484,6 +490,9 @@ export class Lock extends S.Class<Lock>("Lock")(S.Struct({}).pipe(S.filter(value
484490 export class Locale extends S.Class<Locale>("Locale")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
485491 ) {}
486492
493+export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
494+) {}
495+
487496 export class List extends S.Class<List>("List")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value)))
488497 ) {}
489498
@@ -1175,6 +1184,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
11751184 "left": S.optional(S.Union(S.Number, Left)),
11761185 "let": S.optional(S.Union(S.Number, Let)),
11771186 "list": S.optional(S.Union(S.Number, List)),
1187+ "LocalDate": S.optional(S.Union(S.Number, LocalDate)),
11781188 "Locale": S.optional(S.Union(S.Number, Locale)),
11791189 "lock": S.optional(S.Union(S.Number, Lock)),
11801190 "long": S.optional(S.Union(S.Number, Long)),
@@ -1209,6 +1219,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({
12091219 "object": S.optional(S.Union(S.Number, ObjectClass)),
12101220 "ObjectMapper": S.optional(S.Union(S.Number, ObjectMapper)),
12111221 "of": S.optional(S.Union(S.Number, Of)),
1222+ "OffsetDateTime": S.optional(S.Union(S.Number, OffsetDateTime)),
1223+ "OffsetTime": S.optional(S.Union(S.Number, OffsetTime)),
12121224 "oneway": S.optional(S.Union(S.Number, Oneway)),
12131225 "open": S.optional(S.Union(S.Number, Open)),
12141226 "operator": S.optional(S.Union(S.Number, Operator)),
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
@@ -685,6 +685,10 @@ export const ListSchema = z.object({
685685 });
686686 export type List = z.infer<typeof ListSchema>;
687687
688+export const LocalDateSchema = z.object({
689+});
690+export type LocalDate = z.infer<typeof LocalDateSchema>;
691+
688692 export const LocaleSchema = z.object({
689693 });
690694 export type Locale = z.infer<typeof LocaleSchema>;
@@ -813,6 +817,14 @@ export const OfSchema = z.object({
813817 });
814818 export type Of = z.infer<typeof OfSchema>;
815819
820+export const OffsetDateTimeSchema = z.object({
821+});
822+export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>;
823+
824+export const OffsetTimeSchema = z.object({
825+});
826+export type OffsetTime = z.infer<typeof OffsetTimeSchema>;
827+
816828 export const OnewaySchema = z.object({
817829 });
818830 export type Oneway = z.infer<typeof OnewaySchema>;
@@ -1507,6 +1519,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15071519 "left": z.union([LeftSchema, z.number()]).optional(),
15081520 "let": z.union([LetSchema, z.number()]).optional(),
15091521 "list": z.union([ListSchema, z.number()]).optional(),
1522+ "LocalDate": z.union([LocalDateSchema, z.number()]).optional(),
15101523 "Locale": z.union([LocaleSchema, z.number()]).optional(),
15111524 "lock": z.union([LockSchema, z.number()]).optional(),
15121525 "long": z.union([LongSchema, z.number()]).optional(),
@@ -1541,6 +1554,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" &&
15411554 "object": z.union([ObjectClassSchema, z.number()]).optional(),
15421555 "ObjectMapper": z.union([ObjectMapperSchema, z.number()]).optional(),
15431556 "of": z.union([OfSchema, z.number()]).optional(),
1557+ "OffsetDateTime": z.union([OffsetDateTimeSchema, z.number()]).optional(),
1558+ "OffsetTime": z.union([OffsetTimeSchema, z.number()]).optional(),
15441559 "oneway": z.union([OnewaySchema, z.number()]).optional(),
15451560 "open": z.union([OpenSchema, z.number()]).optional(),
15461561 "operator": z.union([OperatorSchema, z.number()]).optional(),
Mschema-typescriptdefault / TopLevel.ts+12 −0
@@ -185,6 +185,7 @@ export interface TopLevel {
185185 left?: UnionLeft;
186186 let?: UnionLet;
187187 list?: UnionList;
188+ LocalDate?: UnionLocalDate;
188189 Locale?: UnionLocale;
189190 lock?: UnionLock;
190191 long?: UnionLong;
@@ -219,6 +220,8 @@ export interface TopLevel {
219220 object?: UnionObject;
220221 ObjectMapper?: UnionObjectMapper;
221222 of?: UnionOf;
223+ OffsetDateTime?: UnionOffsetDateTime;
224+ OffsetTime?: UnionOffsetTime;
222225 oneway?: UnionOneway;
223226 open?: UnionOpen;
224227 operator?: UnionOperator;
@@ -414,6 +417,8 @@ export type UnionJSONReader = object | number;
414417
415418 export type UnionJSONTokenType = object | number;
416419
420+export type UnionLocalDate = object | number;
421+
417422 export type UnionLocale = object | number;
418423
419424 export type UnionMapEntry = object | number;
@@ -432,6 +437,10 @@ export type UnionNone = object | number;
432437
433438 export type UnionObjectMapper = object | number;
434439
440+export type UnionOffsetDateTime = object | number;
441+
442+export type UnionOffsetTime = object | number;
443+
435444 export type UnionProtocol = object | number;
436445
437446 export type UnionRegExp = object | number;
@@ -1373,6 +1382,7 @@ const typeMap: any = {
13731382 { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) },
13741383 { json: "let", js: "let", typ: u(undefined, u(m("any"), 3.14)) },
13751384 { json: "list", js: "list", typ: u(undefined, u(m("any"), 3.14)) },
1385+ { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(m("any"), 3.14)) },
13761386 { json: "Locale", js: "Locale", typ: u(undefined, u(m("any"), 3.14)) },
13771387 { json: "lock", js: "lock", typ: u(undefined, u(m("any"), 3.14)) },
13781388 { json: "long", js: "long", typ: u(undefined, u(m("any"), 3.14)) },
@@ -1407,6 +1417,8 @@ const typeMap: any = {
14071417 { json: "object", js: "object", typ: u(undefined, u(m("any"), 3.14)) },
14081418 { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(m("any"), 3.14)) },
14091419 { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) },
1420+ { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(m("any"), 3.14)) },
1421+ { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(m("any"), 3.14)) },
14101422 { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) },
14111423 { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) },
14121424 { json: "operator", js: "operator", typ: u(undefined, u(m("any"), 3.14)) },
No generated files match these filters.