summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request 'fill out `Cargo.toml`' (#44) from crates-io into mainv0.1.0Cyborus2024-04-201-0/+3
|\ | | | | | | Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/44
| * fill out `Cargo.toml`Cyborus2024-04-201-0/+3
|/
* Merge pull request 'add derives for query structs' (#43) from query-derive ↵Cyborus2024-04-203-39/+122
|\ | | | | | | | | | | into main Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/43
| * update tests to use `Default::default` impls for query typesCyborus2024-04-201-39/+8
| |
| * add derives for query structsCyborus2024-04-202-0/+114
|/
* Merge pull request 'regenerate for 201 status code for tags' (#41) from ↵Cyborus2024-04-181-1/+1
|\ | | | | | | | | | | gen-tag-201 into main Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/41
| * regenerate for 201 status code for tagsCyborus2024-04-181-1/+1
|/
* Merge pull request 'fix release attachment download url' (#40) from ↵Cyborus2024-04-181-4/+6
|\ | | | | | | | | | | fix-download into main Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/40
| * fix release attachment download urlCyborus2024-04-181-4/+6
|/
* Merge pull request 'Auto-generate API' (#38) from autogen into mainCyborus2024-03-2021-2732/+40899
|\ | | | | | | Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/38
| * correct tag creation success status code to `201`Cyborus2024-03-201-1/+1
| | | | | | | | | | Forgejo seems to have already fixed this, but not published it yet. I'll just update it here myself
| * two small `BTreeMap`-related changesCyborus2024-03-205-13/+17
| | | | | | | | | | import `BTreeMap` instead of qualified path use `BTreeMap` instead of `serde_json::Map`
| * remove structs that only exist for their `additional` fieldCyborus2024-03-153-67/+23
| |
| * adjust created user's email in testCyborus2024-03-151-2/+2
| |
| * set enum variant serialization namesCyborus2024-03-152-0/+122
| |
| * update testsCyborus2024-03-151-4/+4
| |
| * remove debugCyborus2024-03-151-3/+0
| |
| * default to `serde_json::Value` for empty schemasCyborus2024-03-152-5/+5
| |
| * derive `Copy` and `Eq` for enumsCyborus2024-03-152-25/+25
| |
| * don't implement `as_str` for enums that don't need itCyborus2024-03-153-138/+18
| |
| * split generation into method and struct filesCyborus2024-02-106-6038/+6046
| |
| * fix warningsCyborus2024-02-102-2/+2
| |
| * remove trailing doc comment linesCyborus2024-02-103-642/+12
| |
| * formatCyborus2024-02-102-3/+11
| |
| * even more strongly typed returnsCyborus2024-02-104-61/+177
| |
| * deref more paramsCyborus2024-02-102-18/+12
| |
| * include enum types in fieldsCyborus2024-02-102-59/+101
| |
| * add enum types in query structsCyborus2024-02-102-65/+524
| |
| * generate subtypes and enumsCyborus2024-02-093-3/+194
| |
| * better document structsCyborus2024-02-092-0/+1002
| |
| * better documentation for body paramsCyborus2024-02-092-98/+113
| |
| * deref params in method doc generationCyborus2024-02-091-12/+9
| |
| * support non-json return typesCyborus2024-02-093-50/+110
| |
| * strongly typed header returnsCyborus2024-02-095-12/+408
| |
| * more general dereferencingCyborus2024-01-303-50/+658
| |
| * formatCyborus2024-01-303-27/+31
| |
| * fix warningsCyborus2024-01-303-30/+24
| |
| * put `query` directly in format stringCyborus2024-01-302-282/+105
| |
| * improve openapi verificationCyborus2024-01-304-64/+500
| |
| * split generator into modulesCyborus2024-01-273-898/+906
| |
| * remove debug panicCyborus2024-01-271-2/+0
| |
| * formatCyborus2024-01-241-1/+2
| |
| * generate codeCyborus2024-01-241-1325/+1307
| |
| * fix errors/warnings in generated codeCyborus2024-01-241-10/+9
| | | | | | | | | | | | | | | | remove import of `Write` remove now unused output string in display impls access query fields by reference remove `r#` in vars accessed in format strings replace char literals in write macros with strings
| * Merge pull request 'autogen improvements' (#39) from ↵Cyborus2024-01-241-33/+69
| |\ | | | | | | | | | | | | | | | Aviac/forgejo-api:aviac/autogen into autogen Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/39
| | * fix(mistake): order of statementsaviac2024-01-241-1/+1
| | | | | | | | | | | | Authored-by: Aviac <aviac@mailbox.org>
| | * fix(list): adjust broken generated codeaviac2024-01-231-1/+1
| | | | | | | | | | | | Authored-by: Aviac <aviac@mailbox.org>
| | * chore(cleanup): remove commentaviac2024-01-231-2/+0
| | | | | | | | | | | | Authored-by: Aviac <aviac@mailbox.org>
| | * feat(formatting): auto run rustfmt on generated fileaviac2024-01-221-6/+17
| | | | | | | | | | | | Authored-by: Aviac <aviac@mailbox.org>
| | * chore(cleanup): consolidate `writeln`saviac2024-01-221-12/+15
| | | | | | | | | | | | Authored-by: Aviac <aviac@mailbox.org>