Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant updates and refactorings to the OSHConnect library, focusing on improving support for control streams, updating schema models, and enhancing API resource handling. Key changes include the addition of new resource types and content types, refactoring of control stream and command schema classes, and updates to discovery and resource handling logic. These changes collectively improve the library's extensibility, type safety, and alignment with evolving API specifications.
Control Stream and Command Schema Refactoring
ControlStreamclass and related logic have been refactored and its implementation moved, with the introduction of a newControlStreamimport and updates to its resource handling. TheControlChannelclass is removed and replaced by improved handling of control streams.ControlStreamJSONSchemais replaced by a hierarchy of command schema classes (CommandSchema,SWEJSONCommandSchema,JSONCommandSchema), with updated field names and type annotations for better clarity and extensibility.API Resource and Content Type Enhancements
STATUS,SCHEMA) and content types (ContentTypesreplacingEncodingSchema) are added, with corresponding updates to endpoint mapping and default object representations. This improves flexibility in resource handling and serialization.Discovery Logic Improvements
Resource Model Updates
TimePeriod,TimeInstant, and new command schema references), improving type safety and expressiveness.Miscellaneous and Structural Changes
0.3.0a5.NodeandOSHClientSession.These changes collectively modernize the OSHConnect codebase, improve its extensibility for new resource types, and clarify schema handling for control streams and commands.