Skip to content

Property System.String String is not included in the context #8

Description

@colin-young

I've got things wired up with Autofac now, and I'm getting the Link in the header, but when I try to view the docs I'm getting: Hydra.Discovery.SupportedProperties.ApiDocumentationException: Property System.String String is not included in the context

I've got a single class registered with the SupportedClass attribute, and the first property throws that exception. When I step into the code, it appears that the DefaultPropertyIdProvider is getting a ContextProvider of type NullContextProvider which appears to be hard-coded to return null.

[SupportedClass("http://example.api/o#TestItem")]
public class TestItem
{
    public TestItem(string s)
    {
        String = s;
    }

    public string String { get; private set; }
    public string String2 { get; set; }
}

Clearly I'm missing a vital step or two in configuring my components.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions