Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APOLLO-24186 Removed schema and Get mentions #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

roblucar
Copy link
Member

@roblucar roblucar commented Apr 14, 2020

This PR updates the page /java-sdk/configuration.asciidoc and removes mention of schema methods that are no longer needed. Also removes the "get" prefix from the examples. String getId(); -> String id();

@roblucar roblucar changed the title Removed schema and Get mentions APOLLO-24186 Removed schema and Get mentions Apr 14, 2020
This property would then be present in the generated schema.

Here is an example of the most basic configuration, along with required annotations and a sample "getter" method:
Here is an example of the most basic configuration, along with required annotations and a sample property access methods:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Here is an example of the most basic configuration, along with required annotations and a sample property access methods:
Here is an example of the most basic configuration, along with required annotations and sample property access methods:

Comment on lines 87 to 108
Create the schema:

```java
class Runner {
public static void main(String[] args){
ObjectType schema = SchemaGenerator.generate(MyConfig.class);
}
}
```

Generate an instance of the `MyConfig` class:

```java
class Runner {
public static void main(String[] args){
Map<String,Object> data = new java.util.HashMap<>();
data.put("id", 100);
MyConfig config = ModelGenerator.generate(MyConfig.class, data);
System.out.println("id -> " + config.getId());
}
}
```
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 the only section that needs to be removed. The rest of it is relevant to building configs schemas.

Copy link
Member Author

@roblucar roblucar left a comment

Choose a reason for hiding this comment

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

Thanks Matt,

Updating documentation on connector configurations and schemas.
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.

2 participants