Better handling of Inline schema (#15682)

* skip allOf inline subschema created as $ref

* add option for fallback

* add back atleastonemodel

* add log

* update java, kotlin, js samples

* update tests

* fix native client test

* fix java client errors by regenerating test files

* clean up python

* clean up powershell

* clean up php

* clean up ruby

* update erlang, elixir

* update dart samples

* update ts samples

* update r, go samples

* update perl

* update swift

* add back files

* add back files

* remove outdated test files

* fix test
This commit is contained in:
William Cheng
2023-06-11 15:35:58 +08:00
committed by GitHub
parent 21748e024a
commit 6788f43af0
1026 changed files with 1185 additions and 50712 deletions

View File

@@ -243,14 +243,6 @@ genBigCat n =
<*> arbitraryReducedMaybe n -- bigCatDeclawed :: Maybe Bool
<*> arbitraryReducedMaybe n -- bigCatKind :: Maybe E'Kind
instance Arbitrary BigCatAllOf where
arbitrary = sized genBigCatAllOf
genBigCatAllOf :: Int -> Gen BigCatAllOf
genBigCatAllOf n =
BigCatAllOf
<$> arbitraryReducedMaybe n -- bigCatAllOfKind :: Maybe E'Kind
instance Arbitrary Capitalization where
arbitrary = sized genCapitalization
@@ -274,14 +266,6 @@ genCat n =
<*> arbitraryReducedMaybe n -- catColor :: Maybe Text
<*> arbitraryReducedMaybe n -- catDeclawed :: Maybe Bool
instance Arbitrary CatAllOf where
arbitrary = sized genCatAllOf
genCatAllOf :: Int -> Gen CatAllOf
genCatAllOf n =
CatAllOf
<$> arbitraryReducedMaybe n -- catAllOfDeclawed :: Maybe Bool
instance Arbitrary Category where
arbitrary = sized genCategory
@@ -317,14 +301,6 @@ genDog n =
<*> arbitraryReducedMaybe n -- dogColor :: Maybe Text
<*> arbitraryReducedMaybe n -- dogBreed :: Maybe Text
instance Arbitrary DogAllOf where
arbitrary = sized genDogAllOf
genDogAllOf :: Int -> Gen DogAllOf
genDogAllOf n =
DogAllOf
<$> arbitraryReducedMaybe n -- dogAllOfBreed :: Maybe Text
instance Arbitrary EnumArrays where
arbitrary = sized genEnumArrays

View File

@@ -34,15 +34,12 @@ main =
propMimeEq MimeJSON (Proxy :: Proxy ArrayOfNumberOnly)
propMimeEq MimeJSON (Proxy :: Proxy ArrayTest)
propMimeEq MimeJSON (Proxy :: Proxy BigCat)
propMimeEq MimeJSON (Proxy :: Proxy BigCatAllOf)
propMimeEq MimeJSON (Proxy :: Proxy Capitalization)
propMimeEq MimeJSON (Proxy :: Proxy Cat)
propMimeEq MimeJSON (Proxy :: Proxy CatAllOf)
propMimeEq MimeJSON (Proxy :: Proxy Category)
propMimeEq MimeJSON (Proxy :: Proxy ClassModel)
propMimeEq MimeJSON (Proxy :: Proxy Client)
propMimeEq MimeJSON (Proxy :: Proxy Dog)
propMimeEq MimeJSON (Proxy :: Proxy DogAllOf)
propMimeEq MimeJSON (Proxy :: Proxy EnumArrays)
propMimeEq MimeJSON (Proxy :: Proxy EnumClass)
propMimeEq MimeJSON (Proxy :: Proxy EnumTest)