Skip to content

CloudFlare rejects the YAML #108

@planetrocky

Description

@planetrocky

When uploading the schema to Cloudflare for their API Abuse protection, this is the response:

1 error found in the file. Correct the issue and upload the file again.
 {
  "code": 21400,
  "message": "failed to load OpenAPI file: failed parsing YAML document: line 4736: cannot unmarshal !!seq into string (critical)"
}

I ran it through yamllint, which found probably spurious indentation. RedHat's YAML seemed happy enough.

$ yamllint --version
yamllint 1.37.1
$ yamllint -s plex-api-spec.yaml
plex-api-spec.yaml
  5250:51   error    trailing spaces  (trailing-spaces)
  13680:1   error    trailing spaces  (trailing-spaces)
  13688:1   error    trailing spaces  (trailing-spaces)
  13693:1   error    trailing spaces  (trailing-spaces)
  13822:1   error    trailing spaces  (trailing-spaces)
  13832:1   error    trailing spaces  (trailing-spaces)
  14340:1   error    trailing spaces  (trailing-spaces)
  14350:1   error    trailing spaces  (trailing-spaces)
  14642:11  warning  wrong indentation: expected 12 but found 10  (indentation)
  14645:11  warning  wrong indentation: expected 12 but found 10  (indentation)
  14676:11  warning  wrong indentation: expected 12 but found 10  (indentation)
  14683:11  warning  wrong indentation: expected 12 but found 10  (indentation)
  15212:8   warning  wrong indentation: expected 8 but found 7  (indentation)
  15355:11  warning  wrong indentation: expected 12 but found 10  (indentation)
  16933:1   error    trailing spaces  (trailing-spaces)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions