public void TranslateV2ExternalReference() { var reference = OpenApiV2.ParseReference("swagger.json#/parameters/blahblah"); Assert.Equal(ReferenceType.Parameter, reference.ReferenceType); Assert.Equal("swagger.json", reference.ExternalFilePath); Assert.Equal("blahblah", reference.TypeName); }
public void TranslateV2LocalReference() { var reference = OpenApiV2.ParseReference("blahblah"); Assert.Equal(ReferenceType.Schema, reference.ReferenceType); Assert.Equal(string.Empty, reference.ExternalFilePath); Assert.Equal("blahblah", reference.TypeName); }