Skip to main content

normalize_structured_document

Function normalize_structured_document 

Source
pub fn normalize_structured_document(
    resource: &GithubResource,
    json: &Value,
) -> Result<GithubDocument, NormalizeError>
Expand description

Normalize gh --json or GraphQL JSON into the renderer’s stable model.

The function accepts the ordinary GitHub CLI spelling as well as the data.repository.issueOrPullRequest GraphQL envelope used by shims. It never accepts display-oriented text; malformed structured data is an error.