diff --git a/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs b/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs index f30643b9..b3a2db52 100644 --- a/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs +++ b/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs @@ -330,7 +330,9 @@ namespace Newtonsoft.Json.Schema GenerateISerializableContract(type, (JsonISerializableContract) contract); break; #endif +#if !(NET35 || NET20 || WINDOWS_PHONE) case JsonContractType.Dynamic: +#endif case JsonContractType.Linq: CurrentSchema.Type = JsonSchemaType.Any; break;