OMGeeky
ef57420f5e
fix enum result parsing
2023-10-29 13:55:03 +01:00
OMGeeky
a333ae07b1
change enums visibility
2023-10-23 13:01:32 +02:00
OMGeeky
a4b0f56b8c
a building version of the enums-change (cli is broken).
...
(at least youtube3 builds, the others get generated successfully)
2023-10-22 19:58:46 +02:00
OMGeeky
d45d669941
move scope_enum to own mako file
2023-10-22 00:50:17 +02:00
OMGeeky
b09392b768
cleanup python usages
2023-10-22 00:31:01 +02:00
OMGeeky
5b2da0380b
restructure templates to use modules, so it's not just one big file
2023-10-21 23:50:09 +02:00
OMGeeky
bcacb792b1
make regen-apis
2023-10-21 02:56:43 +02:00
OMGeeky
557df5b43f
Add Clone derive to Scope enum
2023-10-21 02:56:42 +02:00
OMGeeky
a171d0e8dd
Add Debug derive to Scope enum
...
Adding that makes logging and debugging easier.
2023-10-21 02:00:14 +02:00
Sebastian Thiel
d189f3055a
Don't depend on latest source as this will prevent markers to work as expected.
2023-08-23 14:25:02 +02:00
Sebastian Thiel
66ff40e765
use cargp publish instead of cargo smart-release
...
It definitely fits our use-case here better.
2023-08-23 14:22:42 +02:00
Sebastian Thiel
89b4bd3546
avoid pushing publish results each time; consider returning to cargo publish
2023-08-23 14:16:49 +02:00
Sebastian Thiel
209d70bfed
fix: relative links ( #418 )
2023-05-08 08:48:14 +02:00
Sebastian Thiel
5cccc5ba83
Manually integrate changes from c43aa69e2b4f87a0c76eb8fd37c221042014d3c1
...
This was a force-pushed commit that probably doesn't exist for long before
beign collected.
Co-authored-by: Filipp <samoylovfp@gmail.com >
2023-05-08 08:04:46 +02:00
Sebastian Thiel
58189b3149
Bump yup-oauth2 to the latest version, bringing in hyper-rustls v0.24.
...
We consider this a breaking change as `cargo-update` updates `yup-oauth2`
but not the explicitly mentioned `hyper-rustls`.
2023-04-19 08:15:36 +02:00
Mihir Samdarshi
7e1909e4db
Update Cargo.toml.mako
2023-04-18 18:21:02 -07:00
Sebastian Thiel
fc1754fbfa
thanks clippy
2023-04-17 15:13:27 +02:00
Sebastian Thiel
94167acfe8
Merge branch 'main' into fix-relative-links
...
Conflicts
=========
* src/rust/preproc/src/main.rs
2023-04-17 15:09:24 +02:00
Sebastian Thiel
41fd613b86
Fix generated example invocations - they compile now.
2023-04-17 15:03:25 +02:00
Sebastian Thiel
ad7c74af16
Upgrade preprocessor markdown processor to latest version
...
This might improve the output quality and seems to work for youtube3.
2023-04-17 15:03:24 +02:00
Filipp Samoilov
de51978c69
WIP
2023-04-16 17:50:13 +03:00
Filipp
4ec155d70d
WIP fixing relative links
...
check the FIXMEs
2023-03-28 17:02:29 +03:00
Darksome
11dc2ef170
Map 'any' JSON Schema type to json::Value instead of String
2022-12-31 09:12:08 +01:00
Gary Coady
bd24ea872a
Improve handling of plurals in generator.
...
The generator tries to turn plural into singular nouns.
However, some words turn out badly, including:
- Addresse (from Addresses)
- Prefixe (from Prefixes)
- Bookshelve (from Bookshelves)
- Sery (from Series)
By using a library, we can get a slightly better outcome.
I've added an exception for "Data", because seeing that
turned into "Datum" is a bit jarring.
2022-11-29 22:51:05 +01:00
Sebastian Thiel
2f38895f83
update common dependencies to latest version
...
There were some (breaking) changes in these dependencies and the
required versions changed.
On the bright side, both common crates are now in the 5.0 range.
2022-10-20 13:35:14 +08:00
philippeitis
05fc10b0c4
Fix clippy lint in preproc
2022-10-19 20:30:19 -07:00
philippeitis
9c9c17b923
Fix default values in CLI crates
2022-10-19 20:30:04 -07:00
philippeitis
852bd70ecb
Move error checking earlier
2022-10-19 18:42:15 -07:00
philippeitis
83007472c9
Fix stringly typed upload protocol
2022-10-19 18:25:58 -07:00
philippeitis
0ad3b1258f
Refactor Params into external struct
...
Reduces file size of generated library:
```
cargo build --release
Compiling google-compute1 v5.0.1+20220224 (/home/philippe/PycharmProjects/google-apis-rs/gen/compute1)
Finished release [optimized] target(s) in 35.15s
```
164 MB resulting lib (4MB reduction)
2022-10-19 17:10:24 -07:00
philippeitis
9fa31bd034
Don't call .to_string() on string values
2022-10-19 15:44:48 -07:00
philippeitis
a6e763f495
Use top-level constants for upload protocols
2022-10-19 15:17:08 -07:00
philippeitis
cfa6958aa0
Add UploadProtocol enum to remove string types
2022-10-19 15:13:20 -07:00
philippeitis
ae3e6a232b
Simplify search for alt=json param
2022-10-19 15:00:16 -07:00
philippeitis
eb072087de
Use Cow for parameter replacement
2022-10-18 20:04:09 -07:00
philippeitis
925d7b0376
Reduce number of clones
2022-10-18 19:28:48 -07:00
philippeitis
f6b195df4f
Make MultiPartReader::mime_type associated fn
2022-10-18 16:58:26 -07:00
philippeitis
616b324a77
Update mime
2022-10-18 16:25:08 -07:00
Sebastian Thiel
fb884e193a
Merge branch 'auth-refactor'
2022-10-18 15:50:11 +08:00
philippeitis
c6439ee165
Remove .expect()
2022-10-16 21:38:06 -07:00
philippeitis
a375b710b1
Use Result<Option<_>, _>
2022-10-16 21:26:21 -07:00
philippeitis
02dbcb9782
Fix lib.rs docs
2022-10-16 17:25:46 -07:00
philippeitis
7ca7f1cafd
Make yup-oauth2 optional
2022-10-16 17:19:10 -07:00
philippeitis
32110d6970
Return Option<String> from GetToken::get_token instead of Result<...>
2022-10-16 16:35:34 -07:00
Sebastian Thiel
869a50e64a
fix typo
2022-10-16 20:28:47 +08:00
philippeitis
a8d5b2e6d9
Link hub in resource builder docs
2022-10-14 22:41:36 -07:00
philippeitis
3183af080a
Refactor modification of scopes
...
`add_scope` is simplified to simply add scopes, and no longer takes an `Option<_>` item.
Added `add_scopes` convenience function, which allows adding multiple scopes at once.
Added `clear_scopes` function to explicitly allow clearing method scopes.
Refactor modification of scopes
`add_scope` is simplified to simply add scopes, and no longer takes an `Option<_>` item.
Added `add_scopes` convenience function, which allows adding multiple scopes at once.
Added `clear_scopes` function to explicitly allow clearing method scopes.
Refactor modification of scopes
`add_scope` is simplified to simply add scopes, and no longer takes an `Option<_>` item.
Added `add_scopes` convenience function, which allows adding multiple scopes at once.
Added `clear_scopes` function to explicitly allow clearing method scopes.
2022-10-14 22:04:40 -07:00
philippeitis
24f361749a
Use .to_string() directly for reduction in build size
...
Went from 3,325,128b to 3,287,744b for accessapproval1 by using .to_string() directly, under --release config.
2022-10-10 17:37:16 -07:00
philippeitis
98a02a73a4
Simplify searching for "alt=json" param
2022-10-10 17:14:43 -07:00
philippeitis
d611a319de
Fix bug in removing used parameters
...
The current implementation removes parameters if they are used - however, it only removes the first instance, and removes instances by index. However, when multiple items are being removed, following indices must be decremented by 1 to account for previously removed items.
2022-10-10 17:13:38 -07:00