@@ -546,7 +546,7 @@ class DeserializeStructGeneratorTest {
546546 }
547547
548548 @Test
549- fun `it deserializes a structure containing a set of primitive values` () {
549+ fun `it deserializes a structure containing a list of unique primitive values` () {
550550 val model = (
551551 modelPrefix + """
552552 structure FooResponse {
@@ -566,7 +566,7 @@ class DeserializeStructGeneratorTest {
566566 when (findNextFieldIndex()) {
567567 PAYLOAD_DESCRIPTOR.index -> builder.payload =
568568 deserializer.deserializeList(PAYLOAD_DESCRIPTOR) {
569- val col0 = mutableSetOf <Int>()
569+ val col0 = mutableListOf <Int>()
570570 while (hasNextElement()) {
571571 val el0 = if (nextHasValue()) { deserializeInt() } else { deserializeNull(); continue }
572572 col0.add(el0)
@@ -586,15 +586,15 @@ class DeserializeStructGeneratorTest {
586586 }
587587
588588 @Test
589- fun `it deserializes a structure containing a set of a map primitive values ` () {
589+ fun `it deserializes a structure containing a list of unique maps ` () {
590590 val model = (
591591 modelPrefix + """
592592 structure FooResponse {
593- payload: IntegerSet
593+ payload: MapSet
594594 }
595595
596596 @uniqueItems
597- list IntegerSet {
597+ list MapSet {
598598 member: StringMap
599599 }
600600
@@ -611,7 +611,7 @@ class DeserializeStructGeneratorTest {
611611 when (findNextFieldIndex()) {
612612 PAYLOAD_DESCRIPTOR.index -> builder.payload =
613613 deserializer.deserializeList(PAYLOAD_DESCRIPTOR) {
614- val col0 = mutableSetOf <Map<String, String>>()
614+ val col0 = mutableListOf <Map<String, String>>()
615615 while (hasNextElement()) {
616616 val el0 = deserializer.deserializeMap(PAYLOAD_C0_DESCRIPTOR) {
617617 val map1 = mutableMapOf<String, String>()
@@ -639,15 +639,15 @@ class DeserializeStructGeneratorTest {
639639 }
640640
641641 @Test
642- fun `it deserializes a structure containing a set of a list of primitive values` () {
642+ fun `it deserializes a structure containing a list of unique lists of primitive values` () {
643643 val model = (
644644 modelPrefix + """
645645 structure FooResponse {
646- payload: IntegerSet
646+ payload: ListSet
647647 }
648648
649649 @uniqueItems
650- list IntegerSet {
650+ list ListSet {
651651 member: StringList
652652 }
653653
@@ -663,7 +663,7 @@ class DeserializeStructGeneratorTest {
663663 when (findNextFieldIndex()) {
664664 PAYLOAD_DESCRIPTOR.index -> builder.payload =
665665 deserializer.deserializeList(PAYLOAD_DESCRIPTOR) {
666- val col0 = mutableSetOf <List<String>>()
666+ val col0 = mutableListOf <List<String>>()
667667 while (hasNextElement()) {
668668 val el0 = deserializer.deserializeList(PAYLOAD_C0_DESCRIPTOR) {
669669 val col1 = mutableListOf<String>()
@@ -690,7 +690,7 @@ class DeserializeStructGeneratorTest {
690690 }
691691
692692 @Test
693- fun `it deserializes a structure containing a nested structure of a set of primitive values` () {
693+ fun `it deserializes a structure containing a nested structure of a list of unique primitive values` () {
694694 val model = (
695695 modelPrefix + """
696696 structure FooResponse {
@@ -726,7 +726,7 @@ class DeserializeStructGeneratorTest {
726726 }
727727
728728 @Test
729- fun `it deserializes a structure containing a list of a set of primitive values` () {
729+ fun `it deserializes a structure containing a list of a list of unique primitive values` () {
730730 val model = (
731731 modelPrefix + """
732732 structure FooResponse {
@@ -750,10 +750,10 @@ class DeserializeStructGeneratorTest {
750750 when (findNextFieldIndex()) {
751751 PAYLOAD_DESCRIPTOR.index -> builder.payload =
752752 deserializer.deserializeList(PAYLOAD_DESCRIPTOR) {
753- val col0 = mutableListOf<Set <Int>>()
753+ val col0 = mutableListOf<List <Int>>()
754754 while (hasNextElement()) {
755755 val el0 = deserializer.deserializeList(PAYLOAD_C0_DESCRIPTOR) {
756- val col1 = mutableSetOf <Int>()
756+ val col1 = mutableListOf <Int>()
757757 while (hasNextElement()) {
758758 val el1 = if (nextHasValue()) { deserializeInt() } else { deserializeNull(); continue }
759759 col1.add(el1)
@@ -777,7 +777,7 @@ class DeserializeStructGeneratorTest {
777777 }
778778
779779 @Test
780- fun `it deserializes a structure containing a map of a set of primitive values` () {
780+ fun `it deserializes a structure containing a map of a list of unique primitive values` () {
781781 val model = (
782782 modelPrefix + """
783783 structure FooResponse {
@@ -802,13 +802,13 @@ class DeserializeStructGeneratorTest {
802802 when (findNextFieldIndex()) {
803803 PAYLOAD_DESCRIPTOR.index -> builder.payload =
804804 deserializer.deserializeMap(PAYLOAD_DESCRIPTOR) {
805- val map0 = mutableMapOf<String, Set <Int>>()
805+ val map0 = mutableMapOf<String, List <Int>>()
806806 while (hasNextEntry()) {
807807 val k0 = key()
808808 val v0 =
809809 if (nextHasValue()) {
810810 deserializer.deserializeList(PAYLOAD_C0_DESCRIPTOR) {
811- val col1 = mutableSetOf <Int>()
811+ val col1 = mutableListOf <Int>()
812812 while (hasNextElement()) {
813813 val el1 = if (nextHasValue()) { deserializeInt() } else { deserializeNull(); continue }
814814 col1.add(el1)
@@ -834,7 +834,7 @@ class DeserializeStructGeneratorTest {
834834 }
835835
836836 @Test
837- fun `it deserializes a structure containing a sparse map of a set of primitive values` () {
837+ fun `it deserializes a structure containing a sparse map of a list of unique primitive values` () {
838838 val model = (
839839 modelPrefix + """
840840 structure FooResponse {
@@ -860,13 +860,13 @@ class DeserializeStructGeneratorTest {
860860 when (findNextFieldIndex()) {
861861 PAYLOAD_DESCRIPTOR.index -> builder.payload =
862862 deserializer.deserializeMap(PAYLOAD_DESCRIPTOR) {
863- val map0 = mutableMapOf<String, Set <Int>?>()
863+ val map0 = mutableMapOf<String, List <Int>?>()
864864 while (hasNextEntry()) {
865865 val k0 = key()
866866 val v0 =
867867 if (nextHasValue()) {
868868 deserializer.deserializeList(PAYLOAD_C0_DESCRIPTOR) {
869- val col1 = mutableSetOf <Int>()
869+ val col1 = mutableListOf <Int>()
870870 while (hasNextElement()) {
871871 val el1 = if (nextHasValue()) { deserializeInt() } else { deserializeNull(); continue }
872872 col1.add(el1)
0 commit comments