Skip to content

🐞 Bug Report: Optional metadata properties aren't handled as such #350

@johnbillion

Description

@johnbillion

Detailed Description

Various DID metadata properties are optional but lead to the FAIR plugin triggering PHP warnings when they're not present:

  • sections
  • filename (not actually part of the FAIR spec)
  • release.requires
  • release.suggests

Expected Behavior

Metadata properties that are optional should be handled as such.

Current Behavior

PHP warnings are triggered in the following locations:

Steps to Reproduce

  1. Install a plugin which uses a FAIR metadata document that only contains the minimal fields that are required by the FAIR protocol spec.
    • If you're testing with existing plugin or data you'll need to flush transients
  2. Trigger update checks.
  3. Observe PHP errors from the FAIR plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions