mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-23 02:34:55 +01:00
* ProtoBuf
* .
* x
* ---
* x
* fx
* ...
* sc
* ...
* .
* groen
* x
* fix tests
* ok!?
* fix tests
* fix tests
* !
* x
* 6
* .
* x
* ivaluematcher
* transformer
* .
* sc
* .
* mapping
* x
* tra
* com
* ...
* .
* .
* .
* AddProtoDefinition
* .
* set
* grpahj
* .
* .
* IdOrText
* ...
* async
* async2
* .
* t
* nuget
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0-preview-04" />
* http version
* tests
* .WithHttpVersion("2")
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0" />
* HttpVersionParser
61 lines
1.4 KiB
C#
61 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using AnyOfTypes;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace WireMock.Models;
|
|
|
|
/// <summary>
|
|
/// GraphQLSchemaDetails
|
|
/// </summary>
|
|
public class GraphQLSchemaDetails
|
|
{
|
|
/// <summary>
|
|
/// The GraphQL schema as a string.
|
|
/// </summary>
|
|
public string? SchemaAsString { get; set; }
|
|
|
|
/// <summary>
|
|
/// The GraphQL schema as a StringPattern.
|
|
/// </summary>
|
|
public StringPattern? SchemaAsStringPattern { get; set; }
|
|
|
|
#if GRAPHQL
|
|
/// <summary>
|
|
/// The GraphQL schema as a <seealso cref="GraphQL.Types.ISchema"/>.
|
|
/// </summary>
|
|
public GraphQL.Types.ISchema? SchemaAsISchema { get; set; }
|
|
|
|
/// <summary>
|
|
/// The GraphQL Schema.
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public AnyOf<string, StringPattern, GraphQL.Types.ISchema>? Schema
|
|
{
|
|
get
|
|
{
|
|
if (SchemaAsString != null)
|
|
{
|
|
return SchemaAsString;
|
|
}
|
|
|
|
if (SchemaAsStringPattern != null)
|
|
{
|
|
return SchemaAsStringPattern;
|
|
}
|
|
|
|
if (SchemaAsISchema != null)
|
|
{
|
|
return new AnyOf<string, StringPattern, GraphQL.Types.ISchema>(SchemaAsISchema);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// The custom Scalars to define for this schema.
|
|
/// </summary>
|
|
public IDictionary<string, Type>? CustomScalars { get; set; }
|
|
} |