Skip to content

Conversation

@iamdanfox
Copy link
Contributor

Before this PR

No useful information on README.

After this PR

README describes design decisions and intended usage of conjure-java objects, and links to other conjure-ecosystem projects.

@@ -0,0 +1,19 @@
# Contributing

The team welcomes contributions! To make changes:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space.

readme.md Outdated

## Usage

The recommended way to use conjure-java is via a build tool like [gradle-conjure](https://github.com/palantir/gradle-conjure). However, if you don't want to use gradle-conjure, there is also a executable which conforms to [RFC 002](https://github.com/palantir/conjure/blob/develop/rfc/002-contract-for-conjure-generators.md), published on [bintray](https://bintray.com/palantir/releases/conjure-java).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an executable

readme.md Outdated

Usage: conjure-java generate <input> <output> [...options]

--objects Generate POJOs for Conjure type definitions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add note that these are boolean flags?

readme.md Outdated
- **Conjure alias: [StringAliasExample](./conjure-java-core/src/integrationInput/java/com/palantir/product/StringAliasExample.java)**
Aliases have exactly the same JSON representation as their inner type, so they are useful for making error-prone function signatures more more bulletproof:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra more

readme.md Outdated

## Example Retrofit interfaces

As an alternative to the JAX-RS interfaces above, conjure-java can generate equivalent interfaces with [Retrofit2](http://square.github.io/retrofit/) annotations. These clients are useful if you to to stream binary data or make non-blocking async calls:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"to to stream"" > "want to stream"

Call<ResponseBody> binary(@Header("Authorization") AuthHeader authHeader);
```

You can also supply the `--retrofitCompletableFutures` flag if you prefer Java 8 CompletableFutures instead of OkHttp's Call.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be included in the usage?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It messes up all the indenting and seemed a bit unimportant

readme.md Outdated

You can also supply the `--retrofitCompletableFutures` flag if you prefer Java 8 CompletableFutures instead of OkHttp's Call.
## Local development
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is Contribution section

@iamdanfox iamdanfox merged commit 37e1224 into develop Jul 9, 2018
@iamdanfox iamdanfox deleted the readme branch July 9, 2018 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants