https://github.com/open-feature/flagd-schemas
Schemas and spec files pertaining to flagd
https://github.com/open-feature/flagd-schemas
Last synced: 9 months ago
JSON representation
Schemas and spec files pertaining to flagd
- Host: GitHub
- URL: https://github.com/open-feature/flagd-schemas
- Owner: open-feature
- License: apache-2.0
- Created: 2022-06-07T18:18:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T14:02:59.000Z (over 1 year ago)
- Last Synced: 2024-10-25T17:13:54.314Z (over 1 year ago)
- Language: Go
- Homepage: https://buf.build/open-feature/flagd
- Size: 239 KB
- Stars: 6
- Watchers: 6
- Forks: 13
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# schemas
Schemas and spec files pertaining primarily to [flagd](https://github.com/open-feature/flagd).
The Schema is available in the Buf Schema Registry, and can be found [here](https://buf.build/open-feature/flagd).
When the below commands are used the generated code is placed in the parent directory
## Requirements
- A Go installation
- You must have your `GOPATH` environment variable set in order to run these scripts.
The [Makefile](./Makefile) utilizes [Go](https://go.dev/) to install [Buf](https://buf.build/product/cli/) to the `GOPATH` and execute the binary directly.
### Setting up GOPATH
If you don't want to install `buf` to your global GOPATH, you can also set it for this repository only:
```
export GOPATH="$(pwd)/vendor/"
```
## Golang:
Generate grpc-gateway, go-grpc and go stubs
```
make gen-go-server
```
Generate go-grpc and go stubs
```
make gen-go
```
go package import
```
go get go.buf.build/grpc/go/open-feature/flagd
```
## Typescript:
Generate TypeScript stubs for grpc client and http/grpc input/output schema
```
make gen-ts
```
## Java:
generate Java stubs for grpc client and http/grpc input/output schema
```
make gen-java
```
## CSharp
generate csharp stubs for grpc client and http/grpc input/output schema
```
make gen-csharp
```
## PHP:
Generate PHP stubs for grpc client
```
make gen-php
```
## Ruby:
Generate Ruby stubs for grpc client
```
make gen-ruby
```
## Rust:
Generate Rust stubs for grpc client
```
make gen-rust
```