[GH-ISSUE #876] semver version in yaml format #5682

Closed
opened 2026-06-15 12:11:53 -05:00 by GiteaMirror · 8 comments
Owner

Originally created by @ghost on GitHub (Sep 21, 2022).
Original GitHub issue: https://github.com/semver/semver/issues/876

Hi everyone.

I would like to know if you all have ever thought about creating a semver file in Yaml. Would it be possible to have a semver.yaml file?

semver.yaml

version_string:
   - 0.2.1
   - 2.10.5  
   - 1.0.1a
   - 1.0.1a2  
   - 1.0.1b      
   - 1.0.1rc1
Originally created by @ghost on GitHub (Sep 21, 2022). Original GitHub issue: https://github.com/semver/semver/issues/876 Hi everyone. I would like to know if you all have ever thought about creating a semver file in Yaml. *Would it be possible to have a **semver.yaml** file?* **semver.yaml** ```yaml version_string: - 0.2.1 - 2.10.5 - 1.0.1a - 1.0.1a2 - 1.0.1b - 1.0.1rc1 ```
Author
Owner

@JohnTitor commented on GitHub (Sep 21, 2022):

The current comment doesn't describe what that YAML file does, could you clarify? What do you want for the semver specification?

<!-- gh-comment-id:1253585589 --> @JohnTitor commented on GitHub (Sep 21, 2022): The current comment doesn't describe what that YAML file does, could you clarify? What do you want for the semver specification?
Author
Owner

@ghost commented on GitHub (Sep 21, 2022):

Hi JohnTitor. So...

The current comment doesn't describe what that YAML file does, could you clarify?

YAML is a human-friendly data serialization.

What do you want for the semver specification?

I would like to know if you all have ever thought about creating a semver file in Yaml... because... in my opinion it would make sense to create a semver specification in yaml for better semantics. YAML is a human-friendly data serialization and semver is "semantic versioning specification". Therefore, it would make sense to have a formatted file... semver in yaml format.

<!-- gh-comment-id:1253590709 --> @ghost commented on GitHub (Sep 21, 2022): Hi JohnTitor. So... > The current comment doesn't describe what that YAML file does, could you clarify? YAML is a human-friendly data serialization. > What do you want for the semver specification? I would like to know if you all have ever thought about creating a semver file in Yaml... because... in my opinion it would make sense to create a semver specification in yaml for better semantics. YAML is a human-friendly data serialization and *semver is "semantic versioning specification"*. Therefore, it would make sense to have a formatted file... semver in yaml format.
Author
Owner

@JohnTitor commented on GitHub (Sep 21, 2022):

A Semver specification is a data type

Hmm, I don't think specification is a data type.

Therefore, it would make sense to have a formatted file... semver in yaml format....

So you want to express the specification with YAML? But your YAML file just lists version numbers and some even don't follow semver (e.g. 1.0.1a).

I would like to know if you all have ever thought about creating a semver file in Yaml.

AFAIK no.

<!-- gh-comment-id:1253613555 --> @JohnTitor commented on GitHub (Sep 21, 2022): > A Semver specification is a data type Hmm, I don't think [specification **is** a data type](https://en.wikipedia.org/wiki/Specification_(technical_standard)). > Therefore, it would make sense to have a formatted file... semver in yaml format.... So you want to express the specification with YAML? But your YAML file just lists version numbers and some even don't follow semver (e.g. `1.0.1a`). > I would like to know if you all have ever thought about creating a semver file in Yaml. AFAIK no.
Author
Owner

@ljharb commented on GitHub (Sep 21, 2022):

What is a “semver file”?

<!-- gh-comment-id:1253746299 --> @ljharb commented on GitHub (Sep 21, 2022): What is a “semver file”?
Author
Owner

@ghost commented on GitHub (Sep 21, 2022):

Hi JohnTitor.

Hmm, I don't think specification is a data type.

I said something wrong, so please sorry me.

So you want to express the specification with YAML?

Exactly... yeah... as:

semver.yaml

version_string:
   - 0.2.1: major
       - src: 'file.md'
   - 2.10.5: major
       - src: 'img.png'
   - 1.0.1a: type
       - src: 'index.py'
   - 1.0.1a2: type
       - src: 'main.py'
   - 1.0.1b: type
       - src: 'main.js'
   - 1.0.1rc1: type 
   ...
<!-- gh-comment-id:1254073775 --> @ghost commented on GitHub (Sep 21, 2022): Hi JohnTitor. > Hmm, I don't think [specification is a data type](https://en.wikipedia.org/wiki/Specification_(technical_standard)). I said something wrong, so please sorry me. > So you want to express the specification with YAML? Exactly... yeah... as: *semver.yaml* ```yaml version_string: - 0.2.1: major - src: 'file.md' - 2.10.5: major - src: 'img.png' - 1.0.1a: type - src: 'index.py' - 1.0.1a2: type - src: 'main.py' - 1.0.1b: type - src: 'main.js' - 1.0.1rc1: type ... ```
Author
Owner

@ghost commented on GitHub (Sep 21, 2022):

Hi ljharb.

What is a “semver file”?

A semver file is a semantic expression about software versioning in yaml format(which is also semantic).

<!-- gh-comment-id:1254079998 --> @ghost commented on GitHub (Sep 21, 2022): Hi ljharb. > What is a “semver file”? A semver file is a semantic expression about software versioning in yaml format(which is also semantic).
Author
Owner

@ljharb commented on GitHub (Sep 21, 2022):

@codehangen that doesn't clear it up. Semver means that the version triple - x.y.z (possibly with a prerelease or build identifier) - encapsulates the entirety of the semantics, which means that the format of the file containing it is utterly irrelevant.

<!-- gh-comment-id:1254147060 --> @ljharb commented on GitHub (Sep 21, 2022): @codehangen that doesn't clear it up. Semver means that the version triple - x.y.z (possibly with a prerelease or build identifier) - encapsulates the entirety of the semantics, which means that the format of the file containing it is utterly irrelevant.
Author
Owner

@ghost commented on GitHub (Sep 21, 2022):

Hi ljharb, JohnTitor. thank you all for feedback, so please... could you all close this issue?

<!-- gh-comment-id:1254257325 --> @ghost commented on GitHub (Sep 21, 2022): Hi ljharb, JohnTitor. thank you all for feedback, so please... could you all close this issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#5682