-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Conversation
java-sdk/configuration.asciidoc
Outdated
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
java-sdk/configuration.asciidoc
Outdated
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()); | ||
} | ||
} | ||
``` |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
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();