Skip to content

Extractor error writing policy file - JSON object does not have a property named 'value' #802

@ToddHamptonGit

Description

@ToddHamptonGit

Release version

v7.0.0-alpha.1.0.2

Describe the bug

Extractor fails when pulling operation policy from API. This occurred on unmodified Echo API. Premium v2 instance.

Expected behavior

Extractor should log and move on if error for missing property "value" ?

Actual behavior

info: extractor[0]
Writing policy file for apis/echo-api/operations/retrieve-header-only/policies/policy...
crit: extractor[0]
Extractor failed. Please check the logs for more details.
System.InvalidOperationException: Property 'value' is invalid. JSON object does not have a property named 'value'.
at common.Result.<>c__131.<IfErrorThrow>b__13_1(Error error) in /home/runner/work/apiops/apiops/src/common/Result.cs:line 206 at common.Result1.Match[TResult](Func2 onSuccess, Func2 onError) in /home/runner/work/apiops/apiops/src/common/Result.cs:line 52
at common.Result.IfErrorThrow[T](Result`1 result) in /home/runner/work/apiops/apiops/src/common/Result.cs:line 205
at common.ResourceModule.<>c__DisplayClass5_0.<g__getSpecificationContents|3>d.MoveNext() in /home/runner/work/apiops/apiops/src/common/ApiSpecification.cs:line 236
--- End of stack trace from previous location ---

Reproduction Steps

Ran extractor on v7.0.0-alpha.1.0.2 for the first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions