Skip to content

Commit

Permalink
✨ Add json tags to Tag and Technology
Browse files Browse the repository at this point in the history
  • Loading branch information
ewen-lbh committed Apr 21, 2024
1 parent 18603ef commit 413b030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- field abbreviations to paragraph blocks that maps abbreviations to their HTML definitions
- `json` tags to Tag and Technology. could be useful to serialize to _JSON_ (and not YAML) the tags and or techs repository files, without having weird keys in the resulting JSON

### Changed

Expand Down
6 changes: 3 additions & 3 deletions metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Tag struct {
Plural string `yaml:"plural"`
Description string `yaml:"description,omitempty"`
// URL to a website where more information can be found about this tag.
LearnMoreAt string `yaml:"learn more at,omitempty"`
LearnMoreAt string `yaml:"learn more at,omitempty" json:"learnMoreAt,omitempty"`
// Other singular-form names of tags that refer to this tag. The names mentionned here should not be used to define other tags.
Aliases []string `yaml:"aliases,omitempty"`
// Various ways to automatically detect that a work is tagged with this tag.
Expand All @@ -40,7 +40,7 @@ type Tag struct {
// To be implemented
Search []string `yaml:"search,omitempty"`
// Consider the work to be tagged with this tag if it was made with any of the technologies specified here.
MadeWith []string `yaml:"made with,omitempty"`
MadeWith []string `yaml:"made with,omitempty" json:"madeWith,omitempty"`
} `yaml:"detect,omitempty"`
}

Expand Down Expand Up @@ -74,7 +74,7 @@ type Technology struct {
Description string `yaml:"description,omitempty"`

// URL to a website where more information can be found about this technology.
LearnMoreAt string `yaml:"learn more at,omitempty"`
LearnMoreAt string `yaml:"learn more at,omitempty" json:"learnMoreAt,omitempty"`

// Other technology slugs that refer to this technology. The slugs mentionned here should not be used in the definition of other technologies.
Aliases []string `yaml:"aliases,omitempty"`
Expand Down

0 comments on commit 413b030

Please sign in to comment.