Skip to content

working with a local schema #62

@gilesknap

Description

@gilesknap

Notes on some things to add in future.

In the section on working with support modules we need to enable the ability to generate the schema for a generic IOC locally.

To do this we would just need to (for example pmac support):

  • make your changes as needed to /epics/ioc-pmac/ibek-support/pmac/pmac.ibek.support.yaml
  • perhaps do that automatically with something like:
    • ../../ibek/builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/pmac/2-5-23beta1/ pmac/pmac.ibek.support.yaml -o '14:A+B 474:A+B 801:1 805:1.0 804:1.0'
  • update the symlinks (only the first time)
    • ibek support generate-links pmac
  • regenerate the schema
    • ibek ioc generate-schema --output /tmp/pmac.ibek.ioc.schema.json
  • change the top of the ioc.yaml instance you are working with to
    • # yaml-language-server: $schema=/tmp/pmac.ibek.ioc.schema.json

Having done the above once you can now:

  • edit pmac.ibek.support.yaml
  • run ibek ioc generate-schema --output /tmp/pmac.ibek.ioc.schema.json
  • continue editing your ioc.yaml which will now see the new schema

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