Describe the overall issue and situation
Running the provider plugin generator with --with-schema creates a schema class that remains abstract. The generated class implements supports_strict_mode, while BaseSchema requires the abstract requires_raw_output property.
The generator reports that schema support was added, but calling from_examples raises a TypeError when it tries to instantiate the class.
Steps to reproduce the issue
-
Generate a provider plugin:
python scripts/create_provider_plugin.py MyProvider --with-schema --no-install
-
Import MyProviderSchema from the generated package.
-
Call MyProviderSchema.from_examples([]).
The call fails with:
TypeError: Can't instantiate abstract class MyProviderSchema without an implementation for abstract method 'requires_raw_output'
Expected behavior
A schema generated by the advertised --with-schema workflow should implement the current BaseSchema contract and be instantiable through from_examples.
Environment
Reproduced on current main at b5fe0ba with Python 3.12.
Describe the overall issue and situation
Running the provider plugin generator with
--with-schemacreates a schema class that remains abstract. The generated class implementssupports_strict_mode, whileBaseSchemarequires the abstractrequires_raw_outputproperty.The generator reports that schema support was added, but calling
from_examplesraises aTypeErrorwhen it tries to instantiate the class.Steps to reproduce the issue
Generate a provider plugin:
Import
MyProviderSchemafrom the generated package.Call
MyProviderSchema.from_examples([]).The call fails with:
Expected behavior
A schema generated by the advertised
--with-schemaworkflow should implement the currentBaseSchemacontract and be instantiable throughfrom_examples.Environment
Reproduced on current
mainatb5fe0bawith Python 3.12.