forked from mirror/Riven
1
0
Fork 0
Commit Graph

30 Commits (4cc241baacefb7efda02978efd4ec56ec55a68d2)

Author SHA1 Message Date
Mingwei Samuel 33ef298039 Add `rustfmt_skip` to autogen preambles 2024-01-20 19:40:41 -08:00
Mingwei Samuel 172bc84620 Add special parsing for `GameType`s missing `_GAME` suffix, add tests
https://github.com/RiotGames/developer-relations/issues/878
2024-01-15 11:58:24 -08:00
Mingwei Samuel ac12a8bfc2 Always display queue notes in doc comment 2023-11-15 11:43:29 -08:00
Mingwei Samuel fc42abcbe2 update codegen to avoid `clippy::redundant_locals` 2023-08-11 11:42:46 -07:00
Mingwei Samuel 3d1188b5c9 rustfmt ignore templated generated files 2023-05-10 13:10:58 -07:00
Mingwei Samuel 7e78abb7e5
Update route.rs.dt comment typo 2023-05-09 22:09:13 -07:00
Mingwei Samuel d7330fcd84 Regen, update for `TournamentRegion` enum, more `PlatformRoute` `altName`s 2023-01-20 22:06:16 -08:00
Mingwei Samuel d2a213c287 npm audit fix 2023-01-20 20:34:08 -08:00
Mingwei Samuel 4f5d115831 fixup! Generate region enums 2023-01-07 20:33:40 -08:00
Mingwei Samuel 08e276a558 Generate region enums 2023-01-07 20:07:35 -08:00
dependabot[bot] d05c3a11d4 Bump json-schema and jsprim in /riven/srcgen
Bumps [json-schema](https://github.com/kriszyp/json-schema) and [jsprim](https://github.com/joyent/node-jsprim). These dependencies needed to be updated together.

Updates `json-schema` from 0.2.3 to 0.4.0
- [Release notes](https://github.com/kriszyp/json-schema/releases)
- [Commits](https://github.com/kriszyp/json-schema/compare/v0.2.3...v0.4.0)

Updates `jsprim` from 1.4.1 to 1.4.2
- [Release notes](https://github.com/joyent/node-jsprim/releases)
- [Changelog](https://github.com/TritonDataCenter/node-jsprim/blob/v1.4.2/CHANGES.md)
- [Commits](https://github.com/joyent/node-jsprim/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: indirect
- dependency-name: jsprim
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-21 16:35:53 -07:00
Mingwei Samuel 3ae9f36888 Generate `queue_type.rs` from riotapi-schema version 2022-06-21 00:09:08 -07:00
Mingwei Samuel bfa9bdc36e Add deny-unknown-enum-variants features
Add `NONE = -1` variant to Champions
2022-06-20 20:43:16 -07:00
Mingwei Samuel b24fdcb765 Use `#[derive(Serialize, Deserialize)]` for string enums missing `UNKNOWN(String)` variant
Use updated `serde_string!` -> `serde_strum_unknown!` for enums with
`UNKNOWN` variant.
2022-06-20 10:05:54 -07:00
Mingwei Samuel 104db04d9d Revert "Remove serde_string! macro in favor of #[derive(Serialize, Deserialize)]"
This reverts commit 038e5eb493.

This is to fix handling of `#[strum(default)]` variants.
2022-06-20 09:40:28 -07:00
Mingwei Samuel 03a053d142 Regen and fixes for added `lol-challenges-v1.getAllChallengePercentiles` and `.getChallengePercentiles` tests. 2022-05-19 00:15:28 -07:00
dependabot[bot] 1b62208c78 Bump ajv from 6.10.2 to 6.12.6 in /riven/srcgen
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-13 20:31:10 -08:00
Mingwei Samuel 386d41c208 Add tests for `match-v5.ParticipantDto.challenges`, add `deny-unknown-fields` feature 2022-02-10 17:02:56 -08:00
Mingwei Samuel 038e5eb493 Remove serde_string! macro in favor of #[derive(Serialize, Deserialize)]
As pointed out in #33
2022-02-08 22:28:48 -08:00
Mingwei Samuel ede1247bf8 fixup! Release 2.5.1 2022-02-08 22:28:29 -08:00
Mingwei Samuel 1d70c479cf Add #![deny(missing_docs)], document all items 2022-02-08 17:17:47 -08:00
Mingwei Samuel d05f89c0d4 Fix parsing of Champion, improve error handling 2021-12-29 11:53:15 -08:00
Mingwei Samuel 2f4d1dc65c Add match_v5::Participant champion(&self) method to handle bad champion IDs
Riot: https://github.com/RiotGames/developer-relations/issues/553
https://github.com/MingweiSamuel/Riven/issues/36
2021-12-29 11:15:23 -08:00
Mingwei Samuel c07efb1087 match-v5.ParticipantDto use champion_id: Result<Champion, TryFromIntError> to handle invalid ints
Riot bug: https://github.com/RiotGames/developer-relations/issues/553
Fix #36
2021-12-29 10:50:10 -08:00
Mingwei Samuel 0b16c2a385 Cleanup per clippy recommendations 2021-10-29 22:38:48 -07:00
Mingwei Samuel 0e22623056 Make models derive Clone, regen
Only couple descriptions changed in spec.
2021-10-29 22:24:57 -07:00
Mingwei Samuel 3cd41bce4c Fix .gitignore for riven/srcgen move 2021-09-27 19:36:11 -07:00
Mingwei Samuel 9c13d126a6 Regen for match-v4 removal
- Comment out match-v4 tests.
2021-09-27 19:04:35 -07:00
Mingwei Samuel 32e70437ab Update enum numeric values (fixes #29), update doc links, regen 2021-09-09 22:51:15 -07:00
Mingwei Samuel 74eb5fa045 Update example proxy for v2, use workspaces.
- `example/proxy` is new folder for `example_proxy`.
- `riven` is new folder for the main riven lib.
- Updated metadata to be an array and include HTTP method.
2021-09-09 14:31:39 -07:00