Schema issues in SDDS now that schema is defined

Created on 26 August 2024, 23 days ago
Updated 29 August 2024, 20 days ago

Problem/Motivation

Getting this error and there may be others:

In ComponentValidator.php line 121:
                                                                                                                                                                     
  [props.properties.link.properties] Array value found, but an object is required/n[props.properties.image.properties] Array value found, but an object is required  

now that we made this change:

πŸ“Œ Add metadata.schema.json to all SDDS component YAMLs Fixed

Steps to reproduce

Proposed resolution

Debug and fix.

Remaining tasks

Debug and fix.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Kristen Pol
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Seems to be things like this which changed in the recent script changes:

        link:
          type: object
          title: Link
          description: 'Link object:'
          properties: {}
    
        image:
          type: object
          title: Image
          description: 'Image object:'
          properties: {}
    
  • Issue was unassigned.
  • Status changed to Postponed 23 days ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Temporarily comment these out while we work on other issues. Since this component is one for the old design, moving this to postponed for now.

    +++ b/starshot_demo/components/02-molecules/starshot-card/starshot-card.component.yml
    @@ -41,12 +41,13 @@ props:
           title: Summary
           description: Card summary.
     
    -    link:
    -      type: object
    -      title: Link
    -      description: 'Link object:'
    -      properties: {}
    -
    +        # @fixme in XB, this is a string.
    +        # we can add explicit, link_text, link_href, etc. to support this
    +        #link:
    +        #type: object
    +        #title: Link
    +        #description: 'Link object:'
    +        #properties: {}
     
         background:
           type: string
    @@ -104,11 +105,12 @@ props:
                 type: boolean
                 title: Link is external.
     
    -    image:
    -      type: object
    -      title: Image
    -      description: 'Image object:'
    -      properties: {}
    +              # @fixme in XB example, the image/media is a slot.
    +              #image:
    +              #type: object
    +              #title: Image
    +              #description: 'Image object:'
    +              #properties: {}
     
    
    
  • Status changed to Active 20 days ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    This might be a duplicate but reopening.

  • Assigned to Kristen Pol
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Assign to me

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA
  • Issue was unassigned.
  • Status changed to Closed: duplicate 20 days ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    for real

Production build 0.71.5 2024