Skip to content

Commit

Permalink
Update schema of DataSource in v3 YAML (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamevaalet authored Sep 12, 2024
1 parent d59bb6c commit 5789860
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/Persistence/PaYaml/Models/SchemaV3/DataSourceInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

namespace Microsoft.PowerPlatform.PowerApps.Persistence.PaYaml.Models.SchemaV3;

public enum DataSourceInstanceType
public enum DataSourceType
{
DataverseTable,
Table,
Actions
}

public record DataSourceInstance
{
[YamlMember(DefaultValuesHandling = DefaultValuesHandling.Preserve)]
public required DataSourceInstanceType Type { get; init; }
public string? TableLogicalName { get; init; }
public required DataSourceType Type { get; init; }
public NamedObjectMapping<string>? Parameters { get; init; }
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
DataSources:
Accounts:
Type: DataverseTable
TableLogicalName: account
Type: Table
Parameters:
TableLogicalName: account
Contacts:
Type: DataverseTable
TableLogicalName: contact
Type: Table
Parameters:
TableLogicalName: contact
Users:
Type: DataverseTable
TableLogicalName: systemuser
Type: Table
Parameters:
TableLogicalName: systemuser

0 comments on commit 5789860

Please sign in to comment.