mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-04 08:09:00 +00:00
* [C] Don't convert post body strings to JSON If the body provided for the api request is a just a string itself, don't try to convert it to JSON, simply submit the string. * [C] Implement BearerToken authentication * [C] Handle nullable fields correctly * [C] Fix implementation of FromString for enums * [C] Update the test schemas to cover the changes * Update samples * Fix the updated samples * [C] Add the new samples folder to the CI workflow
19 lines
409 B
C
19 lines
409 B
C
#ifndef INCLUDE_BINARY_H
|
|
#define INCLUDE_BINARY_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct binary_t
|
|
{
|
|
uint8_t* data;
|
|
unsigned int len;
|
|
} binary_t;
|
|
|
|
binary_t* instantiate_binary_t(char* data, int len);
|
|
|
|
char *base64encode(const void *b64_encode_this, int encode_this_many_bytes);
|
|
|
|
char *base64decode(const void *b64_decode_this, int decode_this_many_bytes, int *decoded_bytes);
|
|
|
|
#endif // INCLUDE_BINARY_H
|