public ChangedRequestBodyBO(OpenApiRequestBody oldRequestBody, OpenApiRequestBody newRequestBody,
                             DiffContextBO context)
 {
     _oldRequestBody = oldRequestBody;
     _newRequestBody = newRequestBody;
     _context        = context;
 }
Ejemplo n.º 2
0
 public ChangedHeadersBO(IDictionary <string, OpenApiHeader> oldHeaders,
                         IDictionary <string, OpenApiHeader> newHeaders, DiffContextBO context)
 {
     _oldHeaders = oldHeaders;
     _newHeaders = newHeaders;
     _context    = context;
 }
 public ChangedOneOfSchemaBO(Dictionary <string, string> oldMapping, Dictionary <string, string> newMapping,
                             DiffContextBO context)
 {
     _oldMapping = oldMapping;
     _newMapping = newMapping;
     Context     = context;
 }
Ejemplo n.º 4
0
 public ChangedParameterBO(string name, ParameterLocation? @in, OpenApiParameter oldParameter,
                           OpenApiParameter newParameter, DiffContextBO context)
 {
     _context     = context;
     Name         = name;
     In           = @in;
     OldParameter = oldParameter;
     NewParameter = newParameter;
 }
Ejemplo n.º 5
0
 protected ChangedListBO(IList <T> oldValue, IList <T> newValue, DiffContextBO context)
 {
     OldValue  = oldValue;
     NewValue  = newValue;
     Context   = context;
     Shared    = new List <T>();
     Increased = new List <T>();
     Missing   = new List <T>();
 }
Ejemplo n.º 6
0
 public ChangedAPIResponseBO(OpenApiResponses oldApiResponses, OpenApiResponses newApiResponses,
                             DiffContextBO context)
 {
     _oldApiResponses = oldApiResponses;
     _newApiResponses = newApiResponses;
     _context         = context;
     Increased        = new Dictionary <string, OpenApiResponse>();
     Missing          = new Dictionary <string, OpenApiResponse>();
     Changed          = new Dictionary <string, ChangedResponseBO>();
 }
Ejemplo n.º 7
0
 public ChangedParametersBO(List <OpenApiParameter> oldParameterList, List <OpenApiParameter> newParameterList,
                            DiffContextBO context)
 {
     _oldParameterList = oldParameterList;
     _newParameterList = newParameterList;
     _context          = context;
     Increased         = new List <OpenApiParameter>();
     Missing           = new List <OpenApiParameter>();
     Changed           = new List <ChangedParameterBO>();
 }
Ejemplo n.º 8
0
 public ChangedContentBO(Dictionary <string, OpenApiMediaType> oldContent,
                         Dictionary <string, OpenApiMediaType> newContent, DiffContextBO context)
 {
     _oldContent = oldContent;
     _newContent = newContent;
     _context    = context;
     Increased   = new Dictionary <string, OpenApiMediaType>();
     Missing     = new Dictionary <string, OpenApiMediaType>();
     Changed     = new Dictionary <string, ChangedMediaTypeBO>();
 }
Ejemplo n.º 9
0
 public ChangedPathBO(string pathUrl, OpenApiPathItem oldPath, OpenApiPathItem newPath, DiffContextBO context)
 {
     _pathUrl  = pathUrl;
     _oldPath  = oldPath;
     _newPath  = newPath;
     _context  = context;
     Increased = new Dictionary <OperationType, OpenApiOperation>();
     Missing   = new Dictionary <OperationType, OpenApiOperation>();
     Changed   = new List <ChangedOperationBO>();
 }
Ejemplo n.º 10
0
 public ChangedExtensionsBO(Dictionary <string, IOpenApiExtension> oldExtensions,
                            Dictionary <string, IOpenApiExtension> newExtensions, DiffContextBO context)
 {
     _oldExtensions = oldExtensions;
     _newExtensions = newExtensions;
     _context       = context;
     Increased      = new Dictionary <string, ChangedBO>();
     Missing        = new Dictionary <string, ChangedBO>();
     Changed        = new Dictionary <string, ChangedBO>();
 }
Ejemplo n.º 11
0
        private DiffContextBO Copy()
        {
            var context = new DiffContextBO
            {
                URL        = URL,
                Parameters = Parameters,
                Method     = Method,
                IsResponse = IsResponse,
                IsRequest  = IsRequest,
                IsRequired = IsRequired
            };

            return(context);
        }
Ejemplo n.º 12
0
 public ChangedReadOnlyBO(bool?oldValue, bool?newValue, DiffContextBO context)
 {
     _context  = context;
     _oldValue = oldValue ?? false;
     _newValue = newValue ?? false;
 }
Ejemplo n.º 13
0
 public ChangedRequiredBO(IList <string> oldValue, IList <string> newValue, DiffContextBO context) : base(oldValue,
                                                                                                          newValue, context)
 {
 }
Ejemplo n.º 14
0
 public ChangedMinLengthBO(int?oldValue, int?newValue, DiffContextBO context)
 {
     _oldValue = oldValue;
     _newValue = newValue;
     _context  = context;
 }
Ejemplo n.º 15
0
 public ChangedHeaderBO(OpenApiHeader oldHeader, OpenApiHeader newHeader, DiffContextBO context)
 {
     OldHeader = oldHeader;
     NewHeader = newHeader;
     _context  = context;
 }
Ejemplo n.º 16
0
 public ChangedMediaTypeBO(OpenApiSchema oldSchema, OpenApiSchema newSchema, DiffContextBO context)
 {
     _oldSchema = oldSchema;
     _newSchema = newSchema;
     _context   = context;
 }
Ejemplo n.º 17
0
 public ChangedResponseBO(OpenApiResponse oldApiResponse, OpenApiResponse newApiResponse, DiffContextBO context)
 {
     OldApiResponse = oldApiResponse;
     NewApiResponse = newApiResponse;
     _context       = context;
 }