spec icon indicating copy to clipboard operation
spec copied to clipboard

`keywords` is not included in devContainerFeature.schema.json

Open LosFarmosCTL opened this issue 3 years ago • 7 comments

The documentation for Features on containers.dev lists keywords as a possible value for the devcontainer-feature.json file. That entry is not included in the schema file though. Is this an error with the documentation and keywords are not actually meant to be included (anymore?), or is this something that's missing from the schema?

LosFarmosCTL avatar Feb 23 '23 21:02 LosFarmosCTL

Thanks for opening this! @joshspicer I think this is just missing from the schema, but please let me know otherwise!

bamurtaugh avatar Feb 23 '23 21:02 bamurtaugh

We just got bitten by this issue for the second time in a few months 😢 I ran into it a while ago, then forgot about it or thought it was resolved after ~1 year.

Today we attempted to categorise our private features (100+). The keywords property is part of the official documentation.

We discussed categories, then added keywords to all our devcontainer-feature.json files. Now we can't publish our features using the official GitHub Action any more. The schema validation step fails (enabled by default).

Screenshot 2024-01-22 at 20 45 42

We're now forced to manually revert a large number of (partial) commits.

The workaround - disabling schema validation for the action - is not an option for us.

For anyone facing the same issue, you can disable schema validation in the workflow file:

jobs:
  publish:
     # [..]
      - name: "Publish Features"
        uses: devcontainers/action@v1
        with:
          disable-schema-validation: "true"
          # [..]

nifr avatar Jan 22 '24 20:01 nifr

I opened PR #402 to address this issue. It adds the missing keywords property to the feature schema.

@bamurtaugh @joshspicer - Feel to review it and have a lovely day 👋

nifr avatar Jan 22 '24 20:01 nifr

With the new release of @devcontainers/action v1.4.1, this should be fixed, thanks! ✨

@nifr Feel free to reopen if you are still running into this issue!

samruddhikhandale avatar Jan 22 '24 22:01 samruddhikhandale

HBI iam ikboll gazi member ikboll Gazi [email protected] 91 9775728082 thanks you so much 💗 💓 💖 ❤️ 💕 😊

ikbollgazi avatar Jul 22 '26 06:07 ikbollgazi

HB thanks you so much 💗 💓 💖 ❤️ 💕 💛

ikbollgazi avatar Jul 22 '26 06:07 ikbollgazi

File change

Fleinsopp avatar Jul 23 '26 09:07 Fleinsopp