1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
Adam Rusted
2455746fcc
Add Logicool aliases (#10430) 2024-03-13 16:44:17 +00:00
Niccolum
457b5abbac
Add sqlalchemy (#9690)
* add sqlalchemy

* fix linter errors

* Update _data/simple-icons.json

* JSON Schema Update to include Discussions

* Update .jsonschema.json

Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>

---------

Co-authored-by: Adam Rusted <hello@adamrusted.me>
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
2023-10-21 04:21:36 +02:00
LitoMore
4849328248
Drop unnecessary license links (#9575) 2023-09-17 22:50:59 +02:00
LitoMore
856435d461
Complete SPDX license list (#8896)
* Complete SPDX license list

* Fix sort
2023-06-28 20:30:51 +02:00
Álvaro Mondéjar
33895e88fa
Check GitHub sources without hash using JSONSchema (#7873)
* Check Github sources without hash using JSONSchema

* Update .jsonschema.json
2022-09-26 16:42:22 +02:00
Álvaro Mondéjar
3ee620b9d6
Forbid the usage of non secure URLs (#7855)
* Forbid the usage of non secure URLs

* Document in CONTRIBUTING

* Add test to forbid HTTP URLs in documentation pages
2022-09-24 17:37:03 +02:00
Álvaro Mondéjar
dd4ddc7fa9
Avoid certain cases for data consistency (#7222) 2022-03-14 21:04:50 +01:00
Peter Noble
8d21b9910b
Remove Hyphens from Filenames (#5611) 2021-05-27 19:29:34 +02:00
Eric Cornelissen
979836137d
Add aliases to the JSON schema (#5369) 2021-05-06 14:50:44 +01:00
Peter Noble
ead1170a2f
Disallow Hyphens in File Names (#5121) 2021-05-05 11:22:54 +01:00
Adam Rusted
357121b328
Update 'C' icons. (#5273) 2021-03-15 17:21:43 +00:00
Álvaro Mondéjar
2f7e5827e5
Update Packagist; add MIT license to JSONSchema config (#5182) 2021-03-05 17:13:53 +00:00
Eric Cornelissen
39269e7d39
Add icon license to JSON linting (and change JSON linting dependency) (#4945)
* Add "license" object to the data file JSON schema

* Add license to GNU and GNU social

As an example, based on the discussion in:
https://github.com/simple-icons/simple-icons/issues/1167

* Use `"additionalProperties": false` in JSON schema

... to detect properties in the data file that shouldn't be there.

For more info, see:
https://json-schema.org/understanding-json-schema/reference/object.html

* Update JSON scheme descriptions

* Switch from jsonlint2 to jsonschema

This gives is better support for advanced features of JSON schema.

A couple of clarifications:
- There does exist a jsonschema-cli package, but it is rather limited
  and crucially doens't exit with a non-zero exit code if there is an
  error. (it is also pretty old and not maintained), hence the custom
  script.
- I renamed .jsonlintschema 1) for clarity (lint is no longer accurate)
  and 2) the .json extension allows easy imorting in the script and 3)
  it adds syntax highlighting.
- The script outputs the number of errors in the end because the output
  gets pretty big pretty quickly, this way you can see it easily from
  your CLI.
- We could customize how the errors are logged, but I feel that is
  beyond this PR.

* Two minor changes

* Use `oneOf` to require URL for custom licenses

The updated configuration allows the `"license"` field to be either
1) a SPDX license, optional with a URL
2) a "custom" license with a required URL

Read more about the "oneOf" feature of jsonschema at:
https://json-schema.org/understanding-json-schema/reference/combining.html#oneof

* Include license field in Contributing Guidelines
2021-02-19 15:19:22 +01:00